Skip to content

Methods

Payments

Payments to the shop addresses and balances by asset.

List payments

GET/api/v1/deposits

Payments to the shop addresses, newest first, with filters.

Query parameters

FieldDescription
statusstringOnly payments in this state.Values: seen, pending, confirmed, orphaned
chainstringOnly this network.
assetstringOnly this asset.
referencestringOrder number, exact match.
addressstringShop address, exact match.
tx_hashstringTransaction hash, exact match.
cursorstringnext_cursor of the previous page.
limitintegerPage size: 1 to 100, 50 by default.

Request example

curl -X GET "https://coinspay.app/api/v1/deposits?limit=20" \
  -H "Authorization: Bearer cpk_…"

Response200

JSON
{
  "deposits": [
    {
      "id": "6f1c2b0e-4d8a-4c3e-9b21-7a5d0e3f8c42",
      "status": "confirmed",
      "chain": "tron",
      "asset": "USDT",
      "amount": "120",
      "amount_base": "120000000",
      "decimals": 6,
      "amount_usd": "120",
      "amounts_fiat": {
        "USD": "120.00",
        "EUR": "103.56",
        "RUB": "9720.00"
      },
      "address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
      "address_id": "1b2c3d4e-5f60-4718-8293-a4b5c6d7e8f9",
      "invoice_id": null,
      "reference": "order-1042",
      "tx_hash": "7f3a1c9e2b4d6f80a1c3e5b7d9f1a3c5e7b9d1f3a5c7e9b1d3f5a7c9e1b3d5f7",
      "output_index": 0,
      "from_address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
      "block_height": 68213904,
      "confirmations_required": 20,
      "unexpected_chain": "tron",
      "expected_chain": null,
      "rbf": null,
      "double_spend": null,
      "created_at": "2026-10-16T09:12:44.512Z",
      "confirmed_at": "2026-10-16T09:12:44.512Z",
      "orphaned_at": null
    }
  ],
  "next_cursor": null
}

Payment — All fields are in the Objects section

Errors

400The request failed validation: VALIDATION_ERROR with fields and reasons in details; UNKNOWN_CHAIN, UNKNOWN_ASSET, CHAIN_DISABLED, INVALID_ADDRESS, IDEMPOTENCY_KEY_REQUIRED.
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.

Get a payment

GET/api/v1/deposits/{id}

A payment by id, the same shape as in payment.* events.

Path parameters

FieldDescription
idstringrequiredPublic id.

Request example

curl -X GET "https://coinspay.app/api/v1/deposits/4f7c2a52-8a6e-4c1d-9a51-0e3b6f1d2c11" \
  -H "Authorization: Bearer cpk_…"

Response200

JSON
{
  "deposit": {
    "id": "6f1c2b0e-4d8a-4c3e-9b21-7a5d0e3f8c42",
    "status": "confirmed",
    "chain": "tron",
    "asset": "USDT",
    "amount": "120",
    "amount_base": "120000000",
    "decimals": 6,
    "amount_usd": "120",
    "amounts_fiat": {
      "USD": "120.00",
      "EUR": "103.56",
      "RUB": "9720.00"
    },
    "address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
    "address_id": "1b2c3d4e-5f60-4718-8293-a4b5c6d7e8f9",
    "invoice_id": null,
    "reference": "order-1042",
    "tx_hash": "7f3a1c9e2b4d6f80a1c3e5b7d9f1a3c5e7b9d1f3a5c7e9b1d3f5a7c9e1b3d5f7",
    "output_index": 0,
    "from_address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
    "block_height": 68213904,
    "confirmations_required": 20,
    "unexpected_chain": "tron",
    "expected_chain": null,
    "rbf": null,
    "double_spend": null,
    "created_at": "2026-10-16T09:12:44.512Z",
    "confirmed_at": "2026-10-16T09:12:44.512Z",
    "orphaned_at": null
  }
}

Payment — All fields are in the Objects section

Errors

400The request failed validation: VALIDATION_ERROR with fields and reasons in details; UNKNOWN_CHAIN, UNKNOWN_ASSET, CHAIN_DISABLED, INVALID_ADDRESS, IDEMPOTENCY_KEY_REQUIRED.
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.
404Not found: NOT_FOUND. Another shop's record looks like a missing one.

Balances

GET/api/v1/balances

Balances by asset: confirmed is credited minus payouts and fees, pending and seen are payments in transit.

Request example

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

Response200

JSON
{
  "balances": [
    {
      "chain": "tron",
      "asset": "USDT",
      "decimals": 6,
      "confirmed": "string",
      "pending": "string",
      "seen": "string"
    }
  ]
}

Balance — 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.