Developers
Start a checkout
POST
Creates an Order for a one-time Credit Pack and returns checkout_url, the page where the human pays: Stripe’s hosted Checkout, or for PayPal our page hosting PayPal’s approval for that Order. Opening it charges nothing; Credits arrive only after the payment provider confirms the payment. Plans are not on sale, so a Plan selection is refused.
Send an Idempotency-Key to make retries safe: the same key with the same body returns the first result, with a different body 409.
header
AuthorizationBearer <token>An API Key the User creates in account settings, sent as Authorization: Bearer <key>. It holds the Scopes chosen at creation.
Idempotency-Key?stringA client key, unique per request.
Length
1 <= length <= 255application/json- body
providerCode*stringValue in
"stripe""paypal"selection*|Success.
application/json- response
provider*stringValue in
"stripe""paypal"checkout_url*stringFormat
uriorder_no*stringcurl -X POST 'https://ximagesplitter.com/api/v1/billing/checkout' \
-H 'Content-Type: application/json' \
-d '{
"providerCode": "stripe",
"selection": {
"planId": "starter",
"billingCycle": "monthly",
"purchaseKind": "plan"
}
}'Example response
{
"provider": "stripe",
"checkout_url": "http://example.com",
"order_no": "string"
}