/api/v1/businesses/:idx-api-keySandbox + liveGet business details
Return the authenticated business record.
When to use it
Use to confirm identity, billing alias, and top-level business status.
Idempotency: not applicable
| Field | Location | Required | Description | Example / default |
|---|---|---|---|---|
| id | path | Yes | Business ID. | biz_123 |
Common errors
- 401: Missing or invalid API key.
- 404: Requested resource does not exist or is not owned by the business.
Sample response
json{
"id": "biz_123",
"billingAlias": "bill_acme_001",
"name": "Acme Treasury",
"status": "active",
"treasuryAddress": "0x1b2c3d4e5f6789012345678901234567890abced",
"createdAt": "2026-03-10T11:00:00.000Z",
"updatedAt": "2026-03-14T09:20:00.000Z"
}cURL example
bashcurl -X GET "https://api.paychainhq.io/api/v1/businesses/biz_123" \
-H "Content-Type: application/json" \
-H "x-api-key: pk_live_your_business_key"Node.js example
tsconst response = await fetch('https://api.paychainhq.io/api/v1/businesses/biz_123', {
method: 'GET',
headers: {
'Content-Type': 'application/json',
'x-api-key': 'pk_live_your_business_key',
},
});
const payload = await response.json();
console.log(payload);