Partner guide · Customer

Customer EDI integration

For trading partners that send orders to Kosatec and receive order responses, dispatch notifications, and invoices.

Related reference: KOSATEC E-Services documentation (PDF)

01 · Order intake

Ways to send orders to Kosatec

Select a method to see its address, format, authentication, and current behavior. The method and document format are agreed during partner onboarding.

HTTP · XML request and response

POST /v1/addOrder

Send the customer XML order document with cid and pass in its body. The endpoint uses the /v1 XML contract and returns an XML confirmation with status and code. The complete endpoint reference and examples are in Add an order.

  • Recommended request header: Content-Type: application/xml.
  • This endpoint accepts the documented customer XML format, not an OpenTrans ORDER.
  • Use the partner-format HTTP endpoint or an agreed file-transfer integration for OpenTrans.
Download standard XML order sample

HTTP · customer-specific format

POST /{customer}/{key}/order

Use the exact customer-specific URL and key supplied by Kosatec. The {customer} path segment is separate from the cid field used by the /v1 API. Submit the document format agreed for the integration; OpenTrans 2.1 can be used when selected.

  • The response uses the document format agreed for this customer integration.
  • Errors are reported in the XML body and mapped to HTTP status codes; rejected credentials return 401 and retryable service failures return 503.
  • This route is separate from the /v1 API. The exact URL and format are provided for the integration.

Request shape

POST https://{api-host}/{customer}/{key}/order
Content-Type: application/xml

<!-- Request body uses the document format agreed for your integration. -->

There is no universal body schema for this route; the body and response follow the format agreed for the specific integration.

Download OpenTrans 2.1 ORDER sample

File transfer · inbound order files

FTP/SFTP inbox

Place order files in the agreed customer inbox using the agreed file format and naming convention. The inbox is checked every five minutes. Successfully processed files are removed from the pickup folder; an order response is placed in the agreed response folder when enabled for the integration.

OpenTrans 2.1 can be used for file exchange when selected for the integration. The actual folders, filename pattern, and expected response format are agreed during onboarding.

02 · Customer API

/v1 XML API reference

Use the environment-specific API base URL supplied for your integration with the paths below. Requests and responses use XML. Send Content-Type: application/xml; customer data endpoints authenticate with cid and pass in the XML body. The read endpoints also have GET routes, but POST with an XML body is recommended. Responses use application/xml or text/xml, depending on the endpoint. Standard responses use a <root> element; successful invoice detail responses use <invoice>.

Download XML samples

Request files contain placeholders or example identifiers; replace them with your integration credentials, customer-approved products, order references, and dates. Response files are examples of the XML shape, not live order or invoice data.

Endpoint Request sample Response sample
Add order XML request Success response · Error response
Order list XML request XML response
Order detail XML request XML response
Invoice list XML request XML response
Invoice detail XML request XML response
Status No request body Available · Unavailable

Order format downloads

Use the sample matching the agreed order format. The /v1/addOrder request includes API credentials; the standard file-transfer example does not. The OpenTrans file illustrates an OpenTrans 2.1 ORDER.

Create an order

POST /v1/addOrder

Creates an order from the customer XML contract and returns the created order as XML. An existing non-empty order_reference for the same customer is rejected.

Request fields

XML element Required Meaning / constraints
cid Yes Customer number issued for the integration.
pass Yes Customer API key supplied by Kosatec.
order_reference No Your order reference. When non-empty, it must be unique for this customer.
shipping_address No Omit or leave empty to use the saved customer address. If supplied, include addressline1, zip, city, and a two-letter country code. Company, name, phone, and email are optional.
item Yes · repeatable At least one item is required. Each item must include a product identifier in sku and positive integer qty.
item.price No If provided, must be a positive number. When omitted, the order uses the customer price available to the integration.
item.position, reference, customer_sku No Optional line position, your line reference, and your own product identifier.
order_reference2/3, test, express, dropshipping, oversized, mail, email, notification_url, invoice_url, text No Optional secondary references, order flags, email preferences, callback addresses, and free text.

Product identifiers may be a Kosatec SKU, MPN, or EAN. Callback addresses, when supplied, receive customer document notifications according to the integration.

Example request

<root>
  <cid>YOUR_CID</cid>
  <pass>YOUR_CUSTOMER_KEY</pass>
  <order_reference>PO-2026-1042</order_reference>
  <express>false</express>
  <shipping_address>
    <company>Example GmbH</company>
    <firstname>Alex</firstname>
    <name>Example</name>
    <addressline1>Example Street 8</addressline1>
    <zip>38112</zip>
    <city>Braunschweig</city>
    <country>DE</country>
    <email>orders@example.test</email>
  </shipping_address>
  <item>
    <position>1</position>
    <sku>1446</sku>
    <qty>2</qty>
    <price>29.90</price>
    <reference>LINE-1</reference>
  </item>
</root>

Example success response (excerpt)

<root>
  <status>OK</status>
  <code>100</code>
  <cid>YOUR_CID</cid>
  <date>2026-11-18T10:30:00+00:00</date>
  <order_id>90012345</order_id>
  <order_reference>PO-2026-1042</order_reference>
  <order_status>in progress</order_status>
  <shipping_address>
    <company>Example GmbH</company>
    <addressline1>Example Street 8</addressline1>
    <zip>38112</zip>
    <city>Braunschweig</city>
    <country>DE</country>
  </shipping_address>
  <item>
    <sku>1446</sku>
    <qty>2</qty>
    <price>29.90</price>
    <eta>2026-11-19T00:00:00+00:00</eta>
    <reference>LINE-1</reference>
  </item>
</root>

Read orders

GET|POST /v1/getOrderList

Lists the authenticated customer's orders with an assigned order identifier. The default date range is the previous two months through today. Supplied dates are inclusive calendar dates.

Example request

<root>
  <cid>YOUR_CID</cid>
  <pass>YOUR_CUSTOMER_KEY</pass>
  <start_date>2026-10-01</start_date>
  <end_date>2026-10-31</end_date>
</root>

Example response

<root>
  <status>OK</status>
  <code>100</code>
  <cid>YOUR_CID</cid>
  <start_data>2026-10-01</start_data>
  <end_date>2026-10-31</end_date>
  <item>
    <order_id>90012345</order_id>
    <order_reference>PO-2026-1042</order_reference>
    <date>2026-10-10T08:15:00+00:00</date>
  </item>
</root>

Use YYYY-MM-DD for date filters. The response element is currently spelled start_data (not start_date).

Read one order

GET|POST /v1/getOrderDetail

Returns order details for an order owned by the authenticated customer. order_id must be the assigned alphanumeric order identifier.

Example request

<root>
  <cid>YOUR_CID</cid>
  <pass>YOUR_CUSTOMER_KEY</pass>
  <order_id>90012345</order_id>
</root>

Example response (excerpt)

<root>
  <status>OK</status>
  <code>100</code>
  <cid>YOUR_CID</cid>
  <order_id>90012345</order_id>
  <order_reference>PO-2026-1042</order_reference>
  <order_status>in progress</order_status>
  <shipping_address>
    <addressline1>Example Street 8</addressline1>
    <zip>38112</zip>
    <city>Braunschweig</city>
    <country>DE</country>
  </shipping_address>
  <item>
    <sku>1446</sku>
    <qty>2</qty>
    <price>29.90</price>
    <eta>2026-11-19T00:00:00+00:00</eta>
  </item>
</root>

The response also includes order references, flags, shipping address, email and text fields, and line items. order_status is in progress or completed. When shipment information is available, it includes shipped entries with invoice IDs, tracking details, shipped items, and serial numbers when present.

Read invoices

GET|POST /v1/getInvoiceList

Lists invoice references for the authenticated customer. The default range is the previous two months through today; start_date and end_date can narrow the range.

Example request

<root>
  <cid>YOUR_CID</cid>
  <pass>YOUR_CUSTOMER_KEY</pass>
  <start_date>2026-10-01</start_date>
  <end_date>2026-10-31</end_date>
</root>

Example response

<root>
  <status>OK</status>
  <code>100</code>
  <cid>YOUR_CID</cid>
  <start_data>2026-10-01</start_data>
  <end_date>2026-10-31</end_date>
  <item>
    <invoice_id>320045</invoice_id>
    <order_reference>PO-2026-1042</order_reference>
    <order_reference2>SUP-7781</order_reference2>
    <date>2026-10-22T00:00:00+00:00</date>
  </item>
</root>

Use YYYY-MM-DD for date filters. The list response uses the current element spelling start_data. If invoice data cannot be retrieved, the endpoint returns an XML error code.

Read one invoice

GET|POST /v1/getInvoiceDetail

Returns invoice XML for invoice_id when available to the customer.

Example request

<root>
  <cid>YOUR_CID</cid>
  <pass>YOUR_CUSTOMER_KEY</pass>
  <invoice_id>320045</invoice_id>
</root>

Example response (excerpt)

<invoice>
  <status>OK</status>
  <code>100</code>
  <cid>YOUR_CID</cid>
  <currency>EUR</currency>
  <issue_date>2026-10-22T00:00:00+00:00</issue_date>
  <invoice_id>INV320045</invoice_id>
  <order_reference1>PO-2026-1042</order_reference1>
  <items>
    <item>
      <sku>1446</sku>
      <description>Example product</description>
      <qty>2</qty>
      <price>29.90</price>
      <taxRate>0.19</taxRate>
    </item>
  </items>
  <amounts>
    <line_total_amount>59.80</line_total_amount>
    <tax_total_amount>11.36</tax_total_amount>
    <total_amount>71.16</total_amount>
  </amounts>
</invoice>

The response can also contain buyer and shipping parties, order references, item identifiers and serial numbers, shipping costs, and additional fees.

Service health

GET /v1/status

Returns the current service status and numeric code. No customer credentials are required.

Example response

<root>
  <status>OK</status>
  <code>100</code>
</root>

If the service is unavailable, the body reports ServiceUnavailable with code 101.

/v1 status and error codes

/v1 application errors are returned in XML with a status name and numeric code. These routes normally return HTTP 200 even when the XML body reports an error; check the XML code rather than relying only on the HTTP status.

100
OK
101
Service unavailable
102
Wrong XML format
103
Unauthorized
104
Incomplete delivery address
105
Product not found
106
Wrong price
107
Customer not enabled for EDI orders
108
Order or invoice not found
109
Invalid country code
110
No SSL connection
111
Order reference already exists
112
Internal error
113
ESD order temporarily unavailable
114
Customer not enabled for ESD

Example error body: <root><status>OrderNotFound</status><code>108</code></root>

03 · Outbound documents

Documents Kosatec sends to customers

Document format and delivery are agreed for each customer integration. FTP/SFTP and webhook delivery may both be used when both are arranged.

Document/event FTP/SFTP destination Webhook destination
Order response Agreed order-response folder Callback URL provided for the order
Dispatch notification Agreed dispatch folder Callback URL provided for the order; sent when shipments exist
Invoice Agreed invoice folder Invoice callback URL

Delivery behavior

  • Outbound files are generated with the format agreed for the customer integration.
  • Dispatch notifications are not produced until shipment data exists.
  • Some integrations receive one invoice file per order when an invoice covers multiple orders.
  • Some customer integrations use a partner-specific API instead of webhooks.

Webhook behavior

  • XML payload with Content-Type: application/xml.
  • Customer Basic Authentication is used when credentials are agreed for the callback.
  • Retries up to three times with a one-second delay.
  • For compatibility with older EDI servers, the current client does not verify the remote TLS certificate.

04 · OpenTrans

OpenTrans 2.1 for customers

OpenTrans 2.1 is available for selected customer integrations; it is not used by every customer. The /v1/addOrder endpoint expects the customer XML format.

Customer document direction

Received from customer
ORDER
Sent to customer
ORDERRESPONSE, DISPATCHNOTIFICATION, INVOICE

Schema and settings

  • Version 2.1 with OpenTrans and BMEcat namespaces.
  • Defaults: EUR, tax rate 0.19, order unit C62.
  • Commercial values and schema validation depend on the partner integration.