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.
Request body
Response
OK
Example response
{
"message": "Successfully"
}Changes
Changed in 2 of the 6 revisions of this API.1819
- ○
added the new optional request property
oneOf[CheckoutPackageRequest]/options(media type: application/json)new-optional-request-property
- ○
added the new optional request property
oneOf[CheckoutPackageRequest]/options(media type: application/x-www-form-urlencoded)new-optional-request-property
- ○
added the non-success response with the status
429response-non-success-status-added
- ○
added the optional property
codeto the response with the401statusresponse-optional-property-added
- ○
added the optional property
codeto the response with the403statusresponse-optional-property-added
- ○
added the optional property
codeto the response with the422statusresponse-optional-property-added
- ○
added the optional property
codeto the response with the502statusresponse-optional-property-added
- ○
added the optional property
request_idto the response with the401statusresponse-optional-property-added
- ○
added the optional property
request_idto the response with the403statusresponse-optional-property-added
- ○
added the optional property
request_idto the response with the422statusresponse-optional-property-added
- ○
added the optional property
request_idto the response with the502statusresponse-optional-property-added
- ○
- ▲
the request's body type/format changed from
object/to/(media type: application/json)request-body-type-changed
- ●
removed the request property
callback_url(media type: application/json)request-property-removed
- ●
removed the request property
callback_url(media type: application/x-www-form-urlencoded)request-property-removed
- ●
removed the request property
customer_id(media type: application/json)request-property-removed
- ●
removed the request property
customer_id(media type: application/x-www-form-urlencoded)request-property-removed
- ●
removed the request property
cycle_id(media type: application/json)request-property-removed
- ●
removed the request property
cycle_id(media type: application/x-www-form-urlencoded)request-property-removed
- ●
removed the request property
package_id(media type: application/json)request-property-removed
- ●
removed the request property
package_id(media type: application/x-www-form-urlencoded)request-property-removed
- ○
added
CheckoutPackageRequestCheckoutDomainRequestCheckoutDomainsRequestto the request bodyoneOflist (media type: application/json)request-body-one-of-added
- ○
added
CheckoutPackageRequestCheckoutDomainRequestCheckoutDomainsRequestto the request bodyoneOflist (media type: application/x-www-form-urlencoded)request-body-one-of-added
- ○
the request's body type/format was generalized from
object/to/(media type: application/x-www-form-urlencoded)request-body-type-generalized
- ○
added the non-success response with the status
502response-non-success-status-added
- ○
the response property
successbecame required for the status200response-property-became-required
- ○
the
successresponse property const valuetruewas added for the status200response-property-const-added
- ○
added the required property
messageto the response with the200statusresponse-required-property-added
- ○
added the required property
urlto the response with the200statusresponse-required-property-added
- ▲