<- Orders API

Orders API

Calculate orderBeta

POST

 /v2/orders/calculate

Enables applications to preview order pricing without creating an order.

Try in API Explorer
Link to section

Request body

Example code

Link to section

order

Required

The order to be calculated. Expects the entire order, not a sparse update.

Link to section

proposed_rewards

Identifies one or more loyalty reward tiers to apply during the order calculation. The discounts defined by the reward tiers are added to the order only to preview the effect of applying the specified rewards. The rewards do not correspond to actual redemptions; that is, no rewards are created. Therefore, the reward ids are random strings used only to reference the reward tier.

Link to section

Response fields

Link to section

order

The calculated version of the order provided in the request.

Link to section

errors

Any errors that occurred during the request.