cart.remove_coupon
Remove a coupon from the cart. Anonymous (cart_id). Idempotent.
- Scope:
public - System: no
- Reachable from: an ANONYMOUS face — no credential, and never
/v1/commands/*. Which path serves it is not derivable from the registry; see the anonymous faces. - Events: none — The mirror of apply on session state read no-store.
Input (JSON Schema)
Section titled “Input (JSON Schema)”{ "properties": { "cart_id": { "minLength": 1, "type": "string" }, "code": { "maxLength": 64, "minLength": 1, "type": "string" } }, "required": [ "cart_id", "code" ], "type": "object"}Result (200)
Section titled “Result (200)”{ "additionalProperties": false, "properties": { "cart_id": { "type": "string" }, "code": { "type": "string" } }, "required": [ "cart_id", "code" ], "type": "object"}Errors
Section titled “Errors”validation_failed (400) · unauthorized (401) · forbidden (403) · conflict (409) · internal (500)