Get Merchant
curl --request GET \
--url https://olp-api.nipuntheekshana.com/v1/merchants/{id}import requests
url = "https://olp-api.nipuntheekshana.com/v1/merchants/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://olp-api.nipuntheekshana.com/v1/merchants/{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://olp-api.nipuntheekshana.com/v1/merchants/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://olp-api.nipuntheekshana.com/v1/merchants/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://olp-api.nipuntheekshana.com/v1/merchants/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://olp-api.nipuntheekshana.com/v1/merchants/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyMerchants
Get Merchant
Retrieve a merchant’s details by their ID
GET
/
v1
/
merchants
/
{id}
Get Merchant
curl --request GET \
--url https://olp-api.nipuntheekshana.com/v1/merchants/{id}import requests
url = "https://olp-api.nipuntheekshana.com/v1/merchants/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://olp-api.nipuntheekshana.com/v1/merchants/{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://olp-api.nipuntheekshana.com/v1/merchants/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://olp-api.nipuntheekshana.com/v1/merchants/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://olp-api.nipuntheekshana.com/v1/merchants/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://olp-api.nipuntheekshana.com/v1/merchants/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyThis endpoint requires a valid Bearer token in the
Authorization header. Merchants can only access their own profile unless they have admin privileges.Path Parameters
string
required
The unique merchant identifier (e.g.,
merch_abc123).Example Response (200)
{
"id": "merch_abc123",
"businessName": "Acme Payments Ltd",
"email": "admin@acmepay.com",
"phone": "+94771234567",
"businessType": "company",
"status": "active",
"walletAddress": "0x742d35Cc6634C0532925a3b844Bc9e7595f2bD18",
"webhookUrl": "https://acmepay.com/webhooks/openpay",
"twoFactorEnabled": true,
"kycStatus": "verified",
"createdAt": "2026-03-26T10:00:00Z",
"updatedAt": "2026-03-26T12:30:00Z"
}
Error Responses
404 Not Found
{
"error": {
"code": "NOT_FOUND",
"message": "Merchant not found"
}
}
403 Forbidden
{
"error": {
"code": "FORBIDDEN",
"message": "You do not have permission to view this merchant"
}
}