Invoices

Cancel Invoice

Cancel a pending invoice that should no longer accept payment.

Endpoint

Method
POST
URL
https://crptox.com/api/v1/invoices/{uuid}/cancel

Path Parameter

uuid

The unique identifier of the invoice.

Example Request

Request BASH
curl -X POST https://crptox.com/api/v1/invoices/INVOICE_UUID/cancel \
  -H "Authorization: Bearer YOUR_API_SECRET"

Example Response

Response JSON
{
  "invoice": {
    "uuid": "9f7c2c4a-....",
    "number": "INV-202609260001",
    "status": "cancelled",
    "amount": "10.000000",
    "asset": "usdt",
    "network": "tron",
    "expires_at": "2026-09-26T01:30:00+00:00"
  },
  "payment": {
    "uuid": "1c4a....",
    "address": "T...",
    "amount": "10.000000",
    "asset": "usdt",
    "network": "tron",
    "status": "cancelled",
    "expires_at": "2026-09-26T01:30:00+00:00"
  }
}

Cancellation

Cancellation is merchant-scoped. Only the merchant that owns the invoice can cancel it.