Skip to main content
POST
/
pix
/
charges
cURL
curl --request POST \
  --url https://api.fortunapay.com.br/v1/pix/charges \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount": 123,
  "expire": 123
}
'
{
  "code": 123,
  "message": "<string>",
  "transaction_id": "<string>",
  "qr_code": "<string>",
  "image": "<string>",
  "amount": 123,
  "status": "<string>",
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Dados para criar a cobrança Pix

amount
number
required
expire
number

Tempo de expiração em segundos

Response

Cobrança Pix criada com sucesso

code
integer
message
string
transaction_id
string
qr_code
string
image
string
amount
number
status
string
created_at
string<date-time>