Skip to content

Look up a top-up payment result

GET
/wallet/topup-result
curl --request GET \
--url 'https://api.nsin.ir/wallet/topup-result?authority=example' \
--header 'Authorization: Bearer <token>'

The outcome of a wallet top-up, by payment gateway authority. Reading is allowed; starting a top-up is not available to API keys.

authority
required
string

The payment gateway authority returned when the top-up started.

Payment outcome.

Media type application/json
object
status
string
ref_code
string
amount_rials
integer
Example generated
{
"status": "example",
"ref_code": "example",
"amount_rials": 1
}

Missing authority.

Media type application/json

The single error shape used by every endpoint.

object
error
required

Human-readable description of what went wrong.

string
Example
{
"error": "read-only API key"
}

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"
}

No such payment on this account.

Media type application/json

The single error shape used by every endpoint.

object
error
required

Human-readable description of what went wrong.

string
Example
{
"error": "read-only 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"
}