List wallet transactions
Auth: Authorization: Bearer nsin_… or X-Api-Key: nsin_… — see API keys.
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.
Query parameters
- limitintegerqueryDefault:
50 - offsetintegerqueryDefault:
0
Responses
200Ledger rows.
Content type: application/json
- idinteger
- wallet_idinteger
- user_idinteger
- typestring
topup— money added.purchase— a plan bought or renewed.refund.admin_adjust— a correction by NSIN support.traffic_usage— a traffic charge.signup_bonus— the credit granted at signup.One of:"topup""purchase""refund""admin_adjust""traffic_usage""signup_bonus" - amount_rialsinteger
Signed — positive credits, negative debits.
- balance_afterinteger
- descriptionstring
- ref_typestring
What the row refers to —
payment,subscription,trafficormanual. - ref_idinteger
- ref_codestring
Payment gateway reference, for top-ups.
- origin_nodestring
Internal — set on rows replicated from another NSIN region. Clients can ignore it.
- sync_keystring
Internal — the replication idempotency key of a replicated row. Clients can ignore it.
- created_atstring (date-time)
- domain_idinteger
The domain a traffic charge is attributed to. Only on rows of
GET /wallet/transactions. - domain_namestring
That domain's name. Only on rows of
GET /wallet/transactions.
[
{
"id": 0,
"wallet_id": 0,
"user_id": 0,
"type": "topup",
"amount_rials": 0,
"balance_after": 0,
"description": "string",
"ref_type": "string",
"ref_id": 0,
"ref_code": "string",
"origin_node": "string",
"sync_key": "string",
"created_at": "2026-01-01T00:00:00Z",
"domain_id": 0,
"domain_name": "string"
}
]401Missing, malformed, revoked or expired API key. (A valid key whose
account has been deactivated gets 403 account is inactive instead.)
Content type: application/json
- errorstringrequired
Human-readable description of what went wrong.
{
"error": "invalid API key"
}429The key exceeded its request budget (300 requests per minute by default).
Content type: application/json
- errorstringrequired
Human-readable description of what went wrong.
{
"error": "rate limit exceeded"
}Example request
curl -X GET "https://api.nsin.ir/wallet/transactions" \
-H "Authorization: Bearer $NSIN_API_KEY"