Activate a gift card
Activate a physical gift card through the primary gift card service. Set store to true to also store the activated gift card.
gift-cards.write scope.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
A unique key that identifies this request. If supported by the gift card service, the value will be forwarded to make the activation idempotent. We recommend using V4 UUIDs, or another random string with enough entropy to avoid collisions.
The ID of the merchant account to use for this request.
"default"
Body
The details used to activate a physical gift card.
The 16-19 digit number for the gift card.
16 - 19^\d+$"4123455541234561234"
The PIN for this gift card.
1"1234"
The amount to load onto the gift card, in the smallest denomination for the currency. Required if currency is provided.
0 <= x <= 999999995000
The ISO-4217 currency code for the amount. Required if amount is provided.
^[A-Z]{3}$"USD"
An optional external identifier for this activation.
1 - 200"order-12345"
Whether to store the activated gift card in the vault. When true, a pin is required.
false
The ID of the buyer to associate this gift card to. Only allowed when store is true. If this field is provided then the buyer_external_identifier field needs to be unset.
"fe26475d-ec3e-4884-9553-f7356683f7f9"
The external_identifier of the buyer to associate this gift card to. Only allowed when store is true. If this field is provided then the buyer_id field needs to be unset.
1 - 200"user-789123"
Response
Successful Response
The ID for the gift card.
"356d56e5-fe16-42ae-97ee-8d55d846ae2e"
The ID of the merchant account this buyer belongs to.
"default"
The service this gift card belongs to.
The first 6 digits of the full gift card number.
"412345"
The 3 digits after the bin of the full gift card number.
"554"
The last 4 digits for the gift card.
"1234"
The date this gift card record was created at.
"2013-07-16T19:23:00.000+00:00"
The date this gift card record was last updated at.
"2013-07-16T19:23:00.000+00:00"
The number of times this gift card has been used in transactions.
100
The number of times this gift card has been used in transactions for client initiated transactions.
50
Always gift-card.
"gift-card""gift-card"
The date and time when this gift card expires. This is a full date/time and may be more accurate than the actual expiry date received by the gift card service.
"2013-07-16T19:23:00.000+00:00"
The buyer for which this gift card is stored.
The timestamp when this gift card was last used in a transaction.
"2013-07-16T19:23:00.000+00:00"
The timestamp when this gift card was last used in a transaction for client initiated transactions.
"2013-07-16T19:23:00.000+00:00"