Voucher Redemptions

Operations related to voucher redemptions.

List Redemptions for a Voucher

get

Retrieves a list of all redemptions for a specific voucher.

Authorizations
AuthorizationstringRequired

Basic Authentication using Merchant ID as username and API Key as password.

Path parameters
voucherIdstringRequired

The ID of the voucher to retrieve redemptions for.

Example: vcr-150659959859cce2ae044b5
Responses
chevron-right
200

A successful response returning a list of redemptions.

application/json
hrefstring · uriOptional

The URI for the collection of redemptions.

Example: https://api.vauchar.com/vouchers/vcr-150659959859cce2ae044b5/redemptions
get
/vouchers/{voucherId}/redemptions

Create a Redemption

post

Redeems a voucher against a transaction.

Authorizations
AuthorizationstringRequired

Basic Authentication using Merchant ID as username and API Key as password.

Path parameters
voucherIdstringRequired

The ID of the voucher to redeem.

Example: vcr-150676308659cf614e2f56e
Body
user_idstringRequired

The ID of the user making the redemption.

Example: 123
user_emailstring · emailOptional

The email address of the user.

Example: test@vauchar.com
user_phonestringOptional

The phone number of the user.

Example: 82383209830
transaction_idstringOptional

An external transaction ID for tracking.

Example: transa001
value_usednumberOptional

The value of the voucher being used in this transaction.

Example: 50
Responses
post
/vouchers/{voucherId}/redemptions

Delete a Redemption

delete

Deletes a specific voucher redemption. This is useful for reversing a redemption.

Authorizations
AuthorizationstringRequired

Basic Authentication using Merchant ID as username and API Key as password.

Path parameters
voucherIdstringRequired

The ID of the voucher associated with the redemption.

Example: vcr-150676308659cf614e2f56e
redemptionIdstringRequired

The ID of the redemption to delete.

Example: res-150676438959cf6665717f4
Responses
delete
/vouchers/{voucherId}/redemptions/{redemptionId}

No content

Last updated