Skip to main content
GET
Retrieve vouchers

Reading secret

secret is a JSON document encoded as a string. Parse it, then read the fields named by kind.
Do not assume code is always present. On URL and URL_PIN the redemption material is a link and there is no code — rendering secret.code blindly shows the customer undefined.Do not discard pin. A CODE_PIN voucher is unredeemable without it, and the customer has no way to recover it.

Availability

Handling rules

Authorizations

X-Api-Key-Id
string
header
required

Your key id, verbatim. Public — it identifies the credential. The secret is never transmitted.

Headers

X-Timestamp
string

Unix seconds. Optional, carried for symmetry — send the same value as the t= inside X-Signature, which is the one actually validated.

Path Parameters

order_id
string<uuid>
required

The order id.

Response

The redemption material. Only items in a retrievable state appear.