{"openapi":"3.1.0","info":{"title":"Göllner Spedition: API for AI agents","version":"v1","description":"Interface for AI agents that act for business shippers: request a binding freight quote from Göllner Spedition, read its status and book it. The same operations are offered as MCP tools (mcp_url in GET /profile).\n\n## Steps to a contract\n1. **Request** (`POST /quotes`). A standard shipment can get an offer at once (200, status `offered`), binding until `binding_until`. Any other request is accepted as well and reviewed by a person (202, status `in_review`); the offer then comes by e-mail to `requester.email` during office hours. While a request is still being priced you get 202 `processing`. In both cases ask again at `status_url`.\n2. **Check and correct** (`POST /quotes/{quote_id}/booking` with `confirmed: false`). You get the binding summary: price, pickup date, addresses, `binding_until` and the terms. Nothing is booked and nothing is stored. Correct the booking and send it again with `confirmed: false` as often as you need. Show the summary to the person you act for.\n3. **Book** (the same booking with `confirmed: true`). This is the binding acceptance of our offer: the contract is concluded when we receive the booking (`contract_concluded_at` in the 201 answer). It is a chargeable transport order. Our dispatch team checks every order booked over this interface before it reaches transport planning and agrees on the pickup appointment with you; the terms name the reasons for which we may revoke the contract.\n\n## What we store\nFor a booking we store the contract: the offer (also as a PDF document), the booking data you send, your acceptance of the terms with the version you accepted, and the time we received the booking. An order confirmation goes by e-mail to `contact_email`. Keep the 201 answer as your record: it carries the order number, the time the contract was concluded and the terms with their version.\n\n## Terms\nOur terms for orders over digital interfaces: https://www.goellner-spedition.eu/en/legal/terms#digital, in German and English; the German version prevails. The German Freight Forwarders' Standard Terms and Conditions (ADSp 2017) apply to every order. The version in force comes with every offer as `terms.terms_version`. A booking accepts it with `accept_terms: true` and sends it back as `terms_version`; otherwise the answer is 409 `terms_version_mismatch` with `current_terms_version`.\n\n## Languages\nThis interface and all its answers are in English. Our terms are in German and English; the German version prevails. The e-mails to the requester (order confirmation, revocation) are in German or English: `language` in the quote request (de or en) decides; without it the Accept-Language header of that request; otherwise English.\n\n## Privacy\nOur privacy notice: https://www.goellner-spedition.eu/en/legal/privacy. Every answer carries `privacy_notice_url`: in `terms`, or at the top level of answers without terms and of every problem; this document carries it as `info.x-privacy_notice_url`.\n\n## quote_id\nThe `quote_id` is a bearer secret: whoever knows it can read the quote and book it. Keep it private.\n\n## Sandbox\nWith `sandbox: true` in the request the shipment is priced live and stored as a test entry; it never becomes a contract. Booking a sandbox quote only simulates the flow (201 with `sandbox: true`): no order exists and no e-mail goes to you.\n\n## Limits, errors and retries\n- Every `POST` sends its body as `application/json` and an `Idempotency-Key` header (see `x-idempotency` at the operation).\n- Requests are limited per IP address (10 per minute over all operations except `GET /openapi.json`, and per day for quote requests), per contact e-mail and company domain per day, by the number of different routes per contact and day, and to 5 booking attempts per quote and hour: 429 `rate_limited` with `Retry-After`. When our capacity for the day is reached: 503 `daily_capacity_reached`.\n- Errors are problem details (RFC 9457, `application/problem+json`) with a stable `code`; branch on `code`, not on the texts.\n- Another method on these paths gets 405 `method_not_allowed` with an `Allow` header, OPTIONS too: this interface is for servers and sends no CORS headers. An unknown path gets 404 `not_found`. An unexpected error gets 503 `service_unavailable`.\n- When the interface is switched off, every operation except `GET /profile` and `GET /openapi.json` answers 503 `agent_api_disabled`.","termsOfService":"https://www.goellner-spedition.eu/en/legal/terms#digital","x-privacy_notice_url":"https://www.goellner-spedition.eu/en/legal/privacy"},"servers":[{"url":"https://api.goellner-spedition.eu/agent/v1","description":"Production"}],"paths":{"/profile":{"get":{"operationId":"get_service_profile","summary":"Service profile","description":"Networks, countries, item types, when an instant price is given, request limits, certificates, locations and contact. Public, also when the interface is switched off.","responses":{"200":{"description":"Our service profile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentProfil"}}}},"429":{"description":"More than 10 requests from this IP address in this minute.\n\n- `rate_limited`: Too many requests","headers":{"Retry-After":{"$ref":"#/components/headers/Retry-After","description":"Seconds until the next minute."}},"content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["rate_limited"],"description":"The codes possible here."}}}]}}}}}}},"/openapi.json":{"get":{"operationId":"get_openapi_document","summary":"This OpenAPI document","description":"Public, also when the interface is switched off.","responses":{"200":{"description":"This OpenAPI 3.1 document.","content":{"application/json":{"schema":{"type":"object","description":"An OpenAPI 3.1 document."}}}}}}},"/quotes":{"post":{"operationId":"request_quote","summary":"Request a binding freight quote","description":"Send the shipment. A standard shipment can get an instant offer, binding until binding_until (200). Any other request is accepted and reviewed by a person; the offer comes by e-mail to requester.email during office hours (202 in_review). If pricing takes longer, you get 202 processing. In both cases ask again at status_url.","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Required. It must have 8 to 128 characters from A-Z, a-z, 0-9, _ and -. Use a new key for each new request and the same key when you repeat a request. The key belongs to the contact e-mail (requester.email): the same key from two contacts never collides. Same key and same body: no new request is created; you get the stored request again in its current status (the offer, 202 while it is priced or reviewed, or a later status such as booked or expired). Same key and a different body: 422 idempotency_mismatch; use a new key for a new request. The key is stored with the request; reuse it only to repeat that request.","schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,128}$"}},{"name":"Accept-Language","in":"header","required":false,"description":"Optional. Decides the language of e-mails to the requester (booking confirmation, revocation) when the body has no language: the entry with the highest q whose primary tag is de or en (e.g. de-DE gives de). Without it, or without de or en in it: English. It is not part of the request for idempotency: a repeat with the same body and Idempotency-Key is the same request, and the language of the first call stays. The answers of this interface are always in English.","schema":{"type":"string"}}],"x-idempotency":{"header":"Idempotency-Key","required":true,"pattern":"^[A-Za-z0-9_-]{8,128}$","scope":"The key belongs to the contact e-mail (requester.email): the same key from two contacts never collides.","same_key_same_body":"Same key and same body: no new request is created; you get the stored request again in its current status (the offer, 202 while it is priced or reviewed, or a later status such as booked or expired).","same_key_different_body":"Same key and a different body: 422 idempotency_mismatch; use a new key for a new request.","retention":"The key is stored with the request; reuse it only to repeat that request."},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentAnfrage"}}}},"responses":{"200":{"description":"An instant offer (status offered). For a repeated request whose status has moved on: its current status.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AgentAngebot"},{"$ref":"#/components/schemas/AgentStatusAntwort"}]}}}},"202":{"description":"Received without an instant offer: processing (still being priced) or in_review (a person reviews it). Ask again at status_url, not before Retry-After.","headers":{"Retry-After":{"$ref":"#/components/headers/Retry-After","description":"Always 10: status requests share the limit of 10 requests per minute and IP address."}},"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AgentInPruefung"},{"$ref":"#/components/schemas/AgentStatusAntwort"}]}}}},"400":{"description":"The body is not JSON, or the Idempotency-Key header is missing or malformed.\n\n- `invalid_json`: Invalid JSON\n- `idempotency_key_missing`: Idempotency key missing\n- `idempotency_key_invalid`: Invalid idempotency key","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["invalid_json","idempotency_key_missing","idempotency_key_invalid"],"description":"The codes possible here."}}}]}}}},"413":{"description":"The body is too large.\n\n- `payload_too_large`: Payload too large","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["payload_too_large"],"description":"The codes possible here."}}}]}}}},"415":{"description":"The body is not sent as application/json.\n\n- `unsupported_media_type`: Unsupported media type","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["unsupported_media_type"],"description":"The codes possible here."}}}]}}}},"422":{"description":"Wrong or missing fields, one entry per field in errors. Checks of the content come the same way, e.g. pickup_not_allowed with earliest_pickup, or country_not_served. idempotency_mismatch: this Idempotency-Key was already used with a different body.\n\n- `validation_failed`: Validation failed\n- `idempotency_mismatch`: Idempotency key reused","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["validation_failed","idempotency_mismatch"],"description":"The codes possible here."}}}]}}}},"429":{"description":"A request limit is reached: 10 per minute or the daily limit per IP address, the daily limit per contact e-mail or company domain, or the number of different routes per contact and day.\n\n- `rate_limited`: Too many requests","headers":{"Retry-After":{"$ref":"#/components/headers/Retry-After","description":"Seconds until the limit is free again: the next minute, or midnight Europe/Berlin for daily limits."}},"content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["rate_limited"],"description":"The codes possible here."}}}]}}}},"503":{"description":"Not available now.\n\n- `agent_api_disabled`: Agent API disabled\n- `agent_off`: Agent requests switched off\n- `sandbox_off`: Sandbox switched off\n- `daily_capacity_reached`: Daily capacity reached\n- `service_unavailable`: Service unavailable","headers":{"Retry-After":{"$ref":"#/components/headers/Retry-After","description":"With daily_capacity_reached: seconds until midnight Europe/Berlin. With service_unavailable when our limits cannot be checked or our pricing system does not answer."}},"content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["agent_api_disabled","agent_off","sandbox_off","daily_capacity_reached","service_unavailable"],"description":"The codes possible here."}}}]}}}}}}},"/quotes/{quote_id}":{"get":{"operationId":"get_quote_status","summary":"Status of a quote","description":"Status, and with offered the price and binding_until, with booked the order number.","parameters":[{"name":"quote_id","in":"path","required":true,"description":"The quote_id from the answer to POST /quotes. It is a bearer secret: whoever knows it can book the quote.","schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{22}$"}}],"responses":{"200":{"description":"Status of the quote. If our pricing system does not yet know a quote_id that we answered with 202 in the last 10 minutes, you get status processing with Retry-After instead of 404: ask again then.","headers":{"Retry-After":{"$ref":"#/components/headers/Retry-After","description":"With status processing for a quote_id our pricing system does not know yet: 10. Status requests share the limit of 10 requests per minute and IP address."}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentStatusAntwort"}}}},"404":{"description":"No quote with this quote_id. Within 10 minutes after a 202 answer its quote_id gets 200 processing instead (see 200).\n\n- `not_found`: Not found","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["not_found"],"description":"The codes possible here."}}}]}}}},"429":{"description":"More than 10 requests from this IP address in this minute.\n\n- `rate_limited`: Too many requests","headers":{"Retry-After":{"$ref":"#/components/headers/Retry-After","description":"Seconds until the next minute."}},"content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["rate_limited"],"description":"The codes possible here."}}}]}}}},"503":{"description":"Not available now; try again later.\n\n- `agent_api_disabled`: Agent API disabled\n- `service_unavailable`: Service unavailable","headers":{"Retry-After":{"$ref":"#/components/headers/Retry-After","description":"With most service_unavailable answers."}},"content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["agent_api_disabled","service_unavailable"],"description":"The codes possible here."}}}]}}}}}}},"/quotes/{quote_id}/booking":{"post":{"operationId":"book_quote","summary":"Summary or booking of a quote","description":"confirmed: false returns the binding summary; nothing is booked or stored. confirmed: true books: a binding, chargeable transport order under the terms of the offer. Possible while the quote is offered with booking: api, until binding_until.","parameters":[{"name":"quote_id","in":"path","required":true,"description":"The quote_id from the answer to POST /quotes. It is a bearer secret: whoever knows it can book the quote.","schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{22}$"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Required. It must have 8 to 128 characters from A-Z, a-z, 0-9, _ and -. Use a new key for each new request and the same key when you repeat a request. The key belongs to the quote (quote_id) and counts with confirmed: true. With confirmed: false nothing is booked or remembered; the key is only checked for its form. Same key and same body: the same answer again (e.g. the same 201 with the same order_number); nothing is booked twice. While the first booking with this key is still running: 409 booking_in_progress with Retry-After. Same key and a different body: 422 idempotency_mismatch; the first outcome stays. Another key for a quote that is already booked: 409 already_booked. Final outcomes (201, 409 already_booked, 410, 422 for the booking body) are remembered for 24 hours. Other outcomes are not remembered: retry with the same key. Without our idempotency store, confirmed: true is refused with 503 service_unavailable and nothing is booked. If you got 503 try_again_later and then 409 already_booked for the same quote, your earlier booking most likely succeeded: check status_url (status booked with order_number) instead of booking again.","schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{8,128}$"}}],"x-idempotency":{"header":"Idempotency-Key","required":true,"pattern":"^[A-Za-z0-9_-]{8,128}$","scope":"The key belongs to the quote (quote_id) and counts with confirmed: true. With confirmed: false nothing is booked or remembered; the key is only checked for its form.","same_key_same_body":"Same key and same body: the same answer again (e.g. the same 201 with the same order_number); nothing is booked twice. While the first booking with this key is still running: 409 booking_in_progress with Retry-After.","same_key_different_body":"Same key and a different body: 422 idempotency_mismatch; the first outcome stays. Another key for a quote that is already booked: 409 already_booked.","retention":"Final outcomes (201, 409 already_booked, 410, 422 for the booking body) are remembered for 24 hours. Other outcomes are not remembered: retry with the same key. Without our idempotency store, confirmed: true is refused with 503 service_unavailable and nothing is booked.","already_booked_after_try_again_later":"If you got 503 try_again_later and then 409 already_booked for the same quote, your earlier booking most likely succeeded: check status_url (status booked with order_number) instead of booking again."},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentBuchung"}}}},"responses":{"200":{"description":"confirmed: false: the binding summary. Nothing is booked or stored.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentZusammenfassung"}}}},"201":{"description":"confirmed: true: the order is placed and binding. For a sandbox quote the booking is only simulated (sandbox: true).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentGebucht"}}}},"400":{"description":"The body is not JSON, or the Idempotency-Key header is missing or malformed.\n\n- `invalid_json`: Invalid JSON\n- `idempotency_key_missing`: Idempotency key missing\n- `idempotency_key_invalid`: Invalid idempotency key","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["invalid_json","idempotency_key_missing","idempotency_key_invalid"],"description":"The codes possible here."}}}]}}}},"404":{"description":"No quote with this quote_id.\n\n- `not_found`: Not found","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["not_found"],"description":"The codes possible here."}}}]}}}},"409":{"description":"The booking conflicts with the terms in force, with a running booking under this Idempotency-Key or with the status of the quote.\n\n- `terms_version_mismatch`: Terms version mismatch\n- `booking_in_progress`: Booking in progress\n- `already_booked`: Already booked\n- `email_link_only`: Booking by e-mail link only\n- `not_bookable`: Not bookable","headers":{"Retry-After":{"$ref":"#/components/headers/Retry-After","description":"With booking_in_progress."}},"content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["terms_version_mismatch","booking_in_progress","already_booked","email_link_only","not_bookable"],"description":"The codes possible here."}}}]}}}},"410":{"description":"The offer is no longer open; request a new quote.\n\n- `expired`: Expired\n- `withdrawn`: Withdrawn","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["expired","withdrawn"],"description":"The codes possible here."}}}]}}}},"413":{"description":"The body is too large.\n\n- `payload_too_large`: Payload too large","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["payload_too_large"],"description":"The codes possible here."}}}]}}}},"415":{"description":"The body is not sent as application/json.\n\n- `unsupported_media_type`: Unsupported media type","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["unsupported_media_type"],"description":"The codes possible here."}}}]}}}},"422":{"description":"Wrong fields, or the booking does not fit the quote; one entry per field in errors. A pickup_date before the earliest pickup day comes as pickup_not_allowed with earliest_pickup. idempotency_mismatch: this Idempotency-Key was already used with a different body.\n\n- `validation_failed`: Validation failed\n- `insurance_mismatch`: Insurance mismatch\n- `idempotency_mismatch`: Idempotency key reused","content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["validation_failed","insurance_mismatch","idempotency_mismatch"],"description":"The codes possible here."}}}]}}}},"429":{"description":"More than 10 requests from this IP address in this minute, or more than 5 booking attempts with confirmed: true for this quote in this hour. Only attempts that pass the terms check count (the terms are in force and terms_version matches them); replaying a stored Idempotency-Key does not count, and neither does an attempt that ends in 503 service_unavailable because our pricing system did not answer properly.\n\n- `rate_limited`: Too many requests","headers":{"Retry-After":{"$ref":"#/components/headers/Retry-After","description":"Seconds until the next minute or the next hour."}},"content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["rate_limited"],"description":"The codes possible here."}}}]}}}},"503":{"description":"Not available now. try_again_later: the outcome of the booking is unknown; check status_url before you try again.\n\n- `agent_api_disabled`: Agent API disabled\n- `booking_unavailable`: Booking unavailable\n- `sandbox_off`: Sandbox switched off\n- `service_unavailable`: Service unavailable\n- `try_again_later`: Booking outcome unknown","headers":{"Retry-After":{"$ref":"#/components/headers/Retry-After","description":"With try_again_later and with most service_unavailable answers."}},"content":{"application/problem+json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Problem"},{"type":"object","properties":{"code":{"type":"string","enum":["agent_api_disabled","booking_unavailable","sandbox_off","service_unavailable","try_again_later"],"description":"The codes possible here."}}}]}}}}}}}},"components":{"schemas":{"AgentAnfrage":{"type":"object","properties":{"requester":{"type":"object","properties":{"company":{"type":"string","minLength":1,"maxLength":120,"description":"Legal name of the shipper company that asks for the quote."},"contact_name":{"type":"string","minLength":1,"maxLength":120,"description":"Full name of the person at the company who is responsible for this request."},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"E-mail of the contact person. A quote that needs review is sent to this address."},"phone":{"description":"Phone number of the contact person.","type":"string","minLength":1,"maxLength":40},"vat_id":{"description":"VAT identification number of the company; recommended for companies in the EU.","type":"string","minLength":1,"maxLength":20},"agent":{"description":"The AI agent acting for the requester; for our records only.","type":"object","properties":{"name":{"description":"Name of the AI agent or software that sends the request.","type":"string","minLength":1,"maxLength":120},"operator":{"description":"Company that operates the agent, if it is not the requester.","type":"string","minLength":1,"maxLength":120}},"additionalProperties":false}},"required":["company","contact_name","email"],"additionalProperties":false,"description":"The business shipper asking for the quote, and its contact person."},"pickup":{"type":"object","properties":{"country":{"type":"string","pattern":"^[A-Z]{2}$","description":"ISO 3166-1 alpha-2 country code in upper case, e.g. DE."},"postal_code":{"type":"string","minLength":1,"maxLength":10,"description":"Postal code as written in the country, e.g. 30453."},"city":{"description":"City; optional, helps to place the postal code.","type":"string","minLength":1,"maxLength":120},"date":{"description":"Requested pickup date, YYYY-MM-DD. Omit it for the earliest possible pickup day.","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["country","postal_code"],"additionalProperties":false,"description":"Where the goods are picked up."},"delivery":{"type":"object","properties":{"country":{"type":"string","pattern":"^[A-Z]{2}$","description":"ISO 3166-1 alpha-2 country code in upper case, e.g. DE."},"postal_code":{"type":"string","minLength":1,"maxLength":10,"description":"Postal code as written in the country, e.g. 30453."},"city":{"description":"City; optional, helps to place the postal code.","type":"string","minLength":1,"maxLength":120}},"required":["country","postal_code"],"additionalProperties":false,"description":"Where the goods are delivered."},"items":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["euro_pallet","industrial_pallet","half_pallet","package"],"description":"Kind of piece: euro_pallet (120 x 80 cm), industrial_pallet (120 x 100 cm), half_pallet (60 x 80 cm) or package (any other piece, e.g. a carton)."},"quantity":{"type":"integer","minimum":1,"maximum":99,"description":"Number of identical pieces in this line, 1 to 99."},"length_cm":{"type":"integer","exclusiveMinimum":0,"maximum":1360,"description":"Length of one piece in cm, whole number."},"width_cm":{"type":"integer","exclusiveMinimum":0,"maximum":245,"description":"Width of one piece in cm, whole number."},"height_cm":{"type":"integer","exclusiveMinimum":0,"maximum":300,"description":"Height of one piece in cm including the pallet, whole number."},"weight_kg":{"type":"number","exclusiveMinimum":0,"maximum":24000,"description":"Gross weight of ONE piece in kg."},"stackable":{"type":"boolean","description":"true if the pieces of this line may be stacked on each other."}},"required":["type","quantity","length_cm","width_cm","height_cm","weight_kg","stackable"],"additionalProperties":false,"description":"One line of identical pieces."},"description":"1 to 20 lines of pieces."},"goods":{"type":"object","properties":{"description":{"description":"Short description of the goods, e.g. machine parts.","type":"string","minLength":1,"maxLength":200},"value_eur":{"description":"Value of the goods in EUR. If given, the quote includes cargo insurance on this value; omit it for a quote without insurance.","type":"number","exclusiveMinimum":0},"dangerous_goods":{"type":"boolean","description":"true if the shipment contains dangerous goods (ADR). Such a request is reviewed by a person."},"temperature_controlled":{"type":"boolean","description":"true if the goods need temperature control. Such a request is reviewed by a person."}},"required":["dangerous_goods","temperature_controlled"],"additionalProperties":false,"description":"What is shipped."},"services":{"type":"object","properties":{"pallet_exchange":{"description":"true if exchangeable pallets are to be exchanged at pickup and delivery, false if not. Omitted: no exchange.","type":"boolean"},"delivery_deadline":{"description":"Latest delivery date, YYYY-MM-DD. A request with a deadline is reviewed by a person.","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"notes":{"description":"Notes for our dispatch team, at most 500 characters. Only a person reads them; a request with notes is always reviewed by a person.","type":"string","minLength":1,"maxLength":500}},"additionalProperties":false,"description":"Optional services and wishes."},"sandbox":{"description":"true for a test request: it is priced live, marked as a test and never becomes a real order. Default false.","type":"boolean"},"language":{"description":"Language for e-mails to the requester (booking confirmation, revocation). Without it, the Accept-Language header of the request decides; otherwise English.","type":"string","enum":["de","en"]}},"required":["requester","pickup","delivery","items","goods"],"additionalProperties":false,"description":"A request for a binding freight quote, sent by an AI agent on behalf of a business shipper."},"AgentBuchung":{"type":"object","properties":{"confirmed":{"type":"boolean","description":"false: return the binding summary only, nothing is booked. true: book. Show the summary to a person first."},"pickup":{"type":"object","properties":{"company":{"type":"string","minLength":1,"maxLength":120,"description":"Company name at this address."},"street":{"type":"string","minLength":1,"maxLength":120,"description":"Street and house number."},"city":{"type":"string","minLength":1,"maxLength":120,"description":"City."},"contact_name":{"type":"string","minLength":1,"maxLength":120,"description":"Contact person on site."},"phone":{"type":"string","minLength":1,"maxLength":40,"description":"Phone number of the contact person on site."}},"required":["company","street","city","contact_name","phone"],"additionalProperties":false,"description":"Pickup address. Postal code and country are those of the quote."},"delivery":{"type":"object","properties":{"company":{"type":"string","minLength":1,"maxLength":120,"description":"Company name at this address."},"street":{"type":"string","minLength":1,"maxLength":120,"description":"Street and house number."},"city":{"type":"string","minLength":1,"maxLength":120,"description":"City."},"contact_name":{"type":"string","minLength":1,"maxLength":120,"description":"Contact person on site."},"phone":{"type":"string","minLength":1,"maxLength":40,"description":"Phone number of the contact person on site."}},"required":["company","street","city","contact_name","phone"],"additionalProperties":false,"description":"Delivery address. Postal code and country are those of the quote."},"pickup_date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Pickup date, YYYY-MM-DD; it must be a pickup day allowed for this quote."},"invoice_to":{"type":"string","enum":["sender","recipient","other"],"description":"Who receives the invoice: sender (pickup address), recipient (delivery address) or other (invoice_address)."},"invoice_address":{"type":"object","properties":{"company":{"type":"string","minLength":1,"maxLength":120,"description":"Company name for the invoice."},"street":{"type":"string","minLength":1,"maxLength":120,"description":"Street and house number."},"postal_code":{"type":"string","minLength":1,"maxLength":10,"description":"Postal code as written in the country."},"city":{"type":"string","minLength":1,"maxLength":120,"description":"City."},"country":{"type":"string","pattern":"^[A-Z]{2}$","description":"ISO 3166-1 alpha-2 country code in upper case, e.g. DE."},"vat_id":{"description":"VAT identification number of the invoice recipient.","type":"string","minLength":1,"maxLength":20}},"required":["company","street","postal_code","city","country"],"additionalProperties":false,"description":"Invoice address. Required if invoice_to is other, not allowed otherwise."},"reference":{"description":"Your order reference.","type":"string","minLength":1,"maxLength":60},"insurance":{"type":"boolean","description":"true to insure this shipment with a transport insurance on the goods value."},"goods_value_eur":{"description":"Value of the goods in EUR; needed for the insurance.","type":"number","exclusiveMinimum":0},"contact_email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"E-mail for the order confirmation and for questions about this order."},"accept_terms":{"type":"boolean","const":true,"description":"Must be true: you accept the terms (terms.terms_url and ADSp 2017) in the version terms_version."},"terms_version":{"type":"string","minLength":1,"maxLength":40,"description":"Version of the terms you accept, as given in terms.terms_version of the quote."},"authority_confirmed":{"type":"boolean","const":true,"description":"Must be true: you confirm that you may place this order for the named company."},"business_customer":{"type":"boolean","const":true,"description":"Must be true: the customer is a business (entrepreneur under section 14 BGB), not a consumer."}},"required":["confirmed","pickup","delivery","pickup_date","invoice_to","insurance","contact_email","accept_terms","terms_version","authority_confirmed","business_customer"],"additionalProperties":false,"description":"Booking of a quote. Send it with confirmed: false for the binding summary, then with confirmed: true. The booking is a binding, chargeable transport order under the terms given."},"AgentBedingungen":{"type":"object","properties":{"terms_url":{"type":"string","format":"uri","description":"Our terms for orders over digital interfaces, including the reasons for revocation."},"terms_version":{"type":"string","description":"Version of these terms; send it back as terms_version when booking."},"adsp_url":{"type":"string","format":"uri","description":"German Freight Forwarders' Standard Terms and Conditions 2017 (ADSp 2017), which apply to every order."},"liability_notice":{"type":"string","description":"Notice on liability that deviates from the statutory rules (section 449 (2) HGB)."},"withdrawal_reasons":{"type":"array","items":{"type":"string"},"description":"Named reasons that allow us to revoke the contract for a booked order (short form; the terms are binding)."},"privacy_notice_url":{"type":"string","format":"uri","description":"Our privacy notice."}},"required":["terms_url","terms_version","adsp_url","liability_notice","withdrawal_reasons","privacy_notice_url"],"additionalProperties":false,"description":"Terms that apply to the quote and to the booking."},"AgentAngebot":{"type":"object","properties":{"quote_id":{"type":"string","description":"Id of the quote (random, 22 characters). Whoever knows it can book the quote, so keep it private."},"status":{"type":"string","const":"offered","description":"The quote is offered and can be booked until binding_until."},"offer_number":{"type":"string","description":"Our offer number; quote it in any contact with us."},"price":{"type":"object","properties":{"net_eur":{"type":"number","description":"Net price in EUR for the whole shipment, without VAT."},"currency":{"type":"string","const":"EUR","description":"Always EUR."},"vat_note":{"type":"string","description":"How VAT applies to this price."}},"required":["net_eur","currency","vat_note"],"additionalProperties":false,"description":"Price of the shipment."},"pickup_earliest":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Earliest possible pickup date, YYYY-MM-DD."},"transit":{"type":"object","properties":{"description":{"type":"string","description":"Transit time in words."},"delivery_by":{"description":"Expected delivery date for the earliest pickup, YYYY-MM-DD, if known.","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["description"],"additionalProperties":false,"description":"Transit time."},"binding_until":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"The offer is binding until this time (ISO 8601 with offset)."},"terms":{"$ref":"#/components/schemas/AgentBedingungen"},"booking":{"type":"string","enum":["api","email_link_only"],"description":"api: book with POST /quotes/{quote_id}/booking (MCP book_quote). email_link_only: book only with the link in our e-mail."},"sandbox":{"description":"true for a test quote (sandbox request); it never becomes a real order.","type":"boolean","const":true}},"required":["quote_id","status","offer_number","price","pickup_earliest","transit","binding_until","terms","booking"],"additionalProperties":false,"description":"A binding offer that can be booked until binding_until."},"AgentInPruefung":{"type":"object","properties":{"quote_id":{"type":"string","description":"Id of the quote (random, 22 characters). Whoever knows it can book the quote, so keep it private."},"status":{"type":"string","enum":["processing","in_review"],"description":"processing: still being priced, ask again at status_url. in_review: a person reviews the request; the offer is sent to contact_email during office hours."},"message":{"type":"string","description":"Explanation for the person behind the agent."},"contact_email":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"E-mail address the offer will be sent to."},"status_url":{"type":"string","format":"uri","description":"URL to ask for the status of this quote (GET)."},"terms":{"description":"Terms that will apply to an offer and its booking, when already set.","$ref":"#/components/schemas/AgentBedingungen"},"privacy_notice_url":{"description":"Our privacy notice; given when this answer carries no terms (terms.privacy_notice_url otherwise).","type":"string","format":"uri"}},"required":["quote_id","status","message","contact_email","status_url"],"additionalProperties":false,"description":"The request was received but has no instant offer yet."},"AgentStatusAntwort":{"type":"object","properties":{"quote_id":{"type":"string","description":"Id of the quote (random, 22 characters). Whoever knows it can book the quote, so keep it private."},"status":{"type":"string","enum":["processing","in_review","offered","booked","cancelled","expired","withdrawn"],"description":"processing: being priced. in_review: reviewed by a person, the offer follows by e-mail. offered: can be booked until binding_until. booked: order placed (order_number). cancelled: the order will not be carried out (reason). expired: binding_until has passed. withdrawn: the offer was withdrawn, e.g. replaced by a new one."},"offer_number":{"description":"Our offer number, once there is an offer.","type":"string"},"price":{"type":"object","properties":{"net_eur":{"type":"number","description":"Net price in EUR for the whole shipment, without VAT."},"currency":{"type":"string","const":"EUR","description":"Always EUR."},"vat_note":{"type":"string","description":"How VAT applies to this price."}},"required":["net_eur","currency","vat_note"],"additionalProperties":false,"description":"Price of the shipment."},"binding_until":{"description":"With offered: the offer is binding until this time (ISO 8601 with offset).","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"order_number":{"description":"With booked: our order number.","type":"string"},"booking":{"type":"string","enum":["api","email_link_only"],"description":"api: book with POST /quotes/{quote_id}/booking (MCP book_quote). email_link_only: book only with the link in our e-mail."},"reason":{"description":"With cancelled: the reason, from the list in the terms.","type":"string"},"terms":{"description":"Terms that apply to the offer and its booking, when already set.","$ref":"#/components/schemas/AgentBedingungen"},"privacy_notice_url":{"description":"Our privacy notice; given when this answer carries no terms (terms.privacy_notice_url otherwise).","type":"string","format":"uri"}},"required":["quote_id","status"],"additionalProperties":false,"description":"Status of a quote."},"AgentGebucht":{"type":"object","properties":{"status":{"type":"string","const":"booked","description":"The order is placed."},"order_number":{"type":"string","description":"Our order number; quote it in any contact with us."},"contract_concluded_at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"When the contract was concluded, i.e. the booking was received (ISO 8601)."},"message":{"type":"string","description":"Confirmation for the person behind the agent."},"terms":{"$ref":"#/components/schemas/AgentBedingungen"},"sandbox":{"description":"true for a sandbox booking: the flow was only simulated, no order exists.","type":"boolean","const":true}},"required":["status","order_number","contract_concluded_at","message","terms"],"additionalProperties":false,"description":"Confirmation of a binding order."},"AgentZusammenfassung":{"type":"object","properties":{"status":{"type":"string","const":"preview","description":"Summary only; nothing has been booked."},"offer_number":{"type":"string","description":"Our offer number."},"price":{"type":"object","properties":{"net_eur":{"type":"number","description":"Net price in EUR for the whole shipment, without VAT."},"currency":{"type":"string","const":"EUR","description":"Always EUR."},"vat_note":{"type":"string","description":"How VAT applies to this price."}},"required":["net_eur","currency","vat_note"],"additionalProperties":false,"description":"Price of the shipment."},"pickup_date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Pickup date, YYYY-MM-DD."},"binding_until":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"The offer is binding until this time (ISO 8601 with offset); book before it."},"pickup":{"type":"object","properties":{"company":{"type":"string","minLength":1,"maxLength":120,"description":"Company name at this address."},"street":{"type":"string","minLength":1,"maxLength":120,"description":"Street and house number."},"city":{"type":"string","minLength":1,"maxLength":120,"description":"City."},"contact_name":{"type":"string","minLength":1,"maxLength":120,"description":"Contact person on site."},"phone":{"type":"string","minLength":1,"maxLength":40,"description":"Phone number of the contact person on site."},"country":{"type":"string","pattern":"^[A-Z]{2}$","description":"ISO 3166-1 alpha-2 country code, fixed by the quote."},"postal_code":{"type":"string","minLength":1,"maxLength":10,"description":"Postal code, fixed by the quote."}},"required":["company","street","city","contact_name","phone","country","postal_code"],"additionalProperties":false,"description":"Pickup address as it will be booked."},"delivery":{"type":"object","properties":{"company":{"type":"string","minLength":1,"maxLength":120,"description":"Company name at this address."},"street":{"type":"string","minLength":1,"maxLength":120,"description":"Street and house number."},"city":{"type":"string","minLength":1,"maxLength":120,"description":"City."},"contact_name":{"type":"string","minLength":1,"maxLength":120,"description":"Contact person on site."},"phone":{"type":"string","minLength":1,"maxLength":40,"description":"Phone number of the contact person on site."},"country":{"type":"string","pattern":"^[A-Z]{2}$","description":"ISO 3166-1 alpha-2 country code, fixed by the quote."},"postal_code":{"type":"string","minLength":1,"maxLength":10,"description":"Postal code, fixed by the quote."}},"required":["company","street","city","contact_name","phone","country","postal_code"],"additionalProperties":false,"description":"Delivery address as it will be booked."},"terms":{"$ref":"#/components/schemas/AgentBedingungen"},"confirm_with":{"type":"string","const":"confirmed: true","description":"To book, send the same booking again with confirmed: true."}},"required":["status","offer_number","price","pickup_date","binding_until","pickup","delivery","terms","confirm_with"],"additionalProperties":false,"description":"Binding summary of a booking (confirmed: false). Show it to a person before booking."},"AgentProfil":{"type":"object","description":"Our service profile for AI agents.","properties":{"name":{"type":"string","description":"Our trading name."},"legal_name":{"type":"string","description":"Legal name of the company."},"description":{"type":"string","description":"What we do, in a few sentences."},"website":{"type":"string","format":"uri","description":"Our website."},"api_version":{"type":"string","description":"Version of this interface."},"networks":{"type":"array","items":{"type":"object"},"description":"The forwarding networks we work in: id, name and url."},"countries_served":{"type":"array","items":{"type":"string"},"description":"ISO 3166-1 alpha-2 codes of the countries we accept for pickup and delivery; another country is answered with 422 (country_not_served)."},"item_types":{"type":"array","items":{"type":"string","enum":["euro_pallet","industrial_pallet","half_pallet","package"]},"description":"The values of items[].type."},"instant_quote":{"type":"object","description":"When an instant, binding price is given (conditions) and the technical limits of the request format (request_format_limits)."},"certificates":{"type":"array","items":{"type":"object"},"description":"Our certificates: name, scope and, where stated, valid_until."},"locations":{"type":"array","items":{"type":"object"},"description":"Our locations with address, phone and e-mail."},"contact":{"type":"object","description":"Our main contact with address and office hours."},"terms":{"type":"object","description":"Links to our terms (terms_url) and our privacy notice (privacy_notice_url)."},"openapi_url":{"type":"string","format":"uri","description":"This OpenAPI document."},"mcp_url":{"type":"string","format":"uri","description":"Our MCP server (Model Context Protocol) with the same operations."},"privacy_notice_url":{"type":"string","format":"uri","description":"Our privacy notice."}},"required":["name","legal_name","description","website","api_version","networks","countries_served","item_types","instant_quote","certificates","locations","contact","terms","openapi_url","mcp_url","privacy_notice_url"]},"Problem":{"type":"object","description":"Problem details (RFC 9457), sent as application/problem+json with every error. Branch on code; the texts are for the person behind the agent.","properties":{"type":{"type":"string","format":"uri","description":"Identifies the problem type: https://api.goellner-spedition.eu/agent/problems/ followed by the code."},"title":{"type":"string","description":"Short summary of the problem type; fixed for each code."},"status":{"type":"integer","description":"HTTP status code of this answer."},"code":{"type":"string","enum":["agent_api_disabled","not_found","method_not_allowed","unsupported_media_type","payload_too_large","invalid_json","idempotency_key_missing","idempotency_key_invalid","validation_failed","idempotency_mismatch","rate_limited","daily_capacity_reached","agent_off","sandbox_off","service_unavailable","terms_version_mismatch","booking_unavailable","email_link_only","already_booked","not_bookable","expired","withdrawn","insurance_mismatch","booking_in_progress","try_again_later"],"description":"Stable code of the problem. Codes are only added, never renamed."},"detail":{"type":"string","description":"What happened and what to do next."},"errors":{"type":"array","description":"One entry per wrong field; with validation_failed (when the fields are known) and insurance_mismatch.","items":{"type":"object","description":"One wrong field.","properties":{"path":{"type":"string","description":"The field in the request body in dot notation, e.g. items.0.quantity, or pickup.bar for an unknown field; empty when the whole body is affected."},"code":{"type":"string","description":"What is wrong: a format code (e.g. invalid_type, too_big, unrecognized_keys) or a code of our checks (e.g. pickup_not_allowed, country_not_served, postal_code_invalid, must_match_quote, insurance_mismatch)."},"earliest_pickup":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"With pickup_not_allowed: the earliest allowed pickup date, YYYY-MM-DD."}},"required":["path","code"],"additionalProperties":false}},"status_url":{"type":"string","format":"uri","description":"With already_booked, email_link_only, not_bookable, expired, withdrawn and try_again_later: where to read the status of the quote (GET)."},"quote_status":{"type":"string","enum":["processing","in_review","offered","booked","cancelled","expired","withdrawn"],"description":"With not_bookable: the status that prevents the booking."},"current_terms_version":{"type":"string","description":"With terms_version_mismatch: the version of the terms in force; accept it with terms_version."},"terms_url":{"type":"string","format":"uri","description":"With terms_version_mismatch: our terms in force."},"privacy_notice_url":{"type":"string","format":"uri","description":"Our privacy notice; in every answer."}},"required":["type","title","status","code","detail","privacy_notice_url"]}},"headers":{"Retry-After":{"description":"Seconds to wait before the next attempt.","schema":{"type":"integer","minimum":1}}}}}