Submit multiple orders to Komfortkasse.
It is recommended to periodically (e.g. once per day) send all open orders to Komfortkasse in order to update any data that might have been changed (e.g., amount change, change of email address, etc.).
If you have a large amount of orders to send (more than 100), please split this call into multiple calls to avoid timeout errors.
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.
-
Order number, must be unique per shop.
curl \
--request POST 'https://ssl.komfortkasse.eu/api/v2/orders' \
--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"},"number":"123456","referenceNumber":"K1234A","paymentStatus":"UNPAID"},{"number":"123457","date":"26-04-2018","customerEmail":"anna@example.org","type":"PREPAYMENT","amount":49.9,"currency":"EUR","items":[{"number":"9001","name":"Hoodie blue"}],"billing":{"firstName":"Anna","lastName":"Schmidt","street":"Hauptstr. 5","postCode":"10115","city":"Berlin","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"
},
{
"number": "123457",
"date": "26-04-2018",
"customerEmail": "anna@example.org",
"type": "PREPAYMENT",
"amount": 49.9,
"currency": "EUR",
"items": [
{
"number": "9001",
"name": "Hoodie blue"
}
],
"billing": {
"firstName": "Anna",
"lastName": "Schmidt",
"street": "Hauptstr. 5",
"postCode": "10115",
"city": "Berlin",
"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"
}