Skip to main content
POST
/
checkout
/
create
Create hosted checkout link
curl --request POST \
  --url https://demo.onlinebillingform.com/api/v2/checkout/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "package_id": 123,
  "cycle_id": 123,
  "callback_url": "<string>",
  "customer_id": 123
}
'
{
  "success": true,
  "message": "Successfully",
  "url": "https://demo.onlinebillingform.com/checkout/00000000-0000-0000-0000-000000000000"
}

Documentation Index

Fetch the complete documentation index at: https://www.billingserv.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Use Authorization: Bearer <live_api_key>.

Body

package_id
integer
required

Package/order group package ID to add to checkout.

cycle_id
integer
required

Billing cycle ID for the selected package.

callback_url
string<uri>
required

URL BillingServ redirects to after hosted checkout succeeds or fails.

customer_id
integer
required

Existing BillingServ customer user ID. Required; the user must have account_type 2.

Response

OK

success
boolean