POST Check Gift Card
Checks a gift card with the payment processor before the customer saves or uses it.
Treat this as a yes-or-no validity check: a 200 means the processor accepted the card, and anything else means it did not. The balance itself is not returned — the success response carries no data.
properties.gift_card_code is the card's PIN. The key must be present, but the value may be null where the processor does not require one.
The card is sent in the request; it does not have to be stored on the account first.
Path Parameters
- Type: integercustomer
_account _id requiredCustomer account ID. Must match the signed-in account.
Headers
- Type: stringAcceptrequired
Type of content accepted by the API (application/json in most cases)
- Type: stringApplicationrequired
Application key for specific client app
- Type: stringContent
- Type requiredContent-Type header
- Type: stringA
P I - V E R S I O N requiredVersion of the API to be used
- Type: stringAuthorization
Authorization header
- Type: stringX
- Request - I D requiredUnique request identifier
Body
- Type: integerpayment
_processor _id requiredThe payment processor to check the card against. Must support gift card checks.
- Properties: 2Type: objectpropertiesrequired
Responses
- application/json
- 401
Missing or invalid token, or the path account is not the signed-in account.
- 422
Validation failed, or the payment processor does not support gift card checks.
curl https://api-public-demo.menu.app/api/customer-accounts/9031/gift-cards/check \
--request POST \
--header 'Accept: application/json' \
--header 'Application: application-key' \
--header 'Content-Type: application/json' \
--header 'API-VERSION: ' \
--header 'X-Request-ID: c10b4a70-6274-490d-80a0-03e7bb826937' \
--data '{
"payment_processor_id": 7,
"properties": {
"gift_card_number": "6006491234567890123",
"gift_card_code": "1234"
}
}'
{
"status": "OK",
"code": 200
}