deleteCoupons.v1
Deletes all given coupons from the cart. Depending on the shop and/or extension, which is handling this operation, some coupons could remain in the cart. Expecially if cart rules apply.
Note: Some shops don’t support more than one coupon, or none at all.
Request Body
Section titled “Request Body”Code of the coupon.
Examplegenerated
[ "example"]Responses
Section titled “Responses”Returns an empty object after the action was performed.
object
object
Example
{ "output": {}}EINVALIDCALL
Section titled “EINVALIDCALL”The pipeline can’t be called in the given context.
object
object
Example
{ "error": { "code": "EINVALIDCALL", "message": "The pipeline can't be called in the given context." }}This error is thrown when there is an issue with deleting one or multiple coupons from the cart.
object
object
object
The message specific to the product with the matching identifier. This is either a translation string or an already translated string. Translation strings are just key/object or key/value pairs defined in the ‘locales/
The message params for the translation string. Translation params are just key/value pairs defined in the translation string defined in the ‘locales/message property. It defaults to an empty object if the property is missing or null. The translation string syntax is described here: https://github.com/yahoo/intl-messageformat#message-syntax
object
Indicates if the ‘message’ property contains a translated string (true) or a translation string (false or undefined). Defaults to true if the property is missing or null.
Example
{ "error": { "code": "ECART", "message": "There was a problem while trying to delete one or multiple coupons.", "errors": [ { "entityId": "cart-item-coupon-1fbA1", "code": "ENOTFOUND", "message": "The coupon you tried to remove does not exist in the cart.", "translated": true } ] }}EUNKNOWN
Section titled “EUNKNOWN”An internal error occurred.
object
object
Example
{ "error": { "code": "EUNKNOWN", "message": "An internal error occurred." }}
