NEAR Intents: Cancel an order
https://1click.chaindefuser.com/docs/v0/openapi.yaml post /v0/orders/{orderId}/cancel Requests asynchronous cancellation. Unspent input is refunded and successfully filled output is withdrawn.
Errors. Branch on code, never on title or detail. New codes arrive without a major
version, so treat an unrecognized code as the HTTP status alone.
| Status | Codes |
|---|---|
| 400 | order-rejected |
| 401 | authentication-required |
| 404 | order-not-found |
| 429 | rate-limit-exceeded |
| 500 | internal-error |
| 503 | service-unavailable |