POST
/
checkout
/
curl --request POST \
  --url https://api.paritydeals.com/api/v1/checkout/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "planIdentifier": "plan-pro-monthly",
  "successUrl": "https://paritydeals.com/checkout/success",
  "chargePeriod": "MONTHLY",
  "offeringId": "96d3a293-34ac-48a5-b73d-976b15781afd",
  "pricingTableId": "6db2717a-4e43-4ae1-a293-6c0a775f6264",
  "ruleId": "f2ebc23f-3f79-4cf4-b17e-fe8e30a42ab2",
  "customerId": "cust_789",
  "features": [
    {
      "identifier": "seats",
      "quantity": 5
    }
  ],
  "ipAddress": "103.154.35.20"
}'
{
  "checkoutUrl": "https://checkout.stripe.com/c/pay/cs_test_b1sNi7D6u9iMCUFV1UZi9ZaiXKdOOmr3DCUW6XdCZIr5Id1F7#fid...",
  "checkoutSessionId": "cs_test_b1sNi7D6u9iMCUFV1UZi9ZwerfaiXKdOOmr3DCUW6XdCZIr5Id1F7G"
}

Authorizations

Authorization
string
header
required

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

application/json

Response

201 - application/json

Checkout Session Created

The response is of type object.