Discounts
Cart unique identifier generated when a cart is created.
Your Emporix tenant name.
Note: The tenant should always be written in lowercase.
^[a-z][a-z0-9]+$The request was successful. Cart discounts items are returned.
Discount details.
Discount's unique identifier.
A unique identifier of a global resource, which stores information about the resource, such as its type, ID or name of the tenant.
A unique identifier of a global resource, which stores information about the resource, such as its type, ID or name of the tenant.
Discount code generated when a discount coupon is created through the Coupon Service.
Discount expressed as fixed amount.
Three-letter currency code, compliant with the ISO 4217 standard.
[A-Z]{3}Discount expressed as a percentage of the price.
Discount's displayed name.
Calculation type specifies how the discount should be calculated. Can be set to one of the following:
ApplyDiscountBeforeTaxApplyDiscountAfterTax
ApplyDiscountBeforeTaxPossible values: Determines whether the coupon is applied to the total or subtotal value of the order.
Flag indicating whether the discount is valid. Invalid discounts are not taken into account when the cart is calculated.
trueThe index of the discount. It represents the discount position in the cart discounts array.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
The requested resource does not exist.
Some server-side error occurred. Details will be provided in the response payload.
Cart unique identifier generated when a cart is created.
Your Emporix tenant name.
Note: The tenant should always be written in lowercase.
^[a-z][a-z0-9]+$Discount unique identifier.
A unique identifier of a global resource, which stores information about the resource, such as its type, ID or name of the tenant.
Discount code generated when a discount coupon is created through the Coupon Service.
Three-letter currency code, compliant with the ISO 4217 standard.
[A-Z]{3}Discount expressed as fixed amount.
Discount displayed name.
Discount expressed as a percentage of the price.
Determines whether the coupon is applied to the total or subtotal value of the order.
SUBTOTALPossible values: Calculation type specifies how the discount should be calculated. It can be set to one of the following:
ApplyDiscountBeforeTaxApplyDiscountAfterTax
The field is deprecated and is not used in calculatedPrice fields. The calculated price takes into account site's settings where:
includesTax=trueresults inApplyDiscountAfterTaxincludesTax=falseresults inApplyDiscountBeforeTax
ApplyDiscountBeforeTaxPossible values: The request was successful. The discount has been applied to cart.
The request was syntactically incorrect. Details will be provided in the response payload.
Given request is unauthorized - the authorization token is invalid or has expired.
Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
The requested resource does not exist.
The request could not be completed due to a conflict with the current state of the target resource.
Internal Server Error
Cart unique identifier generated when a cart is created.
Your Emporix tenant name.
Note: The tenant should always be written in lowercase.
^[a-z][a-z0-9]+$Discount codes, listed with commas, specify the discounts slated for deletion. If no codes are provided, all discounts will be removed.
code1,code2The request was successful. Discounts have been removed.
The request was syntactically incorrect. Details will be provided in the response payload.
Given request is unauthorized - the authorization token is invalid or has expired.
Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
The requested resource does not exist.
Some server-side error occurred. Details will be provided in the response payload.
No content
Cart’s unique identifier generated when a cart is created.
Your Emporix tenant name.
Note: The tenant should always be written in lowercase.
^[a-z][a-z0-9]+$The request was successful. The discount has been removed from cart.
The request was syntactically incorrect. Details will be provided in the response payload.
Given request is unauthorized - the authorization token is invalid or has expired.
Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
The requested resource does not exist.
Internal server error.
No content
Last updated
Was this helpful?

