GET
/
gift-cards
/
{gift_card_id}
curl --request GET \
  --url https://api.{gr4vy_id}.gr4vy.app/gift-cards/{gift_card_id} \
  --header 'Authorization: Bearer <token>'
{
  "bin": "412345",
  "buyer": {
    "billing_details": {
      "address": {
        "city": "London",
        "country": "GB",
        "house_number_or_name": "10",
        "line1": "10 Oxford Street",
        "line2": "New Oxford Court",
        "organization": "Gr4vy",
        "postal_code": "789123",
        "state": "Greater London",
        "state_code": "GB-LND"
      },
      "email_address": "john@example.com",
      "first_name": "John",
      "last_name": "Lunn",
      "phone_number": "+1234567890",
      "tax_id": {
        "kind": "gb.vat",
        "value": "12345678931"
      },
      "type": "billing-details"
    },
    "created_at": "2013-07-16T19:23:00.000+00:00",
    "display_name": "John L.",
    "external_identifier": "user-789123",
    "id": "fe26475d-ec3e-4884-9553-f7356683f7f9",
    "merchant_account_id": "default",
    "type": "buyer",
    "updated_at": "2013-07-16T19:23:00.000+00:00"
  },
  "created_at": "2013-07-16T19:23:00.000+00:00",
  "expiration_date": "2013-07-16T19:23:00.000+00:00",
  "id": "e6cdf979-87e2-4796-8ff6-9784d5aed893",
  "last4": "1234",
  "merchant_account_id": "default",
  "service": {
    "active": true,
    "created_at": "2012-12-12T10:53:43+00:00",
    "display_name": "Qwikcilver UK",
    "fields": [
      {
        "key": "secret_key",
        "value": "sk_test_26PHem9AhJZvU623DfE1x4sd"
      }
    ],
    "gift_card_service_definition_id": "qwikcilver-gift-card",
    "id": "6c020bf3-179b-4f4f-858d-84e39e196e0f",
    "merchant_account_id": "default",
    "type": "gift-card-service",
    "updated_at": "2012-12-12T10:53:43+00:00"
  },
  "sub_bin": "554",
  "type": "gift-card",
  "updated_at": "2013-07-16T19:23:00.000+00:00"
}

This endpoint requires the gift-cards.read scope.

This feature is in limited release and not yet available in all environments.

Authorizations

Authorization
string
headerrequired

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

Path Parameters

gift_card_id
string
required

The unique ID of a stored gift card.

Response

200 - application/json
bin
string

The first 6 digits of the full gift card number.

buyer
object

The optional buyer for which this payment method has been stored.

created_at
string

The date and time when this gift card was created in our system.

expiration_date
string | null

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.

id
string

The ID of this gift card.

last4
string

The last 4 digits for the gift card.

merchant_account_id
string

The unique ID for a merchant account.

service
object

An configured gift card service.

sub_bin
string

The 3 digits after the bin of the full gift card number.

type
enum<string>

The type of this resource.

Available options:
gift-card
updated_at
string

The date and time when this gift card was last updated in our system.