Mark an order as DISAPPEARED (removed externally). Use this if the order was cancelled in your shop and should no longer be tracked by Komfortkasse.
Difference vs cancel: remove means the order has vanished from your shop (sets paymentStatus to DISAPPEARED), while cancel means the order was explicitly cancelled (sets paymentStatus to CANCELLED). Both stop reminders, but they are distinct payment statuses.
Query parameters
-
Set to true to include the list of Postings in the response.
Default value is
false. -
Set to true to include the list of collection events in the response.
Default value is
false. -
Set to true to include the list of payment reminders in the response.
Default value is
false. -
Set to true to include the list of refunds in the response.
Default value is
false.
curl \
--request POST 'https://ssl.komfortkasse.eu/api/v2/order/remove/123456' \
--header "X-Komfortkasse-API-Key: $API_KEY"
{
"date": "25-04-2018",
"customerEmail": "max@example.org",
"customerNumber": "7890",
"type": "INVOICE",
"paymentMethod": "banktransfer",
"paymentMethodDescription": "Payment by Invoice",
"statusDescription": "shipped",
"amount": 22.38,
"currency": "EUR",
"exchangeRate": 1.0,
"language": "de",
"items": [
{
"number": "1826353",
"name": "T-Shirt"
},
{
"number": "7633-black",
"name": "Jeans black"
}
],
"invoiceNumbers": [
"100072533"
],
"shippingNumbers": [
"897126743438923093287376"
],
"billing": {
"gender": "male",
"firstName": "Max",
"lastName": "Mustermann",
"street": "Bahnhofstr. 14",
"postCode": "63073",
"city": "Offenbach am Main",
"countryCode": "DE",
"phone": "+49 8033 603 9778"
},
"shipping": {
"gender": "company",
"company": "Mustermann GmbH",
"street": "Industriestr. 33",
"postCode": "63073",
"city": "Offenbach am Main",
"countryCode": "DE"
},
"number": "123456",
"referenceNumber": "K1234A",
"paymentStatus": "UNPAID"
}
{
"error": "Invalid request"
}
{
"error": "API Key missing"
}
{
"error": "Order not found"
}