Apply a voucher
Applies a promo code to the cart and returns the updated cart with the discount reflected in receiptLines and total. Codes limited to one customer or one use per customer need a logged-in customer or the email field.
Authentication
Path parameters
Headers
Request
Guest checkout email. Some promo codes are limited to one customer or one use per customer; without a logged-in customer, that check needs this email. Used only to validate the code — never stored.
Response
Voucher applied; updated cart returned.
Items currently in the cart (held inventory). Each item’s priceOption carries the itemized fees[] disclosure. Protection and credits are NOT items — see receiptLines.
Server-ordered display lines for receipt rendering. Iterate in sequence. Always includes SubtotalLine. Conditionally: VoucherLine, ProtectionLine, CreditLine. Fees are never a receipt line — they are disclosed per item on priceOption.fees.
Monetary amount in minor units (cents for USD). Never uses floating point to avoid precision errors.
Monetary amount in minor units (cents for USD). Never uses floating point to avoid precision errors.