Skip to content

Methods

Reference data

Values of request parameters: networks (chain), assets (asset, pay_options) and invoice price currencies (currency). The current values as tables are in Networks and coins.

Networks and assets

GET/api/v1/chains

The chain and asset values for requests: what can be accepted, how many confirmations are required and the minimum payout.

Request example

curl -X GET "https://coinspay.app/api/v1/chains" \
  -H "Authorization: Bearer cpk_…"

Response200

JSON
{
  "network_mode": "mainnet",
  "chains": [
    {
      "id": "6f1c2b0e-4d8a-4c3e-9b21-7a5d0e3f8c42",
      "name": "Lumen Store",
      "family": "evm",
      "native_symbol": "string",
      "confirmations": 20,
      "block_time_ms": 0,
      "enabled": false,
      "assets": [
        {
          "symbol": "string",
          "decimals": 6,
          "native": false,
          "contract": null,
          "stablecoin": false,
          "enabled": false,
          "payout_minimum": null
        }
      ]
    }
  ]
}

Network — All fields are in the Objects section

Errors

401No key or an invalid key: UNAUTHORIZED.
403The shop is disabled: SHOP_DISABLED; the request came from an address outside the key's IP allowlist: IP_NOT_ALLOWED, the address is in details.ip; a test key called a method without test mode: TEST_MODE_UNSUPPORTED; an invoices-only key called a method that needs full access: KEY_ACCESS_DENIED.
503Temporarily unavailable: CORE_UNAVAILABLE, RATE_UNAVAILABLE (no fresh rate) or NETWORK_FEE_TOO_HIGH (network gas above the cap). Retry later.

Price currencies

GET/api/v1/currencies

The currency values for POST /invoices: fiat currencies and cryptocurrencies, with the precision of amounts.

Request example

curl -X GET "https://coinspay.app/api/v1/currencies" \
  -H "Authorization: Bearer cpk_…"

Response200

JSON
{
  "fiat": [
    {
      "code": "string",
      "symbol": "string",
      "scale": 0
    }
  ],
  "crypto": [
    {
      "code": "string",
      "scale": 0
    }
  ]
}

Errors

401No key or an invalid key: UNAUTHORIZED.
403The shop is disabled: SHOP_DISABLED; the request came from an address outside the key's IP allowlist: IP_NOT_ALLOWED, the address is in details.ip; a test key called a method without test mode: TEST_MODE_UNSUPPORTED; an invoices-only key called a method that needs full access: KEY_ACCESS_DENIED.
503Temporarily unavailable: CORE_UNAVAILABLE, RATE_UNAVAILABLE (no fresh rate) or NETWORK_FEE_TOO_HIGH (network gas above the cap). Retry later.