Skip to main content
POST
Validate gift card
Part of the Gift Cards integration guide — see it for when and how to use this endpoint.

Body

application/json
MerchantGUID
string

Merchant unique identifier.

ShippingCountryCode
string

Code of country selected in Shipping country dropdown.

CardFields
object

Values of each fields defined in configuration. Key – defined field name. Value – user input data.

Response

200 - application/json

Validation result.

IsValid
boolean

Flag which approves that the user entered the correct card data.

Balance
number

Available amount of money on the gift card.

CurrencyCode
string

Code of card currency.

IsGlobalEGiftCard
boolean

If the card was bought from Global-e, should be true.

ErrorCode
string

Code of platform error.

ErrorText
string

Message of platform error.