request_return – Rücksendung

Rücksendung für zugestellte Artikel innerhalb der Frist anmelden; ohne items alle rückgabefähigen Positionen. Der Händler nennt die Rücksendeadresse und erstattet nach Eingang.

HTTP
POST /api/orders/{order_id}/returns
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",
            "enum": [
                "defective",
                "wrong_item",
                "not_as_described",
                "no_longer_needed",
                "other"
            ]
        },
        "comment": {
            "type": "string"
        },
        "items": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "offer_id": {
                        "type": "string"
                    },
                    "quantity": {
                        "type": "integer"
                    }
                },
                "required": [
                    "offer_id"
                ]
            }
        }
    },
    "required": [
        "order_id",
        "reason"
    ]
}

REST

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

MCP

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

Alle Werkzeuge