Referral
Update current user's payout profile
PATCH
/
v1
/
referral
/
payout-profile
Update current user's payout profile
curl --request PATCH \
--url https://api.wazapin.com/v1/referral/payout-profile \
--header 'Content-Type: application/json' \
--data '
{
"account_name": "<string>",
"account_number": "<string>",
"bank_name": "<string>",
"ewallet_id": "<string>",
"ewallet_provider": "<string>",
"updated_at": "<string>"
}
'const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
account_name: '<string>',
account_number: '<string>',
bank_name: '<string>',
ewallet_id: '<string>',
ewallet_provider: '<string>',
updated_at: '<string>'
})
};
fetch('https://api.wazapin.com/v1/referral/payout-profile', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/referral/payout-profile"
payload = {
"account_name": "<string>",
"account_number": "<string>",
"bank_name": "<string>",
"ewallet_id": "<string>",
"ewallet_provider": "<string>",
"updated_at": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"account_name": "<string>",
"account_number": "<string>",
"bank_name": "<string>",
"ewallet_id": "<string>",
"ewallet_provider": "<string>",
"updated_at": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}⌘I
Update current user's payout profile
curl --request PATCH \
--url https://api.wazapin.com/v1/referral/payout-profile \
--header 'Content-Type: application/json' \
--data '
{
"account_name": "<string>",
"account_number": "<string>",
"bank_name": "<string>",
"ewallet_id": "<string>",
"ewallet_provider": "<string>",
"updated_at": "<string>"
}
'const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
account_name: '<string>',
account_number: '<string>',
bank_name: '<string>',
ewallet_id: '<string>',
ewallet_provider: '<string>',
updated_at: '<string>'
})
};
fetch('https://api.wazapin.com/v1/referral/payout-profile', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/referral/payout-profile"
payload = {
"account_name": "<string>",
"account_number": "<string>",
"bank_name": "<string>",
"ewallet_id": "<string>",
"ewallet_provider": "<string>",
"updated_at": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"account_name": "<string>",
"account_number": "<string>",
"bank_name": "<string>",
"ewallet_id": "<string>",
"ewallet_provider": "<string>",
"updated_at": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}