Request a withdrawal
Request a Pix withdrawal to the company key registered in the Dashboard.
Production only
This request requires authorized access in Production. Send it from your integration server; the documentation console accepts only Sandbox keys.
Request a Pix withdrawal by providing the amount you want to withdraw. The destination is the company Pix key registered in the Dashboard. The fee is deducted from the requested amount.
To require the default destination you checked, send expected_destination_id.
The field does not register or select another destination. See
Request a Pix withdrawal.
Keep the returned identifier and track the same withdrawal while it is pending or processing. Acceptance does not confirm that the money reached the destination account.
See Withdrawals for the conditions of use and how to track the result.
Headers
Unique key chosen by your system to identify this request. When retrying, send the same key and parameters. Without this header, the request is processed normally. See the idempotency guide for retention and handling pending or uncertain responses.
1 to 255 characters
Body Params
Applying an example replaces the body fields.
Total amount to withdraw, in Brazilian real cents, including the fee. Check the withdrawal conditions for the balance, fee, and limits before submitting a request.
From 200 to 1000000000000
ID of the company's own destination that must remain selected as default. Copy the id returned by the destinations query. If the destination changes or becomes invalid, the withdrawal is rejected. Omitting this field or sending null uses the current default destination.
Up to 100 characters
Responses
Response Body
Final result of a request already recorded. Check status to distinguish completion from failure; receiving this response does not start another transfer.
Public identifier of the withdrawal, with the wd_ prefix. It may also appear as reference_id in the statement.
Amount requested for withdrawal, in Brazilian real cents, including the fee. A pending, failed, or canceled withdrawal does not confirm the transfer of this amount.
Withdrawal fee, in Brazilian real cents. The fee is charged when the withdrawal is completed; failure or cancellation does not confirm that the fee was charged.
Amount intended for the destination account, in Brazilian real cents: amount_cents minus fee_amount_cents. Check status to find out whether the transfer was completed.
Current withdrawal status. PENDING: awaiting processing; PROCESSING: being processed; COMPLETED: completed; FAILED: failed; CANCELED: canceled; UNKNOWN: no status classification available. Only COMPLETED confirms completion.
Known reason for the failure, or null when the withdrawal is not FAILED. An unavailable reason must not be interpreted as permission to retry the withdrawal.
Recorded reason for the failure. See the codes and handling guidance in Withdrawal failures.
Explanation of the failure in English. The text helps with diagnosis; the integration must use code.
Destination account recorded for a bank withdrawal, or null when not applicable. The account number is partially displayed.
Destination bank code recorded for the withdrawal.
Branch recorded for the withdrawal, including the check digit when provided, or null.
Partially masked destination account number, including the check digit when provided, or null.
Pix destination recorded for the withdrawal, or null when no data is available. The key is partially displayed.
Type of key used for the withdrawal: CNPJ, EVP (random), PHONE (phone number), or EMAIL.
Partially masked Pix key.
Name of the destination account holder recorded for the withdrawal.
ISPB of the destination institution.
Request time, in Unix UTC seconds.
Completion time, in Unix UTC seconds, or null when it has not been completed.
Failure time, in Unix UTC seconds, or null when no failure has occurred.
Cancellation time, in Unix UTC seconds, or null when no cancellation has occurred.
Response Body
Withdrawal accepted, with completion not yet confirmed. Keep the returned id and track the individual withdrawal at the path indicated in Location. An accepted response does not confirm credit at the destination.
Public identifier of the withdrawal, with the wd_ prefix. It may also appear as reference_id in the statement.
Amount requested for withdrawal, in Brazilian real cents, including the fee. A pending, failed, or canceled withdrawal does not confirm the transfer of this amount.
Withdrawal fee, in Brazilian real cents. The fee is charged when the withdrawal is completed; failure or cancellation does not confirm that the fee was charged.
Amount intended for the destination account, in Brazilian real cents: amount_cents minus fee_amount_cents. Check status to find out whether the transfer was completed.
Current withdrawal status. PENDING: awaiting processing; PROCESSING: being processed; COMPLETED: completed; FAILED: failed; CANCELED: canceled; UNKNOWN: no status classification available. Only COMPLETED confirms completion.
Known reason for the failure, or null when the withdrawal is not FAILED. An unavailable reason must not be interpreted as permission to retry the withdrawal.
Recorded reason for the failure. See the codes and handling guidance in Withdrawal failures.
Explanation of the failure in English. The text helps with diagnosis; the integration must use code.
Destination account recorded for a bank withdrawal, or null when not applicable. The account number is partially displayed.
Destination bank code recorded for the withdrawal.
Branch recorded for the withdrawal, including the check digit when provided, or null.
Partially masked destination account number, including the check digit when provided, or null.
Pix destination recorded for the withdrawal, or null when no data is available. The key is partially displayed.
Type of key used for the withdrawal: CNPJ, EVP (random), PHONE (phone number), or EMAIL.
Partially masked Pix key.
Name of the destination account holder recorded for the withdrawal.
ISPB of the destination institution.
Request time, in Unix UTC seconds.
Completion time, in Unix UTC seconds, or null when it has not been completed.
Failure time, in Unix UTC seconds, or null when no failure has occurred.
Cancellation time, in Unix UTC seconds, or null when no cancellation has occurred.
Response Body
A field is invalid or the request origin could not be identified. Check error.code and, for validation errors, error.details before correcting the request.
Code and explanation of the error returned by the API.
Stable error code.
Error explanation in English. For validation errors, it summarizes the category; details identify the corrections. Use the codes to handle the response.
Invalid fields or references submitted in the body, with the field, code and explanation. Omitted for general errors and when there is no field correction to indicate.
Public name of the JSON field, query parameter, path parameter or header related to the error. Nested fields and lists retain their path and index. $ represents the root of the JSON body.
Reason for the field error, such as REQUIRED, INVALID_TAXID, UNKNOWN_FIELD, DUPLICATE_FIELD or INVALID_TYPE.
Explanation in English of the problem with this field or parameter and the available correction. Do not use the text to determine your integration flow.
Response Body
The authentication or account status does not allow this request. Withdrawals require authorized access in Production and an account authorized to withdraw funds. Check the account notices in the Dashboard.
Code and explanation of the error returned by the API.
Stable error code.
Error explanation in English. For validation errors, it summarizes the category; details identify the corrections. Use the codes to handle the response.
Invalid fields or references submitted in the body, with the field, code and explanation. Omitted for general errors and when there is no field correction to indicate.
Public name of the JSON field, query parameter, path parameter or header related to the error. Nested fields and lists retain their path and index. $ represents the root of the JSON body.
Reason for the field error, such as REQUIRED, INVALID_TAXID, UNKNOWN_FIELD, DUPLICATE_FIELD or INVALID_TYPE.
Explanation in English of the problem with this field or parameter and the available correction. Do not use the text to determine your integration flow.
Response Body
The withdrawal could not be requested under the current conditions or its result needs to be checked. Retrieve the balance, limits and history according to error.code. For PIX_WITHDRAWAL_RESULT_UNKNOWN, track the withdrawal indicated in Location before making another request.
Code and explanation of the error returned by the API.
Stable error code.
Error explanation in English. For validation errors, it summarizes the category; details identify the corrections. Use the codes to handle the response.
Invalid fields or references submitted in the body, with the field, code and explanation. Omitted for general errors and when there is no field correction to indicate.
Public name of the JSON field, query parameter, path parameter or header related to the error. Nested fields and lists retain their path and index. $ represents the root of the JSON body.
Reason for the field error, such as REQUIRED, INVALID_TAXID, UNKNOWN_FIELD, DUPLICATE_FIELD or INVALID_TYPE.
Explanation in English of the problem with this field or parameter and the available correction. Do not use the text to determine your integration flow.
For common errors, see HTTP response codes.