Crypto
Generated from the OpenAPI document, API version 2026-12-01. Money is always a decimal string with a currency code.
- POST
/v1/crypto/addressesGet or create a customer's permanent USDT address - GET
/v1/crypto/addressesList customer addresses - GET
/v1/crypto/addresses/{id}Retrieve a customer address
Get or create a customer's permanent USDT address
POST /v1/crypto/addresses
- Scope:
crypto:write - SDK:
createCryptoAddress() - Success: HTTP 200
Body
| Field | Type | Required | Notes |
|---|---|---|---|
customer_ref | string | yes | pattern ^[A-Za-z0-9_.:-]{1,64}$ |
chain | enum | yes | one of tron bsc |
Example
const result = await nicepay.createCryptoAddress({
"customer_ref": "customer-ref-1",
"chain": "tron"
});$result = $nicepay->createCryptoAddress([
'customer_ref' => 'customer-ref-1',
'chain' => 'tron',
]);Response — the CryptoAddress object
| Field | Type | Notes |
|---|---|---|
id | string | |
object | "crypto_address" | |
livemode | boolean | |
address | string | |
chain | enum | one of tron bsc |
asset | "USDT" | |
customer_ref | string | |
created_at | timestamp |
Example response
{
"id": "id",
"object": "crypto_address",
"livemode": true,
"address": "address",
"chain": "tron",
"asset": "USDT",
"customer_ref": "customer_ref",
"created_at": "2026-11-23T10:00:00.000Z"
}List customer addresses
GET /v1/crypto/addresses
- Scope:
crypto:read - SDK:
listCryptoAddresses() - 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 |
customer_ref | string | pattern ^[A-Za-z0-9_.:-]{1,64}$ |
chain | enum | one of tron bsc |
Example
const result = await nicepay.listCryptoAddresses();$result = $nicepay->listCryptoAddresses();Response — a list of CryptoAddress objects
| Field | Type | Notes |
|---|---|---|
object | "list" | |
data | array of object | |
data[].id | string | |
data[].object | "crypto_address" | |
data[].livemode | boolean | |
data[].address | string | |
data[].chain | enum | one of tron bsc |
data[].asset | "USDT" | |
data[].customer_ref | string | |
data[].created_at | timestamp | |
has_more | boolean |
Example response
{
"object": "list",
"data": [
{
"id": "id",
"object": "crypto_address",
"livemode": true,
"address": "address",
"chain": "tron",
"asset": "USDT",
"customer_ref": "customer_ref",
"created_at": "2026-11-23T10:00:00.000Z"
}
],
"has_more": true
}Retrieve a customer address
GET /v1/crypto/addresses/{id}
- Scope:
crypto:read - SDK:
getCryptoAddress() - Success: HTTP 200
Path
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes |
Example
const result = await nicepay.getCryptoAddress("<id>");$result = $nicepay->getCryptoAddress('<id>');Response — the CryptoAddress object
| Field | Type | Notes |
|---|---|---|
id | string | |
object | "crypto_address" | |
livemode | boolean | |
address | string | |
chain | enum | one of tron bsc |
asset | "USDT" | |
customer_ref | string | |
created_at | timestamp |
Example response
{
"id": "id",
"object": "crypto_address",
"livemode": true,
"address": "address",
"chain": "tron",
"asset": "USDT",
"customer_ref": "customer_ref",
"created_at": "2026-11-23T10:00:00.000Z"
}