A response that contains a list of GiftCard
objects. If the request resulted in errors,
the response contains a set of Error
objects.
ListGiftCardsResponse
Name | Type | Tags | Description |
---|---|---|---|
errors |
Error[] | undefined |
Optional | Any errors that occurred during the request. |
giftCards |
GiftCard[] | undefined |
Optional | The requested gift cards or an empty object if none are found. |
cursor |
string | undefined |
Optional | When a response is truncated, it includes a cursor that you can use in a subsequent request to retrieve the next set of gift cards. If a cursor is not present, this is the final response. For more information, see Pagination. |
{
"cursor": "JbFmyvUpaNKsfC1hoLSA4WlqkgkZXTWeKuStajR5BkP7OE0ETAbeWSi6U6u7sH",
"gift_cards": [
{
"balance_money": {
"amount": 3900,
"currency": "USD"
},
"created_at": "2021-06-09T22:26:54.000Z",
"gan": "7783320008524605",
"gan_source": "SQUARE",
"id": "gftc:00113070ba5745f0b2377c1b9570cb03",
"state": "ACTIVE",
"type": "DIGITAL"
},
{
"balance_money": {
"amount": 2000,
"currency": "USD"
},
"created_at": "2021-05-20T22:26:54.000Z",
"gan": "7783320002692465",
"gan_source": "SQUARE",
"id": "gftc:00128a12725b41e58e0de1d20497a9dd",
"state": "ACTIVE",
"type": "DIGITAL"
}
]
}