Balances
Generated from the OpenAPI document, API version 2026-12-01. Money is always a decimal string with a currency code.
- GET
/v1/balancesBalances per currency - GET
/v1/balance-transactionsLedger entries of the merchant - POST
/v1/settlementsRequest a settlement to a registered destination - GET
/v1/settlementsList settlements - GET
/v1/settlements/{id}Retrieve a settlement - GET
/v1/settlement-destinationsDestinations registered in the portal - GET
/v1/topupsThe merchant's top-ups (prefunding) - GET
/v1/topup-addressesThe project's USDT top-up address per chain
Balances per currency
GET /v1/balances
- Scope:
balances:read - SDK:
getBalances() - Success: HTTP 200
Example
const result = await nicepay.getBalances();$result = $nicepay->getBalances();Response — the Balances object
| Field | Type | Notes |
|---|---|---|
object | "balances" | |
livemode | boolean | |
data | array of object | |
data[].currency | enum | one of INR USDT |
data[].available | money string | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00" |
data[].pending | money string | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00" |
data[].reserved | money string | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00" |
data[].held | money string | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00" |
data[].holds | array of object | |
data[].holds[].id | string | |
data[].holds[].object | "hold" | |
data[].holds[].amount | money string | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00" |
data[].holds[].comment | string | |
data[].holds[].placed_at | timestamp |
Example response
{
"object": "balances",
"livemode": true,
"data": [
{
"currency": "INR",
"available": "10000.00",
"pending": "10000.00",
"reserved": "10000.00",
"held": "10000.00",
"holds": [
{
"id": "hold_01JD3QH2Y8ZKX4M9T6V0R1B2C3",
"object": "hold",
"amount": "10000.00",
"comment": "comment",
"placed_at": "2026-11-23T10:00:00.000Z"
}
]
}
]
}Ledger entries of the merchant
GET /v1/balance-transactions
- Scope:
balances:read - SDK:
listBalanceTransactions() - Success: HTTP 200
Query
| Field | Type | Notes |
|---|---|---|
limit | integer | min 1; max 100; default 20 |
starting_after | string | at most 40 characters |
ending_before | string | at most 40 characters |
currency | enum | one of INR USDT; default "INR" |
Example
const result = await nicepay.listBalanceTransactions();$result = $nicepay->listBalanceTransactions();Response — a list of BalanceTransaction objects
| Field | Type | Notes |
|---|---|---|
object | "list" | |
data | array of object | |
data[].id | string | |
data[].object | "balance_transaction" | |
data[].type | string | |
data[].account | enum | one of available pending reserved held debt |
data[].amount | money string | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"; negative when it lowers the balance |
data[].currency | enum | one of INR USDT |
data[].source | object or null | may be null |
data[].source.type | string | |
data[].source.id | string | |
data[].note | string | null | |
data[].created_at | timestamp | |
has_more | boolean |
Example response
{
"object": "list",
"data": [
{
"id": "id",
"object": "balance_transaction",
"type": "type",
"account": "available",
"amount": "amount",
"currency": "INR",
"source": {
"type": "type",
"id": "id"
},
"note": "note",
"created_at": "2026-11-23T10:00:00.000Z"
}
],
"has_more": true
}Request a settlement to a registered destination
POST /v1/settlements
- Scope:
settlements:write Idempotency-Keyrequired — use your own id- SDK:
createSettlement() - Success: HTTP 201
Body
| Field | Type | Required | Notes |
|---|---|---|---|
amount | money string | yes | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00" |
currency | enum | yes | one of INR USDT |
destination_id | string | yes | at most 40 characters |
Example
const result = await nicepay.createSettlement({
"amount": "10000.00",
"currency": "INR",
"destination_id": "destination_id"
}, { idempotencyKey: "your-own-id" });$result = $nicepay->createSettlement([
'amount' => '10000.00',
'currency' => 'INR',
'destination_id' => 'destination_id',
], ['idempotency_key' => 'your-own-id']);Response — the Settlement object
| Field | Type | Notes |
|---|---|---|
id | string | |
object | "settlement" | |
livemode | boolean | |
method | enum | one of queue manual_usdt |
status | string | |
amount | money string | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00" |
fee | money string | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00" |
currency | enum | one of INR USDT |
destination | object or null | may be null |
destination.id | string | |
destination.masked | string | |
initiated_by | enum | one of merchant platform |
usdt_amount | string | null | |
rate | string | null | |
chain | string | null | |
tx_hash | string | null | |
created_at | timestamp |
Example response
{
"id": "st_01JD3QH2Y8ZKX4M9T6V0R1B2C3",
"object": "settlement",
"livemode": true,
"method": "queue",
"status": "status",
"amount": "10000.00",
"fee": "10000.00",
"currency": "INR",
"destination": {
"id": "id",
"masked": "masked"
},
"initiated_by": "merchant",
"usdt_amount": "usdt_amount",
"rate": "rate",
"chain": "chain",
"tx_hash": "tx_hash",
"created_at": "2026-11-23T10:00:00.000Z"
}List settlements
GET /v1/settlements
- Scope:
settlements:read - SDK:
listSettlements() - Success: HTTP 200
Query
| Field | Type | Notes |
|---|---|---|
limit | integer | min 1; max 100; default 20 |
starting_after | string | at most 40 characters |
ending_before | string | at most 40 characters |
Example
const result = await nicepay.listSettlements();$result = $nicepay->listSettlements();Response — a list of Settlement objects
| Field | Type | Notes |
|---|---|---|
object | "list" | |
data | array of object | |
data[].id | string | |
data[].object | "settlement" | |
data[].livemode | boolean | |
data[].method | enum | one of queue manual_usdt |
data[].status | string | |
data[].amount | money string | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00" |
data[].fee | money string | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00" |
data[].currency | enum | one of INR USDT |
data[].destination | object or null | may be null |
data[].destination.id | string | |
data[].destination.masked | string | |
data[].initiated_by | enum | one of merchant platform |
data[].usdt_amount | string | null | |
data[].rate | string | null | |
data[].chain | string | null | |
data[].tx_hash | string | null | |
data[].created_at | timestamp | |
has_more | boolean |
Example response
{
"object": "list",
"data": [
{
"id": "st_01JD3QH2Y8ZKX4M9T6V0R1B2C3",
"object": "settlement",
"livemode": true,
"method": "queue",
"status": "status",
"amount": "10000.00",
"fee": "10000.00",
"currency": "INR",
"destination": {
"id": "id",
"masked": "masked"
},
"initiated_by": "merchant",
"usdt_amount": "usdt_amount",
"rate": "rate",
"chain": "chain",
"tx_hash": "tx_hash",
"created_at": "2026-11-23T10:00:00.000Z"
}
],
"has_more": true
}Retrieve a settlement
GET /v1/settlements/{id}
- Scope:
settlements:read - SDK:
getSettlement() - Success: HTTP 200
Path
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes |
Example
const result = await nicepay.getSettlement("<id>");$result = $nicepay->getSettlement('<id>');Response — the Settlement object
| Field | Type | Notes |
|---|---|---|
id | string | |
object | "settlement" | |
livemode | boolean | |
method | enum | one of queue manual_usdt |
status | string | |
amount | money string | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00" |
fee | money string | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00" |
currency | enum | one of INR USDT |
destination | object or null | may be null |
destination.id | string | |
destination.masked | string | |
initiated_by | enum | one of merchant platform |
usdt_amount | string | null | |
rate | string | null | |
chain | string | null | |
tx_hash | string | null | |
created_at | timestamp |
Example response
{
"id": "st_01JD3QH2Y8ZKX4M9T6V0R1B2C3",
"object": "settlement",
"livemode": true,
"method": "queue",
"status": "status",
"amount": "10000.00",
"fee": "10000.00",
"currency": "INR",
"destination": {
"id": "id",
"masked": "masked"
},
"initiated_by": "merchant",
"usdt_amount": "usdt_amount",
"rate": "rate",
"chain": "chain",
"tx_hash": "tx_hash",
"created_at": "2026-11-23T10:00:00.000Z"
}Destinations registered in the portal
GET /v1/settlement-destinations
- Scope:
settlements:read - SDK:
listSettlementDestinations() - Success: HTTP 200
Example
const result = await nicepay.listSettlementDestinations();$result = $nicepay->listSettlementDestinations();Response — a list of SettlementDestination objects
| Field | Type | Notes |
|---|---|---|
object | "list" | |
data | array of object | |
data[].id | string | |
data[].object | "settlement_destination" | |
data[].kind | string | |
data[].masked | string | |
data[].usable_after | timestamp | |
data[].usable | boolean | |
has_more | boolean |
Example response
{
"object": "list",
"data": [
{
"id": "id",
"object": "settlement_destination",
"kind": "kind",
"masked": "masked",
"usable_after": "2026-11-23T10:00:00.000Z",
"usable": true
}
],
"has_more": true
}The merchant's top-ups (prefunding)
GET /v1/topups
- Scope:
balances:read - SDK:
listTopups() - Success: HTTP 200
Query
| Field | Type | Notes |
|---|---|---|
limit | integer | min 1; max 100; default 20 |
starting_after | string | at most 40 characters |
ending_before | string | at most 40 characters |
Example
const result = await nicepay.listTopups();$result = $nicepay->listTopups();Response — a list of Topup objects
| Field | Type | Notes |
|---|---|---|
object | "list" | |
data | array of object | |
data[].id | string | |
data[].object | "topup" | |
data[].status | string | |
data[].amount | money string | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00" |
data[].currency | enum | one of INR USDT |
data[].created_at | timestamp | |
has_more | boolean |
Example response
{
"object": "list",
"data": [
{
"id": "id",
"object": "topup",
"status": "status",
"amount": "10000.00",
"currency": "INR",
"created_at": "2026-11-23T10:00:00.000Z"
}
],
"has_more": true
}The project's USDT top-up address per chain
GET /v1/topup-addresses
- Scope:
balances:read - SDK:
listTopupAddresses() - Success: HTTP 200
Example
const result = await nicepay.listTopupAddresses();$result = $nicepay->listTopupAddresses();Response — a list of TopupAddress objects
| Field | Type | Notes |
|---|---|---|
object | "list" | |
data | array of object | |
data[].object | "topup_address" | |
data[].chain | string | |
data[].address | string | |
has_more | boolean |
Example response
{
"object": "list",
"data": [
{
"object": "topup_address",
"chain": "chain",
"address": "address"
}
],
"has_more": true
}