Cards
Issue gift cards, read them, and suspend, release or void them.
bearerAuthAuthorizationBearer <token>A merchant API key (gg_...). Each key is limited to its granted scopes.
after_cursor?stringlimit?integer1 <= value <= 10050state?string"created""active""partially_redeemed""depleted""suspended""fraud_hold""expired""voided"issued_from?stringInclusive date/time boundary for the resource timestamp named by this parameter.
date-timeissued_to?stringInclusive date/time boundary for the resource timestamp named by this parameter.
date-timeorder_id?stringuuidrecipient_email?stringlast4?stringCards page
application/json- response
data*array<>next_cursor*|nullcurl -X GET 'https://engine-sandbox.globagift.io/v1/cards'{ "data": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "state": "created", "currency": "EUR", "amount": 0, "claim_code": "string", "redemption_code": "string", "payment_reference": "string", "acceptance_point_id": "cb7fe03a-d13a-4fa6-9fe2-dcdbba794774", "whatsapp_delivery": { "sent": true, "to_masked": "string", "reason": "string" }, "email_delivery": { "sent": true, "to_masked": "string", "reason": "string" }, "redemption_code_last4": "stri", "expires_at": "2019-08-24T14:15:22Z", "card_design_id": "e9676ab8-4ee1-4a63-b3d4-c9176075bb1b", "artwork_url": "http://example.com", "balance": 0, "issued_at": "2019-08-24T14:15:22Z", "order_id": "93101167-9065-4b9c-b98b-5d789a3ed9fe" } ], "next_cursor": "a7ec8888-a9c3-4732-a281-9a08510f220b"}Retries: send an Idempotency-Key header. Repeating the request with the same key and the same body returns the original result; the same key with a different body returns 409 idempotency_key_conflict.
bearerAuthAuthorizationBearer <token>A merchant API key (gg_...). Each key is limited to its granted scopes.
Idempotency-Key*string1 <= length <= 255application/json- body
card_product_id*stringamount*integer1 <= value <= 1000000000000recipient_email?stringRequired when delivery_channel is email. The gift card is emailed to this address.
length <= 320payment_reference?stringOptional store payment reference for till reconciliation.
length <= 80acceptance_point_id?stringOptional store or till that issued the card.
uuidrecipient_phone?stringE.164 phone. Required when delivery_channel is whatsapp.
length <= 32delivery_channel?stringHow to deliver the card. Default qr, or email when recipient_email is set.
"qr""email""whatsapp"whatsapp_consent?booleanMust be true when delivery_channel is whatsapp (Meta opt-in).
Card issued (200 on idempotent replay)
application/json- response
id*stringuuidstate*string"created""active""partially_redeemed""depleted""suspended""fraud_hold""expired""voided"currency*string^[A-Z]{3}$amount*integerInteger minor units; for example 1250 means EUR 12.50.
0 <= valuepayment_reference?stringOptional store payment reference returned at issue time when supplied.
length <= 80acceptance_point_id?|Optional store or till that issued the card. Null when issue had no till context.
whatsapp_delivery?email_delivery?redemption_code_last4*|nullexpires_at*|nullcard_design_id*|nullartwork_url*|nullbalance*|nullissued_at?stringdate-timeorder_id?|nullcurl -X POST 'https://engine-sandbox.globagift.io/v1/cards' \ -H 'Idempotency-Key: string' \ -H 'Content-Type: application/json' \ -d '{ "card_product_id": "string", "amount": 1}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "state": "created", "currency": "EUR", "amount": 0, "claim_code": "string", "redemption_code": "string", "payment_reference": "string", "acceptance_point_id": "cb7fe03a-d13a-4fa6-9fe2-dcdbba794774", "whatsapp_delivery": { "sent": true, "to_masked": "string", "reason": "string" }, "email_delivery": { "sent": true, "to_masked": "string", "reason": "string" }, "redemption_code_last4": "stri", "expires_at": "2019-08-24T14:15:22Z", "card_design_id": "e9676ab8-4ee1-4a63-b3d4-c9176075bb1b", "artwork_url": "http://example.com", "balance": 0, "issued_at": "2019-08-24T14:15:22Z", "order_id": "93101167-9065-4b9c-b98b-5d789a3ed9fe"}bearerAuthAuthorizationBearer <token>A merchant API key (gg_...). Each key is limited to its granted scopes.
id*stringCard
application/json- response
id*stringuuidstate*string"created""active""partially_redeemed""depleted""suspended""fraud_hold""expired""voided"currency*string^[A-Z]{3}$amount*integerInteger minor units; for example 1250 means EUR 12.50.
0 <= valuepayment_reference?stringOptional store payment reference returned at issue time when supplied.
length <= 80acceptance_point_id?|Optional store or till that issued the card. Null when issue had no till context.
whatsapp_delivery?email_delivery?redemption_code_last4*|nullexpires_at*|nullcard_design_id*|nullartwork_url*|nullbalance*|nullissued_at?stringdate-timeorder_id?|nullcurl -X GET 'https://engine-sandbox.globagift.io/v1/cards/string'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "state": "created", "currency": "EUR", "amount": 0, "claim_code": "string", "redemption_code": "string", "payment_reference": "string", "acceptance_point_id": "cb7fe03a-d13a-4fa6-9fe2-dcdbba794774", "whatsapp_delivery": { "sent": true, "to_masked": "string", "reason": "string" }, "email_delivery": { "sent": true, "to_masked": "string", "reason": "string" }, "redemption_code_last4": "stri", "expires_at": "2019-08-24T14:15:22Z", "card_design_id": "e9676ab8-4ee1-4a63-b3d4-c9176075bb1b", "artwork_url": "http://example.com", "balance": 0, "issued_at": "2019-08-24T14:15:22Z", "order_id": "93101167-9065-4b9c-b98b-5d789a3ed9fe"}bearerAuthAuthorizationBearer <token>A merchant API key (gg_...). Each key is limited to its granted scopes.
code*string4 <= length <= 200Card balance and status for the POS terminal
application/json- response
code*stringbalance*numberRemaining balance in minor units
currency*stringstatus*string|nullcard_id*string|nullvalue_initial*number|nullproduct_name*string|nullmerchant_name*string|nullexpires_at*string|nullcurl -X GET 'https://engine-sandbox.globagift.io/v1/pos/cards/lookup?code=string'{ "code": "string", "balance": 0, "currency": "string", "status": "string", "card_id": "string", "value_initial": 0, "product_name": "string", "merchant_name": "string", "expires_at": "string"}Retries: not idempotent. After an unclear failure, read the current state before trying again.
bearerAuthAuthorizationBearer <token>A merchant API key (gg_...). Each key is limited to its granted scopes.
id*stringCard suspended
application/json- response
id?stringstate?stringcurl -X POST 'https://engine-sandbox.globagift.io/v1/cards/string/suspend'{ "id": "string", "state": "string"}Retries: not idempotent. After an unclear failure, read the current state before trying again.
bearerAuthAuthorizationBearer <token>A merchant API key (gg_...). Each key is limited to its granted scopes.
id*stringCard released
application/json- response
id?stringstate?stringcurl -X POST 'https://engine-sandbox.globagift.io/v1/cards/string/release'{ "id": "string", "state": "string"}Retries: not idempotent. After an unclear failure, read the current state before trying again.
bearerAuthAuthorizationBearer <token>A merchant API key (gg_...). Each key is limited to its granted scopes.
id*stringCard voided
application/json- response
id?stringstate?stringcurl -X POST 'https://engine-sandbox.globagift.io/v1/cards/string/void'{ "id": "string", "state": "string"}