cancel_order – Stornieren

Storniert, solange nichts versendet ist. Bestand und Mandatsbudget werden zurückgebucht.

HTTP
POST /api/orders/{order_id}/cancel
Zugang
Konto optional
Bereich
Bestellung
Nur lesend
nein

Formular

Bestell-ID aus checkout

Eingabeschema (JSON Schema)

{
    "type": "object",
    "properties": {
        "order_id": {
            "type": "string",
            "description": "Bestell-ID aus checkout"
        },
        "reason": {
            "type": "string"
        }
    },
    "required": [
        "order_id"
    ]
}

REST

curl -X POST https://anltx.com/api/orders/<order_id>/cancel \
  -H "Content-Type: application/json" -H "Idempotency-Key: $(uuidgen)" \
  -d '{}'

MCP

{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
        "name": "cancel_order",
        "arguments": {
            "order_id": "<order_id>"
        }
    }
}

Alle Werkzeuge