Update gift card
PUT/openapi/2025-06/gift_cards/:id
Updates the details of a specific gift card using its unique ID.
Request
Path Parameters
Gift card's unique ID
- application/json
- Body
- Example
Bodyrequired
gift_card objectrequired
Gift card
The date when the gift card expires (e.g., 2018-11-02T12:30:10Z)
An optional note that a merchant can attach to the gift card
The suffix of the Liquid template used to render the gift card
{
"gift_card": {
"expires_on": "string",
"note": "string",
"template_suffix": "string"
}
}
Responses
- 200
OK
- application/json
- Schema
- Example
Schema
enable: gift card is active and usabledisable: gift card is disabled and cannot be used
error code
error message
data object
gift_card object
Gift card
Gift card ID
Last four characters of the gift card code
Current balance of the gift card
The initial value of the gift card
Note attached to the gift card
Expiration date of the gift card (e.g., 2018-11-02T12:30:10Z)
Time when the gift card was disabled (e.g., 2018-11-02T12:30:10Z)
Whether the gift card is currently enabled
Time when the gift card was created (e.g., 2018-11-02T12:30:10Z)
Time when the gift card was last updated (e.g., 2018-11-02T12:30:10Z)
Status of the gift card:
Currency in which the gift card is denominated
ID of the line item associated with the gift card
ID of the order associated with the gift card
User ID of the creator or owner of the gift card
Suffix of the template used to render the gift card online
Customer ID associated with the gift card
The gift card code, consisting of alphanumeric characters (minimum: 8 characters, maximum: 20 characters)
{
"code": "string",
"message": "string",
"data": {
"gift_card": {
"id": "string",
"last_characters": "string",
"balance": "string",
"initial_value": "string",
"note": "string",
"expires_on": "string",
"disabled_at": "string",
"enabled": true,
"created_at": "string",
"updated_at": "string",
"status": "string",
"currency": "string",
"line_item_id": "string",
"order_id": "string",
"user_id": "string",
"template_suffix": "string",
"customer_id": "string",
"code": "string"
}
}
}