{"openapi":"3.1.0","info":{"title":"e-bill API","description":"Mandantenfähiger Dienst für Angebote und E-Rechnungen (XRechnung 3.0 / ZUGFeRD).","version":"1.0.0"},"paths":{"/api/v1/customers/by-ref/{external_ref}":{"put":{"tags":["v1"],"summary":"Kunde anlegen oder aktualisieren (Upsert über external_ref)","operationId":"put_customer_api_v1_customers_by_ref__external_ref__put","parameters":[{"name":"external_ref","in":"path","required":true,"schema":{"type":"string","title":"External Ref"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional, empfohlen. Gleicher Key + gleicher Body → gespeicherte Antwort (kein zweiter Beleg); gleicher Key + anderer Body → 409.","title":"Idempotency-Key"},"description":"Optional, empfohlen. Gleicher Key + gleicher Body → gespeicherte Antwort (kein zweiter Beleg); gleicher Key + anderer Body → 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerOut"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"},"201":{"description":"angelegt","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerOut"}}}}}},"get":{"tags":["v1"],"summary":"Kunde über external_ref lesen","operationId":"get_customer_api_v1_customers_by_ref__external_ref__get","parameters":[{"name":"external_ref","in":"path","required":true,"schema":{"type":"string","title":"External Ref"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerOut"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/offers":{"post":{"tags":["v1"],"summary":"Angebot anlegen (optional sofort senden)","operationId":"post_offer_api_v1_offers_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional, empfohlen. Gleicher Key + gleicher Body → gespeicherte Antwort (kein zweiter Beleg); gleicher Key + anderer Body → 409.","title":"Idempotency-Key"},"description":"Optional, empfohlen. Gleicher Key + gleicher Body → gespeicherte Antwort (kein zweiter Beleg); gleicher Key + anderer Body → 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfferIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentOut"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/invoices":{"post":{"tags":["v1"],"summary":"Rechnung anlegen: action = draft | issue | issue_and_send","description":"Bei `issue` wird die Rechnung nummeriert, als XRechnung/ZUGFeRD erzeugt, validiert und festgeschrieben. Scheitert die Validierung, antwortet die API mit 422 (`validation_failed`); der Entwurf bleibt erhalten (`details.document_id`).","operationId":"post_invoice_api_v1_invoices_post","parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional, empfohlen. Gleicher Key + gleicher Body → gespeicherte Antwort (kein zweiter Beleg); gleicher Key + anderer Body → 409.","title":"Idempotency-Key"},"description":"Optional, empfohlen. Gleicher Key + gleicher Body → gespeicherte Antwort (kein zweiter Beleg); gleicher Key + anderer Body → 409."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceIn"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentOut"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/documents/{doc_id}/issue":{"post":{"tags":["v1"],"summary":"Rechnungsentwurf ausstellen","operationId":"post_issue_api_v1_documents__doc_id__issue_post","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional, empfohlen. Gleicher Key + gleicher Body → gespeicherte Antwort (kein zweiter Beleg); gleicher Key + anderer Body → 409.","title":"Idempotency-Key"},"description":"Optional, empfohlen. Gleicher Key + gleicher Body → gespeicherte Antwort (kein zweiter Beleg); gleicher Key + anderer Body → 409."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentOut"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/documents/{doc_id}":{"get":{"tags":["v1"],"summary":"Beleg lesen","operationId":"get_document_api_v1_documents__doc_id__get","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentOut"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/documents/{doc_id}/send":{"post":{"tags":["v1"],"summary":"Beleg per E-Mail versenden","operationId":"post_send_api_v1_documents__doc_id__send_post","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional, empfohlen. Gleicher Key + gleicher Body → gespeicherte Antwort (kein zweiter Beleg); gleicher Key + anderer Body → 409.","title":"Idempotency-Key"},"description":"Optional, empfohlen. Gleicher Key + gleicher Body → gespeicherte Antwort (kein zweiter Beleg); gleicher Key + anderer Body → 409."}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SendIn"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentOut"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/documents/{doc_id}/cancel":{"post":{"tags":["v1"],"summary":"Rechnung stornieren (erzeugt Stornorechnung, Typ 381, Bezug BT-25)","operationId":"post_cancel_api_v1_documents__doc_id__cancel_post","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}},{"name":"Idempotency-Key","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional, empfohlen. Gleicher Key + gleicher Body → gespeicherte Antwort (kein zweiter Beleg); gleicher Key + anderer Body → 409.","title":"Idempotency-Key"},"description":"Optional, empfohlen. Gleicher Key + gleicher Body → gespeicherte Antwort (kein zweiter Beleg); gleicher Key + anderer Body → 409."}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CancelIn"},{"type":"null"}],"title":"Payload"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentOut"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/documents/{doc_id}/pdf":{"get":{"tags":["v1"],"summary":"PDF herunterladen","operationId":"get_pdf_api_v1_documents__doc_id__pdf_get","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/pdf":{}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}},"/api/v1/documents/{doc_id}/xml":{"get":{"tags":["v1"],"summary":"XRechnung-XML (CII) herunterladen","operationId":"get_xml_api_v1_documents__doc_id__xml_get","parameters":[{"name":"doc_id","in":"path","required":true,"schema":{"type":"integer","title":"Doc Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/xml":{}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Conflict"},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorOut"}}},"description":"Unprocessable Content"}}}}},"components":{"schemas":{"CancelIn":{"properties":{"reason":{"type":"string","title":"Reason","default":""}},"additionalProperties":false,"type":"object","title":"CancelIn"},"CustomerIn":{"properties":{"kind":{"type":"string","enum":["b2b","b2c"],"title":"Kind","default":"b2b"},"company_name":{"type":"string","maxLength":200,"title":"Company Name","default":""},"person_name":{"type":"string","maxLength":200,"title":"Person Name","default":""},"street":{"type":"string","maxLength":200,"title":"Street","default":""},"street2":{"type":"string","maxLength":200,"title":"Street2","default":""},"zip":{"type":"string","maxLength":20,"title":"Zip","default":""},"city":{"type":"string","maxLength":100,"title":"City","default":""},"country":{"type":"string","maxLength":2,"minLength":2,"title":"Country","default":"DE"},"email":{"type":"string","maxLength":200,"title":"Email","default":""},"phone":{"type":"string","maxLength":50,"title":"Phone","default":""},"vat_id":{"type":"string","maxLength":20,"title":"Vat Id","default":""},"buyer_reference":{"type":"string","maxLength":100,"title":"Buyer Reference","description":"BT-10 Käuferreferenz / Leitweg-ID","default":""},"preferred_format":{"type":"string","enum":["zugferd","xrechnung","pdf"],"title":"Preferred Format","default":"zugferd"},"notes":{"type":"string","title":"Notes","default":""}},"additionalProperties":false,"type":"object","title":"CustomerIn","example":{"city":"Berlin","company_name":"Beispiel GmbH","country":"DE","email":"rechnung@beispiel.de","kind":"b2b","person_name":"Erika Muster","preferred_format":"zugferd","street":"Hauptstr. 5","vat_id":"DE123456789","zip":"10115"}},"CustomerOut":{"properties":{"id":{"type":"integer","title":"Id"},"number":{"type":"string","title":"Number"},"external_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Ref"},"kind":{"type":"string","title":"Kind"},"company_name":{"type":"string","title":"Company Name"},"person_name":{"type":"string","title":"Person Name"},"street":{"type":"string","title":"Street"},"street2":{"type":"string","title":"Street2"},"zip":{"type":"string","title":"Zip"},"city":{"type":"string","title":"City"},"country":{"type":"string","title":"Country"},"email":{"type":"string","title":"Email"},"phone":{"type":"string","title":"Phone"},"vat_id":{"type":"string","title":"Vat Id"},"buyer_reference":{"type":"string","title":"Buyer Reference"},"preferred_format":{"type":"string","title":"Preferred Format"},"created":{"type":"boolean","title":"Created","default":false}},"type":"object","required":["id","number","external_ref","kind","company_name","person_name","street","street2","zip","city","country","email","phone","vat_id","buyer_reference","preferred_format"],"title":"CustomerOut"},"DocumentOut":{"properties":{"id":{"type":"integer","title":"Id"},"type":{"type":"string","title":"Type"},"type_code":{"type":"string","title":"Type Code"},"number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Number"},"status":{"type":"string","title":"Status"},"customer_ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Ref"},"customer_number":{"type":"string","title":"Customer Number"},"issue_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Issue Date"},"due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Due Date"},"service_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Service Date"},"period_start":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Period Start"},"period_end":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Period End"},"currency":{"type":"string","title":"Currency"},"net_total":{"type":"string","title":"Net Total"},"tax_total":{"type":"string","title":"Tax Total"},"gross_total":{"type":"string","title":"Gross Total"},"output_format":{"type":"string","title":"Output Format"},"finalized_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finalized At"},"sha256":{"type":"string","title":"Sha256"},"sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sent At"},"paid_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paid At"},"references_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"References Number"},"public_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Public Url"},"lines":{"items":{"$ref":"#/components/schemas/LineOut"},"type":"array","title":"Lines"},"links":{"additionalProperties":{"type":"string"},"type":"object","title":"Links"},"validation":{"items":{"type":"string"},"type":"array","title":"Validation","default":[]}},"type":"object","required":["id","type","type_code","number","status","customer_ref","customer_number","issue_date","due_date","service_date","period_start","period_end","currency","net_total","tax_total","gross_total","output_format","finalized_at","sha256","sent_at","paid_at","lines","links"],"title":"DocumentOut"},"ErrorBody":{"properties":{"code":{"type":"string","title":"Code"},"message":{"type":"string","title":"Message"},"details":{"anyOf":[{},{"type":"null"}],"title":"Details"}},"type":"object","required":["code","message"],"title":"ErrorBody"},"ErrorOut":{"properties":{"error":{"$ref":"#/components/schemas/ErrorBody"}},"type":"object","required":["error"],"title":"ErrorOut"},"InvoiceIn":{"properties":{"customer_ref":{"type":"string","maxLength":100,"minLength":1,"title":"Customer Ref","description":"external_ref des Kunden"},"lines":{"items":{"$ref":"#/components/schemas/LineIn"},"type":"array","minItems":1,"title":"Lines"},"title":{"type":"string","title":"Title","default":""},"intro_text":{"type":"string","title":"Intro Text","default":""},"closing_text":{"type":"string","title":"Closing Text","default":""},"service_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Service Date"},"period_start":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Period Start"},"period_end":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Period End"},"send_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Send To","description":"Abweichende Empfängeradresse für den Versand"},"action":{"type":"string","enum":["draft","issue","issue_and_send"],"title":"Action","default":"draft"}},"additionalProperties":false,"type":"object","required":["customer_ref","lines"],"title":"InvoiceIn","example":{"action":"issue_and_send","customer_ref":"card-4711","lines":[{"name":"Aufladepaket 50 €","quantity":1,"tax_rate":19,"unit_code":"C62","unit_price":"42.02"}],"title":"Guthaben-Aufladung"}},"LineIn":{"properties":{"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"description":{"type":"string","title":"Description","default":""},"quantity":{"anyOf":[{"type":"number"},{"type":"string"}],"title":"Quantity","default":"1"},"unit_code":{"type":"string","maxLength":3,"minLength":2,"title":"Unit Code","description":"UN/ECE Rec 20, z. B. C62, HUR","default":"C62"},"unit_price":{"anyOf":[{"type":"number"},{"type":"string"}],"title":"Unit Price","description":"Netto-Einzelpreis"},"tax_rate":{"anyOf":[{"type":"number"},{"type":"string"}],"title":"Tax Rate","description":"19, 7 oder 0","default":"19"},"tax_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tax Category","description":"Bei 0 %: Z, E, AE, K, G"}},"additionalProperties":false,"type":"object","required":["name","unit_price"],"title":"LineIn"},"LineOut":{"properties":{"position":{"type":"integer","title":"Position"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"quantity":{"type":"string","title":"Quantity"},"unit_code":{"type":"string","title":"Unit Code"},"unit_price":{"type":"string","title":"Unit Price"},"tax_rate":{"type":"string","title":"Tax Rate"},"tax_category":{"type":"string","title":"Tax Category"},"line_net":{"type":"string","title":"Line Net"}},"type":"object","required":["position","name","description","quantity","unit_code","unit_price","tax_rate","tax_category","line_net"],"title":"LineOut"},"OfferIn":{"properties":{"customer_ref":{"type":"string","maxLength":100,"minLength":1,"title":"Customer Ref","description":"external_ref des Kunden"},"lines":{"items":{"$ref":"#/components/schemas/LineIn"},"type":"array","minItems":1,"title":"Lines"},"title":{"type":"string","title":"Title","default":""},"intro_text":{"type":"string","title":"Intro Text","default":""},"closing_text":{"type":"string","title":"Closing Text","default":""},"service_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Service Date"},"period_start":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Period Start"},"period_end":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Period End"},"send_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Send To","description":"Abweichende Empfängeradresse für den Versand"},"valid_until":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid Until"},"action":{"type":"string","enum":["draft","send"],"title":"Action","default":"draft"}},"additionalProperties":false,"type":"object","required":["customer_ref","lines"],"title":"OfferIn","example":{"action":"send","customer_ref":"card-4711","lines":[{"name":"Aufladepaket 50 €","quantity":1,"tax_rate":19,"unit_code":"C62","unit_price":"42.02"}],"title":"Guthaben-Aufladung"}},"SendIn":{"properties":{"to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To"}},"additionalProperties":false,"type":"object","title":"SendIn"}}}}