Create Checkout
This endpoint creates a checkout for the authenticated user based on the provided data. It supports
different payment platforms, promotional codes, and can handle both one-time and recurring payments.
You can either specify a product_code
directly or supply the traditional combination of
product_type
, country_id
, and product_protocol
.
Important considerations
- If
product_code
is provided alongsideproduct_type
/country_id
/product_protocol
, their values must match the actual product attributes. - If the invoice amount remaining is
0
, it means your available credit fully covered the cost and the service is considered immediately paid. - If the invoice needs payment, you will be returned an
invoice_url
to complete checkout.
Authorizations
Public API key for user-level authentication.
Headers
Content type for the request body as application/json.
Body
The quantity of the product to purchase.
An ISO country code used for region-specific datacenter or ISP products.
The billing interval for recurring purchases.
year
, month
, week
, day
The number of intervals for a recurring cycle (e.g. 1 month, 2 months, etc.).
A direct product code (e.g. "datacenter_us"). If this is provided, you do not need product_type
, country_id
, or product_protocol
.
The protocol of the product.
ipv4
, ipv6
, dual
The type of product to purchase (if product_code
is not used).
datacenter
, isp
, residential
A promotional code to apply a discount to the checkout.
An optional filter object for advanced product/service configurations.
Response
Success message.
"Successfully created checkout and paid with credit. Your service will be provisioned shortly."