Tokens
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.
Token Collection Model
Attributes
Token Expires After Model
Attributes
-
period
-
duration
-
ceil
Redemption Condition Model
Allowed Products Model
Attributes
-
sku
-
name
-
maxValue
monetary
Token Model
Attributes
-
collectionId
-
idempotencyKey
-
externalId
-
accountId
Create Token Collection
This endpoint allows you to create a Token Collection .
Attributes
Errors
-
EXTERNAL_ID_ALREADY_USED
List Token Collections
Returns a paginated list of Token Collections for an Account.
Attributes
-
pageKey
Create Redemption Condition
This endpoint allows you to create a Redemption Condition .
Attributes
-
merchantId
-
allowedProducts
Errors
-
INVALID_AMOUNT
-
REDEMPTION_CONDITION_ALREADY_EXISTS
Set Allowed Products for Redemption Condition
This endpoint allows you to set Allowed Products for a Redemption Condition .
Attributes
-
allowedProducts
Errors
-
INVALID_AMOUNT
--
Create Token
This endpoint allows you to create a Token.
Attributes
-
collectionId
-
idempotencyKey
-
externalId
-
accountId
Errors
-
TOKEN_ALREADY_CREATED
-
LIVENESS_MISMATCH