Who pays for this domain, and what they have
const url = 'https://api.nsin.ir/domains/example.com/payer';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.nsin.ir/domains/example.com/payer \ --header 'Authorization: Bearer <token>'The wallet a purchase or a renewal on this domain will actually spend,
and its balance. The panel shows this on the purchase dialog, and any
integration that spends on a shared domain should: a nomination
(PUT /domains/{domain}/billing-member) takes effect with no consent
step, so whoever clicks Buy must see whose money is about to move — and
an insufficient balance should be visible up front rather than arriving
as a surprise 402.
Requires billing on the domain, or being the nominated payer yourself.
Someone being charged can always see what for, whatever their role.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The domain name (for example example.com) — not a numeric id.
Example
example.comResponses
Section titled “ Responses ”The domain’s payer.
The wallet a purchase or renewal on this domain will spend, and what is in it.
object
Display name
True when the payer is the domain owner.
True when the payer is the account this key belongs to.
The payer’s wallet balance in rials — disclosed only through this gate, and only for this domain’s payer.
Example generated
{ "user_id": 1, "name": "example", "email": "example", "is_owner": true, "is_self": true, "balance_rials": 1}Missing domain.
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Example
{ "error": "read-only API key"}Missing, malformed, revoked or expired API key — or the owning account is inactive.
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Examples
{ "error": "invalid API key"}No such domain, or it is not visible to this account. Domains you cannot access are reported as not found rather than forbidden.
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Example
{ "error": "read-only API key"}The key exceeded its request budget (300 requests per minute by default).
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Examples
{ "error": "rate limit exceeded"}