Preview Price
Calculates a price preview for one or more variants and quantities without creating an order, returning the price of each customization on the variant.
AuthorizationBearer
Authorization
default In: header
Header Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/prices" \ -H "X-Api-Version: 2022-02-01" \ -H "Content-Type: application/json" \ -d '{ "items": [ { "variant": { "id": 123 }, "quantity": 2 } ] }'{ "items": [ { "variant": { "id": 1 }, "quantity": 2, "prices": [ { "model_id": 1, "model_type": "variant", "single_unit_cost_price": 8.4, "single_unit_price": 9.99, "cost_price": 16.8, "price": 19.98, "pricing": { "id": 1, "name": "Default" } } ] } ]}Show Product GET
Returns the product with the given `id`. ### Expanding relationships You can expand some resources to show more details. See: [Expanding Objects](/docs/checkout/2022-02-01/basic/expanding-objects) - **Expand variant** — You can show the variant data instead of the `id`: `/products/1?expand=variants` - **Expand variants customizations resource** — You can show entire variant data including customizations resources: `/products/1?expand=variants.views.customizations.resource` - **Expand product's allowed designable methods** — You can show details of allowed designable production method: `/products/1?expand=designable_production_methods`
Preview Cart Prices POST
Calculates a price preview for a set of variants and quantities as if they were being ordered together, without creating an order. Quantities of matching customizations across items are combined so that quantity-based price scaling is applied the same way it would be at checkout.