Loyalty Program

Vouchery.io API provides several endpoints that enable developers to create a high-quality loyalty program. In this section, we'll describe how to use the provided endpoints to create and manage loyalty rewarding rules, grant and revoke loyalty points, exchange points for vouchers, and manage Customer transactions.

  1. Exchange loyalty points for a voucher

    To allow customers to exchange their loyalty points for a voucher, send a POST request to the /loyalty-points/{customerId}/exchange endpoint with a JSON payload specifying the voucher to be issued and the number of points to be deducted.
POST /loyalty-points/{customerId}/exchange