Add a voucher to a cart
1min
POST
Authentication
Authorization
Bearer
Path Parameters
cartReference
string
*
voucherCode
string
*
Header Parameters
X-TokenId
string
X-SessionId
string
X-Version
string
*
Origin
string
Responses
200
OK
FictiveGlobal.Api.Rest.Dtos.v1.Cart.CartItem[]
resourceReference
string
description
string
pricing
FictiveGlobal.Api.Rest.Dtos.v1.CartLineItems.PricePoint
quantity
integer<int32>
productInfo
FictiveGlobal.Api.Rest.Dtos.v1.Cart.LineItemProductInfo
customLineItemParameters
object
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.
ο»Ώ
Updated 02 Nov 2023
Did this page help you?