Redemptions
Spend card balance at a signed acceptance point and list redemptions.
bearerAuthAuthorizationBearer <token>A merchant API key (gg_...). Each key is limited to its granted scopes.
after_cursor?stringlimit?integer1 <= value <= 10050card_id?stringuuidacceptance_point_id?stringuuidredeemed_from?stringInclusive date/time boundary for the resource timestamp named by this parameter.
date-timeredeemed_to?stringInclusive date/time boundary for the resource timestamp named by this parameter.
date-timeRedemptions page
application/json- response
data?array<>next_cursor?string|nullcurl -X GET 'https://engine-sandbox.globagift.io/v1/redemptions'{ "data": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "card_id": "66f6e46c-f6a1-4af8-a1bd-49666bc01304", "acceptance_point_id": "cb7fe03a-d13a-4fa6-9fe2-dcdbba794774", "amount": 0, "currency": "string", "created_at": "2019-08-24T14:15:22Z", "reversed": true } ], "next_cursor": "string"}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.
signedAcceptancePointgg-signature<token>HMAC-SHA256 signature, in hex, of METHOD, PATH, TIMESTAMP, the hex SHA-256 of the raw body and NONCE joined by newlines, keyed with an acceptance-point credential secret. Send it with the gg-credential, gg-timestamp and gg-nonce headers.
Idempotency-Key*string1 <= length <= 255gg-credential*stringgg-timestamp*stringgg-nonce*stringgg-signature*stringapplication/json- body
code*string8 <= length <= 64amount*integer1 <= value <= 1000000000000Redemption created (200 on idempotent replay)
application/json- response
id*stringcard_id*stringamount*numberremaining_balance*numbercard_state*stringcurl -X POST 'https://engine-sandbox.globagift.io/v1/redemptions' \ -H 'Idempotency-Key: string' \ -H 'gg-credential: string' \ -H 'gg-timestamp: string' \ -H 'gg-nonce: string' \ -H 'gg-signature: string' \ -H 'Content-Type: application/json' \ -d '{ "code": "stringst", "amount": 1}'{ "id": "string", "card_id": "string", "amount": 0, "remaining_balance": 0, "card_state": "string"}