Businesses
A business has a name, a status (PENDING until DINARI approves its application, then
ACTIVE, or DISABLED / REJECTED), and one or more named API keys, each stored only
as a SHA-256 hash. API keys only work for an ACTIVE business; disabling a business
immediately rejects all of its keys.
Several keys per business is deliberate: it is what makes revocation usable. Killing a
compromised “staging” key should not take “production app” down with it, and a key nobody
can identify is a key nobody dares revoke — hence the name on each one.
Revoking stamps a timestamp rather than deleting the row. Which key was live when a request
was made is exactly what an incident asks, and the key prefix is what resolves a request-log
line to the business that made it.
Scoping
The API key on a request resolves to exactly one business, whichever of that business’s keys was presented. Resources created through the API — payments, webhook endpoints — are tagged with that business’s id, and every read is filtered by it. Requesting another business’s resource returns404, not the data.
Management
- Businesses sign up in the merchant portal, or DINARI opens the account for them.
They manage their own keys, team, webhook endpoints and payment links in the portal,
and through
/api/v1/meover the API — see Managing your business. - DINARI operators approve applications, decide what each business may do (KYC, payouts …), and can revoke a key from the admin dashboard. Every one of those changes is written to the audit trail inside the transaction that makes it.
SATIM merchant credentials are shared at the platform level, not per business —
DINARI abstracts them away so businesses never handle them directly.