Order summary

Preview pricing (subtotal, tax, shipping, total) for e-commerce items without creating an order.

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

The unique identifier of the site associated with your account.

Body Params
items
array of objects
required
length ≥ 1

The SKUs and quantities to price.

items*
integer
required
integer
required
≥ 1
string | null

Optional coupon code to apply.

integer | null

Address id used for tax calculation. Required when e-commerce taxes are enabled on the account.

Responses

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