Endpoint
Retrieve the merchant
GET
/v1/merchantReturns the merchant object of the business the key belongs to.
- Scope a restricted key needs
merchant:read- Publishable key
- Not allowed: secret or restricted key only
- Idempotency-Key
- Not used. A GET is already safe to repeat.
Parameters
| Parameter | Type and place | Meaning |
|---|---|---|
Orrerie-Version | stringheader | API version date. Default: the version the key was created with. Example 2026-10-11. |
Example request
curl
curl https://api.orrerie.com/v1/merchant \
-H "Authorization: Bearer $ORRERIE_SECRET_KEY"JavaScript
const response = await fetch("https://api.orrerie.com/v1/merchant", {
headers: {
Authorization: `Bearer ${process.env.ORRERIE_SECRET_KEY}`,
},
});
const result = await response.json();
if (!response.ok) throw new Error(`${result.error.code}: ${result.error.message}`);
console.log(result);Python
import os
import requests
response = requests.get(
"https://api.orrerie.com/v1/merchant",
headers={"Authorization": f"Bearer {os.environ['ORRERIE_SECRET_KEY']}"},
timeout=30,
)
result = response.json()
if not response.ok:
raise RuntimeError(f"{result['error']['code']}: {result['error']['message']}")
print(result)PHP
<?php
$request = curl_init('https://api.orrerie.com/v1/merchant');
curl_setopt_array($request, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('ORRERIE_SECRET_KEY'),
],
]);
$body = curl_exec($request);
if ($body === false) {
throw new RuntimeException(curl_error($request));
}
$result = json_decode($body, true);
if (curl_getinfo($request, CURLINFO_HTTP_CODE) >= 400) {
throw new RuntimeException($result['error']['code'] . ': ' . $result['error']['message']);
}
print_r($result);Responses
200 OK
The answer is the merchant object. Headers: Orrerie-Request-Id.
Example response, 200
{
"id": "mer_93r9sfyrrm5km287343znd4f",
"object": "merchant",
"livemode": true,
"created": "2026-09-02T09:15:44.020Z",
"name": "Acme Coffee Roasters",
"slug": "acme",
"profile_url": "https://pay.orrerie.com/m/acme",
"country": "US",
"business_type": "company",
"support_email": "help@acme.example",
"tier": "unverified",
"restricted": false,
"settlement": {
"mode": "convert",
"asset": "base:usdc"
},
"fee_bearer": "payer",
"default_order_expiry_seconds": 3600,
"rails": {
"orrerie_app": true,
"relay": true,
"direct": true
},
"app_pay_allowed": true,
"branding": {
"logo": "file_xn5cz8fk5zmyx3kp37rvddgs",
"accent_color": null
},
"limits": {
"order_max": {
"amount": "1000.00",
"currency": "USD"
},
"rolling_30_days_max": {
"amount": "5000.00",
"currency": "USD"
},
"lifetime_max": {
"amount": "20000.00",
"currency": "USD"
},
"open_orders_max": 50,
"outside_payouts_daily_max": {
"amount": "1000.00",
"currency": "USD"
},
"payout_batch_rows_max": 0,
"members_max": 2,
"live_keys_max": 2,
"webhook_endpoints_max": 1,
"requests_per_minute": 60
},
"usage": {
"rolling_30_days_paid": {
"amount": "1284.50",
"currency": "USD"
},
"lifetime_paid": {
"amount": "1284.50",
"currency": "USD"
},
"open_orders": 3,
"outside_payouts_today": {
"amount": "0.00",
"currency": "USD"
},
"members": 2,
"live_keys": 1,
"webhook_endpoints": 1
}
}Any other status: an error
A status of 400 or above answers with the error object. Branch on its code, never on its message.
Errors
This call has no error of its own. It answers with the errors every call can answer with: a bad key, a missing scope, an object that does not exist, the rate limit. Every error code has its own entry.