Gift Card
Create GiftCard
Creates a gift card for a specific user.
Warning
ℹ️️ The redemptionCode field for a gift card is auto-generated on the creation and cannot be set to an arbitrary value.
post/giftcards
Headers
Content-Typestring required
Type of the content being sent.
Acceptstring required
HTTP Client Negotiation Accept Header. Indicates the types of responses the client can understand.
Response
OK
Example response
{
"id": "954",
"redemptionToken": "32ScL57220Vapb8pc50HJ3mWH1cl1L8x",
"redemptionCode": "***********ASDQ",
"relationName": "cardName",
"emissionDate": "2014-04-24T20:22:58.163",
"expiringDate": "2016-01-01T00:00:00",
"caption": "Programa Vtex Fidelidade",
"currencyCode": "USD",
"transactions": {
"href": "cards/954/transactions"
}
}