Your reseller account
gethttps://api.nsin.ir/reseller/v1/me
Auth: Authorization: Bearer nsin_… or X-Api-Key: nsin_… — see API keys.
Your status, wallet balance, credit line and how many users you have
out of your limit. spendable_rials is the balance plus the credit
line: what charges may still take before your wallet counts as in debt.
Responses
200Your reseller account.
Content type: application/json
- user_idinteger
- statusstringOne of:
"active" - balance_rialsinteger (int64)
- credit_limit_rialsinteger (int64)
How far below zero charges may take your wallet. 0 means prepaid only.
- spendable_rialsinteger (int64)
Balance plus credit line.
- usersinteger
- max_usersinteger
{
"user_id": 0,
"status": "active",
"balance_rials": 0,
"credit_limit_rials": 0,
"spendable_rials": 0,
"users": 0,
"max_users": 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.
{
"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.
{
"error": "forbidden"
}Example request
curl -X GET "https://api.nsin.ir/reseller/v1/me" \
-H "Authorization: Bearer $NSIN_API_KEY"