Look up a top-up payment result
const url = 'https://api.nsin.ir/wallet/topup-result?authority=example';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/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.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”The payment gateway authority returned when the top-up started.
Responses
Section titled “ Responses ”Payment outcome.
object
Example generated
{ "status": "example", "ref_code": "example", "amount_rials": 1}Missing authority.
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Example
{ "error": "read-only API key"}Missing, malformed, revoked or expired API key — or the owning account is inactive.
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Examples
{ "error": "invalid API key"}No such payment on this account.
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Example
{ "error": "read-only API key"}The key exceeded its request budget (300 requests per minute by default).
The single error shape used by every endpoint.
object
Human-readable description of what went wrong.
Examples
{ "error": "rate limit exceeded"}