Voucher represents a redemption code provided to a customer after he makes a purchase for a deal or a gift card or clips a coupon. Applicable only for digital offers such as deals, gift cards and coupons. Common attributes:
Submission API specific attributes:
Distribution API specific attributes:
Data ExampleJSON { "id": "", " offer_id": "", " redemption_code": "", " customer_name": "", " status": "", " acquired_at": "", " redeemed_at": "", " cancelled_at": "", " expiration_date": "", " reservation_id": "", " barcode": "", " print_url": ""} XML <voucher> <id></id>
</voucher> ActionsQuery VouchersGET /offers/:offer_id/vouchers Get Voucher DetailsGET /offers/:offer_id/vouchers/:id GET /advertisers/:advertiser_id/vouchers/:id GET /advertisers/:advertiser_id/vouchers/:redemption _code Redeem VoucherPUT /offers/:offer_id/vouchers/:id or PUT /advertisers/:advertiser_id/vouchers/:id or PUT /advertisers/:advertiser_id/vouchers/:redemption_code Cancel VoucherPUT /offers/:offer_id/vouchers/:id Submission API examplesRedeem voucher callExample using command-line Curl and JSON output. curl -k -X PUT -H "Content-Type: application/json" -H "Accept: application/json" -H "X-ADILITY-API-KEY:YOUR_SUBMISSION_API_KEY " 'http://testapi.adility.com/submission/offers/OFFER_ID/vouchers/VOUCHER_ID ' |
8 API Reference > Resources >