Redeeming a voucher is very simple. Just pass the voucher code, a unique transaction_id that identifies the transaction in your system and the total transaction cost. Vouchery will validate the code and all the limitations and return with an detailed information if redemption was successful.
In this example we will focus on successful redemption. For information on handling errors please refer to API Reference.
Single step redemption is suitable for systems where discount verification is not integrated directly into the checkout, like not internet-enabled POS systems or even cash payments. We strongly encourage our customers to use two-step redemption process, which is covered next.