Contract summary and deferred submission
This page describes how to hand out the contract summary (EECC, German Vertragszusammenfassung) to the customer and how to submit the order later, e.g. in a nightly batch instead of right after the sales conversation. The flow is the same for all providers (e.g. Vodafone and Telekom); see Provider-agnostic order submission for the differences that remain.
Why two phases?
The customer has to receive the contract summary before the contract is concluded. The contract summary describes exactly the cart that is ordered, so it is created for one specific order context, the orderId.
That gives you two phases:
- With the customer: create the contract summary, hand it out and collect the customer's consents.
- Later: submit the order with the same
orderId.
Phase 1: with the customer
1. Check availability (landline products)
GET /p/{project}/availability/products
2. Create the contract summary
POST /p/{project}/cart/contractSummary
Send the order with businessProcess, cart and, for landline products, lineAddress. The response contains:
data.orderId: the order context. Store it together with your own record.data.document: the contract summary, Base64-encoded (type: contract-summary,contentType: application/pdf; the value is detected from the document, so check it).
The contract summary is created by the provider's systems, so this call can take a few seconds. If the provider is not reachable you get a 5xx response and no orderId; retry later.
Using your own contract summary: if you create the contract summary yourself, upload it with POST /p/{project}/cart/contractSummary/upload (orderId and document, PDF only) or send it with the submit in order.documents (type: contract-summary). Please agree on this with TK-World beforehand; not every project supports it.
3. Hand out the contract summary and collect consents
Hand out the PDF to the customer. To find out which consents the customer has to give, call
POST /p/{project}/directOrder/validate with the orderId and the customer data (order.data)
and read data.consents (they are only returned when the data is valid):
mandatory: all of them must be accepted, otherwise the submit is rejected.optional: may be accepted.documents: documents the customer has to be able to read (e.g. terms and conditions).
Store for each accepted consent the time the customer accepted it. Send that time as acceptedAt on submit, not the time of the submit.
Phase 2: submit later
POST /p/{project}/directOrder/submit
{
"orderId": "<orderId from phase 1>",
"partnerReference": "<your unique order number>",
"order": {
"orderType": "...",
"data": { "...": "customer data" },
"consents": {
"mandatory": [
{ "id": 1, "acceptedAt": "2026-11-04T10:15:00+01:00" }
],
"optional": []
}
}
}
With the orderId the cart, the address and the business process come from phase 1; don't send them again (see Using orderId). The availability is not checked again on submit.
Responses
| Status | Meaning | What to do |
|---|---|---|
201 | Order created, data.tkwId is our order number. | Store the tkwId. |
202 | Order created as data.tkwId, but forwarding to the provider failed. Our back office takes care of it. | Do not submit again. Track the status with the tkwId. |
400 / 422 | Malformed request (400) or invalid/missing data (422), e.g. a missing mandatory consent or customer field. | Fix the data and submit again with the same orderId. |
404 | The orderId is unknown or has expired. | Start again with phase 1 (see below). |
409 | An order with this partnerReference already exists; errors.title names its tkwId. | Do not submit again. |
503 | Temporarily unavailable, no order was created. | Retry the same request later. |
Lifetime of the orderId
An orderId is kept for 2 days after its last change. Every call to directOrder/validate with the orderId counts as a change and restarts the 2 days.
- Plan your batch so that orders are submitted within 2 days after the contract summary was created.
- If the
orderIdhas expired (404), the order has to be started again with phase 1. The customer then gets a new contract summary and has to give the consents again; an old contract summary must not be reused for a neworderId. - If you need a longer period between phase 1 and phase 2, talk to us before you go live.
Avoiding duplicate orders
Deferred submission usually means retries. To make them safe:
- Always send a unique
partnerReference(your own order number). A second submit with the samepartnerReferenceis rejected with409and the existingtkwId. - Submit each
orderIdonly once successfully. - After
202the order exists; do not resubmit it.
After the submit
With the scope manage-order (see OAuth2 Authentication) you can track the order:
GET /o/{tkwId}/status: order status at TK-WorldGET /o/{tkwId}/providerStatus: status at the providerGET /o/list: list of your orders