Utilities
Generated from the OpenAPI document, API version 2026-12-01. Money is always a decimal string with a currency code.
- GET
/v1/pingCheck credentials - GET
/v1/methodsMethods available to this project, with fees - GET
/v1/reference-ratesThe informational USDT/INR rate - GET
/v1/statusService status: the API, webhooks and each rail (fed by the watchdog)
Check credentials
GET /v1/ping
- Scope: any valid key
- SDK:
ping() - Success: HTTP 200
Example
const result = await nicepay.ping();$result = $nicepay->ping();Response — the Ping object
| Field | Type | Notes |
|---|---|---|
object | "ping" | |
livemode | boolean | |
project | string | |
merchant | string | |
scopes | array of enum | |
api_version | string |
Example response
{
"object": "ping",
"livemode": true,
"project": "project",
"merchant": "merchant",
"scopes": [
"payins:write"
],
"api_version": "api_version"
}Methods available to this project, with fees
GET /v1/methods
- Scope: any valid key
- SDK:
listMethods() - Success: HTTP 200
Example
const result = await nicepay.listMethods();$result = $nicepay->listMethods();Response
| Field | Type | Notes |
|---|---|---|
object | "list" | |
livemode | boolean | |
data | array of object | |
data[].method | enum | one of upi bank_transfer usdt_trc20 usdt_bep20 auto |
data[].direction | enum | one of payin payout |
data[].currency | enum | one of INR USDT |
data[].available | boolean | |
data[].fee | object or null | may be null |
data[].fee.bps | integer | |
data[].fee.fixed | money string | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00" |
data[].fee.min | money string or null | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"; may be null |
data[].fee.max | money string or null | decimal string with its currency's decimal places (INR 2, USDT 6), e.g. "10000.00"; may be null |
Example response
{
"object": "list",
"livemode": true,
"data": [
{
"method": "upi",
"direction": "payin",
"currency": "INR",
"available": true,
"fee": {
"bps": 1,
"fixed": "10000.00",
"min": "10000.00",
"max": "10000.00"
}
}
]
}The informational USDT/INR rate
GET /v1/reference-rates
- Scope: any valid key
- SDK:
getReferenceRates() - Success: HTTP 200
Example
const result = await nicepay.getReferenceRates();$result = $nicepay->getReferenceRates();Response — a list of ReferenceRate objects
| Field | Type | Notes |
|---|---|---|
object | "list" | |
data | array of object | |
data[].object | "reference_rate" | |
data[].base | "USDT" | |
data[].quote | "INR" | |
data[].rate | string | pattern ^[0-9]{1,6}(\.[0-9]{1,8})?$ |
data[].source | enum | one of auto manual |
data[].updated_at | timestamp | |
data[].informational | "true" | |
has_more | boolean |
Example response
{
"object": "list",
"data": [
{
"object": "reference_rate",
"base": "USDT",
"quote": "INR",
"rate": "rate",
"source": "auto",
"updated_at": "2026-11-23T10:00:00.000Z",
"informational": true
}
],
"has_more": true
}Service status: the API, webhooks and each rail (fed by the watchdog)
GET /v1/status
- Scope: none — public, unsigned
- SDK:
getStatus() - Success: HTTP 200
Example
const result = await nicepay.getStatus();$result = $nicepay->getStatus();Response — the Status object
| Field | Type | Notes |
|---|---|---|
object | "status" | |
status | enum | one of operational degraded outage unknown |
updated_at | string | null | |
components | array of object | |
components[].name | enum | one of api webhooks checkout desk_upi desk_bank gateway usdt_trc20 usdt_bep20 |
components[].status | enum | one of operational degraded outage unknown |
Example response
{
"object": "status",
"status": "operational",
"updated_at": "updated_at",
"components": [
{
"name": "api",
"status": "operational"
}
]
}