Nice Paydocs API version 2026-12-01 OpenAPI

Crypto

Generated from the OpenAPI document, API version 2026-12-01. Money is always a decimal string with a currency code.

Get or create a customer's permanent USDT address

POST /v1/crypto/addresses

  • Scope: crypto:write
  • SDK: createCryptoAddress()
  • Success: HTTP 200

Body

FieldTypeRequiredNotes
customer_refstringyespattern ^[A-Za-z0-9_.:-]{1,64}$
chainenumyesone of tron bsc

Example

const result = await nicepay.createCryptoAddress({
  "customer_ref": "customer-ref-1",
  "chain": "tron"
});

Response — the CryptoAddress object

FieldTypeNotes
idstring
object"crypto_address"
livemodeboolean
addressstring
chainenumone of tron bsc
asset"USDT"
customer_refstring
created_attimestamp
Example response
JSON
{
  "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

FieldTypeNotes
limitintegermin 1; max 100; default 20
starting_afterstringat most 40 characters
ending_beforestringat most 40 characters
customer_refstringpattern ^[A-Za-z0-9_.:-]{1,64}$
chainenumone of tron bsc

Example

const result = await nicepay.listCryptoAddresses();

Response — a list of CryptoAddress objects

FieldTypeNotes
object"list"
dataarray of object
data[].idstring
data[].object"crypto_address"
data[].livemodeboolean
data[].addressstring
data[].chainenumone of tron bsc
data[].asset"USDT"
data[].customer_refstring
data[].created_attimestamp
has_moreboolean
Example response
JSON
{
  "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

FieldTypeRequiredNotes
idstringyes

Example

const result = await nicepay.getCryptoAddress("<id>");

Response — the CryptoAddress object

FieldTypeNotes
idstring
object"crypto_address"
livemodeboolean
addressstring
chainenumone of tron bsc
asset"USDT"
customer_refstring
created_attimestamp
Example response
JSON
{
  "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"
}