Redeem Voucher (client-side)

To redeem a voucher, you need to create a redemption object. It increments the redemption counter and updates the history of the voucher. This method is accessible through public keys, which you can use in client-side apps (mobile and web browser apps).

❗️

Important

This endpoint supports the redemption of a single promo code. If you need to redeem more than one incentive, you can use the Stackable Discounts API. The stacking discounts API lets you redeem up to 5 incentives per call. Before integrating Voucherify, choose which redemption endpoint you prefer to use.

The client-side redemption works pretty the same as the regular voucher redemption. The difference lies in the authorization. For the client-side, you can use client-side keys.

📘

Opt-in

By default this feature is disabled. If you want to use it, you will need to enable the function explicitly in Project Settings.

❗️

Security Threat

Be careful if you want to include the voucher redemption functionality directly on your client side (website or mobile app). In this configuration, there is a chance that discounts can be modified before being sent to the server.

Expand response

You may expand the response by adding the following object to your request body. The expanded response will include the category details of the voucher.

{
    "options": {
        "expand": [
            "category"
        ]
    }
}
Language
Click Try It! to start a request and see the response here!