Skip to main content
POST
/
v1
/
redemptions
curl --request POST \
--url https://{cluster}.voucherify.io/v1/redemptions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>' \
--data '{
"redeemables": [
{
"object": "voucher",
"id": "BLCKFRDY"
}
],
"order": {
"amount": 5500
}
}'
{
  "redemptions": [
    {
      "id": "r_0bc92f81a6801f9bca",
      "object": "redemption",
      "date": "2021-12-22T10:13:06.487Z",
      "customer_id": "cust_i8t5Tt6eiKG5K79KQlJ0Vs64",
      "tracking_id": "<string>",
      "metadata": {},
      "amount": 10000,
      "redemption": "r_0c656311b5878a2031",
      "result": "SUCCESS",
      "status": "SUCCEEDED",
      "session": {
        "key": "<string>"
      },
      "related_redemptions": {
        "rollbacks": [
          {
            "id": "rr_0bc92f81a6801f9bca",
            "date": "2021-12-22T10:13:06.487Z",
            "rollback_order_mode": "WITH_ORDER"
          }
        ],
        "redemptions": [
          {
            "id": "r_0bc92f81a6801f9bca",
            "date": "2021-12-22T10:13:06.487Z"
          }
        ]
      },
      "failure_code": "customer_rules_violated",
      "failure_message": "<string>",
      "order": {
        "id": "<string>",
        "source_id": "<string>",
        "status": "CREATED",
        "amount": 123,
        "initial_amount": 123,
        "discount_amount": 123,
        "items_discount_amount": 123,
        "total_discount_amount": 123,
        "total_amount": 123,
        "applied_discount_amount": 123,
        "items_applied_discount_amount": 123,
        "total_applied_discount_amount": 123,
        "metadata": {},
        "object": "order",
        "created_at": "2021-12-22T10:13:06.487Z",
        "updated_at": "2021-12-22T10:14:45.316Z",
        "customer_id": "cust_7iUa6ICKyU6gH40dBU25kQU1",
        "referrer_id": "cust_nM4jqPiaXUvQdVSA6vTRUnix",
        "customer": {
          "id": "<string>",
          "object": "customer"
        },
        "referrer": {
          "id": "<string>",
          "object": "customer"
        },
        "redemptions": {},
        "items": [
          {
            "id": "<string>",
            "sku_id": "<string>",
            "product_id": "<string>",
            "related_object": "product",
            "source_id": "<string>",
            "quantity": 123,
            "discount_quantity": 123,
            "initial_quantity": 123,
            "amount": 123,
            "discount_amount": 123,
            "applied_discount_amount": 123,
            "applied_discount_quantity": 123,
            "applied_quantity": 123,
            "applied_quantity_amount": 123,
            "initial_amount": 123,
            "price": 123,
            "subtotal_amount": 123,
            "product": {
              "id": "<any>",
              "source_id": "<any>",
              "override": "<any>",
              "name": "<any>",
              "metadata": "<any>",
              "price": "<any>"
            },
            "sku": {
              "id": "<any>",
              "source_id": "<any>",
              "override": "<any>",
              "sku": "<any>",
              "price": "<any>",
              "metadata": "<any>"
            },
            "object": "order_item",
            "metadata": {},
            "application_details": [
              "<any>"
            ]
          }
        ]
      },
      "channel": {
        "channel_id": "user_g24UoRO3Caxu7FCT4n5tpYEa3zUG0FrH",
        "channel_type": "USER"
      },
      "customer": {
        "id": "<string>",
        "name": "<string>",
        "email": "<string>",
        "source_id": "<string>",
        "metadata": {},
        "object": "customer"
      },
      "related_object_type": "voucher",
      "related_object_id": "<string>",
      "promotion_tier": {
        "id": "promo_63fYCt81Aw0h7lzyRkrGZh9p",
        "created_at": "2021-12-15T11:34:01.333Z",
        "updated_at": "2022-02-09T09:20:05.603Z",
        "name": "<string>",
        "banner": "<string>",
        "action": {
          "discount": {
            "type": "AMOUNT",
            "amount_off": 123,
            "amount_off_formula": "<string>",
            "aggregated_amount_limit": 123,
            "effect": "APPLY_TO_ORDER",
            "is_dynamic": true
          }
        },
        "metadata": {},
        "hierarchy": 123,
        "promotion_id": "<string>",
        "campaign": {
          "id": "<string>",
          "start_date": "2022-09-22T00:00:00.000Z",
          "expiration_date": "2022-09-30T00:00:00.000Z",
          "validity_timeframe": {
            "duration": "PT1H",
            "interval": "P2D"
          },
          "validity_day_of_week": [
            0
          ],
          "validity_hours": {
            "daily": [
              "<any>"
            ]
          },
          "active": true,
          "category_id": "cat_0b688929a2476386a6",
          "object": "<string>"
        },
        "campaign_id": "<string>",
        "active": true,
        "start_date": "2022-09-23T00:00:00.000Z",
        "expiration_date": "2022-09-26T00:00:00.000Z",
        "validity_timeframe": {
          "duration": "PT1H",
          "interval": "P2D"
        },
        "validity_day_of_week": [
          0
        ],
        "validity_hours": {
          "daily": [
            "<any>"
          ]
        },
        "summary": {
          "redemptions": {
            "total_redeemed": 123
          },
          "orders": {
            "total_amount": 123,
            "total_discount_amount": 123
          }
        },
        "object": "<string>",
        "validation_rule_assignments": {
          "object": "<string>",
          "data_ref": "<string>",
          "data": [
            {
              "id": "<any>",
              "rule_id": "<any>",
              "related_object_id": "<any>",
              "related_object_type": "<any>",
              "created_at": "<any>",
              "object": "<any>"
            }
          ],
          "total": 123
        },
        "category_id": "cat_0c9da30e7116ba6bba",
        "categories": [
          {
            "id": "<string>",
            "name": "<string>",
            "hierarchy": 1,
            "object": "category",
            "created_at": "2022-07-14T10:45:13.156Z",
            "updated_at": "2022-08-16T10:52:08.094Z"
          }
        ]
      },
      "reward": {
        "customer": {
          "id": "<string>",
          "name": "<string>",
          "email": "<string>",
          "source_id": "<string>",
          "metadata": {},
          "object": "customer"
        },
        "assignment_id": "<string>",
        "voucher": {
          "id": "v_mkZN9v7vjYUadXnHrMza8W5c34fE5KiV",
          "code": "WVPblOYX",
          "campaign": "Gift Card Campaign",
          "campaign_id": "camp_FNYR4jhqZBM9xTptxDGgeNBV",
          "category": "<string>",
          "category_id": "cat_0bb343dee3cdb5ec0c",
          "type": "GIFT_VOUCHER",
          "discount": {
            "type": "AMOUNT",
            "amount_off": 123,
            "amount_off_formula": "<string>",
            "aggregated_amount_limit": 123,
            "effect": "APPLY_TO_ORDER",
            "is_dynamic": true
          },
          "gift": {
            "amount": 10000,
            "subtracted_amount": 123,
            "balance": 500,
            "effect": "APPLY_TO_ORDER"
          },
          "loyalty_card": {
            "points": 7000,
            "balance": 6970,
            "next_expiration_date": "2023-05-30",
            "next_expiration_points": 123,
            "pending_points": 123,
            "expired_points": 123,
            "subtracted_points": 123
          },
          "start_date": "2021-12-01T00:00:00.000Z",
          "expiration_date": "2021-12-31T00:00:00.000Z",
          "validity_timeframe": {
            "duration": "PT1H",
            "interval": "P2D"
          },
          "validity_day_of_week": [
            0
          ],
          "validity_hours": {
            "daily": [
              "<any>"
            ]
          },
          "active": true,
          "additional_info": "<string>",
          "metadata": {},
          "assets": {
            "qr": {
              "id": "<any>",
              "url": "<any>"
            },
            "barcode": {
              "id": "<any>",
              "url": "<any>"
            }
          },
          "is_referral_code": true,
          "created_at": "2021-12-22T10:13:06.487Z",
          "updated_at": "2021-12-22T10:14:45.316Z",
          "holder_id": "cust_eWgXlBBiY6THFRJwX45Iakv4",
          "referrer_id": "cust_Vzck5i8U3OhcEUFY6MKhN9Rv",
          "object": "<string>",
          "publish": {
            "object": "<string>",
            "count": 0,
            "url": "/v1/vouchers/WVPblOYX/publications?page=1&limit=10"
          },
          "redemption": {
            "quantity": 123,
            "redeemed_quantity": 1,
            "redeemed_points": 100000,
            "object": "<string>",
            "url": "/v1/vouchers/WVPblOYX/redemptions?page=1&limit=10"
          },
          "categories": [
            {
              "id": "<any>",
              "name": "<any>",
              "hierarchy": "<any>",
              "object": "<any>",
              "created_at": "<any>",
              "updated_at": "<any>"
            }
          ],
          "validation_rules_assignments": {
            "object": "list",
            "data_ref": "data",
            "data": [
              "<any>"
            ],
            "total": 1
          }
        },
        "product": {
          "id": "prod_0b1da8105693710357",
          "source_id": "productSourceID16",
          "name": "T-shirt",
          "price": 123,
          "attributes": [
            "<string>"
          ],
          "metadata": {},
          "image_url": "https://images.com/original.jpg",
          "created_at": "2022-05-23T06:52:55.008Z",
          "updated_at": "2022-05-23T09:24:07.405Z",
          "object": "product",
          "skus": {
            "object": "<string>",
            "data_ref": "<string>",
            "data": [
              "<any>"
            ],
            "total": 123
          }
        },
        "sku": {
          "id": "sku_0b1621b319d248b79f",
          "source_id": "sku_source_id_4",
          "product_id": "prod_0b15f6b9f650c16990",
          "sku": "Large Pink Shirt",
          "price": 123,
          "currency": "USD",
          "attributes": {},
          "image_url": "<string>",
          "metadata": {},
          "created_at": "2022-05-17T10:36:30.187Z",
          "updated_at": "2022-05-17T10:55:09.137Z",
          "object": "sku"
        },
        "loyalty_tier_id": "<string>",
        "id": "rew_0bc92f81a6801f9bca",
        "name": "Reward Name",
        "object": "reward",
        "created_at": "2021-12-22T10:13:06.487Z",
        "updated_at": "2022-10-03T12:24:58.008Z",
        "parameters": {
          "campaign": {
            "id": "camp_13BbZ0kQsNinhqsX3wUts2UP",
            "balance": 123,
            "type": "<string>"
          },
          "product": {
            "id": "prod_0b7d7dfb05cbe5c616",
            "sku_id": "sku_0a41e31c7b41c28358"
          },
          "coin": {
            "exchange_ratio": 123,
            "points_ratio": 123
          }
        },
        "metadata": {},
        "type": "CAMPAIGN"
      },
      "gift": {
        "amount": 123
      },
      "loyalty_card": {
        "points": 123
      },
      "voucher": {
        "id": "v_mkZN9v7vjYUadXnHrMza8W5c34fE5KiV",
        "code": "WVPblOYX",
        "campaign": "Gift Card Campaign",
        "campaign_id": "camp_FNYR4jhqZBM9xTptxDGgeNBV",
        "category": "<string>",
        "category_id": "cat_0bb343dee3cdb5ec0c",
        "type": "GIFT_VOUCHER",
        "discount": {
          "type": "AMOUNT",
          "amount_off": 123,
          "amount_off_formula": "<string>",
          "aggregated_amount_limit": 123,
          "effect": "APPLY_TO_ORDER",
          "is_dynamic": true
        },
        "gift": {
          "amount": 10000,
          "subtracted_amount": 123,
          "balance": 500,
          "effect": "APPLY_TO_ORDER"
        },
        "loyalty_card": {
          "points": 7000,
          "balance": 6970,
          "next_expiration_date": "2023-05-30",
          "next_expiration_points": 123,
          "pending_points": 123,
          "expired_points": 123,
          "subtracted_points": 123
        },
        "start_date": "2021-12-01T00:00:00.000Z",
        "expiration_date": "2021-12-31T00:00:00.000Z",
        "validity_timeframe": {
          "duration": "PT1H",
          "interval": "P2D"
        },
        "validity_day_of_week": [
          0
        ],
        "validity_hours": {
          "daily": [
            "<any>"
          ]
        },
        "active": true,
        "additional_info": "<string>",
        "metadata": {},
        "assets": {
          "qr": {
            "id": "<any>",
            "url": "<any>"
          },
          "barcode": {
            "id": "<any>",
            "url": "<any>"
          }
        },
        "is_referral_code": true,
        "created_at": "2021-12-22T10:13:06.487Z",
        "updated_at": "2021-12-22T10:14:45.316Z",
        "holder_id": "cust_eWgXlBBiY6THFRJwX45Iakv4",
        "referrer_id": "cust_Vzck5i8U3OhcEUFY6MKhN9Rv",
        "object": "<string>",
        "publish": {
          "object": "<string>",
          "count": 0,
          "url": "/v1/vouchers/WVPblOYX/publications?page=1&limit=10"
        },
        "redemption": {
          "quantity": 123,
          "redeemed_quantity": 1,
          "redeemed_points": 100000,
          "object": "<string>",
          "url": "/v1/vouchers/WVPblOYX/redemptions?page=1&limit=10"
        },
        "categories": [
          {
            "id": "<string>",
            "name": "<string>",
            "hierarchy": 1,
            "object": "category",
            "created_at": "2022-07-14T10:45:13.156Z",
            "updated_at": "2022-08-16T10:52:08.094Z",
            "stacking_rules_type": "JOINT"
          }
        ],
        "validation_rules_assignments": {
          "object": "list",
          "data_ref": "data",
          "data": [
            "<any>"
          ],
          "total": 1
        },
        "holder": {
          "id": "<string>",
          "name": "<string>",
          "email": "<string>",
          "source_id": "<string>",
          "metadata": {},
          "object": "customer"
        }
      }
    }
  ],
  "parent_redemption": {
    "id": "r_0bc92f81a6801f9bca",
    "object": "redemption",
    "date": "2021-12-22T10:13:06.487Z",
    "customer_id": "cust_i8t5Tt6eiKG5K79KQlJ0Vs64",
    "tracking_id": "<string>",
    "metadata": {},
    "amount": 10000,
    "redemption": "r_0c656311b5878a2031",
    "result": "SUCCESS",
    "status": "SUCCEEDED",
    "session": {
      "key": "<string>"
    },
    "related_redemptions": {
      "rollbacks": [
        {
          "id": "rr_0bc92f81a6801f9bca",
          "date": "2021-12-22T10:13:06.487Z",
          "rollback_order_mode": "WITH_ORDER"
        }
      ],
      "redemptions": [
        {
          "id": "r_0bc92f81a6801f9bca",
          "date": "2021-12-22T10:13:06.487Z"
        }
      ]
    },
    "failure_code": "customer_rules_violated",
    "failure_message": "<string>",
    "order": {
      "id": "<string>",
      "source_id": "<string>",
      "status": "CREATED",
      "amount": 123,
      "initial_amount": 123,
      "discount_amount": 123,
      "items_discount_amount": 123,
      "total_discount_amount": 123,
      "total_amount": 123,
      "applied_discount_amount": 123,
      "items_applied_discount_amount": 123,
      "total_applied_discount_amount": 123,
      "metadata": {},
      "object": "order",
      "created_at": "2021-12-22T10:13:06.487Z",
      "updated_at": "2021-12-22T10:14:45.316Z",
      "customer_id": "cust_7iUa6ICKyU6gH40dBU25kQU1",
      "referrer_id": "cust_nM4jqPiaXUvQdVSA6vTRUnix",
      "customer": {
        "id": "<string>",
        "object": "customer"
      },
      "referrer": {
        "id": "<string>",
        "object": "customer"
      },
      "redemptions": {},
      "items": [
        {
          "id": "<string>",
          "sku_id": "<string>",
          "product_id": "<string>",
          "related_object": "product",
          "source_id": "<string>",
          "quantity": 123,
          "discount_quantity": 123,
          "initial_quantity": 123,
          "amount": 123,
          "discount_amount": 123,
          "applied_discount_amount": 123,
          "applied_discount_quantity": 123,
          "applied_quantity": 123,
          "applied_quantity_amount": 123,
          "initial_amount": 123,
          "price": 123,
          "subtotal_amount": 123,
          "product": {
            "id": "<any>",
            "source_id": "<any>",
            "override": "<any>",
            "name": "<any>",
            "metadata": "<any>",
            "price": "<any>"
          },
          "sku": {
            "id": "<any>",
            "source_id": "<any>",
            "override": "<any>",
            "sku": "<any>",
            "price": "<any>",
            "metadata": "<any>"
          },
          "object": "order_item",
          "metadata": {},
          "application_details": [
            "<any>"
          ]
        }
      ]
    },
    "channel": {
      "channel_id": "user_g24UoRO3Caxu7FCT4n5tpYEa3zUG0FrH",
      "channel_type": "USER"
    },
    "customer": {
      "id": "<string>",
      "name": "<string>",
      "email": "<string>",
      "source_id": "<string>",
      "metadata": {},
      "object": "customer"
    },
    "related_object_type": "voucher",
    "related_object_id": "<string>",
    "promotion_tier": {
      "id": "promo_63fYCt81Aw0h7lzyRkrGZh9p",
      "created_at": "2021-12-15T11:34:01.333Z",
      "updated_at": "2022-02-09T09:20:05.603Z",
      "name": "<string>",
      "banner": "<string>",
      "action": {
        "discount": {
          "type": "AMOUNT",
          "amount_off": 123,
          "amount_off_formula": "<string>",
          "aggregated_amount_limit": 123,
          "effect": "APPLY_TO_ORDER",
          "is_dynamic": true
        }
      },
      "metadata": {},
      "hierarchy": 123,
      "promotion_id": "<string>",
      "campaign": {
        "id": "<string>",
        "start_date": "2022-09-22T00:00:00.000Z",
        "expiration_date": "2022-09-30T00:00:00.000Z",
        "validity_timeframe": {
          "duration": "PT1H",
          "interval": "P2D"
        },
        "validity_day_of_week": [
          0
        ],
        "validity_hours": {
          "daily": [
            "<any>"
          ]
        },
        "active": true,
        "category_id": "cat_0b688929a2476386a6",
        "object": "<string>"
      },
      "campaign_id": "<string>",
      "active": true,
      "start_date": "2022-09-23T00:00:00.000Z",
      "expiration_date": "2022-09-26T00:00:00.000Z",
      "validity_timeframe": {
        "duration": "PT1H",
        "interval": "P2D"
      },
      "validity_day_of_week": [
        0
      ],
      "validity_hours": {
        "daily": [
          "<any>"
        ]
      },
      "summary": {
        "redemptions": {
          "total_redeemed": 123
        },
        "orders": {
          "total_amount": 123,
          "total_discount_amount": 123
        }
      },
      "object": "<string>",
      "validation_rule_assignments": {
        "object": "<string>",
        "data_ref": "<string>",
        "data": [
          {
            "id": "<any>",
            "rule_id": "<any>",
            "related_object_id": "<any>",
            "related_object_type": "<any>",
            "created_at": "<any>",
            "object": "<any>"
          }
        ],
        "total": 123
      },
      "category_id": "cat_0c9da30e7116ba6bba",
      "categories": [
        {
          "id": "<string>",
          "name": "<string>",
          "hierarchy": 1,
          "object": "category",
          "created_at": "2022-07-14T10:45:13.156Z",
          "updated_at": "2022-08-16T10:52:08.094Z"
        }
      ]
    },
    "reward": {
      "customer": {
        "id": "<string>",
        "name": "<string>",
        "email": "<string>",
        "source_id": "<string>",
        "metadata": {},
        "object": "customer"
      },
      "assignment_id": "<string>",
      "voucher": {
        "id": "v_mkZN9v7vjYUadXnHrMza8W5c34fE5KiV",
        "code": "WVPblOYX",
        "campaign": "Gift Card Campaign",
        "campaign_id": "camp_FNYR4jhqZBM9xTptxDGgeNBV",
        "category": "<string>",
        "category_id": "cat_0bb343dee3cdb5ec0c",
        "type": "GIFT_VOUCHER",
        "discount": {
          "type": "AMOUNT",
          "amount_off": 123,
          "amount_off_formula": "<string>",
          "aggregated_amount_limit": 123,
          "effect": "APPLY_TO_ORDER",
          "is_dynamic": true
        },
        "gift": {
          "amount": 10000,
          "subtracted_amount": 123,
          "balance": 500,
          "effect": "APPLY_TO_ORDER"
        },
        "loyalty_card": {
          "points": 7000,
          "balance": 6970,
          "next_expiration_date": "2023-05-30",
          "next_expiration_points": 123,
          "pending_points": 123,
          "expired_points": 123,
          "subtracted_points": 123
        },
        "start_date": "2021-12-01T00:00:00.000Z",
        "expiration_date": "2021-12-31T00:00:00.000Z",
        "validity_timeframe": {
          "duration": "PT1H",
          "interval": "P2D"
        },
        "validity_day_of_week": [
          0
        ],
        "validity_hours": {
          "daily": [
            "<any>"
          ]
        },
        "active": true,
        "additional_info": "<string>",
        "metadata": {},
        "assets": {
          "qr": {
            "id": "<any>",
            "url": "<any>"
          },
          "barcode": {
            "id": "<any>",
            "url": "<any>"
          }
        },
        "is_referral_code": true,
        "created_at": "2021-12-22T10:13:06.487Z",
        "updated_at": "2021-12-22T10:14:45.316Z",
        "holder_id": "cust_eWgXlBBiY6THFRJwX45Iakv4",
        "referrer_id": "cust_Vzck5i8U3OhcEUFY6MKhN9Rv",
        "object": "<string>",
        "publish": {
          "object": "<string>",
          "count": 0,
          "url": "/v1/vouchers/WVPblOYX/publications?page=1&limit=10"
        },
        "redemption": {
          "quantity": 123,
          "redeemed_quantity": 1,
          "redeemed_points": 100000,
          "object": "<string>",
          "url": "/v1/vouchers/WVPblOYX/redemptions?page=1&limit=10"
        },
        "categories": [
          {
            "id": "<any>",
            "name": "<any>",
            "hierarchy": "<any>",
            "object": "<any>",
            "created_at": "<any>",
            "updated_at": "<any>"
          }
        ],
        "validation_rules_assignments": {
          "object": "list",
          "data_ref": "data",
          "data": [
            "<any>"
          ],
          "total": 1
        }
      },
      "product": {
        "id": "prod_0b1da8105693710357",
        "source_id": "productSourceID16",
        "name": "T-shirt",
        "price": 123,
        "attributes": [
          "<string>"
        ],
        "metadata": {},
        "image_url": "https://images.com/original.jpg",
        "created_at": "2022-05-23T06:52:55.008Z",
        "updated_at": "2022-05-23T09:24:07.405Z",
        "object": "product",
        "skus": {
          "object": "<string>",
          "data_ref": "<string>",
          "data": [
            "<any>"
          ],
          "total": 123
        }
      },
      "sku": {
        "id": "sku_0b1621b319d248b79f",
        "source_id": "sku_source_id_4",
        "product_id": "prod_0b15f6b9f650c16990",
        "sku": "Large Pink Shirt",
        "price": 123,
        "currency": "USD",
        "attributes": {},
        "image_url": "<string>",
        "metadata": {},
        "created_at": "2022-05-17T10:36:30.187Z",
        "updated_at": "2022-05-17T10:55:09.137Z",
        "object": "sku"
      },
      "loyalty_tier_id": "<string>",
      "id": "rew_0bc92f81a6801f9bca",
      "name": "Reward Name",
      "object": "reward",
      "created_at": "2021-12-22T10:13:06.487Z",
      "updated_at": "2022-10-03T12:24:58.008Z",
      "parameters": {
        "campaign": {
          "id": "camp_13BbZ0kQsNinhqsX3wUts2UP",
          "balance": 123,
          "type": "<string>"
        },
        "product": {
          "id": "prod_0b7d7dfb05cbe5c616",
          "sku_id": "sku_0a41e31c7b41c28358"
        },
        "coin": {
          "exchange_ratio": 123,
          "points_ratio": 123
        }
      },
      "metadata": {},
      "type": "CAMPAIGN"
    },
    "gift": {
      "amount": 123
    },
    "loyalty_card": {
      "points": 123
    },
    "voucher": {
      "id": "v_mkZN9v7vjYUadXnHrMza8W5c34fE5KiV",
      "code": "WVPblOYX",
      "campaign": "Gift Card Campaign",
      "campaign_id": "camp_FNYR4jhqZBM9xTptxDGgeNBV",
      "category": "<string>",
      "category_id": "cat_0bb343dee3cdb5ec0c",
      "type": "GIFT_VOUCHER",
      "discount": {
        "type": "AMOUNT",
        "amount_off": 123,
        "amount_off_formula": "<string>",
        "aggregated_amount_limit": 123,
        "effect": "APPLY_TO_ORDER",
        "is_dynamic": true
      },
      "gift": {
        "amount": 10000,
        "subtracted_amount": 123,
        "balance": 500,
        "effect": "APPLY_TO_ORDER"
      },
      "loyalty_card": {
        "points": 7000,
        "balance": 6970,
        "next_expiration_date": "2023-05-30",
        "next_expiration_points": 123,
        "pending_points": 123,
        "expired_points": 123,
        "subtracted_points": 123
      },
      "start_date": "2021-12-01T00:00:00.000Z",
      "expiration_date": "2021-12-31T00:00:00.000Z",
      "validity_timeframe": {
        "duration": "PT1H",
        "interval": "P2D"
      },
      "validity_day_of_week": [
        0
      ],
      "validity_hours": {
        "daily": [
          "<any>"
        ]
      },
      "active": true,
      "additional_info": "<string>",
      "metadata": {},
      "assets": {
        "qr": {
          "id": "<any>",
          "url": "<any>"
        },
        "barcode": {
          "id": "<any>",
          "url": "<any>"
        }
      },
      "is_referral_code": true,
      "created_at": "2021-12-22T10:13:06.487Z",
      "updated_at": "2021-12-22T10:14:45.316Z",
      "holder_id": "cust_eWgXlBBiY6THFRJwX45Iakv4",
      "referrer_id": "cust_Vzck5i8U3OhcEUFY6MKhN9Rv",
      "object": "<string>",
      "publish": {
        "object": "<string>",
        "count": 0,
        "url": "/v1/vouchers/WVPblOYX/publications?page=1&limit=10"
      },
      "redemption": {
        "quantity": 123,
        "redeemed_quantity": 1,
        "redeemed_points": 100000,
        "object": "<string>",
        "url": "/v1/vouchers/WVPblOYX/redemptions?page=1&limit=10"
      },
      "categories": [
        {
          "id": "<string>",
          "name": "<string>",
          "hierarchy": 1,
          "object": "category",
          "created_at": "2022-07-14T10:45:13.156Z",
          "updated_at": "2022-08-16T10:52:08.094Z",
          "stacking_rules_type": "JOINT"
        }
      ],
      "validation_rules_assignments": {
        "object": "list",
        "data_ref": "data",
        "data": [
          "<any>"
        ],
        "total": 1
      },
      "holder": {
        "id": "<string>",
        "name": "<string>",
        "email": "<string>",
        "source_id": "<string>",
        "metadata": {},
        "object": "customer"
      }
    }
  },
  "order": {
    "id": "<string>",
    "source_id": "<string>",
    "status": "CREATED",
    "amount": 123,
    "initial_amount": 123,
    "discount_amount": 123,
    "items_discount_amount": 123,
    "total_discount_amount": 123,
    "total_amount": 123,
    "applied_discount_amount": 123,
    "items_applied_discount_amount": 123,
    "total_applied_discount_amount": 123,
    "metadata": {},
    "object": "order",
    "created_at": "2021-12-22T10:13:06.487Z",
    "updated_at": "2021-12-22T10:14:45.316Z",
    "customer_id": "cust_7iUa6ICKyU6gH40dBU25kQU1",
    "referrer_id": "cust_nM4jqPiaXUvQdVSA6vTRUnix",
    "customer": {
      "id": "<string>",
      "object": "customer"
    },
    "referrer": {
      "id": "<string>",
      "object": "customer"
    },
    "redemptions": {},
    "items": [
      {
        "id": "<string>",
        "sku_id": "<string>",
        "product_id": "<string>",
        "related_object": "product",
        "source_id": "<string>",
        "quantity": 123,
        "discount_quantity": 123,
        "initial_quantity": 123,
        "amount": 123,
        "discount_amount": 123,
        "applied_discount_amount": 123,
        "applied_discount_quantity": 123,
        "applied_quantity": 123,
        "applied_quantity_amount": 123,
        "initial_amount": 123,
        "price": 123,
        "subtotal_amount": 123,
        "product": {
          "id": "<any>",
          "source_id": "<any>",
          "override": "<any>",
          "name": "<any>",
          "metadata": "<any>",
          "price": "<any>"
        },
        "sku": {
          "id": "<any>",
          "source_id": "<any>",
          "override": "<any>",
          "sku": "<any>",
          "price": "<any>",
          "metadata": "<any>"
        },
        "object": "order_item",
        "metadata": {},
        "application_details": [
          {
            "source_index": 1,
            "source_applied_quantity": -2,
            "source_applied_quantity_amount": -1,
            "target_index": 123,
            "target_applied_quantity": 123,
            "target_applied_quantity_amount": 123,
            "target_applied_discount_amount": 123
          }
        ]
      }
    ]
  },
  "inapplicable_redeemables": [
    {
      "status": "INAPPLICABLE",
      "id": "<string>",
      "object": "voucher",
      "result": {
        "error": {
          "code": 123,
          "key": "<string>",
          "message": "<string>",
          "details": "<string>",
          "request_id": "v-0a885062c80375740f",
          "resource_id": "rf_0c5d710a87c8a31f86",
          "resource_type": "voucher",
          "error": {
            "message": "<string>"
          }
        },
        "details": {
          "message": "<string>",
          "key": "<string>"
        },
        "bundle": {
          "quantity": 50,
          "limit": 50,
          "identified": [
            {
              "id": "<string>",
              "object": "product",
              "item_index": 1,
              "item_quantity": 123
            }
          ],
          "missing": [
            {
              "id": "<string>",
              "object": "product",
              "item_quantity": 123
            }
          ]
        }
      },
      "metadata": {},
      "categories": [
        {
          "id": "<any>",
          "name": "<any>",
          "hierarchy": "<any>",
          "object": "<any>",
          "created_at": "<any>",
          "updated_at": "<any>",
          "stacking_rules_type": "JOINT"
        }
      ],
      "campaign_name": "<string>",
      "campaign_id": "camp_pqZjuhG6Mgtp4GD0zD7b8hA3",
      "name": "<string>"
    }
  ],
  "skipped_redeemables": [
    {
      "status": "SKIPPED",
      "id": "<string>",
      "object": "voucher",
      "result": {
        "details": {
          "key": "applicable_redeemables_limit_exceeded",
          "message": "Applicable redeemables limit exceeded"
        }
      },
      "metadata": {},
      "categories": [
        {
          "id": "<any>",
          "name": "<any>",
          "hierarchy": "<any>",
          "object": "<any>",
          "created_at": "<any>",
          "updated_at": "<any>",
          "stacking_rules_type": "JOINT"
        }
      ],
      "campaign_name": "<string>",
      "campaign_id": "camp_pqZjuhG6Mgtp4GD0zD7b8hA3",
      "name": "<string>"
    }
  ]
}

Authorizations

X-App-Id
string
header
required
X-App-Token
string
header
required
Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json

Response body schema for POST v1/redemptions.

redeemables
(Voucher Redeemable Β· object | Promotion Tier Redeemable Β· object | Promotion Stack Redeemable Β· object | Gift Card Redeemable Β· object | Loyalty Card Redeemable Β· object)[]
required

An array of redeemables. You can combine voucher(s) and promotion_tier(s). Alternatively, send one uniquepromotion_stack in the array. Each unique redeemable can be sent in one request only once.

Required array length: 1 - 30 elements
  • Voucher Redeemable
  • Promotion Tier Redeemable
  • Promotion Stack Redeemable
  • Gift Card Redeemable
  • Loyalty Card Redeemable
options
object

Configure parameters returned in the response.

order
object

Order information.

customer
object

Customer's information.

session
object

Schema model for session lock object. The session object is required to establish a session between multiple parallel validation and redemption requests. If you only send the type parameter in the request, then by default the session lock will be established for 7 days. Read more on establishing a validation session.

tracking_id
string

Is correspondent to Customer's source_id

metadata
object

A set of key/value pairs that you can attach to a redemption object. It can be useful for storing additional information about the redemption in a structured format.

Response

200 - application/json

Depending on your project settings: all redeemables must be valid or just one must be valid to result as valid redemption. Read more in the Stacking Rule Documentation.

Response body schema for POST v1/redemptions.

redemptions
Redemption Β· object[]
parent_redemption
object

This is an object representing a redemption for POST v1/redemptions and POST /client/v1/redemptions.

order
object

Contains the order details associated with the redemption. Order information.

inapplicable_redeemables
Inapplicable Redeemable Β· object[]

Lists validation results of each inapplicable redeemable.

skipped_redeemables
Skipped Redeemable Β· object[]

Lists validation results of each redeemable. If a redeemable can be applied, the API returns "status": "APPLICABLE".

⌘I