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

  • Customer account ID. Must match the signed-in account.

Headers

  • Type of content accepted by the API (application/json in most cases)

  • Application key for specific client app

  • Content-Type header

  • Version of the API to be used

  • Authorization header

  • Unique request identifier

Body

required
application/json
  • The payment processor to check the card against. Must support gift card checks.

  • Properties: 2

Responses

  • application/json
  • Missing or invalid token, or the path account is not the signed-in account.

  • Validation failed, or the payment processor does not support gift card checks.

Request Example for post/customer-accounts/{customer_account_id}/gift-cards/check
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
}