Creates new PIX withdrawal request by key
POST/api/v2/withdraw
Creates a new withdrawal request using PIX as the payment method.
Request
- application/json
Body
required
Value to be paid
Possible values: [cpf, cnpj, email, phone, evp]
PIX key type
PIX key
Description of the payment
Client's name
Client's email
Client's document (CPF or CNPJ)
Merchant's ID for conciliation
Responses
- 200
- 400
- 401
- 403
Successful operation
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [pending, failed]
Transaction's status
Payment's description
Transaction's UUID
Possible values: [null, BANK_ACCOUNT_UNAUTHORIZED, BANK_ACCOUNT_NOT_FOUND, BANK_ACCOUNT_CANNOT_WORK_FOR_THIS_OPERATION, CLIENT_BANK_ACCOUNT_NOT_REGISTERED, INVALID_BANK_NAME, BANK_INTEGRATION_IS_DISABLED, WITHDRAWAL_LIMIT_PER_CPF_PER_HOUR_REACHED, DUPLICATED_WITHDRAWAL, DUPLICATED_WITHDRAWAL_BY_MERCHANT_ID, WITHDRAWAL_UNAVAILABLE, CLIENT_IS_BLOCKLISTED, CLIENT_HAS_KYC_RESTRICTION, CLIENT_TEMPORARILY_BLOCKED, FORBIDDEN_FINANCIAL_INSTITUTION, UNAVAILABILITY_AT_THE_BANK, UNAVAILABLE_WITHDRAWAL, UNABLE_TO_DECODE, PIX_KEY_DOES_NOT_BELONGS_TO_USER, BACEN_LIMIT_REACHED]
Payment's error code
{
"status": "pending",
"message": "Withdrawal payment done",
"transaction_uuid": "7da0c9af-215e-4625-b484-b8cfc87aaa09",
"error_code": null
}
Bad Request
Unauthenticated
- application/json
- Schema
- Example (from schema)
Schema
Response 401
{
"message": "Invalid x-api-key"
}
Forbidden