Add a voucher to a cart
1 min
POST
https://api.fictive.com/REST/api/carts/{cartReference}/vouchers/{voucherCode}
cartReferencestring
voucherCodestring
X-TokenIdstringThe eSuite Token Id
X-SessionIdstringThe eSuite Session Id
X-VersionstringThe eSuite Version
OriginstringThe eSuite Origin
200OK
404• Cart cannot be found
<br /> • Voucher code cannot be found
412• Invalid voucher code type, only Fixed Priced and Percentage discounts are supported
<br /> • Voucher code is inactive
<br /> • Cannot amend a cart which is currently used on a payment instruction
<br /> • Cannot apply more than one voucher to a cart
curl --request POST \
--url https://api.fictive.com/REST/api/carts/{cartReference}/vouchers/{voucherCode} \
--header 'accept: application/json' \
--header 'x-version: string'Have a question?
Our super-smart AI, knowledgeable support team and an awesome community will get you an answer in a flash.
To ask a question or participate in discussions, you'll need to authenticate first.