Skip to main content
POST
The estimate is based on your active Place an order earn rules. The customer is optional, so guest checkouts are supported.
The request carries product and variant IDs only, with no prices or quantities, so the cart amount used in the calculation is always 0. Every Place an order rule then falls at or below its minimum purchase, so the endpoint currently returns 0 points for every request, including fixed-points rules. Don’t show this estimate to shoppers until you’ve confirmed it returns non-zero values for your earn rules.
Requires the read:points scope. See Scopes.

Body parameters

object | null
The customer placing the order. Optional: omit it entirely (or send null) for guest checkouts. If you send a customer object, include at least id or email; an object with neither returns a 500 error.
object[]
required
The line items in the cart. Must contain at least one item.

Response

object

Errors