Globagift Docs
API / Developers

Products

Gift card products: currency, amount range, availability and status.

GET
/v1/card-products

Authorization

bearerAuth
headerAuthorizationBearer <token>

A merchant API key (gg_...). Each key is limited to its granted scopes.

Query Parameters

limit?integer

Page size. Supplying limit or offset returns {data, total, limit, offset}; omitting both returns {data} only.

Range1 <= value <= 100
Default50
offset?integer
Range0 <= value <= 1000000
Default0
search?string

Case-insensitive match on part of the product name.

Lengthlength <= 200
status?string
Value in"draft""active""paused""archived"
include_archived?boolean

When status is not given, false (the default) leaves archived products out and true includes them.

Defaultfalse

Response Body

Card products

application/json
  1. response
data*array<>
total?integer
Range0 <= value
limit?integer
Range1 <= value <= 100
offset?integer
Range0 <= value <= 1000000
Example Request
curl -X GET 'https://engine-sandbox.globagift.io/v1/card-products'
Example Response
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string",      "currency": "EUR",      "denominations": [        1      ],      "min_amount": 0,      "max_amount": 0,      "expiry_months": 1,      "status": "draft",      "paused_reason": "string",      "active_design_id": "a4eee967-4c43-4a0e-ab43-626b7bf7880b",      "artwork_url": "http://example.com"    }  ],  "total": 0,  "limit": 1,  "offset": 0}
POST
/v1/card-products

Retries: not idempotent. After an unclear failure, read the current state before trying again.

Authorization

bearerAuth
headerAuthorizationBearer <token>

A merchant API key (gg_...). Each key is limited to its granted scopes.

Request Body

application/json
  1. body
name*string
currency*string
denominations?array<integer>
min_amount?integer
max_amount?integer
expiry_months?integer
available_from?string
Formatdate
available_to?string
Formatdate
status?string
Value in"draft""active"

Response Body

Card product created

application/json
  1. response
id*string
Formatuuid
name*string
currency*string
Match^[A-Z]{3}$
denominations*array<>|null
min_amount*integer

Integer minor units; for example 1250 means EUR 12.50.

Range0 <= value
max_amount*integer

Integer minor units; for example 1250 means EUR 12.50.

Range0 <= value
expiry_months*|null
status*string
Value in"draft""active""paused""archived"
paused_reason*string|null
active_design_id*|null
artwork_url*|null
Example Request
curl -X POST 'https://engine-sandbox.globagift.io/v1/card-products' \  -H 'Content-Type: application/json' \  -d '{  "name": "string",  "currency": "string"}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "name": "string",  "currency": "EUR",  "denominations": [    1  ],  "min_amount": 0,  "max_amount": 0,  "expiry_months": 1,  "status": "draft",  "paused_reason": "string",  "active_design_id": "a4eee967-4c43-4a0e-ab43-626b7bf7880b",  "artwork_url": "http://example.com"}
GET
/v1/card-products/{id}

Authorization

bearerAuth
headerAuthorizationBearer <token>

A merchant API key (gg_...). Each key is limited to its granted scopes.

Path Parameters

id*string

Response Body

Card product

application/json
  1. response
id*string
Formatuuid
name*string
currency*string
Match^[A-Z]{3}$
denominations*array<>|null
min_amount*integer

Integer minor units; for example 1250 means EUR 12.50.

Range0 <= value
max_amount*integer

Integer minor units; for example 1250 means EUR 12.50.

Range0 <= value
expiry_months*|null
status*string
Value in"draft""active""paused""archived"
paused_reason*string|null
active_design_id*|null
artwork_url*|null
Example Request
curl -X GET 'https://engine-sandbox.globagift.io/v1/card-products/string'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "name": "string",  "currency": "EUR",  "denominations": [    1  ],  "min_amount": 0,  "max_amount": 0,  "expiry_months": 1,  "status": "draft",  "paused_reason": "string",  "active_design_id": "a4eee967-4c43-4a0e-ab43-626b7bf7880b",  "artwork_url": "http://example.com"}
PATCH
/v1/card-products/{id}

Currency cannot be changed. Setting status back to active also clears paused_reason, which ends a pause applied when the product breached its daily issuance limit.

Retries: not idempotent. After an unclear failure, read the current state before trying again.

Authorization

bearerAuth
headerAuthorizationBearer <token>

A merchant API key (gg_...). Each key is limited to its granted scopes.

Path Parameters

id*string
Formatuuid

Request Body

application/json
  1. body
Properties1 <= properties
name?string
Length1 <= length <= 200
min_amount?integer
Range1 <= value <= 1000000000000
max_amount?integer
Range1 <= value <= 1000000000000
available_from?|null
available_to?|null
status?string
Value in"draft""active""paused""archived"

Response Body

Card product updated

application/json
  1. response
id*string
Formatuuid
name*string
currency*string
Match^[A-Z]{3}$
denominations*array<>|null
min_amount*integer

Integer minor units; for example 1250 means EUR 12.50.

Range0 <= value
max_amount*integer

Integer minor units; for example 1250 means EUR 12.50.

Range0 <= value
expiry_months*|null
status*string
Value in"draft""active""paused""archived"
paused_reason*string|null
active_design_id*|null
artwork_url*|null
Example Request
curl -X PATCH 'https://engine-sandbox.globagift.io/v1/card-products/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "name": "string",  "currency": "EUR",  "denominations": [    1  ],  "min_amount": 0,  "max_amount": 0,  "expiry_months": 1,  "status": "draft",  "paused_reason": "string",  "active_design_id": "a4eee967-4c43-4a0e-ab43-626b7bf7880b",  "artwork_url": "http://example.com"}