Order summary

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

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

  • items is required — each entry needs sku_id and quantity (min 1).
  • coupon_code is optional; an invalid coupon is rejected with 400.
  • address_id is 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.
Query Params
int32
required
Body Params
items
array of objects
required
length ≥ 1
items*
integer
required
integer
required
≥ 1
string | null
integer | null
Headers
string
required
Defaults to Bearer <token>
Responses

Language
Credentials
Query
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json