Skip to content
Tokens

Create Redemption Conditionexperimental

POST/api/collections/{collectionId}/redemption-conditions

This endpoint allows you to create a Redemption Condition. Redemption conditions are only created for Token Collections of type product.

Path parameters

  • collectionIdrequired string
    The Token Collection id.

Request body

  • allowedProductsrequired array of objects
    List of Allowed Products.
    • maxValuerequired monetary
      The maximum value that the product can be redeemed for.
    • namerequired string
      Display name of the product.
    • skurequired string
      The SKU of the product that is to be accepted.
  • merchantIdrequired string
    The identifier of the Merchant that is accepting the collection.

Responses

Request
curl -X POST https://service.centrapay.com/api/collections/c_NFhUgPQEYbk2EbTXAYArTX/redemption-conditions \
-H 'content-type: application/json' \
-H 'x-api-key: <TOKEN>' \
-d '{
"allowedProducts": [
{
"maxValue": {
"amount": "400",
"currency": "NZD"
},
"name": "White Bread",
"sku": "100001"
},
{
"maxValue": {
"amount": "800",
"currency": "NZD"
},
"name": "Sourdough Bread",
"sku": "100002"
}
],
"merchantId": "36EALpZ89XpShxM2Ee9sXT"
}'