nsindocs Search the docs⌘K
  1. Docs
  2. API reference
  3. Reseller

A user's wallet statement

gethttps://api.nsin.ir/reseller/v1/users/{id}/wallet/statement

Auth: Authorization: Bearer nsin_… or X-Api-Key: nsin_… — see API keys.

Path parameters

  • idintegerrequiredpath

    The id of one of your users.

Query parameters

  • limitintegerquery
    Default: 100
  • beforeintegerquery

    Only entries with an id below this one, to page back.

Responses

200The user's ledger, newest first, and what you could take back now.

Content type: application/json

  • transactionsarray of object
    Item fields
    • idinteger
    • typestring

      For example topup, purchase, traffic_usage, reseller_transfer_in, reseller_reclaim_out.

    • amount_rialsinteger (int64)

      Positive for money in

    • balance_afterinteger (int64)
    • descriptionstring
    • created_atstring (date-time)
  • reclaimable_rialsinteger (int64)
json
{
  "transactions": [
    {
      "id": 0,
      "type": "string",
      "amount_rials": 0,
      "balance_after": 0,
      "description": "string",
      "created_at": "2026-01-01T00:00:00Z"
    }
  ],
  "reclaimable_rials": 0
}
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.

json
{
  "error": "invalid API key"
}
403The account is not an active reseller (or NSIN has frozen it), or the key belongs to an NSIN SSO app limited to a few domains.

Content type: application/json

  • errorstringrequired

    Human-readable description of what went wrong.

json
{
  "error": "forbidden"
}
404No user with this id among yours.

Content type: application/json

  • errorstringrequired

    Human-readable description of what went wrong.

json
{
  "error": "user not found"
}

Example request

bash
curl -X GET "https://api.nsin.ir/reseller/v1/users/0/wallet/statement" \
  -H "Authorization: Bearer $NSIN_API_KEY"
esc