Get one wallet transaction
const url = 'https://api.nsin.ir/wallet/transactions/1';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/wallet/transactions/1 \ --header 'Authorization: Bearer <token>'The ledger row, plus — for a traffic charge — the per-domain byte and
cost breakdown of that billing window. A traffic charge is billed once
per account per window, summed across all your domains, so by_domain
is how you attribute it.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Responses
Section titled “ Responses ”Transaction detail.
object
Signed — positive credits, negative debits.
What the row refers to — payment, subscription, traffic or manual.
Payment gateway reference, for top-ups.
Set on traffic charges.
Set on traffic charges.
Identifies the billing window a traffic charge covers.
Per-domain contribution to this charge. Traffic charges only.
One domain’s share of a single traffic charge.
object
Legacy two-tier column, on historical rows only.
Total across by_domain.
Total across by_domain.
Total across by_domain.
Total across by_domain.
Example
{ "type": "topup"}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 transaction on this account.
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"}