Settlement — Withdrawals & transfers

Settlement

Withdrawals & transfers

A payout moves the balance held in your name to your own bank account (withdrawal) or to a registered seller (split transfer). Diamond Pay never holds the funds.

POST/api/v1/bank/payout/

Creates a withdrawal or transfer from the wallet to the destination set in <type>_destination.

Request
POST /bank/payout/
Authorization: Bearer <token>
Content-Type: application/json

{
  "wallet_uuid": "00000000-0000-0000-0000-000000000000",
  "merchant_id": "MER-001",
  "type_payout": "pix",
  "value": 1500.00,
  "currency": "BRL",
  "description": "Withdrawal to bank account",
  "transaction_reference": "REF-0001",
  "pix_destination": {
    "pix_address_key": "12345678000199",
    "pix_address_key_type": "cnpj",
    "beneficiary_name": "Sua Loja LTDA",
    "beneficiary_tax_id": "12345678000199"
  },
  "webhook_url": "https://your-store.com/webhook/payout"
}
Response
{
  "payout_uuid": "1c2d3e4f-5a6b-7c8d-9e0f-a1b2c3d4e5f6",
  "status": "pending",
  "type_payout": "pix",
  "amount": 1500.00,
  "currency": "BRL",
  "description": "Withdrawal to bank account",
  "transaction_reference": "REF-0001",
  "fee": 2.50
}

Supported destinations

type_payoutDestinationDestination field
pixPix key of an account in your namepix_destination (pix_address_key + key_type)
bank_transferBank account in the same namebank_destination
tedTED to an account in the same namebank_destination
internalSplit transfer between accounts of the same entityinternal_destination

Payout status

StatusWhat it means
pendingAwaiting processing.
issuedPayout issued.
processingProcessing at the intermediary.
realizedCompleted: amount delivered.
returnedReturned (invalid key, wrong data).
canceledCanceled before execution.
errorProcessing failure.
GET/api/v1/bank/payout/<payout_uuid>/<wallet_uuid>/

Returns the current status of a payout by id.