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/addressesA 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
| Field | Description |
|---|---|
chainstringrequired | Network of the address: tron, ethereum, bitcoin… All values are in Networks and coins.Limits: 1–32 |
referencestring | null | Your order number: comes back in payments and events. Up to 190 characters.Limits: 1–190 |
payoutarray<object> | null | Payout recipients for this address instead of the shop rule: up to 5 addresses, shares add up to 100.Limits: ≤ 5 |
payout[].addressstringrequired | Recipient address.Limits: 1–128 |
payout[].percentstring | numberrequired | Share 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
{
"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
| 400 | The request failed validation: VALIDATION_ERROR with fields and reasons in details; UNKNOWN_CHAIN, UNKNOWN_ASSET, CHAIN_DISABLED, INVALID_ADDRESS, IDEMPOTENCY_KEY_REQUIRED. |
| 401 | No key or an invalid key: UNAUTHORIZED. |
| 403 | The 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. |
| 429 | Too many requests: RATE_LIMITED. Retry later. |
| 503 | Temporarily 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/addressesShop addresses, newest first, paginated.
Query parameters
| Field | Description |
|---|---|
chainstring | Only this network. |
referencestring | Order number, exact match. |
addressstring | Shop address, exact match. |
cursorstring | next_cursor of the previous page. |
limitinteger | Page 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
{
"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
| 400 | The request failed validation: VALIDATION_ERROR with fields and reasons in details; UNKNOWN_CHAIN, UNKNOWN_ASSET, CHAIN_DISABLED, INVALID_ADDRESS, IDEMPOTENCY_KEY_REQUIRED. |
| 401 | No key or an invalid key: UNAUTHORIZED. |
| 403 | The 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
| Field | Description |
|---|---|
idstringrequired | Public id. |
Request example
curl -X GET "https://coinspay.app/api/v1/addresses/4f7c2a52-8a6e-4c1d-9a51-0e3b6f1d2c11" \
-H "Authorization: Bearer cpk_…"Response200
{
"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
| 400 | The request failed validation: VALIDATION_ERROR with fields and reasons in details; UNKNOWN_CHAIN, UNKNOWN_ASSET, CHAIN_DISABLED, INVALID_ADDRESS, IDEMPOTENCY_KEY_REQUIRED. |
| 401 | No key or an invalid key: UNAUTHORIZED. |
| 403 | The 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. |
| 404 | Not found: NOT_FOUND. Another shop's record looks like a missing one. |