Gift card updated
EVENT
gift_card.updated
Published when a gift card is updated. This includes changes to the state, balance, and customer association.
Permissions
GIFTCARDS_READ
Name | Description |
---|---|
merchant_
|
The ID of the Square seller associated with the event. |
type
|
The type of this event. For this event, the value is |
event_
|
The unique ID of the event, which is used for idempotency support. |
created_
|
Read only The timestamp of when the event was created, in RFC 3339 format. Examples for January 25th, 2020 6:25:34pm Pacific Standard Time: UTC: 2020-01-26T02:25:34Z Pacific Standard Time with UTC offset: 2020-01-25T18:25:34-08:00 |
data
|
The data associated with the event. |
Examples
Example payload
{
"merchant_id": "C337NFWQT2A6W",
"type": "gift_card.updated",
"event_id": "875f2038-6015-492e-9f29-d040b3809e49",
"created_at": "2020-12-17T02:41:35.157Z",
"data": {
"type": "gift_card",
"id": "gftc:00113070ba5745f0b2377c1b9570cb03",
"object": {
"gift_card": {
"id": "gftc:00113070ba5745f0b2377c1b9570cb03",
"type": "DIGITAL",
"gan_source": "SQUARE",
"state": "ACTIVE",
"balance_money": {
"amount": 3000,
"currency": "USD"
},
"gan": "7783320007480908",
"created_at": "2020-12-17T01:41:35.157Z"
}
}
}
}