Order subscription

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

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 returns 404.
Query Params
int32
required
Body Params
int32
required
string
int32
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