POST
/
gift-cards
/
balances
curl --request POST \
  --url https://api.{gr4vy_id}.gr4vy.app/gift-cards/balances \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "items": [
    {
      "number": "4123455541234561234",
      "pin": "1234"
    }
  ]
}'
{
  "items": [
    {
      "type": "gift-card",
      "id": "e6cdf979-87e2-4796-8ff6-9784d5aed893",
      "merchant_account_id": "default",
      "bin": "412345",
      "sub_bin": "554",
      "last4": "1234",
      "expiration_date": "2013-07-16T19:23:00.000+00:00",
      "balance": 1299,
      "currency": "USD",
      "balance_error_code": "incorrect_currency",
      "balance_raw_error_code": "10363",
      "balance_raw_error_message": "This currency is not supported by the merchant."
    }
  ]
}

This endpoint requires the gift-cards.read scope.

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
items
object[]

One or more gift cards to check balances for, up to a default limit of 10 gift cards. Please contact our team to change this limit.

Response

200 - application/json
items
object[]

A list of stored gift cards.