POST
/
v1
/
webstore
/
checkout
Create Webstore Checkout
curl --request POST \
  --url https://api.centralcart.com.br/v1/webstore/checkout \
  --header 'Content-Type: application/json' \
  --header 'x-store-domain: <x-store-domain>' \
  --data '{
  "gateway": "<string>",
  "client_email": "<string>",
  "client_name": "<string>",
  "client_phone": "<string>",
  "client_document": "<string>",
  "client_discord": "<string>",
  "terms": true,
  "fields": {},
  "cart": [
    {
      "package_id": 123,
      "quantity": 123,
      "options": {},
      "fields": {}
    }
  ],
  "coupon": "<string>"
}'
{ "checkout_url": "https://example.com" }
x-store-domain
string
required
Domínio da sua loja (ex: sualoja.centralcart.com.br)
gateway
string
required
Gateway: PIX, MERCADOPAGO, STRIPE, PAYPAL, PICPAY, PAGSEGURO, PAGARME, OTHER
client_email
string
required
Email do comprador
client_name
string
required
Nome do comprador (nome completo)
client_phone
string
Telefone do comprador
client_document
string
Documento (CPF) do comprador
client_discord
string
Discord ID do comprador
terms
boolean
required
Aceite dos termos
fields
object
Campos de checkout (ex: client_identifier)
cart
array
package_id
number
required
ID do pacote
quantity
number
required
Quantidade
options
object
Variáveis por pacote
fields
object
Alias para options
coupon
string
Cupom de desconto
{ "checkout_url": "https://example.com" }