Skip to content

Get one of the domain's invoices

GET
/domains/{domain}/invoices/{id}
curl --request GET \
--url https://api.nsin.ir/domains/example.com/invoices/1 \
--header 'Authorization: Bearer <token>'

Owner only.

domain
required
string

The domain name (for example example.com) — not a numeric id.

Example
example.com
id
required
integer

Invoice.

Media type application/json
object
id
integer
number

Human-facing invoice number, sequential per Jalali year.

string
user_id
integer
domain_id
integer
domain_name
string
subscription_id
integer
payment_id
integer
kind
string
Allowed values: subscription topup manual
status
string
Allowed values: paid unpaid cancelled
subtotal_rials
integer
tax_rials
integer
total_rials
integer
issued_at
string format: date-time
paid_at
string format: date-time
notes
string
created_at
string format: date-time
updated_at
string format: date-time
items
Array<object>
object
id
integer
invoice_id
integer
description
string
quantity
integer
unit_price_rials
integer
total_rials
integer
Example
{
"kind": "subscription",
"status": "paid"
}

Missing, malformed, revoked or expired API key — or the owning account is inactive.

Media type application/json

The single error shape used by every endpoint.

object
error
required

Human-readable description of what went wrong.

string
Examples
Example invalidKey
{
"error": "invalid API key"
}

The key is read-only, your role on the domain lacks the required permission, or the domain’s plan does not include the feature.

Media type application/json

The single error shape used by every endpoint.

object
error
required

Human-readable description of what went wrong.

string
Example
{
"error": "read-only API key"
}

Domain or invoice not found.

Media type application/json

The single error shape used by every endpoint.

object
error
required

Human-readable description of what went wrong.

string
Example
{
"error": "read-only API key"
}

The key exceeded its request budget (300 requests per minute by default).

Media type application/json

The single error shape used by every endpoint.

object
error
required

Human-readable description of what went wrong.

string
Examples
Example limited
{
"error": "rate limit exceeded"
}