Skip to main content

Create new PIX withdrawal request

POST 

/api/withdraw

Creates a new withdrawal request using PIX as the payment method.

<hr>

PS 1.: Withdrawals that repeat the same payload will always return pending status and with the ID of the first accepted withdrawal. Only the first request will be executed.
Example:
Request 1:
<pre\>{
&quot;value&quot;: 1,
&quot;type_key_pix&quot;: &quot;cpf&quot;,
&quot;key&quot;: &quot;99999999999&quot;,
&quot;description&quot;: &quot;Payment to client&quot;,
&quot;client_name&quot;: &quot;John&quot;,
&quot;client_email&quot;: &quot;client@email.com&quot;,
&quot;client_document&quot;: &quot;99999999999&quot;,
&quot;merchant_id&quot;: &quot;3debefce-06ae-4eb9-adad-50443a5efd31&quot;
}</pre\>
Response 1:
<pre\>{
&quot;status&quot;: &quot;pending&quot;,
&quot;message&quot;: &quot;Saque pendente.&quot;,
&quot;transaction_uuid&quot;: &quot;ccc54036-d3b0-598c-a9e1-b7c6c2ff8791&quot;
}</pre\>
Request 2:
<pre\>{
&quot;value&quot;: 1,
&quot;type_key_pix&quot;: &quot;cpf&quot;,
&quot;key&quot;: &quot;99999999999&quot;,
&quot;description&quot;: &quot;Payment to client&quot;,
&quot;client_name&quot;: &quot;John&quot;,
&quot;client_email&quot;: &quot;client@email.com&quot;,
&quot;client_document&quot;: &quot;99999999999&quot;,
&quot;merchant_id&quot;: &quot;3debefce-06ae-4eb9-adad-50443a5efd31&quot;
}</pre\>
Response 2:
<pre\>{
&quot;status&quot;: &quot;pending&quot;,
&quot;message&quot;: &quot;Saque pendente.&quot;,
&quot;transaction_uuid&quot;: &quot;ccc54036-d3b0-598c-a9e1-b7c6c2ff8791&quot;
}</pre\>
<hr>

PS 2.: Withdrawals that repeat the same CPF, value and PIX key will be considered duplications. Only the first withdrawal request will be made and the others return with a failure status with the transaction_uuid field = NULL.
Example:
Response
<pre\>{
&quot;status&quot;: &quot;failed&quot;,
&quot;message&quot;: &quot;Falha de saque duplicado, mesmo valor, mesma chave PIX e mesmo CPF.&quot;,
&quot;transaction_uuid&quot;: &quot;null&quot;
}</pre\>
<hr>

PS 3.: The same merchant ID, regardless of other changes to the payload, will always return the data from the first accepted request.
Request 1:
<pre\>{
&quot;value&quot;: 1,
&quot;type_key_pix&quot;: &quot;cpf&quot;,
&quot;key&quot;: &quot;99999999999&quot;,
&quot;description&quot;: &quot;Payment to client&quot;,
&quot;client_name&quot;: &quot;John&quot;,
&quot;client_email&quot;: &quot;client@email.com&quot;,
&quot;client_document&quot;: &quot;99999999999&quot;,
&quot;merchant_id&quot;: &quot;3debefce-06ae-4eb9-adad-50443a5efd31&quot;
}</pre\>
Response 1:
<pre\>{
&quot;status&quot;: &quot;pending&quot;,
&quot;message&quot;: &quot;Saque pendente.&quot;,
&quot;transaction_uuid&quot;: &quot;ccc54036-d3b0-598c-a9e1-b7c6c2ff8791&quot;
}</pre\>
Request 2:
<pre\>{
&quot;value&quot;: 2.35,
&quot;type_key_pix&quot;: &quot;cpf&quot;,
&quot;key&quot;: &quot;99999999999&quot;,
&quot;description&quot;: &quot;Payment to client&quot;,
&quot;client_name&quot;: &quot;John&quot;,
&quot;client_email&quot;: &quot;client@email.com&quot;,
&quot;client_document&quot;: &quot;99999999999&quot;,
&quot;merchant_id&quot;: &quot;3debefce-06ae-4eb9-adad-50443a5efd31&quot;
}</pre\>
Response 2:
<pre\>{
&quot;status&quot;: &quot;pending&quot;,
&quot;message&quot;: &quot;Saque pendente.&quot;,
&quot;transaction_uuid&quot;: &quot;ccc54036-d3b0-598c-a9e1-b7c6c2ff8791&quot;
}</pre\>

Request

Body

required
    value doublerequired

    Value to be paid

    type_key_pix type_key_pix (string)required

    Possible values: [cpf, cnpj, email, phone, evp]

    PIX key type

    key key (string)required

    PIX key

    description description (string)required

    Description of the payment

    client_name client_name (string)required

    Client's name

    client_email client_email (string)required

    Client's email

    client_document client_document (string)required

    Client's document (CPF or CNPJ)

    merchant_id merchant_id (string)required

    Merchant's ID for conciliation

Responses

Successful operation

Schema
    status status (string)

    Possible values: [pending, failed]

    Transaction's status

    message message (string)

    Payment's description

    transaction_uuid transaction_uuid (string)

    Transaction's UUID

Loading...