latestOpenAPI 3.1.02026-08-2211754502.4 KB

76cfbed5eb40

Checkout

Create hosted checkout link

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. For package options, price, fee, and billing cycle are always resolved from the selected database option value; supplied options.amount and options.cycle_type values are accepted for request compatibility but do not override catalogue data.

post/checkout/create

Request body

OR
OR

Response

OK

successtrue required
messagestring required
urlstring uri required

Hosted checkout URL to open or redirect the customer to.

Example response

{
  "message": "Successfully"
}