POST
/
api
/
v1
/
charges
Criar cobrança PIX
curl --request POST \
  --url https://seu-dominio.com/api/v1/charges \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount": 123,
  "payer": {
    "name": "<string>",
    "document": "<string>",
    "email": "jsmith@example.com"
  },
  "external_id": "<string>",
  "postbackUrl": "<string>"
}
'
{}

Authorizations

Authorization
string
header
required

Bearer {public_id}.{secret}

Body

application/json
amount
number
required
payer
object
required
external_id
string
postbackUrl
string<uri>

Response

200 - application/json

OK

The response is of type object.