Создание выплаты
Выплата на карту или телефон получателя.
POST
https://pipay.su/api/v2/payoutsСоздаёт запрос на выплату на указанную карту или номер телефона.
Параметры тела запроса:
Поля ответа:
Пример тела запроса
json
{
"orderId": "test22t2e2st",
"merchantId": "lbjk0tqfpgbqeaainyuq6aye",
"method": "c2c",
"amount": 1200,
"address": "1234432112344321",
"currency": "RUB",
"code": "bankcode",
"recipient": "TEST TESTOVICH",
"assetOrBank": "сберыч",
"callbackUri": "https://callback.xyz/callback/pay",
"userId": "u-4095",
"userIp": "188.11.55.10",
"contactPhone": "37434343434",
"email": "email@mail.ru"
}Примеры ответов
Success (200)
json
{
"status": true,
"result": {
"address": "123443******4321",
"recipient": "sber TEST TESTOVICH",
"amount": -1000,
"init_amount": -1000,
"id": "a550e8400-e29b-41d4-a716-446655440000g",
"order_id": "test22t2e2st",
"state": "pending",
"rate": "91.50",
"commission": 2,
"currency": "RUB",
"bankName": "Сбербанк",
"bank": "sber",
"country": null,
"message": null,
"method": "c2c",
"expired_at": "2025-01-15T12:30:00.000000Z",
"usdt_amount": "10.93"
}
}Insufficient funds (400)
json
{
"status": false,
"error": {
"code": 40004,
"message": "Insufficient funds",
"details": "The merchant does not have sufficient funds to process this payout."
}
}Invalid requisite address (40001) (400)
json
{
"status": false,
"error": {
"code": 40001,
"message": "Invalid reqisite address",
"details": "The provided reqisite address is either malformed or already exists."
}
}Request is being processed (40008) (400)
json
{
"status": false,
"error": {
"code": 40008,
"message": "Request is being processed",
"details": "The same orderId was sent again within 30 seconds. Wait before retrying."
}
}Duplicate payment (40901) (409)
json
{
"status": false,
"error": {
"code": 40901,
"message": "Duplicate payment",
"details": "A payment with the same orderId was created less than 15 minutes ago."
}
}Invalid payment method (40003) (400)
json
{
"status": false,
"error": {
"code": 40003,
"message": "Invalid payment method",
"details": "The specified payment method is not associated with the merchant."
}
}Payout creation failed — no available providers (40002) (404)
json
{
"status": false,
"error": {
"code": 40002,
"message": "Payout creation failed",
"details": "Unable to create payout transaction with any available method."
}
}