Tokens are Assets which can only be spent in full.
Every Token is associated with a Collection, which defines the branding and general rules for the Tokens, such as active duration.
A Redemption Condition is created for each Merchant that accepts Tokens from a Collection, and contains additional conditions specific to that Merchant, such as redeemable product identifiers.
Attributes
Attributes
-
period
-
duration
-
ceil
Attributes
-
sku
-
name
-
maxValue
monetary
Attributes
-
collectionId
-
idempotencyKey
-
externalId
-
accountId
/api/collections
This endpoint allows you to create a Token Collection.
Attributes
Errors
-
EXTERNAL_ID_ALREADY_USED
/api/accounts/{accountId}/collections
Returns a paginated list of Token Collections for an Account.
Attributes
-
pageKey
/api/collections/{collectionId}/redemption-conditions
This endpoint allows you to create a Redemption Condition.
Attributes
-
merchantId
-
allowedProducts
Errors
-
INVALID_AMOUNT
-
REDEMPTION_CONDITION_ALREADY_EXISTS
/api/collections/{collectionId}/redemption-conditions/{redemptionConditionId}/set-allowed-products
This endpoint allows you to set Allowed Products for a Redemption Condition.
Attributes
-
allowedProducts
Errors
-
INVALID_AMOUNT
—
/api/tokens
This endpoint allows you to create a Token.
Attributes
-
collectionId
-
idempotencyKey
-
externalId
-
accountId
Errors
-
TOKEN_ALREADY_CREATED
-
LIVENESS_MISMATCH