Skip to main content
POST
Create order

Autorizações

Authorization
string
header
obrigatório

Send an API key or an OAuth access token in the Authorization header as a Bearer token. See Authentication for details.

Corpo

application/json
amount
number
obrigatório
Intervalo necessário: x >= 10
Exemplo:

748.6

product_pid
string
obrigatório
Exemplo:

"QUyMp"

customer
object
obrigatório
plan_id
string | null
from_order
string | null

Reference to a previous order, to reuse it instead of creating a new one.

affiliate_id
integer | null
return_url
string<uri> | null
cancel_url
string<uri> | null
coupon_code
string | null

Resposta

Order created

status
string
Exemplo:

"success"

success
boolean
Exemplo:

true

message
string
Exemplo:

"Checkout initialized successfully."

checkout_url
string<uri> | null
order_number
string | null
pay_token
string | null