Skip to main content

Cost
API

The API for interacting with the cost of a checkout.

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

required

Details on the costs of the purchase for the buyer.

Was this section helpful?

Anchor to useTotalAmount
useTotalAmount()

Returns a Money value representing the minimum a buyer can expect to pay at the current step of checkout. This value excludes amounts yet to be negotiated. For example, the information step might not have delivery costs calculated.

Money

amount
number

The price amount.

currencyCode

The ISO 4217 format for the currency.

Was this section helpful?