Payout to a YooMoney wallet
You can send a payout to the YooMoney wallet (Yandex.Money). For that, you will need the wallet number and the amount in copecks.
Mandatory payout parameters
Name | Type | Description |
---|---|---|
payment_method | PaymentMethod | Payment details object |
type | string | Value: wallet |
wallet | WalletPaymentMethod | Recipient's electronic wallet |
type | string | Wallet type. Value: yoomoney |
yoomoney | YooMoneyWalletPaymentMethod | YooMoney wallet details |
account | string | YooMoney wallet number, 11 to 20 digits. Example: 4100175017397 |
amount_details | AmountDetails | The amount |
amount | int | The amount in ruble decimal format. The value must be greater than zero. If you want to send 100 rubles, you will need to specify 10000 |
currency | string | The ISO 4217 currency code. Case insensitive. Always: rub |
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: 721af394d5a7aefd0e91f5390abc4d7e20fb2b5784b091fef621f3c61b7abb4b' \
-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"
}
}
}'