Submit an order to Komfortkasse after the order has been placed in your online shop.
Only submit orders that are relevant to Komfortkasse, so don't send orders that will be paid by PayPal or creditcard. (You might submit orders with these payment methods as order type OTHER if you know what you are doing.)
Re-submitting an order with the same orderNumber updates the existing order — for example, if the customer's email address or the order amount changed in your shop. The initialDunningLevel field is honoured only on the first submission of an order; on subsequent updates it must be omitted or 0.
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.
Body
Required
-
Order date, the date the customer placed the order. Format:
dd-MM-yyyy. -
Date on which the amount is due to pay (e.g., shipping date for INVOICE orders). Format:
dd-MM-yyyy. -
Email address of customer. Optional, but obviously needed if you want Komfortkasse to send payment information or reminders.
-
Customer number (if the customer has a classic customer number plus a username from a marketplace such as eBay, concat these numbers/usernames with a '/').
-
Order payment type:
INVOICE— invoice (German: Rechnung)PREPAYMENT— prepayment (German: Vorkasse)COD— cash on delivery (German: Nachnahme)OTHER— other payment type (will not be managed by Komfortkasse) — normally not needed
Values are
INVOICE,PREPAYMENT,COD, orOTHER. -
Additional order number from a 3rd party marketplace e.g. ebay.
-
Technical string or id of the payment method in your shop. For information only.
-
Readable description or name of your payment method. For information only.
-
String or id representing the order status in your shop. For information only.
-
Total order amount including all taxes, shipping, etc. This is the amount you expect to be paid. Format:
0.00. -
Currency of the order (ISO 4217).
-
Exchange rate, only needed if the order is in a currency where you don't have a Komfortkasse account.
-
Customer's order language (ISO format). Komfortkasse will send out emails to your customer in this language (if supported).
-
DEPRECATED, use
items. -
List of item numbers and names. Item numbers will be used for payment matching.
-
List of invoice numbers. Will be used for payment matching.
-
List of shipping (tracking) numbers. Will be used for payment matching. Highly recommended if using Komfortkasse for COD.
-
List of proforma invoice numbers. Will be used for payment matching. Can also be used for other informational numbers like proposal numbers, confirmation numbers, etc.
-
Billing (invoice) address (primary address).
-
Shipping address (secondary address). Optional if same as billing address.
-
Initial dunning level when creating an order (can only be used when creating a new order).
-
True if no automatic payment reminders should be sent for this order.
curl \
--request POST 'https://ssl.komfortkasse.eu/api/v2/order/123456' \
--header "X-Komfortkasse-API-Key: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"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"}}'
{
"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"
}
}
{
"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"
}