Xpend | API Documentation
  1. Default
Xpend | API Documentation
  • Admin
    • Aprovar empresa
      POST
    • Listar empresas
      GET
    • Listar solicitaƧƵes empresas
      GET
    • Receitas
      GET
    • Listar todos os pagamentos
      GET
    • Listar total de transaƧƵes
      GET
    • Listar dados de faturamento
      GET
    • Aprovar saque
      POST
    • Listar todas solicitaƧƵes de saques
      GET
    • Dashboard
      GET
    • Reprovar saque
      POST
    • Listar configuraƧƵes de saques
      GET
    • Listar configuraƧƵes de saque por ID
      GET
    • Atualizar configuração de saque por ID
      PUT
    • Listar taxas
      GET
    • Listar taxa por ID
      GET
    • Listar todas as transaƧƵes
      GET
    • Listar administradores 🚧
      GET
    • Listar configuraƧƵes
      GET
    • Listar configuraƧƵes por ID
      GET
    • Atualizar configuraƧƵes
      PUT
  • Default
    • Criar uma taxa
      POST
    • Atualizar uma taxa
      PUT
    • Criar saque 🚧
      POST
    • Listar todos saques
      GET
    • Obter saque por ID
      GET
    • Listar taxas
      GET
    • Listar todas as transaƧƵes
      GET
    • Obter transaƧƵes por ID
      GET
  • Autenticação
    • Registro de usuĆ”rio
    • Login
    • Refresh token
  • Dashboard
    • Resumo
  • Empresas
    • Criar empresa
    • Atualizar empresa
    • Excluir empresa
    • Enviar documentos
    • Atualizar documentos
    • Listar empresas
  • IntegraƧƵes
    • Login API
    • Obter credenciais
    • Atualizar credenciais
  • Links de Pagamento
    • Criar link de pagamento
    • Listar links de pagamento
    • Obter link de pagamento pelo hash
    • Excluir link de pagamento
  • Pagamentos
    • Criar novo pagamento
    • Listar pagamentos
    • Listar pagamento por ID
  • UsuĆ”rios
    • Criar usuĆ”rio
    • Listar usuĆ”rio por ID
    • Atualizar usuĆ”rio
    • Excluir usuĆ”rio
    • Atualizar senha
  • Saldo
    • Obter saldo
  • Clientes
    • Criar novo cliente vendedor
    • Listar clientes vendedores
    • Obter um cliente vendedor por ID
    • Atualizar cliente vendedor
  • Webhooks
    • Criar webhook
    • Listar webhooks
    • Excluir webhook
  • Status
    • Eventos de saque (exemplos)
    • Status
  • Schemas
    • Admin__api_v1_admin_enterprises_By_id__POST__Response_200
    • Admin__api_v1_admin_enterprises_By_id__POST__Response_400
    • Admin__api_v1_admin_enterprises__GET__Response_200
    • Admin__api_v1_admin_enterprises__GET__Response_401
    • Admin__api_v1_admin_enterprises_request__GET__Response_200
    • Admin__api_v1_admin_enterprises_revenue__GET__Response_200
    • Admin__api_v1_admin_payments__GET__Response_200
    • Admin__api_v1_admin_payments_total_transactions__GET__Response_200
    • Admin__api_v1_admin_payments_billing__GET__Response_200
    • Admin__api_v1_admin_withdrawals_request__GET__Response_200
    • Admin__api_v1_admin_withdrawals_dashboard__GET__Response_200
    • Admin__api_v1_admin_withdrawal_configs_By_sellerId__GET__Response_200
    • Admin__api_v1_admin_withdrawal_configs_By_sellerId__PUT__Request
    • Default__api_v1_fees__POST__Request
    • Default__api_v1_fees__POST__Response_201
    • Admin__api_v1_admin_fees__GET__Response_200
    • Default__api_v1_fees_By_id__PUT__Response_200
    • Admin__api_v1_admin_members__GET__Response_200
    • Admin__api_v1_admin_reserve_configs__GET__Response_200
    • Admin__api_v1_admin_reserve_configs_By_sellerId__GET__Response_200
    • Admin__api_v1_admin_reserve_configs_By_sellerId__PUT__Request
    • Autenticacao__api_v1_auth_register__POST__Request
    • Autenticacao__api_v1_auth_register__POST__Response_201
    • Autenticacao__api_v1_auth_register__POST__Response_400
    • Autenticacao__api_v1_auth_login__POST__Request
    • Autenticacao__api_v1_auth_login__POST__Response_200
    • Autenticacao__api_v1_auth_refresh__POST__Request
    • Autenticacao__api_v1_auth_refresh__POST__Response_200
    • Dashboard__api_v1_dashboard_overview__GET__Response_200
    • Empresas__api_v1_enterprises__POST__Request
    • Empresas__api_v1_enterprises__POST__Response_201
    • Empresas__api_v1_enterprises__PATCH__Response_200
    • Empresas__api_v1_enterprises__DELETE__Response_204
    • Empresas__api_v1_enterprises_By_id__POST__Request
    • Empresas__api_v1_enterprises_By_id__POST__Response_400
    • Empresas__api_v1_enterprises_By_id_documents_By_type__PATCH__Request
    • Empresas__api_v1_enterprises_By_id_documents_By_type__PATCH__Response_200
    • Integracoes__api_v1_api_auth_login__POST__Request
    • Integracoes__api_v1_api_auth_login__POST__Response_200
    • Integracoes__api_v1_integrations_credentials__GET__Response_201
    • Links_de_Pagamento__api_v1_payment_links__POST__Request
    • Links_de_Pagamento__api_v1_payment_links__POST__Response_201
    • Links_de_Pagamento__api_v1_payment_links__GET__Response_200
    • Pagamentos__api_v1_payments__POST__Request
    • Pagamentos__api_v1_payments__POST__Response_200
    • Pagamentos__api_v1_payments_By_id__GET__Response_200
    • Default__api_v1_withdrawals__POST__Request
    • Default__api_v1_withdrawals__POST__Response_201
    • Default__api_v1_withdrawals__GET__Response_200
    • Usuarios__api_v1_users__POST__Request
    • Usuarios__api_v1_users_By_id__GET__Response_200
    • Usuarios__api_v1_users_By_id__PATCH__Request
    • Usuarios__api_v1_users_By_id_password__PATCH__Request
    • Saldo__api_v1_seller_balances_me__GET__Response_200
    • Clientes__api_v1_customers__POST__Request
    • Clientes__api_v1_customers__POST__Response_201
    • Clientes__api_v1_customers__GET__Response_200
    • Webhooks__api_v1_seller_webhooks__POST__Request
    • Webhooks__api_v1_seller_webhooks__POST__Response_201
    • Status__Root__GET__Response_200
    • Status__api_v1_status__GET__Response_200
    • Error_Unauthorized
    • Error_Standard
  1. Default

Criar saque 🚧

POST
/api/v1/withdrawals
Endpoint para criar um novo registro de saque.

šŸ’¾ Estrutura de Dados#

Headers#

Content-type: application/json
Authorization: Bearer <JWT_TOKEN>

Body (JSON)#

PropriedadeTipoObrigatórioDescriçãoValor (exemplo)
amountIntSimValor desejado para saque em centavos (Int) e não em decimal1005
pixKeyStringSimChave pix. Onde pode ser CPF/CNPJ, E-mail, Telefone, Chave aleatória (EVP)d9b1b8e3-5c25-4f2e-b2c3-6d6b1c2e4a7f
statusEnumNĆ£oREQUESTED → PROCESSING → COMPLETED / FAILED / CANCELLEDREQUESTED
postBackUrlStringNãoPara criar um webhook automaticamente para o vendedor se não existir-
metadataStringSimArmazenar alguma informação que serÔ retornada na resposta do webhook-

Request

Authorization
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or
Body Params application/json

Examples

Responses

🟢201
application/json
Body

🟠400
🟠401
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://xpend-backend.onrender.com/api/v1/withdrawals' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "amount": 1005,
    "pixKey": "d9b1b8e3-5c25-4f2e-b2c3-6d6b1c2e4a7f"
}'
Response Response Example
201 - Success
{
    "id": "ba35c1ff-5b12-4b92-96f0-598c628bef9a",
    "sellerId": "4a8fec9d-62d7-4104-a34e-680412f1a6bf",
    "amount": 1009,
    "status": "REQUESTED",
    "requestedAt": "2025-11-12T14:37:40.340Z",
    "completedAt": null
}
Modified atĀ 2025-12-27 01:31:55
Previous
Atualizar uma taxa
Next
Listar todos saques
Built with