Skip to content

List gram deposits

GET/funding/deposits

GRAM deposits to your address, and their state.

Sandbox: test money only. No request moves real money.

Authenticate with your sandbox key as a bearer token: Authorization: Bearer nbk_test_....

Request

HeaderValueSent
AuthorizationBearer nbk_test_...Required

No Idempotency-Key is needed: a read changes nothing, so it is safe to send again.

Parameters

FieldDescription
Limitlimit · query integer1 to 100. Default 20.
Cursorcursor · query stringUp to 256 characters.
The request in cURL, JavaScript and Python
GET /v1/funding/depositsSandbox, test key
const response = await fetch('https://sandbox-api.nasfampay.com/v1/funding/deposits', {  headers: {    Authorization: `Bearer ${process.env.NASFAM_SANDBOX_KEY}`,  },});if (!response.ok) {  const problem = await response.json();  throw new Error(`${problem.status} ${problem.code}: ${problem.title} (request ${problem.request_id})`);}const result = await response.json();console.log(response.status, result);
Code for Request
GET /v1/funding/depositsSandbox, test key
// npm install axiosimport axios from 'axios';try {  const { status, data: deposits } = await axios.get(    'https://sandbox-api.nasfampay.com/v1/funding/deposits',    {      headers: {        Authorization: `Bearer ${process.env.NASFAM_SANDBOX_KEY}`,      },    },  );  console.log(status, deposits);} catch (error) {  if (!axios.isAxiosError(error) || !error.response) throw error;  const problem = error.response.data;  throw new Error(`${problem.status} ${problem.code}: ${problem.title} (request ${problem.request_id})`);}

Responses

StatusMeaningBody
OK200Deposits, newest first. Headers: RateLimit (draft-ietf-httpapi-ratelimit-headers-11. the same buckets, each "<bucket>";r=<whole requests remaining, never negative>;t=<seconds until the quota is fully available again>. ), RateLimit-Policy (draft-ietf-httpapi-ratelimit-headers-11. a structured field list with one item per bucket the request drew on (orders, quotes, quotes_daily, reads, webhooks, lookups, lookups_org, lookups_daily), each "<bucket>";q=<quota>;w=<window seconds>. no partition key (pk) is sent. ).object
Too many requests429Too many requests (rate_limited), or your queued orders are at your cap (queue_limit). A bucket that cannot be read at once because of contention is answered here too, never waited on. Honour Retry-After. . Headers: Request-Id, Retry-After (seconds to wait before retrying), RateLimit (draft-ietf-httpapi-ratelimit-headers-11. the same buckets, each "<bucket>";r=<whole requests remaining, never negative>;t=<seconds until the quota is fully available again>. ), RateLimit-Policy (draft-ietf-httpapi-ratelimit-headers-11. a structured field list with one item per bucket the request drew on (orders, quotes, quotes_daily, reads, webhooks, lookups, lookups_org, lookups_daily), each "<bucket>";q=<quota>;w=<window seconds>. no partition key (pk) is sent. ).Problem object
Any other statusdefaultError (RFC 9457). A 503 service_unavailable with Retry-After means the request was not processed: the rate limiter or the database could not answer, and the API refuses rather than serve unlimited (reads included). For a money-moving operation, retrying with the same Idempotency-Key is always safe. . Headers: Request-Id, Retry-After (on 429 and some 503 responses).Problem object

Fields of the 200 body

FieldDescription
Has morehas_more · boolean · required
Next cursornext_cursor · string or null · required
Datadata · array of Deposit · required

Responses are extensible: ignore fields, enum values and event types you do not know. Any other status is a Problem (see Errors).

Every kind of response
200 OKSynthetic sandbox data
{  "data": [    {      "object": "gram_deposit",      "id": "dep_01K7SAMP000000000000000001",      "status": "credited",      "asset": "GRAM",      "amount_nanogram": "5000000000",      "network": "TON",      "tx_hash": "0000000000000000000000000000000000000000000000000000000000000000",      "explorer_url": null,      "sender_masked": "string",      "observed_at": "2026-10-10T10:05:02Z",      "credited_at": "2026-10-10T10:05:02Z",      "hold_reason": null,      "conversion": {        "rate": {          "usd_per_gram": "1.500000",          "usd_micros_per_gram": {            "numerator": "1500000",            "denominator": "1"          },          "source_time": "2026-10-10T10:05:02Z"        },        "spread_bps": 0,        "rate_applied": {          "numerator": "1500000",          "denominator": "1"        },        "credited_usd_micros": "7500000",        "converted_at": "2026-10-10T10:05:02Z",        "policy_version": 1      }    }  ],  "has_more": false,  "next_cursor": null}
Code for Responses
Response
JSON
200 OKSynthetic sandbox data
{  "data": [    {      "object": "gram_deposit",      "id": "dep_01K7SAMP000000000000000090",      "status": "confirming",      "asset": "GRAM",      "amount_nanogram": "5000000000",      "network": "simulated",      "tx_hash": "0000000000000000000000000000000000000000000000000000000000000000",      "explorer_url": null,      "sender_masked": "0:000000...0000",      "observed_at": "2026-10-10T10:14:00.000Z",      "credited_at": null,      "hold_reason": null    }  ],  "has_more": false,  "next_cursor": null}
Error
JSON
429 Too Many RequestsSynthetic sandbox data
{  "type": "about:blank",  "title": "Too many requests",  "status": 429,  "code": "rate_limited",  "category": "rate_limit",  "detail": "Too many requests. Retry after the time in Retry-After.",  "param": null,  "request_id": "req_01K7SAMP000000000000000090"}

How it behaves

What to expect
AuthenticationYour key as a bearer token in the Authorization header: a nbk_test_ key on the sandbox host.
IdempotencyNot needed: a GET changes nothing, so it is safe to send again.
In the sandboxLists your simulated deposits, with a network of simulated.
On LiveThe same request, on the Live host with a live key, which exists only for a workspace activated for Live. See Go live.
FundingNone. This request does not touch your balance.
Status changesA deposit is confirming, then credited, on_hold or needs_attention. deposit.confirmed is raised once it is confirmed, before it is booked. See Funding with GRAM.
Webhook eventsNone.

Error responses

Any request can answer with invalid_request, invalid_api_key, key_expired, key_environment_mismatch, insufficient_scope, rate_limited, service_unavailable, internal_error. Errors says what to do about each one.