Skip to content

Methods

Addresses

A receiving address in the chosen network: permanent, without an amount. Payments to it come as payment.* events.

Issue an address

POST/api/v1/addresses

A new receiving address in the network. reference is your order number: it comes back in payment events. At most 60 addresses per minute per shop.

Request body

FieldDescription
chainstringrequiredNetwork of the address: tron, ethereum, bitcoin… All values are in Networks and coins.Limits: 1–32
referencestring | nullYour order number: comes back in payments and events. Up to 190 characters.Limits: 1–190
payoutarray<object> | nullPayout recipients for this address instead of the shop rule: up to 5 addresses, shares add up to 100.Limits: ≤ 5
payout[].addressstringrequiredRecipient address.Limits: 1–128
payout[].percentstring | numberrequiredShare in percent: a string "33.33" or a number.

Request example

curl -X POST "https://coinspay.app/api/v1/addresses" \
  -H "Authorization: Bearer cpk_…" \
  -H "Content-Type: application/json" \
  -d '{"chain":"tron","reference":"order-1042"}'

Response201

JSON
{
  "address": {
    "id": "6f1c2b0e-4d8a-4c3e-9b21-7a5d0e3f8c42",
    "chain": "tron",
    "address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
    "reference": "order-1042",
    "payout": [
      {
        "address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
        "percent": "string"
      }
    ],
    "pay_url": "https://coinspay.app/pay/qqsdt9e40kii",
    "invoice_id": null,
    "created_at": "2026-10-16T09:12:44.512Z"
  }
}

Address — 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.
429Too many requests: RATE_LIMITED. Retry later.
503Temporarily unavailable: CORE_UNAVAILABLE, RATE_UNAVAILABLE (no fresh rate) or NETWORK_FEE_TOO_HIGH (network gas above the cap). Retry later.

List addresses

GET/api/v1/addresses

Shop addresses, newest first, paginated.

Query parameters

FieldDescription
chainstringOnly this network.
referencestringOrder number, exact match.
addressstringShop address, 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/addresses?limit=20" \
  -H "Authorization: Bearer cpk_…"

Response200

JSON
{
  "addresses": [
    {
      "id": "6f1c2b0e-4d8a-4c3e-9b21-7a5d0e3f8c42",
      "chain": "tron",
      "address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
      "reference": "order-1042",
      "payout": [
        {
          "address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
          "percent": "string"
        }
      ],
      "pay_url": "https://coinspay.app/pay/qqsdt9e40kii",
      "invoice_id": null,
      "created_at": "2026-10-16T09:12:44.512Z"
    }
  ],
  "next_cursor": null
}

Address — 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 an address

GET/api/v1/addresses/{id}

A shop address by id. Another shop's address looks like a missing one: 404.

Path parameters

FieldDescription
idstringrequiredPublic id.

Request example

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

Response200

JSON
{
  "address": {
    "id": "6f1c2b0e-4d8a-4c3e-9b21-7a5d0e3f8c42",
    "chain": "tron",
    "address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
    "reference": "order-1042",
    "payout": [
      {
        "address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
        "percent": "string"
      }
    ],
    "pay_url": "https://coinspay.app/pay/qqsdt9e40kii",
    "invoice_id": null,
    "created_at": "2026-10-16T09:12:44.512Z"
  }
}

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