Skip to main content

Discounts
API

The API for interacting with discounts.

The API object provided to this and other customer-account.order-status extension targets.

StatefulRemoteSubscribable<[]>
required

Discounts that have been applied to the entire cart.

StatefulRemoteSubscribable<[]>
required

A list of discount codes applied to the purchase.

Was this section helpful?

Anchor to useDiscountAllocations
useDiscountAllocations()

Returns the current discount allocations applied to the cart.

[]
Was this section helpful?

Anchor to useDiscountCodes
useDiscountCodes()

Returns the current discount codes applied to the cart.

[]
Was this section helpful?