post
https://www.pelcro.com/api/v1/sdk/ecommerce/order-summary
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Overview
Compute a pricing summary — subtotal, shipping, tax, discount, total, and per-SKU details — for a set of e-commerce items, without creating an order. Use it to preview the cost before checkout. The customer is taken from the JWT.
Example:
curl --request POST \n --url 'https://www.pelcro.com/api/v1/sdk/ecommerce/order-summary?site_id=1232' \n --header 'Authorization: Bearer <JWT>' \n --header 'Content-Type: application/json' \n --data '{
"items": [{ "sku_id": 101, "quantity": 2 }],
"coupon_code": "SAVE10"
}'Conditional Requirements
itemsis required — each entry needssku_idandquantity(min 1).coupon_codeis optional; an invalid coupon is rejected with400.address_idis optional, but required when e-commerce taxes are enabled on the account.- All SKUs in one request must share the same currency.
- An unknown SKU returns
404.
