List wallet transactions
GET
/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 ” limit
integer
offset
integer
Responses
Section titled “ Responses ”Ledger rows.
Media type application/json
Array<object>
object
id
integer
wallet_id
integer
user_id
integer
type
string
amount_rials
Signed — positive credits, negative debits.
integer
balance_after
integer
description
string
ref_type
What the row refers to — payment, subscription, traffic or manual.
string
ref_id
integer
ref_code
Payment gateway reference, for top-ups.
string
created_at
string format: date-time
domain_id
Set on traffic charges.
integer
domain_name
Set on traffic charges.
string
Example
[ { "type": "topup" }]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 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"}