post
https://www.pelcro.com/api/v1/sdk/order
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Overview
Return a price breakdown for subscribing the authenticated customer to a plan — subtotal, coupon discount, per-jurisdiction taxes, customer balance, and totals — without creating the subscription. plan_id is required; coupon_code, address_id, and subscription_id (for change proration) are optional.
Taxes are computed from the account's tax rules and the customer's shipping address (passed as address_id or the default shipping address).
Example:
curl --request POST \
--url 'https://www.pelcro.com/api/v1/sdk/order?site_id=1232' \
--header 'Authorization: Bearer <JWT>' \
--header 'Content-Type: application/json' \
--data '{ "plan_id": 4051, "address_id": 7001 }'Notes
- Protected — requires the customer's JWT.
- The response is
{"error": false, "data": { … }}; an invalid plan or coupon returns404.
