Create hosted checkout link
Changed onCreates 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.
Request
- Base URLhttps://demo.onlinebillingform.com/api/v2
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Response
OK
Example response
{
"message": "Successfully"
}Changes
- info
added the new optional request property
////(media type: application/json) - info
added the new optional request property
////(media type: application/x-www-form-urlencoded) - info
added the non-success response with the status
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info
- breaking
the request's body type changed from
objectto no type (media type: application/json) - warning
removed the request property
(media type: application/json) - warning
removed the request property
(media type: application/x-www-form-urlencoded) - warning
removed the request property
(media type: application/json) - warning
removed the request property
(media type: application/x-www-form-urlencoded) - warning
removed the request property
(media type: application/json) - warning
removed the request property
(media type: application/x-www-form-urlencoded) - warning
removed the request property
(media type: application/json) - warning
removed the request property
(media type: application/x-www-form-urlencoded) - info
added to the request body
oneOflist (media type: application/json) - info
added to the request body
oneOflist (media type: application/x-www-form-urlencoded) - info
the request's body type was generalized from
objectto no type (media type: application/x-www-form-urlencoded) - info
added the non-success response with the status
- info
the response property
became required for the status - info
the
response property const valuetruewas added for the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking