C#
using System.Net.Http;
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("x-api-secret", "YOUR_API_SECRET");
client.DefaultRequestHeaders.Add("x-order-et-api-key", "YOUR_ORDER_ET_KEY");
var response = await client.GetAsync("https://sandbox-api.starpayethiopia.com/v1/starpay-api/trdp/get/merchant/01344351");
Console.WriteLine(await response.Content.ReadAsStringAsync());
const response = await fetch('https://sandbox-api.starpayethiopia.com/v1/starpay-api/trdp/get/merchant/01344351', {
method: 'GET',
headers: {
'x-api-secret': 'YOUR_API_SECRET',
'x-order-et-api-key': 'YOUR_ORDER_ET_KEY'
}
});
const data = await response.json();
console.log(data);
curl --request GET \
--url https://sandbox-api.starpayethiopia.com/v1/starpay-api/trdp/get/merchant/{merchantId} \
--header 'x-api-secret: <x-api-secret>'import requests
url = "https://sandbox-api.starpayethiopia.com/v1/starpay-api/trdp/get/merchant/{merchantId}"
headers = {"x-api-secret": "<x-api-secret>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox-api.starpayethiopia.com/v1/starpay-api/trdp/get/merchant/{merchantId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-secret: <x-api-secret>"
],
]);
$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://sandbox-api.starpayethiopia.com/v1/starpay-api/trdp/get/merchant/{merchantId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-secret", "<x-api-secret>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox-api.starpayethiopia.com/v1/starpay-api/trdp/get/merchant/{merchantId}")
.header("x-api-secret", "<x-api-secret>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.starpayethiopia.com/v1/starpay-api/trdp/get/merchant/{merchantId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-secret"] = '<x-api-secret>'
response = http.request(request)
puts response.read_body{
"status": "success",
"timestamp": "2026-07-29T12:00:00Z",
"message": "Merchant details retrieved successfully",
"data": {
"merchantId": "01344351",
"merchantName": "Sample Store",
"phoneNumber": "+251911223344",
"email": "merchant@example.com",
"status": "ACTIVE",
"businessType": "Retail",
"createdAt": "2025-01-15T08:00:00Z"
}
}{
"status": "error",
"timestamp": "2025-05-07T07:31:30.824Z",
"path": "/v2/starpay-api/",
"error": {
"code": "BadRequestException",
"message": "Missing required payload data, pk and payload is required"
}
}{
"message": "Something wrong",
"status": "error",
"timestamp": "2025-05-07T07:31:30.824Z",
"path": "/v2/starpay-api/",
"error": {
"code": "GEN_004",
"message": "An unexpected server error occurred."
}
}{
"message": "Something wrong",
"status": "error",
"timestamp": "2025-05-07T07:31:30.824Z",
"path": "/v2/starpay-api/",
"error": {
"code": "ABC_001",
"message": "not found"
}
}{
"message": "Something wrong",
"status": "error",
"timestamp": "2025-05-07T07:31:30.824Z",
"path": "/v2/starpay-api/",
"error": {
"code": "GEN_004",
"message": "An unexpected server error occurred."
}
}Merchant
Get Merchant Detail
Retrieve information and status for a specific merchant ID.
GET
/
trdp
/
get
/
merchant
/
{merchantId}
C#
using System.Net.Http;
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("x-api-secret", "YOUR_API_SECRET");
client.DefaultRequestHeaders.Add("x-order-et-api-key", "YOUR_ORDER_ET_KEY");
var response = await client.GetAsync("https://sandbox-api.starpayethiopia.com/v1/starpay-api/trdp/get/merchant/01344351");
Console.WriteLine(await response.Content.ReadAsStringAsync());
const response = await fetch('https://sandbox-api.starpayethiopia.com/v1/starpay-api/trdp/get/merchant/01344351', {
method: 'GET',
headers: {
'x-api-secret': 'YOUR_API_SECRET',
'x-order-et-api-key': 'YOUR_ORDER_ET_KEY'
}
});
const data = await response.json();
console.log(data);
curl --request GET \
--url https://sandbox-api.starpayethiopia.com/v1/starpay-api/trdp/get/merchant/{merchantId} \
--header 'x-api-secret: <x-api-secret>'import requests
url = "https://sandbox-api.starpayethiopia.com/v1/starpay-api/trdp/get/merchant/{merchantId}"
headers = {"x-api-secret": "<x-api-secret>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox-api.starpayethiopia.com/v1/starpay-api/trdp/get/merchant/{merchantId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-secret: <x-api-secret>"
],
]);
$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://sandbox-api.starpayethiopia.com/v1/starpay-api/trdp/get/merchant/{merchantId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-secret", "<x-api-secret>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox-api.starpayethiopia.com/v1/starpay-api/trdp/get/merchant/{merchantId}")
.header("x-api-secret", "<x-api-secret>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.starpayethiopia.com/v1/starpay-api/trdp/get/merchant/{merchantId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-secret"] = '<x-api-secret>'
response = http.request(request)
puts response.read_body{
"status": "success",
"timestamp": "2026-07-29T12:00:00Z",
"message": "Merchant details retrieved successfully",
"data": {
"merchantId": "01344351",
"merchantName": "Sample Store",
"phoneNumber": "+251911223344",
"email": "merchant@example.com",
"status": "ACTIVE",
"businessType": "Retail",
"createdAt": "2025-01-15T08:00:00Z"
}
}{
"status": "error",
"timestamp": "2025-05-07T07:31:30.824Z",
"path": "/v2/starpay-api/",
"error": {
"code": "BadRequestException",
"message": "Missing required payload data, pk and payload is required"
}
}{
"message": "Something wrong",
"status": "error",
"timestamp": "2025-05-07T07:31:30.824Z",
"path": "/v2/starpay-api/",
"error": {
"code": "GEN_004",
"message": "An unexpected server error occurred."
}
}{
"message": "Something wrong",
"status": "error",
"timestamp": "2025-05-07T07:31:30.824Z",
"path": "/v2/starpay-api/",
"error": {
"code": "ABC_001",
"message": "not found"
}
}{
"message": "Something wrong",
"status": "error",
"timestamp": "2025-05-07T07:31:30.824Z",
"path": "/v2/starpay-api/",
"error": {
"code": "GEN_004",
"message": "An unexpected server error occurred."
}
}Get Merchant Details
Retrieve account status, profile information, and configuration details for a specific merchant ID. Use this endpoint to verify merchant information prior to initiating escrow allocations or validating sub-merchant relationships in marketplace integrations.Endpoint
GET /trdp/get/merchant/{merchantId}
Authentication
Include your API secret and any required partner API keys in the request headers. Headers:x-api-secret(string) — Required. Your StarPay API secret key.x-order-et-api-key(string) — Optional. Order.et API Key if accessing partner marketplace resources.
x-api-secret: SplFeYdc/Hc5S1CGmVDtETLYUJY/10a38ejamzwb1YH30h+u8sOK2fpTlyKitpPk
x-order-et-api-key: 9d7b6b4f5d0f8c1e7a9b3c4d6e8f1a2b5c7d9e0f3a1b6c8d2e4f6a8b0c1d3e5
Path Parameters
merchantId
The unique identifier of the merchant you wish to query. Type:string — Required
Example:
01344351
Example Request
curl --request GET \
--url https://sandbox-api.starpayethiopia.com/v1/starpay-api/trdp/get/merchant/01344351 \
--header 'x-api-secret: SplFeYdc/Hc5S1CGmVDtETLYUJY/10a38ejamzwb1YH30h+u8sOK2fpTlyKitpPk' \
--header 'x-order-et-api-key: 9d7b6b4f5d0f8c1e7a9b3c4d6e8f1a2b5c7d9e0f3a1b6c8d2e4f6a8b0c1d3e5'
Response
Success Response (200 OK)
{
"status": "success",
"timestamp": "2026-07-29T12:00:00Z",
"message": "Merchant details retrieved successfully",
"data": {
"merchantId": "01344351",
"merchantName": "Sample Store",
"phoneNumber": "+251911223344",
"email": "merchant@example.com",
"status": "ACTIVE",
"businessType": "Retail",
"createdAt": "2025-01-15T08:00:00Z"
}
}
Response Fields
| Field | Type | Description |
|---|---|---|
merchantId | string | The unique merchant identifier. |
merchantName | string | Registered legal or trade business name of the merchant. |
phoneNumber | string | Primary contact phone number for the merchant account. |
email | string | Primary business email address. |
status | string | Account status (e.g. ACTIVE, INACTIVE, SUSPENDED). |
businessType | string | Classification of the merchant business. |
createdAt | string | ISO 8601 timestamp when the merchant was onboarded. |
Headers
Your StarPay API secret key.
Example:
"SplFeYdc/Hc5S1CGmVDtETLYUJY/10a38ejamzwb1YH30h+u8sOK2fpTlyKitpPk"
Optional Order.et API Key for service authorization.
Example:
"9d7b6b4f5d0f8c1e7a9b3c4d6e8f1a2b5c7d9e0f3a1b6c8d2e4f6a8b0c1d3e5"
Path Parameters
Unique identifier of the merchant.
Example:
"01344351"
⌘I