Create Hosted Checkout
Creates a short-lived hosted checkout URL for a package, one domain, or up to 50 domain registrations. Use package_id with cycle_id for an existing package, domain with years for one domain, or domains for multiple domain registrations. callback_url is required. customer_id is optional; when supplied, it must reference a customer account (account_type 2). The checkout link is cached for 30 minutes. When the customer opens it, BillingServ creates a checkout-only session, allows supported saved payment methods, and redirects back to callback_url after payment.
callback_url is required and customer_id is optional. If you provide customer_id, it must be a customer account (account_type 2). When the customer opens the returned URL, BillingServ creates a checkout-only session so supported saved payment methods can be used without giving the customer access to the full BillingServ panel. The link expires after 30 minutes if it is not completed.
Request
Send the request with an API key that has access to this endpoint:customer_id for checkout-first flows where BillingServ collects the customer’s details. See the domain search and hosted checkout guide for complete domain lookup, multi-domain, and callback examples.
Response
url. If a requested domain is unavailable, the API returns 422 and does not create a checkout link.
Callback
After payment, BillingServ redirects the customer back tocallback_url with query parameters.
Successful payment includes:
Authorizations
Use Authorization: Bearer <live_api_key>.
Body
- Option 1
- Option 2
- Option 3
Provide exactly one checkout type: an existing package, one domain, or a list of domains.
Package or order-group package ID to add to checkout.
x >= 1Billing cycle ID for the selected package.
x >= 1URL BillingServ redirects to after hosted checkout succeeds or fails.
Optional existing BillingServ customer user ID. If supplied, the user must have account_type 2.
x >= 1