List invoices
const url = 'https://api.nsin.ir/invoices?limit=200&offset=0';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/invoices?limit=200&offset=0' \ --header 'Authorization: Bearer <token>'Your invoices across all your domains — plan purchases, renewals, top-ups and manual invoices — newest first, each with its line items. Traffic statements are not included.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”How many invoices to return, 1–200.
Responses
Section titled “ Responses ”Invoices, newest first.
object
Human-facing invoice number, sequential per Jalali year.
subscription — a plan purchase or renewal (taxed). period — the
traffic of a closed billing period, when it had metered traffic
(no VAT). topup — a wallet top-up (no VAT). manual — issued by
NSIN support (taxed).
Before tax, in rials.
VAT, in rials.
What was charged, in rials.
object
Example
[ { "kind": "subscription", "status": "paid" }]Missing, malformed, revoked or expired API key. (A valid key whose
account has been deactivated gets 403 account is inactive instead.)
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Examples
{ "error": "invalid 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"}