Skip to main content

Creates new PIX withdrawal request by key

POST 

/api/withdraw

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

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

Authorization: http

name: paas_tokentype: httpscheme: bearerbearerFormat: JWTdescription: Token utilizado para autenticação na Api PaaS
curl -L -X POST 'https://docs.zrobank.io/api/withdraw' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"value": "10.00",
"type_key_pix": "phone",
"key": "+5533123456789",
"description": "Payment to client",
"client_name": "John",
"client_email": "client@email.com",
"client_document": "13813438058",
"merchant_id": "123456"
}'
Request Collapse all
Auth
Body required
{
  "value": "10.00",
  "type_key_pix": "phone",
  "key": "+5533123456789",
  "description": "Payment to client",
  "client_name": "John",
  "client_email": "client@email.com",
  "client_document": "13813438058",
  "merchant_id": "123456"
}