Definir Transação
Esse endpoint define uma transação.
Exemplo de Resposta - Endpoint
{
"id": "a028c4...",
"status": "created" | "paid" | "canceled",
"value": 1500,
"description": "Pagamento CARD",
"payment_type": "credit_card",
"created_at": "2025-10-20T14:11:28.713000Z",
"updated_at": "2025-10-20T14:11:28.713000Z",
"webhook_url": "https://example.com/webhook",
"payer_name": null,
"payer_national_registration": null
}
Header Parameters
Authorizationstring Required
Colocar no formato Bearer TOKEN
Acceptstring Required
application/json
Content-Typestring Required
application/json
Body Parameters
amountnumber Required
Valor em centavos de reais
webhook_urlstring
Seu webhook caso houver
Response
200
Object
{
"id": "a028c4...",
"status": "created" | "paid" | "canceled",
"value": 1500,
"description": "Pagamento CARD",
"payment_type": "credit_card",
"created_at": "2025-10-20T14:11:28.713000Z",
"updated_at": "2025-10-20T14:11:28.713000Z",
"webhook_url": "https://example.com/webhook",
"payer_name": null,
"payer_national_registration": null
}
400
Object
Bad Request -- Composição do request inválido
401
Object
Unauthorized -- Chave TOKEN inválida
403
Object
Forbidden -- Apenas administradores
404
Object
Not Found -- Pedido não existe
405
Object
Method Not Allowed -- Método não permitido
406
Object
Not Acceptable -- Formato JSON inválido
410
Object
Gone -- Essa requisição não existe mais
418
Object
I'm a teapot.
429
Object
Too Many Requests -- Muitas requisições em um curto espaço de tempo
500
Object
Internal Server Error -- Favor tente mais tarde
503
Object
Service Unavailable -- Estamos temporariamente inativos, favor aguardar.
Was this section helpful?
What made this section unhelpful for you?
Base URL
Production:
Sandbox:
Response
Was this section helpful?