Update a payout account
curl --request PUT \
--url https://api.monigo.co/v1/customers/{customer_id}/payout-accounts/{account_id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"account_name": "<string>",
"account_number": "<string>",
"bank_name": "<string>",
"currency": "<string>",
"is_default": true,
"payout_method": "<string>"
}
'import requests
url = "https://api.monigo.co/v1/customers/{customer_id}/payout-accounts/{account_id}"
payload = {
"account_name": "<string>",
"account_number": "<string>",
"bank_name": "<string>",
"currency": "<string>",
"is_default": True,
"payout_method": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
account_name: '<string>',
account_number: '<string>',
bank_name: '<string>',
currency: '<string>',
is_default: true,
payout_method: '<string>'
})
};
fetch('https://api.monigo.co/v1/customers/{customer_id}/payout-accounts/{account_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.monigo.co/v1/customers/{customer_id}/payout-accounts/{account_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'account_name' => '<string>',
'account_number' => '<string>',
'bank_name' => '<string>',
'currency' => '<string>',
'is_default' => true,
'payout_method' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.monigo.co/v1/customers/{customer_id}/payout-accounts/{account_id}"
payload := strings.NewReader("{\n \"account_name\": \"<string>\",\n \"account_number\": \"<string>\",\n \"bank_name\": \"<string>\",\n \"currency\": \"<string>\",\n \"is_default\": true,\n \"payout_method\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.monigo.co/v1/customers/{customer_id}/payout-accounts/{account_id}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"account_name\": \"<string>\",\n \"account_number\": \"<string>\",\n \"bank_name\": \"<string>\",\n \"currency\": \"<string>\",\n \"is_default\": true,\n \"payout_method\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.monigo.co/v1/customers/{customer_id}/payout-accounts/{account_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"account_name\": \"<string>\",\n \"account_number\": \"<string>\",\n \"bank_name\": \"<string>\",\n \"currency\": \"<string>\",\n \"is_default\": true,\n \"payout_method\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{}{}{}{}{}{}payout-accounts
Update a payout account
Updates the details of an existing payout account
PUT
/
v1
/
customers
/
{customer_id}
/
payout-accounts
/
{account_id}
Update a payout account
curl --request PUT \
--url https://api.monigo.co/v1/customers/{customer_id}/payout-accounts/{account_id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"account_name": "<string>",
"account_number": "<string>",
"bank_name": "<string>",
"currency": "<string>",
"is_default": true,
"payout_method": "<string>"
}
'import requests
url = "https://api.monigo.co/v1/customers/{customer_id}/payout-accounts/{account_id}"
payload = {
"account_name": "<string>",
"account_number": "<string>",
"bank_name": "<string>",
"currency": "<string>",
"is_default": True,
"payout_method": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
account_name: '<string>',
account_number: '<string>',
bank_name: '<string>',
currency: '<string>',
is_default: true,
payout_method: '<string>'
})
};
fetch('https://api.monigo.co/v1/customers/{customer_id}/payout-accounts/{account_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.monigo.co/v1/customers/{customer_id}/payout-accounts/{account_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'account_name' => '<string>',
'account_number' => '<string>',
'bank_name' => '<string>',
'currency' => '<string>',
'is_default' => true,
'payout_method' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.monigo.co/v1/customers/{customer_id}/payout-accounts/{account_id}"
payload := strings.NewReader("{\n \"account_name\": \"<string>\",\n \"account_number\": \"<string>\",\n \"bank_name\": \"<string>\",\n \"currency\": \"<string>\",\n \"is_default\": true,\n \"payout_method\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.monigo.co/v1/customers/{customer_id}/payout-accounts/{account_id}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"account_name\": \"<string>\",\n \"account_number\": \"<string>\",\n \"bank_name\": \"<string>\",\n \"currency\": \"<string>\",\n \"is_default\": true,\n \"payout_method\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.monigo.co/v1/customers/{customer_id}/payout-accounts/{account_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"account_name\": \"<string>\",\n \"account_number\": \"<string>\",\n \"bank_name\": \"<string>\",\n \"currency\": \"<string>\",\n \"is_default\": true,\n \"payout_method\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{}{}{}{}{}{}Authorizations
API key with Bearer prefix (for programmatic/server-to-server access), format: Bearer {api_key}
Body
application/json
Payout account update fields
Response
OK
The response is of type object.
⌘I

