Webhook reference: invoice.statusChanged
Reference schema for outbound webhooks Cryptonly POSTs to your configured HTTPS webhookUrl. Each delivery includes an x-webhook-signature header (HMAC-SHA256 over the raw JSON body). This route exists for Swagger documentation only; implement verification and handling on your own server.
Required scope: invoices.list.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
object
object
object
Optional reference for the customer on the payment page, when set at creation.
Browser CTA URL for cancelled / expired, when provided at creation.
Browser CTA URL for paid / overpaid, when provided at creation.
Browser CTA URL for failed / suspended / partially_paid, when provided at creation.
ISO 8601 timestamp.
ISO 8601 timestamp.
When payment settled (ISO 8601), if applicable.
Merchant-supplied customer reference when provided at creation.
Opaque string from creation; echoed on webhooks when set.
Hosted payment page URL for this invoice.
X402 payment URL for AI agents. A request without payment answers 402 Payment Required with a PAYMENT-REQUIRED header listing the price in each stablecoin; a retry with a signed PAYMENT-SIGNATURE pays the invoice. Treat the invoice status, not that HTTP 200, as the outcome. Omitted when x402 is off for the invoice.
How the payer paid, once a payment was seen: address (a transfer to the deposit address) or x402 (an agent paid x402Url).
Creation channel; omitted when unknown (rows created before this metadata existed).
Status immediately before this transition.
ISO 8601 timestamp when Cryptonly signed and sent the webhook.
Examples
Sample invoice.statusChanged payload
{ "event": "invoice.statusChanged", "data": { "id": "eb512d0c-4d17-4338-b91b-72e18515776b", "accountId": "aa9c24c6-e9ed-4085-9d14-b89c673bcb5c", "orderId": "order_webhook_reference_001", "amount": 49.99, "fiatCurrencyCode": "USD", "items": [], "status": "paid", "cryptoCurrencyCode": "USDT_TRC20", "cryptoAmountExpected": 50, "cryptoAmountReceived": 50, "settlement": { "amountPaid": 50, "amountPaidUsd": 50, "commissionAmount": 0.5, "commissionAmountUsd": 0.5, "networkFeeAmount": 1, "networkFeeAmountUsd": 0.1, "networkFeeCurrencyCode": "TRX", "netAmount": 49.5, "netAmountUsd": 49.5, "completedAt": "2026-10-29T06:02:12.420Z" }, "description": "Webhook reference example", "expiresAt": "2026-10-29T06:02:12.420Z", "createdAt": "2026-10-29T06:02:12.420Z", "source": "api", "paymentPageUrl": "https://payment.cryptonly.com/invoice/test-webhook-token", "paidAt": "2026-10-29T06:02:12.420Z" }, "timestamp": "2026-01-01T12:00:00.000Z"}Responses
Section titled “Responses”Reference endpoint acknowledged.
Request validation failed (e.g. missing or malformed body / query).
object
Stable machine-readable error code, namespaced under exceptions.. Always prefer branching on this value over message. See the per-route descriptions for the codes that route emits.
Human-readable explanation. Subject to wording changes; for programmatic checks use code instead.
Optional structured payload accompanying the error. For exceptions.rateLimit.exceeded includes msBeforeNext; for validation errors includes the offending field info.
object
Example
{ "code": "exceptions.auth.invalidApiKey", "message": "Invalid or missing API key"}Missing or invalid x-tenant-api-key header. Code: exceptions.auth.invalidApiKey.
object
Stable machine-readable error code, namespaced under exceptions.. Always prefer branching on this value over message. See the per-route descriptions for the codes that route emits.
Human-readable explanation. Subject to wording changes; for programmatic checks use code instead.
Optional structured payload accompanying the error. For exceptions.rateLimit.exceeded includes msBeforeNext; for validation errors includes the offending field info.
object
Example
{ "code": "exceptions.auth.invalidApiKey", "message": "Invalid or missing API key"}Request origin IP is not on the tenant API allowlist (exceptions.auth.ipNotAllowed), or the API key is missing the scope required by this operation (exceptions.auth.insufficientScope).
object
Stable machine-readable error code, namespaced under exceptions.. Always prefer branching on this value over message. See the per-route descriptions for the codes that route emits.
Human-readable explanation. Subject to wording changes; for programmatic checks use code instead.
Optional structured payload accompanying the error. For exceptions.rateLimit.exceeded includes msBeforeNext; for validation errors includes the offending field info.
object
Example
{ "code": "exceptions.auth.invalidApiKey", "message": "Invalid or missing API key"}Rate limit exceeded for this endpoint. Retry after the window resets. Code: exceptions.rateLimit.exceeded. The extension.msBeforeNext field tells you how long to wait.
object
Stable machine-readable error code, namespaced under exceptions.. Always prefer branching on this value over message. See the per-route descriptions for the codes that route emits.
Human-readable explanation. Subject to wording changes; for programmatic checks use code instead.
Optional structured payload accompanying the error. For exceptions.rateLimit.exceeded includes msBeforeNext; for validation errors includes the offending field info.
object
Example
{ "code": "exceptions.auth.invalidApiKey", "message": "Invalid or missing API key"}Unexpected server error. Safe to retry idempotent operations after a backoff.
object
Stable machine-readable error code, namespaced under exceptions.. Always prefer branching on this value over message. See the per-route descriptions for the codes that route emits.
Human-readable explanation. Subject to wording changes; for programmatic checks use code instead.
Optional structured payload accompanying the error. For exceptions.rateLimit.exceeded includes msBeforeNext; for validation errors includes the offending field info.
object
Example
{ "code": "exceptions.auth.invalidApiKey", "message": "Invalid or missing API key"}