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

Path parameters

idstring required

Cart ID

Response

AdminCart resource created

idinteger nullable
customerIdinteger nullable
isGuestboolean nullable
isActiveboolean nullable
itemsCountinteger nullable
itemsQtyinteger nullable
subTotalnumber nullable
formattedSubTotalstring nullable
grandTotalnumber nullable
formattedGrandTotalstring nullable
shippingAmountnumber nullable
formattedShippingAmountstring nullable
taxTotalnumber nullable
formattedTaxTotalstring nullable
discountAmountnumber nullable
formattedDiscountAmountstring nullable
couponCodestring nullable
shippingMethodstring nullable
paymentMethodstring nullable
paymentMethodTitlestring nullable
haveStockableItemsboolean nullable
successboolean nullable
messagestring nullable

Changes

No recorded changes to this operation across all 8 revisions of this API.