Skip to main content
POST
https://api.trycase.ai/api/v1
/
orders
/
{id}
/
cancel
curl -X POST "https://api.trycase.ai/api/v1/orders/ord_2025_0042/cancel" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "id": "ord_2025_0042",
  "order_number": "ORD-2025-0042",
  "status": "cancelled",
  "cancelled_at": "2025-01-15T15:00:00Z",
  "refund": {
    "amount_cents": 74500,
    "status": "processing"
  }
}

Cancel Order

Cancel an order. Orders can only be cancelled before they ship.
Once an order has shipped, it cannot be cancelled. Contact the supplier directly for returns.
id
string
required
The unique order ID
curl -X POST "https://api.trycase.ai/api/v1/orders/ord_2025_0042/cancel" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "id": "ord_2025_0042",
  "order_number": "ORD-2025-0042",
  "status": "cancelled",
  "cancelled_at": "2025-01-15T15:00:00Z",
  "refund": {
    "amount_cents": 74500,
    "status": "processing"
  }
}