Authorizations
The Server API Key obtained from the ParityDeals application. Pass as a Bearer token in the Authorization header. Example: 'Authorization: Bearer YOUR_API_KEY'
Body
The identifier of the specific plan the customer is checking out with.
"plan-pro-monthly"
The URL to which the user will be redirected after a successful checkout.
"https://paritydeals.com/checkout/success"
The billing cycle for the subscription.
ONE_TIME
, MONTHLY
, YEARLY
, WEEKLY
, DAILY
, THREE_MONTHS
, SIX_MONTHS
"MONTHLY"
The ID (uuid) of the offering the customer is checking out with.
"96d3a293-34ac-48a5-b73d-976b15781afd"
The ID (uuid) of the pricingTable being used (considered if offeringId is not provided).
"6db2717a-4e43-4ae1-a293-6c0a775f6264"
The ID (uuid) of the pricing rule being applied (considered if offeringId is not provided).
"f2ebc23f-3f79-4cf4-b17e-fe8e30a42ab2"
The ID of the customer initiating the checkout. (If not provided, a new customer might be created depending on server logic).
"cust_789"
A list of features and their desired quantities. SDK documentation notes this as 'Required', but usage may vary based on examples.
[{ "identifier": "seats", "quantity": 5 }]
The IP Address of the customer, used for location-based pricing.
"103.154.35.20"
Response
Checkout Session Created
The URL that the customer should be redirected to complete the payment.
"https://checkout.stripe.com/c/pay/cs_test_b1sNi7D6u9iMCUFV1UZi9ZaiXKdOOmr3DCUW6XdCZIr5Id1F7#fid..."
The unique ID for the created checkout session.
"cs_test_b1sNi7D6u9iMCUFV1UZi9ZwerfaiXKdOOmr3DCUW6XdCZIr5Id1F7G"