Pay-Out flows
Pay-Out sends funds to a customer. Pay-Out uses the same Direct API endpoint as Pay-In:
POST /api/transactions/authorize
Authorization: Bearer <access_token>
Content-Type: application/json
Set transaction_type to WITHDRAWAL, select a Pay-Out flow in payment_method.type, and send the flow’s accepted inputs in payment_method.data.
Request structure
Always include payment_provider_account_id at the top level for now to use direct routing. The field remains optional in the API contract, but other routing modes do not yet support canonical inputs.
Replace your-payment-provider-account-id with an active account connected to your terminal that supports the selected flow and transaction type. Do not place this field inside payment_method.data.
{
"terminal_id": "your-terminal-id",
"payment_provider_account_id": "your-payment-provider-account-id",
"reference": "pay-out-10001",
"description": "Customer withdrawal",
"currency": "EUR",
"amount": 1000,
"transaction_type": "WITHDRAWAL",
"payment_method": {
"type": "<Pay-Out flow>",
"data": {}
},
"customer": {
"id": "customer-123",
"first_name": "Jane",
"last_name": "Doe",
"dob": "YYYY-MM-DD",
"email": "jane@example.com",
"phone": "+359881234567",
"country": "BG",
"customer_ip": "203.0.113.10"
},
"return_url": "https://merchant.example/payments/return",
"error_url": "https://merchant.example/payments/error",
"cancel_url": "https://merchant.example/payments/cancel"
}
amount is an integer in the currency’s minor unit. For example, 1000 represents EUR 10.00.
Supported Pay-Out flows
| Flow | Accepted payment_method.data inputs |
|---|---|
BankWithdrawal | bank_name, account_number, account_type, bank_code, id_number, id_type, phone_number, branch_code, beneficiary_names, bic, iban, clearing_number |
WalletWithdrawal | account_number, account_type, id_number, operators, phone_number, wallet_account |
CryptoWithdrawal | crypto_currency, network, crypto_wallet |
CardWithdrawal | encrypted_card_number; optional: cardholder_name |
The table lists accepted inputs, not a universal required set. Required fields can vary by enabled country and flow configuration.
BankWithdrawal
Use BankWithdrawal to send funds to a bank account. Send only the bank and beneficiary identifiers required for the enabled corridor.
{
"payment_provider_account_id": "your-payment-provider-account-id",
"transaction_type": "WITHDRAWAL",
"payment_method": {
"type": "BankWithdrawal",
"data": {
"bank_name": "Example Bank",
"account_number": "1234567890",
"account_type": "CHECKING",
"bank_code": "BANK001",
"id_number": "AB123456",
"id_type": "NATIONAL_ID",
"phone_number": "+359881234567",
"branch_code": "001",
"beneficiary_names": "Jane Doe",
"bic": "EXAMPBGSF",
"iban": "BG80BNBG96611020345678",
"clearing_number": "110000"
}
}
}
WalletWithdrawal
Use WalletWithdrawal to send funds to a customer wallet.
{
"payment_provider_account_id": "your-payment-provider-account-id",
"transaction_type": "WITHDRAWAL",
"payment_method": {
"type": "WalletWithdrawal",
"data": {
"account_number": "1234567890",
"account_type": "PERSONAL",
"id_number": "AB123456",
"operators": "MOBILE_OPERATOR",
"phone_number": "+359881234567",
"wallet_account": "jane@example.com"
}
}
}
CryptoWithdrawal
Use CryptoWithdrawal to send a digital asset to a customer wallet. Confirm that the wallet address is valid for the selected network before submitting the request.
{
"payment_provider_account_id": "your-payment-provider-account-id",
"transaction_type": "WITHDRAWAL",
"payment_method": {
"type": "CryptoWithdrawal",
"data": {
"crypto_currency": "USDT",
"network": "TRON",
"crypto_wallet": "<destination-wallet-address>"
}
}
}
CardWithdrawal
Use CardWithdrawal for a card Pay-Out. Encrypt the card number before building the request. cardholder_name is optional and must be sent as plain text when provided.
{
"payment_provider_account_id": "your-payment-provider-account-id",
"transaction_type": "WITHDRAWAL",
"payment_method": {
"type": "CardWithdrawal",
"data": {
"encrypted_card_number": "<encrypted-value>",
"cardholder_name": "Jane Doe"
}
}
}
Do not send the CVV or card expiration fields for CardWithdrawal. See Card data for encryption requirements.
Response and completion
A Pay-Out can return a final result or a non-final status such as PENDING. If the result is not final, use status lookup and webhooks to obtain the final outcome.
See Purchase for response handling and Transaction statuses for final and transitional states.