Create new PIX withdrawal request by account
POST/api/withdraws/by_account
Creates a new withdrawal request using PIX as the payment method
Request
- application/json
Body
required
Value to be paid
Customer account's number
Possible values: [CACC
, CASH
, CHAR
, CISH
, COMM
, CPAC
, LLSV
, LOAN
, MGLD
, MOMA
, NREX
, ODFT
, ONDP
, OTHR
, SACC
, SLRY
, SVGS
, TAXE
, TRAN
, TRAS
]
Customer account's type. Most commonly used are: CACC (Current Account), SLRY (Salary Account), SVGS (Savings Account) and TRAN (Transacting Account)
Customer's bank account branch
Customer's bank account ISPB. Unlike the 3-digit bank code, the ISPB is an 8-digit internal code of the brazilian financial system used for transactions between banks and fintechs. Click here to check the ISPB of the institutions participating in Pix.
Description of the payment
Customer's name
Customer's document (CPF or CNPJ)
Merchant's ID for conciliation
Responses
- 200
- 400
- 401
- 422
Successful operation
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [pending
, failed
]
Transaction's status
Payment's description
Transaction's UUID
{
"status": "pending",
"message": "Withdrawal payment done",
"transaction_uuid": "7da0c9af-215e-4625-b484-b8cfc87aaa09"
}
Bad Request
Unauthenticated
- application/json
- Schema
- Example (from schema)
Schema
Response 401
{
"message": "Invalid x-api-key"
}
Unprocessable Entity
- application/json
- Schema
- Example (from schema)
Schema
Error message
Errors occurred during data validation request
{
"message": "string",
"errors": [
null
]
}