Admin: Customer Order creation
Apply a coupon code
Applies a coupon code to the draft cart. Returns 404 if the coupon is unknown / inactive; 422 if the same coupon is already applied; 200 on success.
post/carts/{id}/coupon
Request
- Base URLhttp://localhost:8000/api/admin
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
Cart ID
Response
AdminCart resource created
Changes
No recorded changes to this operation across all 8 revisions of this API.