GET
/
gift-card-services
/
{gift_card_service_id}
curl --request GET \
  --url https://api.{gr4vy_id}.gr4vy.app/gift-card-services/{gift_card_service_id} \
  --header 'Authorization: Bearer <token>'
{
  "type": "gift-card-service",
  "id": "6c020bf3-179b-4f4f-858d-84e39e196e0f",
  "merchant_account_id": "default",
  "gift_card_service_definition_id": "qwikcilver-gift-card",
  "display_name": "Qwikcilver UK",
  "active": true,
  "fields": [
    {
      "key": "secret_key",
      "value": "sk_test_26PHem9AhJZvU623DfE1x4sd"
    }
  ],
  "created_at": "2012-12-12T10:53:43+00:00",
  "updated_at": "2012-12-12T10:53:43+00:00"
}

This endpoint requires the gift-card-services.read scope.

Authorizations

Authorization
string
headerrequired

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

Path Parameters

gift_card_service_id
string
required

The unique ID of the gift card service.

Response

200 - application/json
type
enum<string>

The type of this resource.

Available options:
gift-card-service
id
string

The ID of this gift card service.

merchant_account_id
string

The unique ID for a merchant account.

gift_card_service_definition_id
string

The ID of the gift card service definition used to create this service.

display_name
string

The custom name set for this service.

active
boolean

Defines if this service is currently active or not.

fields
object[]

A list of fields, each containing a key-value pair for each field configured for this gift card service. Fields marked as secret are not returned.

created_at
string

The date and time when this service was created.

updated_at
string

The date and time when this service was last updated.