Update Merchant
curl --request PATCH \
--url https://api-staging.eximpe.com/partners/merchants/{merchant_id}/ \
--header 'Content-Type: application/json' \
--header 'X-Client-ID: <api-key>' \
--header 'X-Client-Secret: <api-key>' \
--data '
{
"company_details": {
"website": "https://updated-website.com",
"monthly_avg_transaction_value": "75000.00",
"description_of_products_and_services": "Updated description of services"
},
"settlement_details": {
"bank_account_number": "9876543210",
"bank_account_name": "Updated Company Ltd"
}
}
'import requests
url = "https://api-staging.eximpe.com/partners/merchants/{merchant_id}/"
payload = {
"company_details": {
"website": "https://updated-website.com",
"monthly_avg_transaction_value": "75000.00",
"description_of_products_and_services": "Updated description of services"
},
"settlement_details": {
"bank_account_number": "9876543210",
"bank_account_name": "Updated Company Ltd"
}
}
headers = {
"X-Client-ID": "<api-key>",
"X-Client-Secret": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
'X-Client-ID': '<api-key>',
'X-Client-Secret': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
company_details: {
website: 'https://updated-website.com',
monthly_avg_transaction_value: '75000.00',
description_of_products_and_services: 'Updated description of services'
},
settlement_details: {bank_account_number: '9876543210', bank_account_name: 'Updated Company Ltd'}
})
};
fetch('https://api-staging.eximpe.com/partners/merchants/{merchant_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-staging.eximpe.com/partners/merchants/{merchant_id}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'company_details' => [
'website' => 'https://updated-website.com',
'monthly_avg_transaction_value' => '75000.00',
'description_of_products_and_services' => 'Updated description of services'
],
'settlement_details' => [
'bank_account_number' => '9876543210',
'bank_account_name' => 'Updated Company Ltd'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Client-ID: <api-key>",
"X-Client-Secret: <api-key>"
],
]);
$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-staging.eximpe.com/partners/merchants/{merchant_id}/"
payload := strings.NewReader("{\n \"company_details\": {\n \"website\": \"https://updated-website.com\",\n \"monthly_avg_transaction_value\": \"75000.00\",\n \"description_of_products_and_services\": \"Updated description of services\"\n },\n \"settlement_details\": {\n \"bank_account_number\": \"9876543210\",\n \"bank_account_name\": \"Updated Company Ltd\"\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("X-Client-ID", "<api-key>")
req.Header.Add("X-Client-Secret", "<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.patch("https://api-staging.eximpe.com/partners/merchants/{merchant_id}/")
.header("X-Client-ID", "<api-key>")
.header("X-Client-Secret", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"company_details\": {\n \"website\": \"https://updated-website.com\",\n \"monthly_avg_transaction_value\": \"75000.00\",\n \"description_of_products_and_services\": \"Updated description of services\"\n },\n \"settlement_details\": {\n \"bank_account_number\": \"9876543210\",\n \"bank_account_name\": \"Updated Company Ltd\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-staging.eximpe.com/partners/merchants/{merchant_id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-Client-ID"] = '<api-key>'
request["X-Client-Secret"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"company_details\": {\n \"website\": \"https://updated-website.com\",\n \"monthly_avg_transaction_value\": \"75000.00\",\n \"description_of_products_and_services\": \"Updated description of services\"\n },\n \"settlement_details\": {\n \"bank_account_number\": \"9876543210\",\n \"bank_account_name\": \"Updated Company Ltd\"\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Merchant updated successfully",
"data": {
"merchant_id": "3604346598",
"updated_fields": [
"company_details",
"settlement_details"
]
}
}{
"success": true,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": true,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}Merchant
Update Merchant
Update specific fields of an existing merchant.
PATCH
/
partners
/
merchants
/
{merchant_id}
/
Update Merchant
curl --request PATCH \
--url https://api-staging.eximpe.com/partners/merchants/{merchant_id}/ \
--header 'Content-Type: application/json' \
--header 'X-Client-ID: <api-key>' \
--header 'X-Client-Secret: <api-key>' \
--data '
{
"company_details": {
"website": "https://updated-website.com",
"monthly_avg_transaction_value": "75000.00",
"description_of_products_and_services": "Updated description of services"
},
"settlement_details": {
"bank_account_number": "9876543210",
"bank_account_name": "Updated Company Ltd"
}
}
'import requests
url = "https://api-staging.eximpe.com/partners/merchants/{merchant_id}/"
payload = {
"company_details": {
"website": "https://updated-website.com",
"monthly_avg_transaction_value": "75000.00",
"description_of_products_and_services": "Updated description of services"
},
"settlement_details": {
"bank_account_number": "9876543210",
"bank_account_name": "Updated Company Ltd"
}
}
headers = {
"X-Client-ID": "<api-key>",
"X-Client-Secret": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
'X-Client-ID': '<api-key>',
'X-Client-Secret': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
company_details: {
website: 'https://updated-website.com',
monthly_avg_transaction_value: '75000.00',
description_of_products_and_services: 'Updated description of services'
},
settlement_details: {bank_account_number: '9876543210', bank_account_name: 'Updated Company Ltd'}
})
};
fetch('https://api-staging.eximpe.com/partners/merchants/{merchant_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-staging.eximpe.com/partners/merchants/{merchant_id}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'company_details' => [
'website' => 'https://updated-website.com',
'monthly_avg_transaction_value' => '75000.00',
'description_of_products_and_services' => 'Updated description of services'
],
'settlement_details' => [
'bank_account_number' => '9876543210',
'bank_account_name' => 'Updated Company Ltd'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Client-ID: <api-key>",
"X-Client-Secret: <api-key>"
],
]);
$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-staging.eximpe.com/partners/merchants/{merchant_id}/"
payload := strings.NewReader("{\n \"company_details\": {\n \"website\": \"https://updated-website.com\",\n \"monthly_avg_transaction_value\": \"75000.00\",\n \"description_of_products_and_services\": \"Updated description of services\"\n },\n \"settlement_details\": {\n \"bank_account_number\": \"9876543210\",\n \"bank_account_name\": \"Updated Company Ltd\"\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("X-Client-ID", "<api-key>")
req.Header.Add("X-Client-Secret", "<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.patch("https://api-staging.eximpe.com/partners/merchants/{merchant_id}/")
.header("X-Client-ID", "<api-key>")
.header("X-Client-Secret", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"company_details\": {\n \"website\": \"https://updated-website.com\",\n \"monthly_avg_transaction_value\": \"75000.00\",\n \"description_of_products_and_services\": \"Updated description of services\"\n },\n \"settlement_details\": {\n \"bank_account_number\": \"9876543210\",\n \"bank_account_name\": \"Updated Company Ltd\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-staging.eximpe.com/partners/merchants/{merchant_id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-Client-ID"] = '<api-key>'
request["X-Client-Secret"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"company_details\": {\n \"website\": \"https://updated-website.com\",\n \"monthly_avg_transaction_value\": \"75000.00\",\n \"description_of_products_and_services\": \"Updated description of services\"\n },\n \"settlement_details\": {\n \"bank_account_number\": \"9876543210\",\n \"bank_account_name\": \"Updated Company Ltd\"\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Merchant updated successfully",
"data": {
"merchant_id": "3604346598",
"updated_fields": [
"company_details",
"settlement_details"
]
}
}{
"success": true,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": true,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}Authorizations
Body
application/json
Merchant update request - only include fields to update