{"openapi":"3.1.0","info":{"title":"t4data.cloud — API","version":"1.3.9","description":"API under `/functions/v1/*`.\n\n**Public contract:** message-type lookup, partner lookup (`receiver_id`), and all message endpoints.\n\nTypical send flow: `GET /functions/v1/message-types` → `GET /functions/v1/partners` → `POST /functions/v1/message`.\n\nPlatform admins may receive the **full** inventory when calling the OpenAPI endpoint with an admin session (separate from Swagger Authorize).\n\n**Authorize (Swagger):** `secretKeyAuth` only — project secret key in the `apikey` header. No JWT paste, no OAuth dialog.\n\n**Errors:** typically `{ \"error\": \"…\" }`; some handlers also use `message` or validation `details`.","contact":{"name":"t4data.cloud","url":"https://api.t4data.cloud"}},"servers":[{"url":"https://api.t4data.cloud","description":"Project base URL. Paths in this spec are absolute from host: `/functions/v1/...`."}],"tags":[{"name":"Message types","description":"Lookup for valid `message_type` names via `/functions/v1/message-types`. Required before sending a message."},{"name":"Partner","description":"Partner lookup for message `receiver_id` (`GET /partners`). Details endpoint is admin inventory."},{"name":"Messages","description":"Message queue API"}],"paths":{"/functions/v1/message-types":{"get":{"operationId":"listMessageTypes","tags":["Message types"],"summary":"List message types","description":"Catalog of message types. For `POST /functions/v1/message`, use the field value `name` as `message_type`. Response: `{ messageTypes: [...] }` including optional `jsons_contract`.","responses":{"200":{"description":"Message types","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageTypesListResponse"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKeyAuth":[]}]}},"/functions/v1/partners":{"get":{"operationId":"listPartners","tags":["Partner"],"summary":"Partner list (receiver lookup)","description":"Partner lookup for `receiver_id` when sending messages. Contract: `id`, `created_at`, `name`, `active`. Extended fields: `/functions/v1/partnerdetails` (admin inventory).","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartnersListResponse"},"examples":{"full":{"summary":"Example with one partner","value":{"partners":[{"id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","created_at":"2025-01-15T10:00:00.000Z","name":"Example GmbH","active":true}]}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKeyAuth":[]}]}},"/functions/v1/message":{"get":{"operationId":"listMessages","tags":["Messages"],"summary":"List messages","description":"Returns messages filtered by query parameters.\n\n**Large messages:** Messages with an object-storage reference (`data_object_id`) are excluded by default and returned only with opt-in: `include_large_messages=true`.\n\nLarge-message payloads are stored in object storage (object name = `data_object_id`).","parameters":[{"name":"include_exported","in":"query","required":false,"description":"When true, also include already exported messages.","schema":{"type":"boolean","default":false}},{"name":"type","in":"query","required":false,"description":"Comma-separated message_type names.","schema":{"type":"string","example":"Order,Invoice"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":1000,"default":100}},{"name":"created_after","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"created_before","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"custom_message_id","in":"query","required":false,"schema":{"type":"string"}},{"name":"sender_id","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"include_large_messages","in":"query","required":false,"description":"Opt-in: when true, also return messages with `data_object_id` (payload in object storage).","schema":{"type":"boolean","default":false}}],"responses":{"200":{"description":"Array of message objects.","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Message"}}}}},"400":{"description":"Validation error (e.g. created_before < created_after).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationErrorBody"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKeyAuth":[]}]},"post":{"operationId":"createMessage","tags":["Messages"],"summary":"Create message","description":"Creates a message.\n\nLookups: `message_type` ← `GET /functions/v1/message-types` (`messageTypes[].name`); `receiver_id` ← `GET /functions/v1/partners` (`partners[].id`).\n\n`sender` is derived server-side from the current user context and must not be set explicitly.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageCreate"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageCreated"},"examples":{"ex":{"summary":"New ID","value":{"id":"c3d4e5f6-a7b8-9012-cdef-123456789012"}}}}}},"400":{"description":"Validation or business-rule error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKeyAuth":[]}]}},"/functions/v1/message/{id}":{"get":{"operationId":"getMessageById","tags":["Messages"],"summary":"Get message by ID","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Message","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"examples":{"sample":{"summary":"404","value":{"error":"Message not found"}}}}}},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKeyAuth":[]}]}},"/functions/v1/message/{id}/exported":{"put":{"operationId":"markMessageExported","tags":["Messages"],"summary":"Mark message as exported","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"OK, no body."},"400":{"description":"Business-rule error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"description":"Message not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"}}}},"405":{"$ref":"#/components/responses/MethodNotAllowed"},"500":{"$ref":"#/components/responses/InternalError"}},"security":[{"secretKeyAuth":[]}]}}},"components":{"securitySchemes":{"secretKeyAuth":{"type":"apiKey","in":"header","name":"apikey","description":"Project secret key (Supabase publishable / anon key). Sole Authorize credential in this document — paste only this value."}},"schemas":{"FreeFormObject":{"type":"object","description":"Free-form JSON object. Shape is intentional open (validated by a separate JSON Schema contract or treated as an opaque bag).","additionalProperties":true},"ErrorBody":{"type":"object","description":"Error JSON. Primary key is `error`. Some handlers may also set `message` or `msg`.","additionalProperties":false,"properties":{"error":{"type":"string"},"message":{"type":"string"},"msg":{"type":"string"}},"required":["error"]},"ValidationErrorBody":{"type":"object","additionalProperties":false,"properties":{"error":{"type":"string"},"details":{"$ref":"#/components/schemas/FreeFormObject"}},"required":["error"]},"ErrorWithDetails":{"type":"object","additionalProperties":false,"properties":{"error":{"type":"string"},"details":{"$ref":"#/components/schemas/FreeFormObject"}},"required":["error"]},"MessageType":{"type":"object","additionalProperties":false,"description":"Message type entry. Use `name` when creating messages.","properties":{"id":{"type":"string","format":"uuid"},"created_at":{"type":"string","format":"date-time"},"name":{"type":"string","description":"Canonical type name for `MessageCreate.message_type`","example":"Order"},"jsons_contract":{"oneOf":[{"$ref":"#/components/schemas/FreeFormObject"}],"nullable":true,"description":"Optional bundled JSON Schema for the payload. Named copies also live under components/schemas (Order, OrderResponse, …)."}},"required":["id","created_at","name","jsons_contract"]},"MessageTypesListResponse":{"type":"object","additionalProperties":false,"properties":{"messageTypes":{"type":"array","items":{"$ref":"#/components/schemas/MessageType"}}},"required":["messageTypes"]},"InboundShipment":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/InboundShipment.json","type":"object","title":"InboundShipment","required":["transferOrder","shipments"],"properties":{"shipments":{"type":"array","items":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/Shipment.json","type":"object","title":"Shipment","properties":{"Order":{"type":["object","null"],"description":"Optional; zirkulär zu Order.json. Newtonsoft serialisiert die Rückreferenz oft nicht.","additionalProperties":true},"Parcels":{"type":"array","items":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/Parcel.json","type":"object","title":"Parcel","properties":{"Remarks":{"type":"string"},"CarrierCode":{"type":"string"},"PackingTime":{"type":"string","description":"TimeSpan string (c) oder Sekunden als Zahl als String"},"CarrierClass":{"type":"string"},"TrackingCode":{"type":["string","null"]},"ShippingState":{"$ref":"#/components/schemas/InboundShipment/properties/transferOrder/properties/ShipmentState"},"ShippingWeight":{"type":"number"},"InternalParcelId":{"type":"integer"},"ShippingDateTime":{"type":["string","null"],"format":"date-time"},"CarrierDisplayName":{"type":"string"},"ReturnTrackingCode":{"type":["string","null"]},"ShippingDateTimeUtc":{"type":["string","null"],"format":"date-time"},"EstimatedDateArrival":{"type":["string","null"],"format":"date-time"}},"additionalProperties":true}},"ShipmentItems":{"type":"array","items":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/ShipmentItem.json","type":"object","title":"ShipmentItem","required":["Sku"],"properties":{"Sku":{"type":"string"},"Text":{"type":"string"},"Remark":{"type":["string","null"]},"Mapping":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/ArticleAttributeMapping.json","oneOf":[{"enum":["Sku","SkuMapping","Attribute","Gtin"],"type":"string"},{"type":"object","properties":{"MappingType":{"enum":["Sku","Attribute","Gtin"],"type":"string"},"AttributeName":{"type":["string","null"]},"AttributeValue":{"type":["string","null"]},"AttributeGroupName":{"type":["string","null"]}},"additionalProperties":true}],"title":"ArticleAttributeMapping","description":"Newtonsoft ArticleAttributeMappingConverter: entweder Kurzstring (Sku / SkuMapping / …) oder vollständiges Objekt."},"IsComponent":{"type":"boolean"},"QuantityShipped":{"type":"number"},"InternalJtlOrderItemId":{"type":"integer"}},"additionalProperties":true}},"DeliveryNoteId":{"type":"string"}},"description":"Outbound-/Inbound-Sendung; Order wird von Newtonsoft oft weggelassen (ShouldSerializeOrder).","additionalProperties":true},"minItems":1},"transferOrder":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/TransferOrder.json","type":"object","title":"TransferOrder","properties":{"Id":{"type":"string"},"Items":{"type":"array","items":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/OrderPosition.json","oneOf":[{"type":"object","title":"ArticleAsPosition (ProductItem)","required":["$type"],"properties":{"Id":{"type":"string"},"Sku":{"type":["string","null"]},"Sort":{"type":"integer"},"Text":{"type":"string"},"$type":{"const":"ProductItem"},"Mapping":{"$ref":"#/components/schemas/InboundShipment/properties/shipments/items/properties/ShipmentItems/items/properties/Mapping"},"Product":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/Product.json","type":"object","title":"Product","properties":{"Sku":{"type":["string","null"]},"Name":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/TranslatableStringMap.json","type":"object","title":"TranslatableStringMap","description":"Serialisierte TranslatableNameCollection / ähnliche Strukturen: Schlüssel = Language-ISO (z. B. ger, neutral, x-ger-shop), Wert = Text.","additionalProperties":{"type":"string"}},"Barcode":{"type":["string","null"]},"NetPrice":{"type":"number"},"BrandName":{"type":["string","null"]},"ModelName":{"type":"string"},"ParentSku":{"type":["string","null"]},"SalesUnit":{"$ref":"#/components/schemas/InboundShipment/properties/transferOrder/properties/Items/items/oneOf/0/properties/Product/properties/Name"},"Attributes":{"type":"array","items":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/Attribute.json","type":"object","title":"Attribute","required":["FieldType"],"properties":{"FieldType":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/AttributeFieldType.json","enum":["Integer","Decimal","Freetext","Checkbox","ValueList","Url","Email","Telephone","Country","Price","Date","ShortText"],"type":"string","title":"AttributeFieldType","description":"T4dt.JtlDbService.Abstractions.Poco.AttributeFieldType (StringEnumConverter)."},"NameI18Ns":{"$ref":"#/components/schemas/InboundShipment/properties/transferOrder/properties/Items/items/oneOf/0/properties/Product/properties/Name"},"ValueI18Ns":{"type":"object","description":"Dictionary Language→Wert; JSON-Keys folgen der Language-Serialisierung. Werttyp abhängig von FieldType.","additionalProperties":true},"LanguageIndependent":{"type":"boolean","default":true}},"description":"T4dt.JtlDbService.Abstractions.Poco.Attribute / Attribute&lt;T&gt; (AttributeConverter).","additionalProperties":true}},"ActiveSites":{"type":"array","items":{"$ref":"#/components/schemas/InboundShipment/properties/transferOrder/properties/SiteInfo/properties/Site"}},"Description":{"type":"object","additionalProperties":{"type":"string"}},"Identifiers":{"$ref":"#/components/schemas/InboundShipment/properties/transferOrder/properties/Items/items/oneOf/0/properties/ExternalIdentifiers"},"DeliveryTime":{"type":"integer"},"HasShelfLive":{"type":"boolean"},"MarketplaceId":{"type":["string","null"]},"ShippingClass":{"type":["string","null"]},"ShortDescriptions":{"type":"object","additionalProperties":{"type":"string"}},"ExternalIdentifiers":{"$ref":"#/components/schemas/InboundShipment/properties/transferOrder/properties/Items/items/oneOf/0/properties/ExternalIdentifiers"},"RecommendedRetailPrice":{"type":["number","null"]}},"description":"T4dt.JtlDbService.Abstractions.Poco.Product – Kernfelder; zusätzliche Felder aus SDK-JSON sind zulässig.","additionalProperties":true},"Remarks":{"type":"string"},"VatRate":{"type":"number"},"Discount":{"type":"number"},"Quantity":{"type":"number"},"UnitPrice":{"type":"number"},"IsComponent":{"type":"boolean"},"SourceItemId":{"type":["string","null"]},"InternalJtlId":{"type":"integer"},"BundleChildren":{"type":"array","items":{"$ref":"#/components/schemas/InboundShipment/properties/transferOrder/properties/Items/items"}},"IsBundleParent":{"type":"boolean"},"ExternalIdentifiers":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/IdentifierMap.json","type":"object","title":"IdentifierCollection","description":"T4dt.JtlDbService.Abstractions.Poco.IdentifierCollection serialisiert als string→string Map.","additionalProperties":{"type":"string"}},"BundleOrderItemInternalJtlId":{"type":"integer"}},"additionalProperties":true},{"type":"object","title":"FreeTextAsPosition (FreeTextItem)","required":["$type"],"properties":{"Id":{"type":"string"},"Sort":{"type":"integer"},"Text":{"type":"string"},"$type":{"const":"FreeTextItem"},"Remarks":{"type":"string"},"VatRate":{"type":"number"},"Discount":{"type":"number"},"Quantity":{"type":"number"},"UnitPrice":{"type":"number"},"IsComponent":{"type":"boolean"},"SourceItemId":{"type":["string","null"]},"InternalJtlId":{"type":"integer"},"IsBundleParent":{"type":"boolean"},"BundleOrderItemInternalJtlId":{"type":"integer"}},"additionalProperties":true},{"type":"object","title":"PaymentCostAsPosition (PaymentCostItem)","required":["$type"],"properties":{"Id":{"type":"string"},"Sort":{"type":"integer"},"Text":{"type":"string"},"$type":{"const":"PaymentCostItem"},"Remarks":{"type":"string"},"VatRate":{"type":"number"},"Discount":{"type":"number"},"Quantity":{"type":"number"},"UnitPrice":{"type":"number"},"IsComponent":{"type":"boolean"},"SourceItemId":{"type":["string","null"]},"InternalJtlId":{"type":"integer"},"IsBundleParent":{"type":"boolean"},"BundleOrderItemInternalJtlId":{"type":"integer"}},"additionalProperties":true},{"type":"object","title":"ShipmentAsPosition (ShipmentItem)","required":["$type"],"properties":{"Id":{"type":"string"},"Sort":{"type":"integer"},"Text":{"type":"string"},"$type":{"const":"ShipmentItem"},"Remarks":{"type":"string"},"VatRate":{"type":"number"},"Discount":{"type":"number"},"Quantity":{"type":"number"},"UnitPrice":{"type":"number"},"IsComponent":{"type":"boolean"},"SourceItemId":{"type":["string","null"]},"InternalJtlId":{"type":"integer"},"IsBundleParent":{"type":"boolean"},"BundleOrderItemInternalJtlId":{"type":"integer"}},"additionalProperties":true},{"type":"object","title":"VoucherAsPosition (VoucherItem)","required":["$type"],"properties":{"Id":{"type":"string"},"Sort":{"type":"integer"},"Text":{"type":"string"},"$type":{"const":"VoucherItem"},"Remarks":{"type":"string"},"VatRate":{"type":"number"},"Discount":{"type":"number"},"Quantity":{"type":"number"},"UnitPrice":{"type":"number"},"IsComponent":{"type":"boolean"},"SourceItemId":{"type":["string","null"]},"InternalJtlId":{"type":"integer"},"IsBundleParent":{"type":"boolean"},"BundleOrderItemInternalJtlId":{"type":"integer"}},"additionalProperties":true}],"title":"OrderPosition","description":"Polymorph über JsonIncludeConverter: erstes Property $type mit ProductItem | FreeTextItem | PaymentCostItem | ShipmentItem | VoucherItem."},"description":"TransferOrder.Positions (Newtonsoft [JsonProperty(\"Items\")])."},"Remarks":{"type":["string","null"]},"SiteInfo":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/SiteInfo.json","type":"object","title":"SiteInfo","properties":{"Site":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/Site.json","type":"object","title":"Site","properties":{"SiteName":{"type":"string"},"SiteType":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/SiteType.json","enum":["Platform","Shop","Checkbox"],"type":"string","title":"SiteType"},"SiteAccountId":{"type":"string"}},"additionalProperties":true},"UsedCurrency":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/Currency.json","oneOf":[{"type":"string","minLength":1},{"type":"object","properties":{"Iso3":{"type":["string","null"]},"HtmlCode":{"type":"string"},"ExchangeRate":{"type":["number","null"]}},"additionalProperties":true}],"title":"Currency","description":"T4dt.JtlDbService.Abstractions.Poco.Currency (CurrencyConverter). Often a bare ISO string is also accepted on read."},"SubmittedPriceIsNetPrice":{"type":"boolean"}},"additionalProperties":true},"Shipments":{"type":"array","items":{"$ref":"#/components/schemas/InboundShipment/properties/shipments/items"}},"InternalJtlId":{"type":"integer"},"ShipmentState":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/State.json","enum":["Unknown","Pending","Partially","Complete","Canceled"],"type":"string","title":"State","description":"T4dt.JtlDbService.Abstractions.Poco.State (Newtonsoft StringEnumConverter)."},"OrderReferenceNo":{"type":"string"},"DestinationAddress":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/Address.json","type":"object","title":"Address","properties":{"City":{"type":["string","null"]},"Email":{"type":["string","null"]},"Title":{"type":["string","null"]},"SurName":{"type":["string","null"]},"PostCode":{"type":["string","null"]},"FaxNumber":{"type":["string","null"]},"FirstName":{"type":["string","null"]},"CountryIso":{"type":["string","null"]},"Salutation":{"type":["string","null"]},"CompanyName":{"type":["string","null"]},"PhoneNumber":{"type":["string","null"]},"AdressField1":{"type":["string","null"]},"AdressField2":{"type":["string","null"]},"StateOrProvince":{"type":["string","null"]},"CompanySupplement":{"type":["string","null"]},"MobilePhoneNumber":{"type":["string","null"]}},"description":"T4dt.JtlDbService.Abstractions.Poco.Address","additionalProperties":true},"OriginDistributionCenter":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/DistributionCenter.json","type":"object","title":"DistributionCenter","properties":{"Id":{"type":"string"},"Name":{"type":["string","null"]},"Address":{"$ref":"#/components/schemas/InboundShipment/properties/transferOrder/properties/DestinationAddress"},"InternalJtlId":{"type":"integer"}},"additionalProperties":true},"RequestedShippingCarrier":{"type":["string","null"]},"DestinationDistributionCenter":{"$ref":"#/components/schemas/InboundShipment/properties/transferOrder/properties/OriginDistributionCenter"}},"additionalProperties":true}},"description":"Wrapper für ImportInboundTransferAsync(transferOrder, shipments, …). Kein eigener POCO-Typ im SDK.","additionalProperties":false},"Order":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/Order.json","type":"object","title":"Order","properties":{"Id":{"type":"string"},"Item":{"type":"array","items":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/OrderPosition.json","oneOf":[{"type":"object","title":"ArticleAsPosition (ProductItem)","required":["$type"],"properties":{"Id":{"type":"string"},"Sku":{"type":["string","null"]},"Sort":{"type":"integer"},"Text":{"type":"string"},"$type":{"const":"ProductItem"},"Mapping":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/ArticleAttributeMapping.json","oneOf":[{"enum":["Sku","SkuMapping","Attribute","Gtin"],"type":"string"},{"type":"object","properties":{"MappingType":{"enum":["Sku","Attribute","Gtin"],"type":"string"},"AttributeName":{"type":["string","null"]},"AttributeValue":{"type":["string","null"]},"AttributeGroupName":{"type":["string","null"]}},"additionalProperties":true}],"title":"ArticleAttributeMapping","description":"Newtonsoft ArticleAttributeMappingConverter: entweder Kurzstring (Sku / SkuMapping / …) oder vollständiges Objekt."},"Product":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/Product.json","type":"object","title":"Product","properties":{"Sku":{"type":["string","null"]},"Name":{"$ref":"#/components/schemas/Order/properties/OrderAttributes/items/properties/NameI18Ns"},"Barcode":{"type":["string","null"]},"NetPrice":{"type":"number"},"BrandName":{"type":["string","null"]},"ModelName":{"type":"string"},"ParentSku":{"type":["string","null"]},"SalesUnit":{"$ref":"#/components/schemas/Order/properties/OrderAttributes/items/properties/NameI18Ns"},"Attributes":{"type":"array","items":{"$ref":"#/components/schemas/Order/properties/OrderAttributes/items"}},"ActiveSites":{"type":"array","items":{"$ref":"#/components/schemas/Order/properties/SiteInfo/properties/Site"}},"Description":{"type":"object","additionalProperties":{"type":"string"}},"Identifiers":{"$ref":"#/components/schemas/Order/properties/Item/items/oneOf/0/properties/ExternalIdentifiers"},"DeliveryTime":{"type":"integer"},"HasShelfLive":{"type":"boolean"},"MarketplaceId":{"type":["string","null"]},"ShippingClass":{"type":["string","null"]},"ShortDescriptions":{"type":"object","additionalProperties":{"type":"string"}},"ExternalIdentifiers":{"$ref":"#/components/schemas/Order/properties/Item/items/oneOf/0/properties/ExternalIdentifiers"},"RecommendedRetailPrice":{"type":["number","null"]}},"description":"T4dt.JtlDbService.Abstractions.Poco.Product – Kernfelder; zusätzliche Felder aus SDK-JSON sind zulässig.","additionalProperties":true},"Remarks":{"type":"string"},"VatRate":{"type":"number"},"Discount":{"type":"number"},"Quantity":{"type":"number"},"UnitPrice":{"type":"number"},"IsComponent":{"type":"boolean"},"SourceItemId":{"type":["string","null"]},"InternalJtlId":{"type":"integer"},"BundleChildren":{"type":"array","items":{"$ref":"#/components/schemas/Order/properties/Item/items"}},"IsBundleParent":{"type":"boolean"},"ExternalIdentifiers":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/IdentifierMap.json","type":"object","title":"IdentifierCollection","description":"T4dt.JtlDbService.Abstractions.Poco.IdentifierCollection serialisiert als string→string Map.","additionalProperties":{"type":"string"}},"BundleOrderItemInternalJtlId":{"type":"integer"}},"additionalProperties":true},{"type":"object","title":"FreeTextAsPosition (FreeTextItem)","required":["$type"],"properties":{"Id":{"type":"string"},"Sort":{"type":"integer"},"Text":{"type":"string"},"$type":{"const":"FreeTextItem"},"Remarks":{"type":"string"},"VatRate":{"type":"number"},"Discount":{"type":"number"},"Quantity":{"type":"number"},"UnitPrice":{"type":"number"},"IsComponent":{"type":"boolean"},"SourceItemId":{"type":["string","null"]},"InternalJtlId":{"type":"integer"},"IsBundleParent":{"type":"boolean"},"BundleOrderItemInternalJtlId":{"type":"integer"}},"additionalProperties":true},{"type":"object","title":"PaymentCostAsPosition (PaymentCostItem)","required":["$type"],"properties":{"Id":{"type":"string"},"Sort":{"type":"integer"},"Text":{"type":"string"},"$type":{"const":"PaymentCostItem"},"Remarks":{"type":"string"},"VatRate":{"type":"number"},"Discount":{"type":"number"},"Quantity":{"type":"number"},"UnitPrice":{"type":"number"},"IsComponent":{"type":"boolean"},"SourceItemId":{"type":["string","null"]},"InternalJtlId":{"type":"integer"},"IsBundleParent":{"type":"boolean"},"BundleOrderItemInternalJtlId":{"type":"integer"}},"additionalProperties":true},{"type":"object","title":"ShipmentAsPosition (ShipmentItem)","required":["$type"],"properties":{"Id":{"type":"string"},"Sort":{"type":"integer"},"Text":{"type":"string"},"$type":{"const":"ShipmentItem"},"Remarks":{"type":"string"},"VatRate":{"type":"number"},"Discount":{"type":"number"},"Quantity":{"type":"number"},"UnitPrice":{"type":"number"},"IsComponent":{"type":"boolean"},"SourceItemId":{"type":["string","null"]},"InternalJtlId":{"type":"integer"},"IsBundleParent":{"type":"boolean"},"BundleOrderItemInternalJtlId":{"type":"integer"}},"additionalProperties":true},{"type":"object","title":"VoucherAsPosition (VoucherItem)","required":["$type"],"properties":{"Id":{"type":"string"},"Sort":{"type":"integer"},"Text":{"type":"string"},"$type":{"const":"VoucherItem"},"Remarks":{"type":"string"},"VatRate":{"type":"number"},"Discount":{"type":"number"},"Quantity":{"type":"number"},"UnitPrice":{"type":"number"},"IsComponent":{"type":"boolean"},"SourceItemId":{"type":["string","null"]},"InternalJtlId":{"type":"integer"},"IsBundleParent":{"type":"boolean"},"BundleOrderItemInternalJtlId":{"type":"integer"}},"additionalProperties":true}],"title":"OrderPosition","description":"Polymorph über JsonIncludeConverter: erstes Property $type mit ProductItem | FreeTextItem | PaymentCostItem | ShipmentItem | VoucherItem."},"description":"Order.Positions ([JsonProperty(\"Item\")])."},"Refunds":{"type":"array","items":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/Refund.json","type":"object","title":"Refund","properties":{"Id":{"type":"string"},"Items":{"type":"array","items":{"$ref":"#/components/schemas/Order/properties/Item/items"},"description":"Refund.RefundedPositions ([JsonProperty(\"Items\")])."},"Remark":{"type":["string","null"]},"TotalAmount":{"type":"number","readOnly":true},"InternalJtlId":{"type":"integer"},"RefundDateTime":{"type":["string","null"],"format":"date-time"},"AssociatedOrder":{"type":["object","null"],"description":"Optional; vermeidet zirkuläres $ref zu Order.json.","additionalProperties":true},"RefundDateTimeUtc":{"type":["string","null"],"format":"date-time"}},"additionalProperties":true}},"Payments":{"type":"array","items":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/Payment.json","type":"object","title":"Payment","properties":{"Note":{"type":"string"},"OrderId":{"type":"string"},"AmountPaid":{"type":"number"},"PaymentType":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/PaymentType.json","enum":["Payment","ReminderFee","Discount","Voucher"],"type":"string","title":"PaymentType"},"InternalJtlId":{"type":"integer"},"PaymentMethod":{"$ref":"#/components/schemas/Order/properties/PaymentMethod"},"TransactionId":{"type":"string"},"PaymentDateTime":{"type":["string","null"],"format":"date-time"},"InternalJtlOrderId":{"type":"integer"},"PaymentDateTimeUtc":{"type":["string","null"],"format":"date-time"}},"additionalProperties":true}},"SiteInfo":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/SiteInfo.json","type":"object","title":"SiteInfo","properties":{"Site":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/Site.json","type":"object","title":"Site","properties":{"SiteName":{"type":"string"},"SiteType":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/SiteType.json","enum":["Platform","Shop","Checkbox"],"type":"string","title":"SiteType"},"SiteAccountId":{"type":"string"}},"additionalProperties":true},"UsedCurrency":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/Currency.json","oneOf":[{"type":"string","minLength":1},{"type":"object","properties":{"Iso3":{"type":["string","null"]},"HtmlCode":{"type":"string"},"ExchangeRate":{"type":["number","null"]}},"additionalProperties":true}],"title":"Currency","description":"T4dt.JtlDbService.Abstractions.Poco.Currency (CurrencyConverter). Often a bare ISO string is also accepted on read."},"SubmittedPriceIsNetPrice":{"type":"boolean"}},"additionalProperties":true},"Shipments":{"type":"array","items":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/Shipment.json","type":"object","title":"Shipment","properties":{"Order":{"type":["object","null"],"description":"Optional; zirkulär zu Order.json. Newtonsoft serialisiert die Rückreferenz oft nicht.","additionalProperties":true},"Parcels":{"type":"array","items":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/Parcel.json","type":"object","title":"Parcel","properties":{"Remarks":{"type":"string"},"CarrierCode":{"type":"string"},"PackingTime":{"type":"string","description":"TimeSpan string (c) oder Sekunden als Zahl als String"},"CarrierClass":{"type":"string"},"TrackingCode":{"type":["string","null"]},"ShippingState":{"$ref":"#/components/schemas/Order/properties/PaymentState"},"ShippingWeight":{"type":"number"},"InternalParcelId":{"type":"integer"},"ShippingDateTime":{"type":["string","null"],"format":"date-time"},"CarrierDisplayName":{"type":"string"},"ReturnTrackingCode":{"type":["string","null"]},"ShippingDateTimeUtc":{"type":["string","null"],"format":"date-time"},"EstimatedDateArrival":{"type":["string","null"],"format":"date-time"}},"additionalProperties":true}},"ShipmentItems":{"type":"array","items":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/ShipmentItem.json","type":"object","title":"ShipmentItem","required":["Sku"],"properties":{"Sku":{"type":"string"},"Text":{"type":"string"},"Remark":{"type":["string","null"]},"Mapping":{"$ref":"#/components/schemas/Order/properties/Item/items/oneOf/0/properties/Mapping"},"IsComponent":{"type":"boolean"},"QuantityShipped":{"type":"number"},"InternalJtlOrderItemId":{"type":"integer"}},"additionalProperties":true}},"DeliveryNoteId":{"type":"string"}},"description":"Outbound-/Inbound-Sendung; Order wird von Newtonsoft oft weggelassen (ShouldSerializeOrder).","additionalProperties":true}},"StateInfo":{"type":"string"},"TotalPaid":{"type":"number","readOnly":true},"RefundState":{"allOf":[{"$ref":"#/components/schemas/Order/properties/PaymentState"}],"description":"Nur-Lese berechnet; kann bei Serialisierung dennoch vorkommen."},"TotalAmount":{"type":"number","readOnly":true},"OrderDetails":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/OrderDetails.json","type":"object","title":"OrderDetails","properties":{"ShortHints":{"type":"string"},"LastUpdateUtc":{"type":["string","null"],"format":"date-time"},"MerchantVatId":{"type":["string","null"]},"RefundDateUtc":{"type":["string","null"],"format":"date-time"},"PaymentDateUtc":{"type":["string","null"],"format":"date-time"},"LastUpdateLocal":{"type":["string","null"],"format":"date-time"},"MerchantAddress":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/Order/properties/BillingAddress"}]},"RefundDateLocal":{"type":["string","null"],"format":"date-time"},"ShippingDateUtc":{"type":["string","null"],"format":"date-time"},"PaymentDateLocal":{"type":["string","null"],"format":"date-time"},"ShippingDateLocal":{"type":["string","null"],"format":"date-time"},"SpecialInstructions":{"type":"string"},"OrderCreatedDateTime":{"type":"string","format":"date-time"},"OrderCreatedDateTimeUtc":{"type":"string","format":"date-time"},"RequestedShippingCarrier":{"type":["string","null"]}},"additionalProperties":true},"PaymentState":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/State.json","enum":["Unknown","Pending","Partially","Complete","Canceled"],"type":"string","title":"State","description":"T4dt.JtlDbService.Abstractions.Poco.State (Newtonsoft StringEnumConverter)."},"CheckoutState":{"$ref":"#/components/schemas/Order/properties/PaymentState"},"InternalJtlId":{"type":"integer"},"PaymentMethod":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/PaymentMethod.json","type":"object","title":"PaymentMethod","properties":{"MethodName":{"type":"string"}},"additionalProperties":true},"ShipmentState":{"$ref":"#/components/schemas/Order/properties/PaymentState"},"TotalRefunded":{"type":"number","readOnly":true},"BillingAddress":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/Address.json","type":"object","title":"Address","properties":{"City":{"type":["string","null"]},"Email":{"type":["string","null"]},"Title":{"type":["string","null"]},"SurName":{"type":["string","null"]},"PostCode":{"type":["string","null"]},"FaxNumber":{"type":["string","null"]},"FirstName":{"type":["string","null"]},"CountryIso":{"type":["string","null"]},"Salutation":{"type":["string","null"]},"CompanyName":{"type":["string","null"]},"PhoneNumber":{"type":["string","null"]},"AdressField1":{"type":["string","null"]},"AdressField2":{"type":["string","null"]},"StateOrProvince":{"type":["string","null"]},"CompanySupplement":{"type":["string","null"]},"MobilePhoneNumber":{"type":["string","null"]}},"description":"T4dt.JtlDbService.Abstractions.Poco.Address","additionalProperties":true},"ShippingAdress":{"$ref":"#/components/schemas/Order/properties/BillingAddress"},"CustomerDetails":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/CustomerDetails.json","type":"object","title":"CustomerDetails","properties":{"Email":{"type":["string","null"]},"Language":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/Language.json","type":"object","title":"Language","properties":{"Iso":{"type":"string"},"UnderlyingIso":{"type":"string"},"Specialization":{"type":["string","null"]}},"description":"Language wird in JSON typischerweise als Objekt { Iso, Specialization, ... } oder implizit als Dictionary-Key serialisiert.","additionalProperties":true},"FaxNumber":{"type":["string","null"]},"CompanyName":{"type":["string","null"]},"DateOfBirth":{"type":["string","null"],"format":"date-time"},"InternalJtlId":{"type":"integer"},"AttributeMapping":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/CustomerAttributeMapping.json","type":"object","title":"CustomerAttributeMapping","properties":{"AttributeName":{"type":"string"}},"additionalProperties":true},"CustomerGroupName":{"type":"string"},"AccountInformation":{"type":"array","items":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/AccountInformation.json","type":"object","title":"AccountInformation","properties":{"BankCode":{"type":["string","null"]},"BankName":{"type":["string","null"]},"CardType":{"type":["string","null"]},"SwiftCode":{"type":["string","null"]},"CardNumber":{"type":["string","null"]},"AccountOwner":{"type":["string","null"]},"ExpirationDate":{"type":["string","null"]},"BankAccountNumber":{"type":["string","null"]},"CardVerificationCode":{"type":["string","null"]},"InternationalBankAccountNumber":{"type":["string","null"]}},"additionalProperties":true}},"CustomerAttributes":{"type":"array","items":{"$ref":"#/components/schemas/Order/properties/OrderAttributes/items"}},"CustomerReferenceNo":{"type":["string","null"]},"ExternalReferenceId":{"type":["string","null"]},"DefaultBillingAddress":{"$ref":"#/components/schemas/Order/properties/BillingAddress"},"VatIdentificationNumber":{"type":["string","null"]}},"additionalProperties":true},"OrderAttributes":{"type":"array","items":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/Attribute.json","type":"object","title":"Attribute","required":["FieldType"],"properties":{"FieldType":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/AttributeFieldType.json","enum":["Integer","Decimal","Freetext","Checkbox","ValueList","Url","Email","Telephone","Country","Price","Date","ShortText"],"type":"string","title":"AttributeFieldType","description":"T4dt.JtlDbService.Abstractions.Poco.AttributeFieldType (StringEnumConverter)."},"NameI18Ns":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/TranslatableStringMap.json","type":"object","title":"TranslatableStringMap","description":"Serialisierte TranslatableNameCollection / ähnliche Strukturen: Schlüssel = Language-ISO (z. B. ger, neutral, x-ger-shop), Wert = Text.","additionalProperties":{"type":"string"}},"ValueI18Ns":{"type":"object","description":"Dictionary Language→Wert; JSON-Keys folgen der Language-Serialisierung. Werttyp abhängig von FieldType.","additionalProperties":true},"LanguageIndependent":{"type":"boolean","default":true}},"description":"T4dt.JtlDbService.Abstractions.Poco.Attribute / Attribute&lt;T&gt; (AttributeConverter).","additionalProperties":true}},"CachedProperties":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/CachedOrderDetails.json","type":"object","title":"CachedOrderDetails","properties":{"CountryIso":{"type":["string","null"]},"RefundState":{"$ref":"#/components/schemas/Order/properties/PaymentState"},"PaymentState":{"$ref":"#/components/schemas/Order/properties/PaymentState"},"CheckoutState":{"$ref":"#/components/schemas/Order/properties/PaymentState"},"LastUpdateUtc":{"type":["string","null"],"format":"date-time"},"RefundTimeUtc":{"type":["string","null"],"format":"date-time"},"ShippingState":{"$ref":"#/components/schemas/Order/properties/PaymentState"},"PaymentTimeUtc":{"type":["string","null"],"format":"date-time"},"CreationTimeUtc":{"type":["string","null"],"format":"date-time"},"ShippingTimeUtc":{"type":["string","null"],"format":"date-time"}},"additionalProperties":true},"OrderReferenceNo":{"type":["string","null"]}},"description":"T4dt.JtlDbService.Abstractions.Poco.Order – Positions-Array heißt in JSON \"Item\" ([JsonProperty]).","additionalProperties":true},"OrderResponse":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/OrderResponse.json","allOf":[{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/Order.json","type":"object","title":"Order","properties":{"Id":{"type":"string"},"Item":{"type":"array","items":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/OrderPosition.json","oneOf":[{"type":"object","title":"ArticleAsPosition (ProductItem)","required":["$type"],"properties":{"Id":{"type":"string"},"Sku":{"type":["string","null"]},"Sort":{"type":"integer"},"Text":{"type":"string"},"$type":{"const":"ProductItem"},"Mapping":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/ArticleAttributeMapping.json","oneOf":[{"enum":["Sku","SkuMapping","Attribute","Gtin"],"type":"string"},{"type":"object","properties":{"MappingType":{"enum":["Sku","Attribute","Gtin"],"type":"string"},"AttributeName":{"type":["string","null"]},"AttributeValue":{"type":["string","null"]},"AttributeGroupName":{"type":["string","null"]}},"additionalProperties":true}],"title":"ArticleAttributeMapping","description":"Newtonsoft ArticleAttributeMappingConverter: entweder Kurzstring (Sku / SkuMapping / …) oder vollständiges Objekt."},"Product":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/Product.json","type":"object","title":"Product","properties":{"Sku":{"type":["string","null"]},"Name":{"$ref":"#/components/schemas/OrderResponse/allOf/0/properties/OrderAttributes/items/properties/NameI18Ns"},"Barcode":{"type":["string","null"]},"NetPrice":{"type":"number"},"BrandName":{"type":["string","null"]},"ModelName":{"type":"string"},"ParentSku":{"type":["string","null"]},"SalesUnit":{"$ref":"#/components/schemas/OrderResponse/allOf/0/properties/OrderAttributes/items/properties/NameI18Ns"},"Attributes":{"type":"array","items":{"$ref":"#/components/schemas/OrderResponse/allOf/0/properties/OrderAttributes/items"}},"ActiveSites":{"type":"array","items":{"$ref":"#/components/schemas/OrderResponse/allOf/0/properties/SiteInfo/properties/Site"}},"Description":{"type":"object","additionalProperties":{"type":"string"}},"Identifiers":{"$ref":"#/components/schemas/OrderResponse/allOf/0/properties/Item/items/oneOf/0/properties/ExternalIdentifiers"},"DeliveryTime":{"type":"integer"},"HasShelfLive":{"type":"boolean"},"MarketplaceId":{"type":["string","null"]},"ShippingClass":{"type":["string","null"]},"ShortDescriptions":{"type":"object","additionalProperties":{"type":"string"}},"ExternalIdentifiers":{"$ref":"#/components/schemas/OrderResponse/allOf/0/properties/Item/items/oneOf/0/properties/ExternalIdentifiers"},"RecommendedRetailPrice":{"type":["number","null"]}},"description":"T4dt.JtlDbService.Abstractions.Poco.Product – Kernfelder; zusätzliche Felder aus SDK-JSON sind zulässig.","additionalProperties":true},"Remarks":{"type":"string"},"VatRate":{"type":"number"},"Discount":{"type":"number"},"Quantity":{"type":"number"},"UnitPrice":{"type":"number"},"IsComponent":{"type":"boolean"},"SourceItemId":{"type":["string","null"]},"InternalJtlId":{"type":"integer"},"BundleChildren":{"type":"array","items":{"$ref":"#/components/schemas/OrderResponse/allOf/0/properties/Item/items"}},"IsBundleParent":{"type":"boolean"},"ExternalIdentifiers":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/IdentifierMap.json","type":"object","title":"IdentifierCollection","description":"T4dt.JtlDbService.Abstractions.Poco.IdentifierCollection serialisiert als string→string Map.","additionalProperties":{"type":"string"}},"BundleOrderItemInternalJtlId":{"type":"integer"}},"additionalProperties":true},{"type":"object","title":"FreeTextAsPosition (FreeTextItem)","required":["$type"],"properties":{"Id":{"type":"string"},"Sort":{"type":"integer"},"Text":{"type":"string"},"$type":{"const":"FreeTextItem"},"Remarks":{"type":"string"},"VatRate":{"type":"number"},"Discount":{"type":"number"},"Quantity":{"type":"number"},"UnitPrice":{"type":"number"},"IsComponent":{"type":"boolean"},"SourceItemId":{"type":["string","null"]},"InternalJtlId":{"type":"integer"},"IsBundleParent":{"type":"boolean"},"BundleOrderItemInternalJtlId":{"type":"integer"}},"additionalProperties":true},{"type":"object","title":"PaymentCostAsPosition (PaymentCostItem)","required":["$type"],"properties":{"Id":{"type":"string"},"Sort":{"type":"integer"},"Text":{"type":"string"},"$type":{"const":"PaymentCostItem"},"Remarks":{"type":"string"},"VatRate":{"type":"number"},"Discount":{"type":"number"},"Quantity":{"type":"number"},"UnitPrice":{"type":"number"},"IsComponent":{"type":"boolean"},"SourceItemId":{"type":["string","null"]},"InternalJtlId":{"type":"integer"},"IsBundleParent":{"type":"boolean"},"BundleOrderItemInternalJtlId":{"type":"integer"}},"additionalProperties":true},{"type":"object","title":"ShipmentAsPosition (ShipmentItem)","required":["$type"],"properties":{"Id":{"type":"string"},"Sort":{"type":"integer"},"Text":{"type":"string"},"$type":{"const":"ShipmentItem"},"Remarks":{"type":"string"},"VatRate":{"type":"number"},"Discount":{"type":"number"},"Quantity":{"type":"number"},"UnitPrice":{"type":"number"},"IsComponent":{"type":"boolean"},"SourceItemId":{"type":["string","null"]},"InternalJtlId":{"type":"integer"},"IsBundleParent":{"type":"boolean"},"BundleOrderItemInternalJtlId":{"type":"integer"}},"additionalProperties":true},{"type":"object","title":"VoucherAsPosition (VoucherItem)","required":["$type"],"properties":{"Id":{"type":"string"},"Sort":{"type":"integer"},"Text":{"type":"string"},"$type":{"const":"VoucherItem"},"Remarks":{"type":"string"},"VatRate":{"type":"number"},"Discount":{"type":"number"},"Quantity":{"type":"number"},"UnitPrice":{"type":"number"},"IsComponent":{"type":"boolean"},"SourceItemId":{"type":["string","null"]},"InternalJtlId":{"type":"integer"},"IsBundleParent":{"type":"boolean"},"BundleOrderItemInternalJtlId":{"type":"integer"}},"additionalProperties":true}],"title":"OrderPosition","description":"Polymorph über JsonIncludeConverter: erstes Property $type mit ProductItem | FreeTextItem | PaymentCostItem | ShipmentItem | VoucherItem."},"description":"Order.Positions ([JsonProperty(\"Item\")])."},"Refunds":{"type":"array","items":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/Refund.json","type":"object","title":"Refund","properties":{"Id":{"type":"string"},"Items":{"type":"array","items":{"$ref":"#/components/schemas/OrderResponse/allOf/0/properties/Item/items"},"description":"Refund.RefundedPositions ([JsonProperty(\"Items\")])."},"Remark":{"type":["string","null"]},"TotalAmount":{"type":"number","readOnly":true},"InternalJtlId":{"type":"integer"},"RefundDateTime":{"type":["string","null"],"format":"date-time"},"AssociatedOrder":{"type":["object","null"],"description":"Optional; vermeidet zirkuläres $ref zu Order.json.","additionalProperties":true},"RefundDateTimeUtc":{"type":["string","null"],"format":"date-time"}},"additionalProperties":true}},"Payments":{"type":"array","items":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/Payment.json","type":"object","title":"Payment","properties":{"Note":{"type":"string"},"OrderId":{"type":"string"},"AmountPaid":{"type":"number"},"PaymentType":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/PaymentType.json","enum":["Payment","ReminderFee","Discount","Voucher"],"type":"string","title":"PaymentType"},"InternalJtlId":{"type":"integer"},"PaymentMethod":{"$ref":"#/components/schemas/OrderResponse/allOf/0/properties/PaymentMethod"},"TransactionId":{"type":"string"},"PaymentDateTime":{"type":["string","null"],"format":"date-time"},"InternalJtlOrderId":{"type":"integer"},"PaymentDateTimeUtc":{"type":["string","null"],"format":"date-time"}},"additionalProperties":true}},"SiteInfo":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/SiteInfo.json","type":"object","title":"SiteInfo","properties":{"Site":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/Site.json","type":"object","title":"Site","properties":{"SiteName":{"type":"string"},"SiteType":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/SiteType.json","enum":["Platform","Shop","Checkbox"],"type":"string","title":"SiteType"},"SiteAccountId":{"type":"string"}},"additionalProperties":true},"UsedCurrency":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/Currency.json","oneOf":[{"type":"string","minLength":1},{"type":"object","properties":{"Iso3":{"type":["string","null"]},"HtmlCode":{"type":"string"},"ExchangeRate":{"type":["number","null"]}},"additionalProperties":true}],"title":"Currency","description":"T4dt.JtlDbService.Abstractions.Poco.Currency (CurrencyConverter). Often a bare ISO string is also accepted on read."},"SubmittedPriceIsNetPrice":{"type":"boolean"}},"additionalProperties":true},"Shipments":{"type":"array","items":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/Shipment.json","type":"object","title":"Shipment","properties":{"Order":{"type":["object","null"],"description":"Optional; zirkulär zu Order.json. Newtonsoft serialisiert die Rückreferenz oft nicht.","additionalProperties":true},"Parcels":{"type":"array","items":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/Parcel.json","type":"object","title":"Parcel","properties":{"Remarks":{"type":"string"},"CarrierCode":{"type":"string"},"PackingTime":{"type":"string","description":"TimeSpan string (c) oder Sekunden als Zahl als String"},"CarrierClass":{"type":"string"},"TrackingCode":{"type":["string","null"]},"ShippingState":{"$ref":"#/components/schemas/OrderResponse/allOf/0/properties/PaymentState"},"ShippingWeight":{"type":"number"},"InternalParcelId":{"type":"integer"},"ShippingDateTime":{"type":["string","null"],"format":"date-time"},"CarrierDisplayName":{"type":"string"},"ReturnTrackingCode":{"type":["string","null"]},"ShippingDateTimeUtc":{"type":["string","null"],"format":"date-time"},"EstimatedDateArrival":{"type":["string","null"],"format":"date-time"}},"additionalProperties":true}},"ShipmentItems":{"type":"array","items":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/ShipmentItem.json","type":"object","title":"ShipmentItem","required":["Sku"],"properties":{"Sku":{"type":"string"},"Text":{"type":"string"},"Remark":{"type":["string","null"]},"Mapping":{"$ref":"#/components/schemas/OrderResponse/allOf/0/properties/Item/items/oneOf/0/properties/Mapping"},"IsComponent":{"type":"boolean"},"QuantityShipped":{"type":"number"},"InternalJtlOrderItemId":{"type":"integer"}},"additionalProperties":true}},"DeliveryNoteId":{"type":"string"}},"description":"Outbound-/Inbound-Sendung; Order wird von Newtonsoft oft weggelassen (ShouldSerializeOrder).","additionalProperties":true}},"StateInfo":{"type":"string"},"TotalPaid":{"type":"number","readOnly":true},"RefundState":{"allOf":[{"$ref":"#/components/schemas/OrderResponse/allOf/0/properties/PaymentState"}],"description":"Nur-Lese berechnet; kann bei Serialisierung dennoch vorkommen."},"TotalAmount":{"type":"number","readOnly":true},"OrderDetails":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/OrderDetails.json","type":"object","title":"OrderDetails","properties":{"ShortHints":{"type":"string"},"LastUpdateUtc":{"type":["string","null"],"format":"date-time"},"MerchantVatId":{"type":["string","null"]},"RefundDateUtc":{"type":["string","null"],"format":"date-time"},"PaymentDateUtc":{"type":["string","null"],"format":"date-time"},"LastUpdateLocal":{"type":["string","null"],"format":"date-time"},"MerchantAddress":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/OrderResponse/allOf/0/properties/BillingAddress"}]},"RefundDateLocal":{"type":["string","null"],"format":"date-time"},"ShippingDateUtc":{"type":["string","null"],"format":"date-time"},"PaymentDateLocal":{"type":["string","null"],"format":"date-time"},"ShippingDateLocal":{"type":["string","null"],"format":"date-time"},"SpecialInstructions":{"type":"string"},"OrderCreatedDateTime":{"type":"string","format":"date-time"},"OrderCreatedDateTimeUtc":{"type":"string","format":"date-time"},"RequestedShippingCarrier":{"type":["string","null"]}},"additionalProperties":true},"PaymentState":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/State.json","enum":["Unknown","Pending","Partially","Complete","Canceled"],"type":"string","title":"State","description":"T4dt.JtlDbService.Abstractions.Poco.State (Newtonsoft StringEnumConverter)."},"CheckoutState":{"$ref":"#/components/schemas/OrderResponse/allOf/0/properties/PaymentState"},"InternalJtlId":{"type":"integer"},"PaymentMethod":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/PaymentMethod.json","type":"object","title":"PaymentMethod","properties":{"MethodName":{"type":"string"}},"additionalProperties":true},"ShipmentState":{"$ref":"#/components/schemas/OrderResponse/allOf/0/properties/PaymentState"},"TotalRefunded":{"type":"number","readOnly":true},"BillingAddress":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/Address.json","type":"object","title":"Address","properties":{"City":{"type":["string","null"]},"Email":{"type":["string","null"]},"Title":{"type":["string","null"]},"SurName":{"type":["string","null"]},"PostCode":{"type":["string","null"]},"FaxNumber":{"type":["string","null"]},"FirstName":{"type":["string","null"]},"CountryIso":{"type":["string","null"]},"Salutation":{"type":["string","null"]},"CompanyName":{"type":["string","null"]},"PhoneNumber":{"type":["string","null"]},"AdressField1":{"type":["string","null"]},"AdressField2":{"type":["string","null"]},"StateOrProvince":{"type":["string","null"]},"CompanySupplement":{"type":["string","null"]},"MobilePhoneNumber":{"type":["string","null"]}},"description":"T4dt.JtlDbService.Abstractions.Poco.Address","additionalProperties":true},"ShippingAdress":{"$ref":"#/components/schemas/OrderResponse/allOf/0/properties/BillingAddress"},"CustomerDetails":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/CustomerDetails.json","type":"object","title":"CustomerDetails","properties":{"Email":{"type":["string","null"]},"Language":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/Language.json","type":"object","title":"Language","properties":{"Iso":{"type":"string"},"UnderlyingIso":{"type":"string"},"Specialization":{"type":["string","null"]}},"description":"Language wird in JSON typischerweise als Objekt { Iso, Specialization, ... } oder implizit als Dictionary-Key serialisiert.","additionalProperties":true},"FaxNumber":{"type":["string","null"]},"CompanyName":{"type":["string","null"]},"DateOfBirth":{"type":["string","null"],"format":"date-time"},"InternalJtlId":{"type":"integer"},"AttributeMapping":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/CustomerAttributeMapping.json","type":"object","title":"CustomerAttributeMapping","properties":{"AttributeName":{"type":"string"}},"additionalProperties":true},"CustomerGroupName":{"type":"string"},"AccountInformation":{"type":"array","items":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/AccountInformation.json","type":"object","title":"AccountInformation","properties":{"BankCode":{"type":["string","null"]},"BankName":{"type":["string","null"]},"CardType":{"type":["string","null"]},"SwiftCode":{"type":["string","null"]},"CardNumber":{"type":["string","null"]},"AccountOwner":{"type":["string","null"]},"ExpirationDate":{"type":["string","null"]},"BankAccountNumber":{"type":["string","null"]},"CardVerificationCode":{"type":["string","null"]},"InternationalBankAccountNumber":{"type":["string","null"]}},"additionalProperties":true}},"CustomerAttributes":{"type":"array","items":{"$ref":"#/components/schemas/OrderResponse/allOf/0/properties/OrderAttributes/items"}},"CustomerReferenceNo":{"type":["string","null"]},"ExternalReferenceId":{"type":["string","null"]},"DefaultBillingAddress":{"$ref":"#/components/schemas/OrderResponse/allOf/0/properties/BillingAddress"},"VatIdentificationNumber":{"type":["string","null"]}},"additionalProperties":true},"OrderAttributes":{"type":"array","items":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/Attribute.json","type":"object","title":"Attribute","required":["FieldType"],"properties":{"FieldType":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/AttributeFieldType.json","enum":["Integer","Decimal","Freetext","Checkbox","ValueList","Url","Email","Telephone","Country","Price","Date","ShortText"],"type":"string","title":"AttributeFieldType","description":"T4dt.JtlDbService.Abstractions.Poco.AttributeFieldType (StringEnumConverter)."},"NameI18Ns":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/TranslatableStringMap.json","type":"object","title":"TranslatableStringMap","description":"Serialisierte TranslatableNameCollection / ähnliche Strukturen: Schlüssel = Language-ISO (z. B. ger, neutral, x-ger-shop), Wert = Text.","additionalProperties":{"type":"string"}},"ValueI18Ns":{"type":"object","description":"Dictionary Language→Wert; JSON-Keys folgen der Language-Serialisierung. Werttyp abhängig von FieldType.","additionalProperties":true},"LanguageIndependent":{"type":"boolean","default":true}},"description":"T4dt.JtlDbService.Abstractions.Poco.Attribute / Attribute&lt;T&gt; (AttributeConverter).","additionalProperties":true}},"CachedProperties":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/CachedOrderDetails.json","type":"object","title":"CachedOrderDetails","properties":{"CountryIso":{"type":["string","null"]},"RefundState":{"$ref":"#/components/schemas/OrderResponse/allOf/0/properties/PaymentState"},"PaymentState":{"$ref":"#/components/schemas/OrderResponse/allOf/0/properties/PaymentState"},"CheckoutState":{"$ref":"#/components/schemas/OrderResponse/allOf/0/properties/PaymentState"},"LastUpdateUtc":{"type":["string","null"],"format":"date-time"},"RefundTimeUtc":{"type":["string","null"],"format":"date-time"},"ShippingState":{"$ref":"#/components/schemas/OrderResponse/allOf/0/properties/PaymentState"},"PaymentTimeUtc":{"type":["string","null"],"format":"date-time"},"CreationTimeUtc":{"type":["string","null"],"format":"date-time"},"ShippingTimeUtc":{"type":["string","null"],"format":"date-time"}},"additionalProperties":true},"OrderReferenceNo":{"type":["string","null"]}},"description":"T4dt.JtlDbService.Abstractions.Poco.Order – Positions-Array heißt in JSON \"Item\" ([JsonProperty]).","additionalProperties":true}],"title":"OrderResponse","description":"Identisch zum JSON von Order (siehe Plan)."},"OutboundShipment":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/OutboundShipment.json","allOf":[{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/Shipment.json","type":"object","title":"Shipment","properties":{"Order":{"type":["object","null"],"description":"Optional; zirkulär zu Order.json. Newtonsoft serialisiert die Rückreferenz oft nicht.","additionalProperties":true},"Parcels":{"type":"array","items":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/Parcel.json","type":"object","title":"Parcel","properties":{"Remarks":{"type":"string"},"CarrierCode":{"type":"string"},"PackingTime":{"type":"string","description":"TimeSpan string (c) oder Sekunden als Zahl als String"},"CarrierClass":{"type":"string"},"TrackingCode":{"type":["string","null"]},"ShippingState":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/State.json","enum":["Unknown","Pending","Partially","Complete","Canceled"],"type":"string","title":"State","description":"T4dt.JtlDbService.Abstractions.Poco.State (Newtonsoft StringEnumConverter)."},"ShippingWeight":{"type":"number"},"InternalParcelId":{"type":"integer"},"ShippingDateTime":{"type":["string","null"],"format":"date-time"},"CarrierDisplayName":{"type":"string"},"ReturnTrackingCode":{"type":["string","null"]},"ShippingDateTimeUtc":{"type":["string","null"],"format":"date-time"},"EstimatedDateArrival":{"type":["string","null"],"format":"date-time"}},"additionalProperties":true}},"ShipmentItems":{"type":"array","items":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/ShipmentItem.json","type":"object","title":"ShipmentItem","required":["Sku"],"properties":{"Sku":{"type":"string"},"Text":{"type":"string"},"Remark":{"type":["string","null"]},"Mapping":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/ArticleAttributeMapping.json","oneOf":[{"enum":["Sku","SkuMapping","Attribute","Gtin"],"type":"string"},{"type":"object","properties":{"MappingType":{"enum":["Sku","Attribute","Gtin"],"type":"string"},"AttributeName":{"type":["string","null"]},"AttributeValue":{"type":["string","null"]},"AttributeGroupName":{"type":["string","null"]}},"additionalProperties":true}],"title":"ArticleAttributeMapping","description":"Newtonsoft ArticleAttributeMappingConverter: entweder Kurzstring (Sku / SkuMapping / …) oder vollständiges Objekt."},"IsComponent":{"type":"boolean"},"QuantityShipped":{"type":"number"},"InternalJtlOrderItemId":{"type":"integer"}},"additionalProperties":true}},"DeliveryNoteId":{"type":"string"}},"description":"Outbound-/Inbound-Sendung; Order wird von Newtonsoft oft weggelassen (ShouldSerializeOrder).","additionalProperties":true}],"title":"OutboundShipment","description":"Entspricht Shipment im Kontext von ImportOutboundShipmentsAsync."},"PatchOrderAttributesRequest":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/PatchOrderAttributesRequest.json","type":"object","title":"PatchOrderAttributesRequest","required":["reference","referenceType","attributes"],"properties":{"reference":{"type":"string"},"attributes":{"type":"array","items":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/Attribute.json","type":"object","title":"Attribute","required":["FieldType"],"properties":{"FieldType":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/AttributeFieldType.json","enum":["Integer","Decimal","Freetext","Checkbox","ValueList","Url","Email","Telephone","Country","Price","Date","ShortText"],"type":"string","title":"AttributeFieldType","description":"T4dt.JtlDbService.Abstractions.Poco.AttributeFieldType (StringEnumConverter)."},"NameI18Ns":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/TranslatableStringMap.json","type":"object","title":"TranslatableStringMap","description":"Serialisierte TranslatableNameCollection / ähnliche Strukturen: Schlüssel = Language-ISO (z. B. ger, neutral, x-ger-shop), Wert = Text.","additionalProperties":{"type":"string"}},"ValueI18Ns":{"type":"object","description":"Dictionary Language→Wert; JSON-Keys folgen der Language-Serialisierung. Werttyp abhängig von FieldType.","additionalProperties":true},"LanguageIndependent":{"type":"boolean","default":true}},"description":"T4dt.JtlDbService.Abstractions.Poco.Attribute / Attribute&lt;T&gt; (AttributeConverter).","additionalProperties":true},"minItems":1},"referenceType":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/OrderReferenceType.json","enum":[0,1,2,3],"type":"integer","title":"OrderReferenceType","description":"T4dt.JtlDbService.Abstractions.Provider.SqlCommandProvider.Options.OrderReferenceType (numeric values as serialized by default Newtonsoft).","x-enumNames":["SupplierOrderId","OrderId","ExternalOrderId","DeliveryNoteId"]}},"description":"Entspricht PatchOrderAttributesAsync(reference, referenceType, attributes).","additionalProperties":false},"Refund":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/Refund.json","type":"object","title":"Refund","properties":{"Id":{"type":"string"},"Items":{"type":"array","items":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/OrderPosition.json","oneOf":[{"type":"object","title":"ArticleAsPosition (ProductItem)","required":["$type"],"properties":{"Id":{"type":"string"},"Sku":{"type":["string","null"]},"Sort":{"type":"integer"},"Text":{"type":"string"},"$type":{"const":"ProductItem"},"Mapping":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/ArticleAttributeMapping.json","oneOf":[{"enum":["Sku","SkuMapping","Attribute","Gtin"],"type":"string"},{"type":"object","properties":{"MappingType":{"enum":["Sku","Attribute","Gtin"],"type":"string"},"AttributeName":{"type":["string","null"]},"AttributeValue":{"type":["string","null"]},"AttributeGroupName":{"type":["string","null"]}},"additionalProperties":true}],"title":"ArticleAttributeMapping","description":"Newtonsoft ArticleAttributeMappingConverter: entweder Kurzstring (Sku / SkuMapping / …) oder vollständiges Objekt."},"Product":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/Product.json","type":"object","title":"Product","properties":{"Sku":{"type":["string","null"]},"Name":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/TranslatableStringMap.json","type":"object","title":"TranslatableStringMap","description":"Serialisierte TranslatableNameCollection / ähnliche Strukturen: Schlüssel = Language-ISO (z. B. ger, neutral, x-ger-shop), Wert = Text.","additionalProperties":{"type":"string"}},"Barcode":{"type":["string","null"]},"NetPrice":{"type":"number"},"BrandName":{"type":["string","null"]},"ModelName":{"type":"string"},"ParentSku":{"type":["string","null"]},"SalesUnit":{"$ref":"#/components/schemas/Refund/properties/Items/items/oneOf/0/properties/Product/properties/Name"},"Attributes":{"type":"array","items":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/Attribute.json","type":"object","title":"Attribute","required":["FieldType"],"properties":{"FieldType":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/AttributeFieldType.json","enum":["Integer","Decimal","Freetext","Checkbox","ValueList","Url","Email","Telephone","Country","Price","Date","ShortText"],"type":"string","title":"AttributeFieldType","description":"T4dt.JtlDbService.Abstractions.Poco.AttributeFieldType (StringEnumConverter)."},"NameI18Ns":{"$ref":"#/components/schemas/Refund/properties/Items/items/oneOf/0/properties/Product/properties/Name"},"ValueI18Ns":{"type":"object","description":"Dictionary Language→Wert; JSON-Keys folgen der Language-Serialisierung. Werttyp abhängig von FieldType.","additionalProperties":true},"LanguageIndependent":{"type":"boolean","default":true}},"description":"T4dt.JtlDbService.Abstractions.Poco.Attribute / Attribute&lt;T&gt; (AttributeConverter).","additionalProperties":true}},"ActiveSites":{"type":"array","items":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/Site.json","type":"object","title":"Site","properties":{"SiteName":{"type":"string"},"SiteType":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/SiteType.json","enum":["Platform","Shop","Checkbox"],"type":"string","title":"SiteType"},"SiteAccountId":{"type":"string"}},"additionalProperties":true}},"Description":{"type":"object","additionalProperties":{"type":"string"}},"Identifiers":{"$ref":"#/components/schemas/Refund/properties/Items/items/oneOf/0/properties/ExternalIdentifiers"},"DeliveryTime":{"type":"integer"},"HasShelfLive":{"type":"boolean"},"MarketplaceId":{"type":["string","null"]},"ShippingClass":{"type":["string","null"]},"ShortDescriptions":{"type":"object","additionalProperties":{"type":"string"}},"ExternalIdentifiers":{"$ref":"#/components/schemas/Refund/properties/Items/items/oneOf/0/properties/ExternalIdentifiers"},"RecommendedRetailPrice":{"type":["number","null"]}},"description":"T4dt.JtlDbService.Abstractions.Poco.Product – Kernfelder; zusätzliche Felder aus SDK-JSON sind zulässig.","additionalProperties":true},"Remarks":{"type":"string"},"VatRate":{"type":"number"},"Discount":{"type":"number"},"Quantity":{"type":"number"},"UnitPrice":{"type":"number"},"IsComponent":{"type":"boolean"},"SourceItemId":{"type":["string","null"]},"InternalJtlId":{"type":"integer"},"BundleChildren":{"type":"array","items":{"$ref":"#/components/schemas/Refund/properties/Items/items"}},"IsBundleParent":{"type":"boolean"},"ExternalIdentifiers":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/IdentifierMap.json","type":"object","title":"IdentifierCollection","description":"T4dt.JtlDbService.Abstractions.Poco.IdentifierCollection serialisiert als string→string Map.","additionalProperties":{"type":"string"}},"BundleOrderItemInternalJtlId":{"type":"integer"}},"additionalProperties":true},{"type":"object","title":"FreeTextAsPosition (FreeTextItem)","required":["$type"],"properties":{"Id":{"type":"string"},"Sort":{"type":"integer"},"Text":{"type":"string"},"$type":{"const":"FreeTextItem"},"Remarks":{"type":"string"},"VatRate":{"type":"number"},"Discount":{"type":"number"},"Quantity":{"type":"number"},"UnitPrice":{"type":"number"},"IsComponent":{"type":"boolean"},"SourceItemId":{"type":["string","null"]},"InternalJtlId":{"type":"integer"},"IsBundleParent":{"type":"boolean"},"BundleOrderItemInternalJtlId":{"type":"integer"}},"additionalProperties":true},{"type":"object","title":"PaymentCostAsPosition (PaymentCostItem)","required":["$type"],"properties":{"Id":{"type":"string"},"Sort":{"type":"integer"},"Text":{"type":"string"},"$type":{"const":"PaymentCostItem"},"Remarks":{"type":"string"},"VatRate":{"type":"number"},"Discount":{"type":"number"},"Quantity":{"type":"number"},"UnitPrice":{"type":"number"},"IsComponent":{"type":"boolean"},"SourceItemId":{"type":["string","null"]},"InternalJtlId":{"type":"integer"},"IsBundleParent":{"type":"boolean"},"BundleOrderItemInternalJtlId":{"type":"integer"}},"additionalProperties":true},{"type":"object","title":"ShipmentAsPosition (ShipmentItem)","required":["$type"],"properties":{"Id":{"type":"string"},"Sort":{"type":"integer"},"Text":{"type":"string"},"$type":{"const":"ShipmentItem"},"Remarks":{"type":"string"},"VatRate":{"type":"number"},"Discount":{"type":"number"},"Quantity":{"type":"number"},"UnitPrice":{"type":"number"},"IsComponent":{"type":"boolean"},"SourceItemId":{"type":["string","null"]},"InternalJtlId":{"type":"integer"},"IsBundleParent":{"type":"boolean"},"BundleOrderItemInternalJtlId":{"type":"integer"}},"additionalProperties":true},{"type":"object","title":"VoucherAsPosition (VoucherItem)","required":["$type"],"properties":{"Id":{"type":"string"},"Sort":{"type":"integer"},"Text":{"type":"string"},"$type":{"const":"VoucherItem"},"Remarks":{"type":"string"},"VatRate":{"type":"number"},"Discount":{"type":"number"},"Quantity":{"type":"number"},"UnitPrice":{"type":"number"},"IsComponent":{"type":"boolean"},"SourceItemId":{"type":["string","null"]},"InternalJtlId":{"type":"integer"},"IsBundleParent":{"type":"boolean"},"BundleOrderItemInternalJtlId":{"type":"integer"}},"additionalProperties":true}],"title":"OrderPosition","description":"Polymorph über JsonIncludeConverter: erstes Property $type mit ProductItem | FreeTextItem | PaymentCostItem | ShipmentItem | VoucherItem."},"description":"Refund.RefundedPositions ([JsonProperty(\"Items\")])."},"Remark":{"type":["string","null"]},"TotalAmount":{"type":"number","readOnly":true},"InternalJtlId":{"type":"integer"},"RefundDateTime":{"type":["string","null"],"format":"date-time"},"AssociatedOrder":{"type":["object","null"],"description":"Optional; vermeidet zirkuläres $ref zu Order.json.","additionalProperties":true},"RefundDateTimeUtc":{"type":["string","null"],"format":"date-time"}},"additionalProperties":true,"description":"Payload contract for message_type \"Refund\" (from message_type.jsons_contract)."},"SupplierStock":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/SupplierStock.json","type":"object","title":"SupplierStock","required":["Timestamp"],"properties":{"Supplier":{"oneOf":[{"type":"null"},{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/Supplier.json","type":"object","title":"Supplier","properties":{"Id":{"type":"string"},"VatId":{"type":["string","null"]},"Remark":{"type":["string","null"]},"Address":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/Address.json","type":"object","title":"Address","properties":{"City":{"type":["string","null"]},"Email":{"type":["string","null"]},"Title":{"type":["string","null"]},"SurName":{"type":["string","null"]},"PostCode":{"type":["string","null"]},"FaxNumber":{"type":["string","null"]},"FirstName":{"type":["string","null"]},"CountryIso":{"type":["string","null"]},"Salutation":{"type":["string","null"]},"CompanyName":{"type":["string","null"]},"PhoneNumber":{"type":["string","null"]},"AdressField1":{"type":["string","null"]},"AdressField2":{"type":["string","null"]},"StateOrProvince":{"type":["string","null"]},"CompanySupplement":{"type":["string","null"]},"MobilePhoneNumber":{"type":["string","null"]}},"description":"T4dt.JtlDbService.Abstractions.Poco.Address","additionalProperties":true},"Contacts":{"type":"array","items":{"type":"object","additionalProperties":true}},"BankAccounts":{"type":"array","items":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/AccountInformation.json","type":"object","title":"AccountInformation","properties":{"BankCode":{"type":["string","null"]},"BankName":{"type":["string","null"]},"CardType":{"type":["string","null"]},"SwiftCode":{"type":["string","null"]},"CardNumber":{"type":["string","null"]},"AccountOwner":{"type":["string","null"]},"ExpirationDate":{"type":["string","null"]},"BankAccountNumber":{"type":["string","null"]},"CardVerificationCode":{"type":["string","null"]},"InternationalBankAccountNumber":{"type":["string","null"]}},"additionalProperties":true}},"InternalJtlId":{"type":"integer"},"CustomerNumber":{"type":"string"}},"additionalProperties":true}]},"Timestamp":{"type":"string","format":"date-time"}},"description":"InventorySnapshot-artiges Message-Objekt: feste Keys Supplier & Timestamp plus SKU→Menge (Dezimal).","additionalProperties":{"type":"number"}},"GtinStockSnapshot":{"x-schema-id":"https://schemas.t4data.cloud/jtl-wawi/unimporter/GtinStockSnapshot.json","title":"GtinStockSnapshot","description":"Vollbestand mit GTIN, Artikelnummer und Menge. MessageType GtinStockSnapshot. Export: Export-InventorySnapshot -subtype GtinStockSnapshot. InventorySnapshot und DeltaStockSnapshot bleiben das SKU-Wörterbuch.","type":"object","required":["Timestamp","Items"],"additionalProperties":false,"properties":{"Timestamp":{"type":"string","format":"date-time"},"Items":{"type":"array","items":{"$ref":"#/components/schemas/GtinStockSnapshot/$defs/GtinStockLine"}}},"$defs":{"GtinStockLine":{"type":"object","required":["ArticleNumber","Gtin","Quantity"],"additionalProperties":false,"properties":{"ArticleNumber":{"type":"string","minLength":1},"Gtin":{"type":"string","minLength":1},"Quantity":{"type":"number","minimum":0}}}}},"Partner":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","format":"uuid"},"created_at":{"type":"string","format":"date-time"},"name":{"type":"string","nullable":true},"active":{"type":"boolean","nullable":true}},"required":["id","created_at"]},"PartnersListResponse":{"type":"object","additionalProperties":false,"properties":{"partners":{"type":"array","items":{"$ref":"#/components/schemas/Partner"}}},"required":["partners"]},"Message":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","format":"uuid"},"created_at":{"type":"string","format":"date-time"},"data":{"description":"Payload; schema depends on `message_type`. Named contracts: Order, OrderResponse, InboundShipment, OutboundShipment, PatchOrderAttributesRequest, Refund, SupplierStock, GtinStockSnapshot. Types without a published contract (Invoice, SupplierOrder, test) use a free-form object. For large messages, `data` is typically null and the payload lives in object storage (see `data_object_id`).","nullable":true,"oneOf":[{"$ref":"#/components/schemas/Order"},{"$ref":"#/components/schemas/OrderResponse"},{"$ref":"#/components/schemas/InboundShipment"},{"$ref":"#/components/schemas/OutboundShipment"},{"$ref":"#/components/schemas/PatchOrderAttributesRequest"},{"$ref":"#/components/schemas/Refund"},{"$ref":"#/components/schemas/SupplierStock"},{"$ref":"#/components/schemas/GtinStockSnapshot"},{"$ref":"#/components/schemas/FreeFormObject"}]},"data_object_id":{"type":"string","format":"uuid","nullable":true,"description":"Object-storage reference. When set, the payload is in object storage; `data` may be null."},"message_type":{"type":"object","additionalProperties":false,"description":"Embedded message_type","properties":{"name":{"type":"string","description":"message_type name","example":"Order"}},"required":["name"]},"sender_id":{"type":"string","format":"uuid","description":"Alias sender"},"receiver_id":{"type":"string","format":"uuid","description":"Alias receiver"},"exported_at":{"type":"string","format":"date-time","nullable":true},"custom_message_id":{"type":"string","nullable":true}},"required":["id","created_at","message_type","sender_id","receiver_id"]},"MessageCreate":{"description":"Request body for `POST /functions/v1/message`.\n\n`message_type` = `messageTypes[].name` from `GET /functions/v1/message-types`.\n`receiver_id` = `partners[].id` from `GET /functions/v1/partners`.\n`data` and `data_object_id` are mutually exclusive.\n\nWhen `data` is set, prefer a named payload schema matching `message_type` (Order, OrderResponse, …).","oneOf":[{"type":"object","additionalProperties":false,"properties":{"message_type":{"type":"string","description":"Canonical name from message-types catalog","example":"Order"},"receiver_id":{"type":"string","format":"uuid","description":"Target partner id from partners lookup"},"custom_message_id":{"type":"string"},"data":{"description":"Payload matching message_type contract (named schemas under components/schemas).","oneOf":[{"$ref":"#/components/schemas/Order"},{"$ref":"#/components/schemas/OrderResponse"},{"$ref":"#/components/schemas/InboundShipment"},{"$ref":"#/components/schemas/OutboundShipment"},{"$ref":"#/components/schemas/PatchOrderAttributesRequest"},{"$ref":"#/components/schemas/Refund"},{"$ref":"#/components/schemas/SupplierStock"},{"$ref":"#/components/schemas/GtinStockSnapshot"},{"$ref":"#/components/schemas/FreeFormObject"}]}},"required":["message_type","receiver_id","data"]},{"type":"object","additionalProperties":false,"properties":{"message_type":{"type":"string","description":"Canonical name from message-types catalog","example":"Order"},"receiver_id":{"type":"string","format":"uuid","description":"Target partner id from partners lookup"},"custom_message_id":{"type":"string"},"data_object_id":{"type":"string","format":"uuid","description":"Object-storage object ID (payload lives in object storage)."}},"required":["message_type","receiver_id","data_object_id"]}]},"MessageCreated":{"type":"object","additionalProperties":false,"properties":{"id":{"type":"string","format":"uuid"}},"required":["id"]}},"responses":{"Unauthorized":{"description":"Not authenticated — missing, expired, or invalid credentials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"examples":{"sample":{"summary":"401","value":{"error":"Unauthorized"}}}}}},"Forbidden":{"description":"Authenticated, but not permitted for this operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"examples":{"sample":{"summary":"403","value":{"error":"Forbidden"}}}}}},"ForbiddenPlatformAdmin":{"description":"Authenticated, but not permitted (platform admin required).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"examples":{"sample":{"summary":"403","value":{"error":"Forbidden"}}}}}},"InternalError":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"examples":{"sample":{"summary":"500","value":{"error":"Internal server error"}}}}}},"NotFound":{"description":"Resource not found.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"examples":{"sample":{"summary":"404","value":{"error":"Not found"}}}}}},"MethodNotAllowed":{"description":"HTTP method not allowed for this path.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"examples":{"sample":{"summary":"405","value":{"error":"Method not allowed"}}}}}}}}}