PixelWave

PayOut

Create a payout to a customer

POST /host2host/payout

Creates a PayOut operation. The merchant pays to the customer.

Authentication

Authorization: Bearer YOUR_JWT_TOKEN

Request Body

FieldTypeRequiredDescription
paymentMethodstringYesPayment method code (see Payment Methods)
idTransactionMerchantstringYesYour unique transaction identifier
amountdecimalYesPayout amount in the operation currency
numberstringYesRecipient's card number, phone, or account number
bankNamestringYesRecipient's bank name
nameMediatorstringNoRecipient's full name
clientIDstringYesUnique customer identifier in your system
clientIPstringYesCustomer's IP address
clientDateCreateddatetimeYesCustomer registration date in your system
integrationMerhcnatDataobjectNoWebhook configuration
integrationMerhcnatData.webHookstringNoWebhook URL for this operation

Example: Card PayOut

curl -X POST 'https://api.admin-pixelwave.com/host2host/payout' \
  -H 'Authorization: Bearer YOUR_JWT_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "paymentMethod": "toCard",
    "idTransactionMerchant": "payout-12345",
    "amount": 3000,
    "number": "4276123456789012",
    "bankName": "Sberbank",
    "nameMediator": "Ivanov Ivan",
    "clientID": "user-67890",
    "clientIP": "192.168.1.100",
    "clientDateCreated": "2025-01-15T10:30:00Z"
  }'

Example: SBP PayOut

curl -X POST 'https://api.admin-pixelwave.com/host2host/payout' \
  -H 'Authorization: Bearer YOUR_JWT_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "paymentMethod": "sbp",
    "idTransactionMerchant": "payout-sbp-001",
    "amount": 3000,
    "number": "+79991234567",
    "bankName": "Sberbank",
    "clientID": "user-67890",
    "clientIP": "192.168.1.100",
    "clientDateCreated": "2025-01-15T10:30:00Z"
  }'

Success Response

{
  "result": {
    "status": "success",
    "x-request-id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "codeError": "none",
    "codeErrorExt": "none",
    "message": ""
  },
  "data": {
    "id": "f1e2d3c4-b5a6-7890-abcd-ef1234567890",
    "dateAdded": "2025-01-15T10:30:01Z",
    "dateUpdated": "2025-01-15T10:30:01Z",
    "typeOperation": "payOut",
    "status": "in_progress",
    "idTransactionMerchant": "payout-12345",
    "amountInitial": 3000,
    "amountRandomized": 0,
    "amount": 3000,
    "amountComission": 90,
    "currency": "RUB",
    "amountInCurrencyBalance": 37.50,
    "amountComissionInCurrencyBalance": 1.125,
    "exchangeRate": 80.00
  },
  "totalNumberRecords": 0
}

Response Fields

FieldTypeDescription
iduuidPlatform operation ID
statusstringin_progress — payout is being processed
amountdecimalPayout amount
amountComissiondecimalCommission charged
currencystringOperation currency
amountInCurrencyBalancedecimalAmount deducted from your balance (USDT)
exchangeRatedecimalExchange rate used

PayOut responses do not include paymentDetailsData — the recipient details are the ones you provided in the request.

Error Responses

Error CodeDescription
invalidRequestParametersMissing or invalid fields
duplicateIdentifieridTransactionMerchant already exists
noSuitableTariffForRequestNo tariff for this method/amount
notEnoughMoneyOnBalanceInsufficient merchant balance
noPaymentDetailsAvailableNo providers available

Important Notes

  • Your balance must cover the payout amount plus commission
  • For SBP payouts, number must be a phone number in format +7XXXXXXXXXX
  • For card payouts, number must be a valid card number (16 digits)
  • The bankName affects commission calculation — use the exact bank name
  • Final status comes via webhook

On this page