Payout to a YooMoney wallet
You can send a payout to the YooMoney wallet (Yandex.Money). For that, you will need a wallet number and an amount in ruble decimal format.
Payout parameters
Name | Mandatory | Type | Description |
---|---|---|---|
payment_method | + | object | Payment details |
type | + | string | Value: wallet |
wallet | + | object | Recipient's electronic wallet |
type | + | string | Wallet type. Value: yoomoney |
yoomoney | + | object | YooMoney wallet details |
account | + | string | YooMoney wallet number, 11 to 20 digits. Example: 4100175017397 |
amount_details | + | object | Amount |
amount | + | int | Amount in ruble decimal format. The value must be greater than zero. To send 100 rubles, specify 10000 |
currency | + | string | ISO 4217 currency code. Case insensitive. Always: rub |
participant_details | - | object | Information about the participants (the sender and the recipient) |
metadata | - | * | Additional information. Any data you need in order to perform the operation. Returned in responses and webhooks |
How to perform the payout
The payout is performed as in the general scenario. Open parameters are passed. You do not need to use the widget.
YooMoney wallet payout request example
curl -X POST \
https://demo.bank131.ru/api/v1/session/init/payout \
-H 'Content-Type: application/json' \
-H 'X-PARTNER-PROJECT: your_project_name' \
-H 'X-PARTNER-SIGN: signature' \
-d '{
"payment_method": {
"type": "wallet",
"wallet": {
"type": "yoomoney",
"yoomoney": {
"account": "410012411727100"
}
}
},
"amount_details": {
"amount": 10000,
"currency": "rub"
},
"metadata": "good",
"participant_details": {
"recipient": {
"full_name": "Ivanov Ivan Ivanovich"
}
}
}'