List wallet transactions
const url = 'https://api.nsin.ir/wallet/transactions?limit=50&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/wallet/transactions?limit=50&offset=0' \ --header 'Authorization: Bearer <token>'The wallet ledger, newest first. amount_rials is signed: positive is a
credit, negative a debit. Traffic charges carry the domain they are
attributed to.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Responses
Section titled “ Responses ”Ledger rows.
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.
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"}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"}