{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/giftCertificate_Put",
"title": "giftCertificate_Put",
"allOf": [
{
"$ref": "#/components/schemas/giftCertificate_Base"
},
{
"type": "object",
"properties": {
"balance": {
"type": "string",
"description": "The remaining value of the gift certificate. If not set, will default to the amount.",
"example": "0"
},
"purchase_date": {
"type": "string",
"description": "Date the gift certificate was purchased. If not assigned, this will be set to today\u2019s date. Enter date in RFC-2822 format.",
"example": "Mon, 19 Jan 1970 07:21:46 CST"
},
"expiry_date": {
"type": "string",
"description": "Date on which the gift certificate is set to expire.",
"example": "Mon, 02 Jan 2023 08:45:38 CST"
},
"customer_id": {
"type": "integer",
"description": "The ID of the customer placing the order.",
"example": 5
},
"template": {
"type": "string",
"description": "The email theme to use in the message sent to the recipient.",
"example": "celebration.html",
"enum": [
"birthday.html",
"boy.html",
"girl.html",
"celebration.html",
"christmas.html",
"general.html"
]
},
"message": {
"type": "string",
"description": "Text that will be sent to the recipient, such as \u201cCongratulations.\u201d",
"example": "Congratulations!"
},
"code": {
"maxLength": 255,
"type": "string",
"description": "A unique string that a customer can input to redeem a gift certificate. Values greater than 20 characters will be trimmed down to the first 20 characters and returned in the response.\nIf this field is not set, a value will be autogenerated.",
"example": "FFZ-5N4-C7M-S78"
},
"status": {
"type": "string",
"example": "active",
"enum": [
"active",
"pending",
"expired",
"disabled"
]
},
"currency_code": {
"type": "string",
"description": "A currency code, following the ISO 4217 standard. The currency has to exist in the store first.\n\nGift Certificates can only be used if the transactional currency of the cart is the same as the one defined in the gift certificate. If this value is not provided, the gift certificate is created using the store's default transactional currency.",
"example": "USD"
}
}
}
],
"x-internal": false
}