Checkout
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.
POST
Authorizations
Private API key for user-level authentication.
Public API key for user-level authentication.
Headers
Content type for the request body as application/json.
Body
application/json
The data needed to create the checkout.
The body is of type object
.
Response
201 - application/json
Successfully created a checkout. Depending on the remaining invoice amount, it may already be paid by credit, or you may need to complete payment at the returned invoice URL.
The response is of type object
.