Create a beneficiary.
POST
https://sand-api.monoova.com/global/v1/beneficiaries
Body Parameters
- bodyobjectrequired
- beneficiaryobject
- customer_idintegerrequired
- country_idintegerrequired
- country_codeCountryCode
- currency_idintegerrequired
- currency_codeCurrencyCode
- remuneration_type_idintegerrequired
- remuneration_type_nameRemunerationNames
- account_type_idintegerrequired
- account_type_nameAccountTypes
- is_defaultboolean
- owned_by_customerboolean
- payout_provider_idinteger
- reason_for_paymentstring
- relation_with_customerstring
- emailstring<email>requiredFormatemail
- nameNamerequired
- mobilePhonerequired
- addressAddressrequired
- bank_detailsBankDetailsrequired
- card_detailsPayoutCard
Responses
200
- object
- beneficiaryBeneficiary
curl
curl --request POST \
--url https://sand-api.monoova.com/global/v1/beneficiaries \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"beneficiary": {
"customer_id": "",
"country_id": "",
"currency_id": "",
"remuneration_type_id": "",
"account_type_id": "",
"email": "",
"name": "",
"mobile": "",
"address": "",
"bank_details": ""
}
}'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var raw = JSON.stringify({
"beneficiary": {
"customer_id": "",
"country_id": "",
"currency_id": "",
"remuneration_type_id": "",
"account_type_id": "",
"email": "",
"name": "",
"mobile": "",
"address": "",
"bank_details": ""
}
});
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://sand-api.monoova.com/global/v1/beneficiaries", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("https://sand-api.monoova.com/global/v1/beneficiaries")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
request.body = JSON.dump({
"beneficiary": {
"customer_id": "",
"country_id": "",
"currency_id": "",
"remuneration_type_id": "",
"account_type_id": "",
"email": "",
"name": "",
"mobile": "",
"address": "",
"bank_details": ""
}
})
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://sand-api.monoova.com/global/v1/beneficiaries"
payload = json.dumps({
"beneficiary": {
"customer_id": "",
"country_id": "",
"currency_id": "",
"remuneration_type_id": "",
"account_type_id": "",
"email": "",
"name": "",
"mobile": "",
"address": "",
"bank_details": ""
}
})
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
200
// A beneficiary.
{
"beneficiary": {}
}