API Reference
Carts

Add a voucher to a cart

1min
POST
This endpoint will provide the ability to apply a discount voucher to a pre-exisiting cart
Authentication
Authorization
Path Parameters
cartReference
*
voucherCode
*
Header Parameters
X-TokenId
X-SessionId
X-Version
*
Origin
Responses
200
OK
resourceReference
description
pricing
quantity
productInfo
customLineItemParameters
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
ο»Ώ

ο»Ώ

πŸ€”
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.

ο»Ώ