{"openapi":"3.1.0","info":{"title":"DVA API: WMS Integration","description":"The DVA API facilitates the submission of data related to incoming goods processes to the DVA service.\nThis data may include general information such as an incoming goods protocol, as well as line-item level data like quantity variances.\nIt is integrated into a \"DVA goods receipt\" which represents the contents of a DESADV or RECADV, enriched with data from various sources,\nincluding product master data, to provide comprehensive information to users.\n\n**Target Audience:** This API is designed for third-party systems to automatically provide data about the\nincoming goods process without user intervention. Note that if a DVA goods receipt\nalready exists in the system (e.g. created by a DESADV or RECADV), the data will be\noverwritten. The Goods Receipt will also automatically be acknowledged/signed, which means\nno changes can be made through the UI, but updates can still happen through the\nREST APIs `PUT /goods-receipts` endpoint.\n\n**Available Servers:**\n- Demo Environment: https://api.demo.dva.markant.services\n- Production Environment: https://api.dva.markant.services\n\n","contact":{"name":"DVA Support","email":"dva.support@de.markant.com"},"version":"v1.5"},"servers":[{"url":"https://api.demo.dva.markant.services","description":"Generated server url"}],"security":[{"oauth":[]}],"tags":[{"name":"Goods Receipts API","description":"Operations for managing goods receipts in the warehouse management system.\n\n**Authentication Required:** All endpoints require OAuth 2.0 Bearer token authentication.\n\n**Important:**  If a DVA goods receipt\nalready exists in the system (e.g. created by a DESADV), the data will be\noverwritten. The Goods Receipt will also automatically be acknowledged/signed, which means\nno changes can be made through the UI, but updates can still happen through the\nREST APIs `PUT /goods-receipts` endpoint.\n"},{"name":"Transports API","description":"Operations for providing transport documents and information to the DVA system.\n\n**Authentication Required:** All endpoints require OAuth 2.0 Bearer token authentication.\n\n**Important:** Transport documents create electronic transport documents (ETDs). Each consignment\ncan receive a delivery note PDF; AI analysis then enriches the data and creates goods receipt bundles.\n"},{"name":"Line Items API V2","description":"Version 2 of the line items API. V2 supports accepted/delivered quantities at line-item level and list-based quantity variance entries."},{"name":"Delivery Notes API","description":"Operations for providing delivery notes for the DVA system.\n\n**Authentication Required:** All endpoints require OAuth 2.0 Bearer token authentication.\n\n**Important:** Delivery notes are used to create goods receipt bundles in the DVA system.\nThe system will automatically process the delivery note data and create corresponding goods receipts.\n"},{"name":"Goods Receipts API V2","description":"Version 2 of the goods receipt API. V2 keeps endpoint behavior from v1 and introduces line-item level accepted/delivered quantities plus list-based quantity variance entries."},{"name":"Line Items API","description":"Operations for managing line items within goods receipts. Line items represent individual products or articles within a delivery."}],"paths":{"/v2/goods-receipts/{goodsReceiptId}":{"get":{"tags":["Goods Receipts API V2"],"summary":"Get goods receipt by ID (v2)","operationId":"getGoodsReceiptById","parameters":[{"name":"goodsReceiptId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successfully retrieved goods receipt","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoodsReceiptResponseV2Dto"}}}},"401":{"description":"Unauthorized - Invalid or missing Bearer token"},"403":{"description":"Forbidden - Token valid but insufficient permissions"},"404":{"description":"Not Found - Goods receipt with the specified ID does not exist"},"500":{"description":"Internal server error - Contact support if this persists"}},"security":[{"oauth":[]}]},"put":{"tags":["Goods Receipts API V2"],"summary":"Update goods receipt (v2)","operationId":"updateGoodsReceipt","parameters":[{"name":"goodsReceiptId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoodsReceiptUpdateV2Dto"}}},"required":true},"responses":{"200":{"description":"Successfully updated goods receipt","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoodsReceiptResponseV2Dto"}}}},"400":{"description":"Bad Request - Invalid request body, missing mandatory fields, or malformed JSON"},"401":{"description":"Unauthorized - Invalid or missing Bearer token"},"403":{"description":"Forbidden - Token valid but insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}},"404":{"description":"Not Found - Goods receipt with the specified ID does not exist"},"409":{"description":"Conflict - The goods receipt bundle is already acknowledged, invalid state transition, or concurrent modification detected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}},"422":{"description":"Unprocessable Entity - Request data is valid JSON but contains business logic errors, e.g. a line item whose acceptedQuantity or deliveredQuantity differs from despatchedQuantity has no quantityVariances entry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}},"500":{"description":"Internal server error - Contact support if this persists"}},"security":[{"oauth":[]}]}},"/v2/goods-receipts/{goodsReceiptId}/line-items/{lineItemId}":{"get":{"tags":["Line Items API V2"],"summary":"Get line item by ID (v2)","description":"Retrieve a specific line item by its unique identifier.","operationId":"getLineItemById","parameters":[{"name":"goodsReceiptId","in":"path","description":"Unique identifier of the goods receipt","required":true,"schema":{"type":"string"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"lineItemId","in":"path","description":"Unique identifier of the line item","required":true,"schema":{"type":"string"},"example":"987fcdeb-51a2-43d1-9c4f-123456789abc"}],"responses":{"200":{"description":"Successfully retrieved line item","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LineItemResponseV2Dto"}}}},"401":{"description":"Unauthorized - Invalid or missing Bearer token"},"403":{"description":"Forbidden - Token valid but insufficient permissions"},"404":{"description":"Not Found - Goods receipt or line item with the specified ID does not exist"},"500":{"description":"Internal server error - Contact support if this persists"}},"security":[{"oauth":[]}]},"put":{"tags":["Line Items API V2"],"summary":"Update line item (v2)","description":"Update an existing line item with new data.","operationId":"updateLineItem","parameters":[{"name":"goodsReceiptId","in":"path","description":"Unique identifier of the goods receipt","required":true,"schema":{"type":"string"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"lineItemId","in":"path","description":"Unique identifier of the line item","required":true,"schema":{"type":"string"},"example":"987fcdeb-51a2-43d1-9c4f-123456789abc"}],"requestBody":{"description":"Updated line item data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LineItemUpdateV2Dto"}}},"required":true},"responses":{"200":{"description":"Successfully updated line item","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LineItemResponseV2Dto"}}}},"400":{"description":"Bad Request - Invalid request body or missing mandatory fields"},"401":{"description":"Unauthorized - Invalid or missing Bearer token"},"403":{"description":"Forbidden - Token valid but insufficient permissions"},"404":{"description":"Not Found - Goods receipt or line item with the specified ID does not exist"},"409":{"description":"Conflict - The goods receipt bundle is already acknowledged","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}},"422":{"description":"Unprocessable Entity - The updated line item has an acceptedQuantity or deliveredQuantity that differs from despatchedQuantity, but no quantityVariances entry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}},"500":{"description":"Internal server error - Contact support if this persists"}},"security":[{"oauth":[]}]},"delete":{"tags":["Line Items API V2"],"summary":"Delete line item (v2)","description":"Delete a specific line item from a goods receipt. This operation cannot be undone.","operationId":"deleteLineItem","parameters":[{"name":"goodsReceiptId","in":"path","description":"Unique identifier of the goods receipt","required":true,"schema":{"type":"string"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"lineItemId","in":"path","description":"Unique identifier of the line item","required":true,"schema":{"type":"string"},"example":"987fcdeb-51a2-43d1-9c4f-123456789abc"}],"responses":{"204":{"description":"Successfully deleted line item"},"401":{"description":"Unauthorized - Invalid or missing Bearer token"},"403":{"description":"Forbidden - Token valid but insufficient permissions"},"404":{"description":"Not Found - Goods receipt or line item with the specified ID does not exist"},"409":{"description":"Conflict - The goods receipt bundle is already acknowledged","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}},"500":{"description":"Internal server error - Contact support if this persists"}},"security":[{"oauth":[]}]}},"/v1/goods-receipts/{goodsReceiptId}":{"get":{"tags":["Goods Receipts API"],"summary":"Get goods receipt by ID","description":"Retrieves a specific goods receipt by its unique identifier with complete details including receiving advice and line items. The goods receipt ID is typically returned from the create operation.","operationId":"getGoodsReceiptById_1","parameters":[{"name":"goodsReceiptId","in":"path","description":"Unique identifier of the goods receipt to retrieve","required":true,"schema":{"type":"string"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"responses":{"200":{"description":"Successfully retrieved goods receipt","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoodsReceiptResponseDto"}}}},"401":{"description":"Unauthorized - Invalid or missing Bearer token"},"403":{"description":"Forbidden - Token valid but insufficient permissions"},"404":{"description":"Not Found - Goods receipt with the specified ID does not exist"},"500":{"description":"Internal server error - Contact support if this persists"}},"security":[{"oauth":[]}]},"put":{"tags":["Goods Receipts API"],"summary":"Update goods receipt","description":"Updates an existing goods receipt with new receiving advice information. This operation replaces the current receiving advice data with the provided data. The goods receipt must exist and not be acknowledged/signed yet.","operationId":"updateGoodsReceipt_1","parameters":[{"name":"goodsReceiptId","in":"path","description":"Unique identifier of the goods receipt to update","required":true,"schema":{"type":"string"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"description":"Updated goods receipt data with receiving advice information. Must include all required fields as specified in the API documentation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoodsReceiptUpdateDto"}}},"required":true},"responses":{"200":{"description":"Successfully updated goods receipt","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoodsReceiptResponseDto"}}}},"400":{"description":"Bad Request - Invalid request body, missing mandatory fields, or malformed JSON"},"401":{"description":"Unauthorized - Invalid or missing Bearer token"},"403":{"description":"Forbidden - Token valid but insufficient permissions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}},"404":{"description":"Not Found - Goods receipt with the specified ID does not exist"},"409":{"description":"Conflict - The goods receipt bundle is already acknowledged, invalid state transition, or concurrent modification detected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}},"422":{"description":"Unprocessable Entity - Request data is valid JSON but contains business logic errors"},"500":{"description":"Internal server error - Contact support if this persists"}},"security":[{"oauth":[]}]}},"/v1/goods-receipts/{goodsReceiptId}/line-items/{lineItemId}":{"get":{"tags":["Line Items API"],"summary":"Get line item by ID","description":"Retrieve a specific line item by its unique identifier.","operationId":"getLineItemById_1","parameters":[{"name":"goodsReceiptId","in":"path","description":"Unique identifier of the goods receipt","required":true,"schema":{"type":"string"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"lineItemId","in":"path","description":"Unique identifier of the line item","required":true,"schema":{"type":"string"},"example":"987fcdeb-51a2-43d1-9c4f-123456789abc"}],"responses":{"200":{"description":"Successfully retrieved line item","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LineItemResponseDto"}}}},"401":{"description":"Unauthorized - Invalid or missing Bearer token"},"403":{"description":"Forbidden - Token valid but insufficient permissions"},"404":{"description":"Not Found - Goods receipt or line item with the specified ID does not exist"},"500":{"description":"Internal server error - Contact support if this persists"}},"security":[{"oauth":[]}]},"put":{"tags":["Line Items API"],"summary":"Update line item","description":"Update an existing line item with new data.","operationId":"updateLineItem_1","parameters":[{"name":"goodsReceiptId","in":"path","description":"Unique identifier of the goods receipt","required":true,"schema":{"type":"string"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"lineItemId","in":"path","description":"Unique identifier of the line item","required":true,"schema":{"type":"string"},"example":"987fcdeb-51a2-43d1-9c4f-123456789abc"}],"requestBody":{"description":"Updated line item data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LineItemUpdateDto"}}},"required":true},"responses":{"200":{"description":"Successfully updated line item","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LineItemResponseDto"}}}},"400":{"description":"Bad Request - Invalid request body or missing mandatory fields"},"401":{"description":"Unauthorized - Invalid or missing Bearer token"},"403":{"description":"Forbidden - Token valid but insufficient permissions"},"404":{"description":"Not Found - Goods receipt or line item with the specified ID does not exist"},"409":{"description":"Conflict - The goods receipt bundle is already acknowledged","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}},"500":{"description":"Internal server error - Contact support if this persists"}},"security":[{"oauth":[]}]},"delete":{"tags":["Line Items API"],"summary":"Delete line item","description":"Delete a specific line item from a goods receipt. This operation cannot be undone.","operationId":"deleteLineItem_1","parameters":[{"name":"goodsReceiptId","in":"path","description":"Unique identifier of the goods receipt","required":true,"schema":{"type":"string"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"lineItemId","in":"path","description":"Unique identifier of the line item","required":true,"schema":{"type":"string"},"example":"987fcdeb-51a2-43d1-9c4f-123456789abc"}],"responses":{"204":{"description":"Successfully deleted line item"},"401":{"description":"Unauthorized - Invalid or missing Bearer token"},"403":{"description":"Forbidden - Token valid but insufficient permissions"},"404":{"description":"Not Found - Goods receipt or line item with the specified ID does not exist"},"409":{"description":"Conflict - The goods receipt bundle is already acknowledged","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}},"500":{"description":"Internal server error - Contact support if this persists"}},"security":[{"oauth":[]}]}},"/v2/transports":{"get":{"tags":["Transports API"],"summary":"Get transport by shipment number and carrier GLN","description":"Retrieves a transport by its unique shipment number scoped to the given carrier GLN.","operationId":"getTransportByShipmentNumber","parameters":[{"name":"shipmentNumber","in":"query","description":"The shipment number of the transport","required":true,"schema":{"type":"string"},"example":"SHIP-123"},{"name":"carrierGln","in":"query","description":"The carrier GLN (Global Location Number)","required":true,"schema":{"type":"string"},"example":1234567890123}],"responses":{"200":{"description":"Successfully retrieved transport","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransportResponseDto"}}}},"401":{"description":"Unauthorized - Invalid or missing Bearer token"},"403":{"description":"Forbidden - Token valid but caller is not authorized for the given carrier GLN","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}},"404":{"description":"Not Found - No transport with the given shipment number and carrier GLN exists","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}}},"security":[{"oauth":[]}]},"post":{"tags":["Transports API"],"summary":"Upload transport document","description":"Creates a new electronic transport document (ETD) from a transport document JSON payload.\n\nThis endpoint creates an ETD in draft state with one delivery note slot per consignment.\nUpload delivery note PDFs per consignment to trigger AI analysis; when all are processed,\na goods receipt bundle is created.\n","operationId":"uploadTransport","requestBody":{"description":"Transport document data containing header and body information with consignments","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransportDto"}}},"required":true},"responses":{"200":{"description":"Transport document processed successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransportResponseDto"}}}},"400":{"description":"Bad Request - Invalid transport document data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}},"401":{"description":"Unauthorized - Invalid or missing Bearer token"},"403":{"description":"Forbidden - Token valid but insufficient permissions (requires DVA_ADMIN or DVA_ETD_UPLOADER role)"},"409":{"description":"Conflict - A transport with the same shipment number already exists for this organisation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}},"422":{"description":"Unprocessable Entity - Validation errors in transport document data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}}},"security":[{"oauth":[]}]}},"/v2/transports/{transportId}/consignments/{consignmentId}/delivery-note":{"post":{"tags":["Transports API"],"summary":"Upload delivery note for transport consignment","description":"Uploads a delivery note document (PDF, image, etc.) for a consignment within a transport.\n\nThe PDF is stored and sent for AI analysis. Results override the initial consignment data.\nWhen all consignments have been processed, a goods receipt bundle is created.\n","operationId":"uploadDeliveryNote","parameters":[{"name":"transportId","in":"path","description":"The unique identifier of the transport (ETD ID)","required":true,"schema":{"type":"string"},"example":"12345678-1234-1234-1234-123456789012"},{"name":"consignmentId","in":"path","description":"The unique identifier of the consignment (delivery note ID) to attach the delivery note to","required":true,"schema":{"type":"string"},"example":"87654321-4321-4321-4321-210987654321"}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"content":{"type":"string","format":"binary","description":"The delivery note file to upload. Supported formats: PDF, PNG, JPEG. Maximum size: 20MB"}},"required":["content"]}}}},"responses":{"200":{"description":"Delivery note uploaded successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransportConsignmentDeliveryNoteUploadResponseDto"}}}},"400":{"description":"Bad Request - Invalid file or missing mandatory fields","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransportConsignmentDeliveryNoteUploadResponseDto"}}}},"401":{"description":"Unauthorized - Invalid or missing Bearer token"},"403":{"description":"Forbidden - Token valid but insufficient permissions"},"404":{"description":"Not Found - Transport or consignment not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}},"409":{"description":"Conflict - Delivery note is not in AWAITING_PDF state or already has a PDF attached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}},"413":{"description":"Payload Too Large - File size exceeds maximum allowed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransportConsignmentDeliveryNoteUploadResponseDto"}}}},"415":{"description":"Unsupported Media Type - File type not supported","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransportConsignmentDeliveryNoteUploadResponseDto"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}}},"security":[{"oauth":[]}]}},"/v2/goods-receipts":{"get":{"tags":["Goods Receipts API V2"],"summary":"Get all goods receipts (v2)","operationId":"getAllGoodsReceipts","parameters":[{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"modifiedAfter","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"acknowledgedAfter","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"orderNumber","in":"query","required":false,"schema":{"type":"string"}},{"name":"deliveryNoteNumber","in":"query","required":false,"schema":{"type":"string"}},{"name":"referenceNumber","in":"query","required":false,"schema":{"type":"string"}},{"name":"deliveryPartyGln","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successfully retrieved goods receipts","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelGoodsReceiptResponseV2Dto"}}}},"400":{"description":"Bad Request - Invalid parameter format"},"401":{"description":"Unauthorized - Invalid or missing Bearer token"},"403":{"description":"Forbidden - Token valid but insufficient permissions"},"500":{"description":"Internal server error - Contact support if this persists"}},"security":[{"oauth":[]}]},"post":{"tags":["Goods Receipts API V2"],"summary":"Create or replace goods receipt (v2)","operationId":"createOrReplaceGoodsReceipt","parameters":[{"name":"override","in":"query","description":"Deprecated, use mergeStrategy=REPLACE instead.","required":false,"deprecated":true,"schema":{"type":"boolean","default":false}},{"name":"mergeStrategy","in":"query","description":"How to treat an existing goods receipt with the same referenceNumber, deliveryParty.gln, deliveryNoteNumber and orderNumber. REPLACE = override=true, MERGE = book line items (lineItemNumber required and unique; existing identical lines are skipped; a line books the first not yet booked announced line with the same lineItemNumber or article and replaces it in place; other lines are appended; a booked line with the same lineItemNumber and different content returns 409; acknowledged goods receipts return 422). Omit for the default behaviour.","required":false,"schema":{"type":"string","enum":["REPLACE","MERGE"]}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoodsReceiptCreateV2Dto"}}},"required":true},"responses":{"200":{"description":"OK - The matched goods receipt originates from a RECADV. Its ID is returned unchanged; no data is merged, replaced, or created (independent of the override parameter and acknowledgement state)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoodsReceiptIdResponseDto"}}}},"201":{"description":"Created - Successfully created new goods receipt or subsequent delivery","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoodsReceiptIdResponseDto"}}}},"400":{"description":"Bad Request - Invalid request body, missing mandatory fields (orderNumber, deliveryNoteNumber, referenceNumber, deliveryParty.gln), or malformed JSON"},"401":{"description":"Unauthorized - Invalid or missing Bearer token"},"403":{"description":"Forbidden - Token valid but insufficient permissions or user has no access to the specified deliveryParty.gln"},"422":{"description":"Unprocessable Entity - Request data is valid JSON but contains business logic errors or invalid EANCOM data, e.g. a line item whose acceptedQuantity or deliveredQuantity differs from despatchedQuantity has no quantityVariances entry, or an acknowledged goods receipt would be replaced","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}},"500":{"description":"Internal server error - Contact support if this persists"}},"security":[{"oauth":[]}]}},"/v2/goods-receipts/{goodsReceiptId}/line-items":{"get":{"tags":["Line Items API V2"],"summary":"Get all line items (v2)","description":"Retrieve all line items for a specific goods receipt.","operationId":"getAllLineItems","parameters":[{"name":"goodsReceiptId","in":"path","description":"Unique identifier of the goods receipt","required":true,"schema":{"type":"string"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"responses":{"200":{"description":"Successfully retrieved line items","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LineItemResponseV2Dto"}}}}},"401":{"description":"Unauthorized - Invalid or missing Bearer token"},"403":{"description":"Forbidden - Token valid but insufficient permissions"},"404":{"description":"Not Found - Goods receipt with the specified ID does not exist"},"500":{"description":"Internal server error - Contact support if this persists"}},"security":[{"oauth":[]}]},"post":{"tags":["Line Items API V2"],"summary":"Create a new line item (v2)","description":"Add a new line item to an existing goods receipt. The line item ID will be generated by the system.","operationId":"createLineItem","parameters":[{"name":"goodsReceiptId","in":"path","description":"Unique identifier of the goods receipt","required":true,"schema":{"type":"string"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"description":"Line item data to create","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LineItemCreateV2Dto"}}},"required":true},"responses":{"201":{"description":"Successfully created line item","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LineItemIdResponseDto"}}}},"400":{"description":"Bad Request - Invalid request body or missing mandatory fields"},"401":{"description":"Unauthorized - Invalid or missing Bearer token"},"403":{"description":"Forbidden - Token valid but insufficient permissions"},"404":{"description":"Not Found - Goods receipt with the specified ID does not exist"},"409":{"description":"Conflict - The goods receipt bundle is already acknowledged","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}},"422":{"description":"Unprocessable Entity - acceptedQuantity or deliveredQuantity differs from despatchedQuantity, but quantityVariances has no entry","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}},"500":{"description":"Internal server error - Contact support if this persists"}},"security":[{"oauth":[]}]}},"/v2/goods-receipts/{goodsReceiptId}/line-items/{lineItemId}/attachments":{"post":{"tags":["Line Items API V2"],"summary":"Add attachment to line item (v2)","description":"Upload an attachment to a specific line item, e.g., images of damaged goods or product documentation.","operationId":"addAttachmentToLineItem","parameters":[{"name":"goodsReceiptId","in":"path","description":"Unique identifier of the goods receipt","required":true,"schema":{"type":"string"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"lineItemId","in":"path","description":"Unique identifier of the line item","required":true,"schema":{"type":"string"},"example":"987fcdeb-51a2-43d1-9c4f-123456789abc"}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"content":{"type":"string","format":"binary","description":"File to upload: PDF, JPEG or PNG, at most 20 MB. HEIC/HEIF is not supported."}},"required":["content"]}}}},"responses":{"200":{"description":"OK - File uploaded successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachmentCreateResponseDto"}}}},"400":{"description":"Bad Request - File exceeds 20 MB, or filename or Content-Type is missing"},"401":{"description":"Unauthorized - Invalid or missing Bearer token"},"403":{"description":"Forbidden - Token valid but insufficient permissions"},"404":{"description":"Not Found - Goods receipt or line item with the specified ID does not exist"},"409":{"description":"Conflict - An attachment with identical content already exists on this line item (errorCode ALREADY_EXISTS_ATTACHMENT, parameters.existingAttachmentId)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}},"413":{"description":"Payload Too Large - Request body exceeds 20 MB"},"415":{"description":"Unsupported Media Type - Only PDF, JPEG and PNG are supported; file content and Content-Type must match"},"500":{"description":"Internal server error - Contact support if this persists"}},"security":[{"oauth":[]}]}},"/v2/goods-receipts/{goodsReceiptId}/attachments":{"post":{"tags":["Goods Receipts API V2"],"summary":"Add attachment to goods receipt (v2)","description":"Upload an attachment to an existing goods receipt, e.g. a signed delivery note as PDF or photos of damaged goods.\n\n**Supported file types:** PDF, JPEG and PNG. HEIC/HEIF is not supported; convert phone photos to JPEG before upload.\n**Maximum file size:** 20 MB per file.\n**File validation:** The file content and the `Content-Type` of the part must both be one of the supported types.\n","operationId":"addAttachmentToGoodsReceipt","parameters":[{"name":"goodsReceiptId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"content":{"type":"string","format":"binary","description":"File to upload: PDF, JPEG or PNG, at most 20 MB. HEIC/HEIF is not supported."}},"required":["content"]}}}},"responses":{"200":{"description":"OK - File uploaded successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachmentCreateResponseDto"}}}},"400":{"description":"Bad Request - File exceeds 20 MB, or filename or Content-Type is missing"},"401":{"description":"Unauthorized - Invalid or missing Bearer token"},"403":{"description":"Forbidden - Token valid but insufficient permissions"},"404":{"description":"Not Found - Goods receipt with the specified ID does not exist"},"409":{"description":"Conflict - An attachment with identical content already exists on this goods receipt (errorCode ALREADY_EXISTS_ATTACHMENT, parameters.existingAttachmentId)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}},"413":{"description":"Payload Too Large - Request body exceeds 20 MB"},"415":{"description":"Unsupported Media Type - Only PDF, JPEG and PNG are supported; file content and Content-Type must match"},"500":{"description":"Internal server error - Contact support if this persists"},"501":{"description":"Not Implemented - Feature is disabled by configuration"}},"security":[{"oauth":[]}]}},"/v2/goods-receipts/{goodsReceiptId}/acknowledgement":{"post":{"tags":["Goods Receipts API V2"],"summary":"Acknowledge goods receipt bundle (v2)","operationId":"acknowledgeGoodsReceipt","parameters":[{"name":"goodsReceiptId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoodsReceiptAcknowledgeDto"}}},"required":true},"responses":{"200":{"description":"Successfully acknowledged goods receipt","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoodsReceiptAcknowledgeResponseDto"}}}},"400":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}},"401":{"description":"Unauthorized - Invalid or missing Bearer token"},"403":{"description":"Forbidden - Token valid but insufficient permissions"},"404":{"description":"Not Found - Goods receipt with the specified ID does not exist"},"409":{"description":"Conflict - The goods receipt bundle is already acknowledged","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}},"422":{"description":"Unprocessable Entity - Request data is valid JSON but contains business logic errors or validation failures","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}},"500":{"description":"Internal server error - Contact support if this persists"},"501":{"description":"Not Implemented - Feature is disabled by configuration"}},"security":[{"oauth":[]}]}},"/v1/goods-receipts":{"get":{"tags":["Goods Receipts API"],"summary":"Get all goods receipts","description":"Retrieves a paginated list of all goods receipts in the system with their complete details including receiving advice information. Use pagination parameters to control the number of results and sorting. By default, goods receipts are sorted by creation date (createdAt) with the newest goods receipts first. For polling use cases, the modifiedAfter parameter can be used to retrieve only goods receipts that have been modified after a specific timestamp. Additional filters can be applied using orderNumber, deliveryNoteNumber, referenceNumber, and deliveryPartyGln (combined with AND logic).","operationId":"getAllGoodsReceipts_1","parameters":[{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"modifiedAfter","in":"query","description":"Filter goods receipts modified after this timestamp. Use ISO 8601 format (e.g., 2024-01-15T10:00:00Z). Useful for polling to get only new/updated goods receipts.","required":false,"schema":{"type":"string","format":"date-time"},"example":"2024-01-15T10:00:00Z"},{"name":"acknowledgedAfter","in":"query","description":"Filter for goods receipts that have been acknowledged after this timestamp. Use ISO 8601 format (e.g., 2024-01-15T10:00:00Z). Useful for polling to get only acknowledged goods receipts.","required":false,"schema":{"type":"string","format":"date-time"},"example":"2024-01-15T10:00:00Z"},{"name":"orderNumber","in":"query","description":"Filter goods receipts by order number. When provided, only goods receipts with this exact order number will be returned.","required":false,"schema":{"type":"string"},"example":"ORD-2024-5678"},{"name":"deliveryNoteNumber","in":"query","description":"Filter goods receipts by delivery note number. When provided, only goods receipts with this exact delivery note number will be returned.","required":false,"schema":{"type":"string"},"example":"DN-2024-3456"},{"name":"referenceNumber","in":"query","description":"Filter goods receipts by reference number. When provided, only goods receipts with this exact reference number will be returned.","required":false,"schema":{"type":"string"},"example":"REF-2024-001234"},{"name":"deliveryPartyGln","in":"query","description":"Filter goods receipts by delivery party GLN. When provided, only goods receipts with this exact delivery party GLN will be returned.","required":false,"schema":{"type":"string"},"example":1234567890123}],"responses":{"200":{"description":"Successfully retrieved goods receipts","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelGoodsReceiptResponseDto"}}}},"400":{"description":"Bad Request - Invalid parameter format"},"401":{"description":"Unauthorized - Invalid or missing Bearer token"},"403":{"description":"Forbidden - Token valid but insufficient permissions"},"500":{"description":"Internal server error - Contact support if this persists"}},"security":[{"oauth":[]}]},"post":{"tags":["Goods Receipts API"],"summary":"Create or replace goods receipt","description":"Create a new goods receipt or replace an existing goods receipt. The data corresponds to certain EANCOM segments and is used to create a DVA goods receipt.\n\n**Required Fields:**\n- orderNumber (mandatory)\n- deliveryNoteNumber (mandatory)\n- referenceNumber (mandatory)\n- deliveryParty.gln (mandatory)\n\n**Matching:**\nThe system attempts to match the incoming data against existing goods receipts scoped to the same `deliveryParty.gln`. Matching is score-based and uses fields such as `referenceNumber`, `orderNumber`, and `deliveryNoteNumber`. The `referenceNumber` carries the highest weight and is sufficient on its own to produce a match.\n\n**Behavior:**\n- If no matching goods receipt is found: Creates a new goods receipt\n- If the matched goods receipt originates from a RECADV: Returns its ID with HTTP 200 and changes nothing (independent of override and acknowledgement state)\n- If a match is found and it is **not** acknowledged:\n\t- With override=false (default): Merges the incoming data into the existing goods receipt\n\t- With override=true and `referenceNumber`, `deliveryParty.gln`, `deliveryNoteNumber`, and `orderNumber` all match: Deletes the existing goods receipt (and its attachments) and creates a new one\n- If a match is found and it is **already acknowledged**:\n\t- With override=true and `referenceNumber`, `deliveryParty.gln`, `deliveryNoteNumber`, and `orderNumber` all match: Returns an error (override not allowed for acknowledged goods receipts)\n\t- Otherwise: Creates a new subsequent delivery linked to the existing goods receipt bundle\n\n**mergeStrategy (replaces the deprecated override parameter):**\n- `REPLACE`: Same as override=true\n- `MERGE`: Merges the line items of the request into the goods receipt whose `referenceNumber`, `deliveryParty.gln`, `deliveryNoteNumber`, and `orderNumber` all match. Use it to book the line items of one delivery note in several requests (partial and follow-up bookings).\n\t- Every line item needs a `lineItemNumber`, unique within the request (otherwise 422)\n\t- A line item whose `lineItemNumber` already exists with the same content is skipped; if all are skipped the response is HTTP 200\n\t- A line item books the first announced line (from the delivery note or DESADV) that is not booked yet and has the same `lineItemNumber` or the same article (`articleNumberBuyer`, or `gtin` if one side has no `articleNumberBuyer`). The booked line replaces the announced one at its position and takes over its `lineItemNumber`, quantities and variances; article data it leaves empty is kept from the announced line\n\t- Announced lines without a booking stay unchanged\n\t- A line item without a matching announced line is appended\n\t- A line item whose `lineItemNumber` already exists as a booked line with different content returns HTTP 409\n\t- Header data and attachments of the existing goods receipt stay unchanged\n\t- No goods receipt matches: creates a new one. A goods receipt that differs in one of the four fields: HTTP 404\n\t- Already acknowledged goods receipt: HTTP 422\n- Sending mergeStrategy together with override=true returns HTTP 422\n","operationId":"createOrReplaceGoodsReceipt_1","parameters":[{"name":"override","in":"query","description":"Deprecated, use mergeStrategy=REPLACE instead. Override flag to delete and recreate if a goods receipt with the same referenceNumber already exists. Default is false which merges data into existing goods receipt. Override is not allowed for already acknowledged goods receipts.","required":false,"deprecated":true,"schema":{"type":"boolean","default":false},"example":false},{"name":"mergeStrategy","in":"query","description":"How to treat an existing goods receipt with the same referenceNumber, deliveryParty.gln, deliveryNoteNumber and orderNumber. REPLACE = override=true, MERGE = book line items onto announced lines and append the rest. Omit for the default behaviour.","required":false,"schema":{"type":"string","enum":["REPLACE","MERGE"]}}],"requestBody":{"description":"Goods receipt data to create, containing receiving advice information.\nRequired fields: orderNumber, deliveryNoteNumber, referenceNumber, deliveryParty.gln\nSee the full API documentation for detailed field descriptions and examples.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoodsReceiptCreateDto"}}},"required":true},"responses":{"200":{"description":"OK - The matched goods receipt originates from a RECADV. Its ID is returned unchanged; no data is merged, replaced, or created (independent of the override parameter and acknowledgement state)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoodsReceiptIdResponseDto"}}}},"201":{"description":"Created - Successfully created new goods receipt or subsequent delivery","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoodsReceiptIdResponseDto"}}}},"400":{"description":"Bad Request - Invalid request body, missing mandatory fields (orderNumber, deliveryNoteNumber, referenceNumber, deliveryParty.gln), or malformed JSON"},"401":{"description":"Unauthorized - Invalid or missing Bearer token"},"403":{"description":"Forbidden - Token valid but insufficient permissions or user has no access to the specified deliveryParty.gln"},"422":{"description":"Unprocessable Entity - Request data is valid JSON but contains business logic errors or invalid EANCOM data"},"500":{"description":"Internal server error - Contact support if this persists"}},"security":[{"oauth":[]}]}},"/v1/goods-receipts/{goodsReceiptId}/line-items":{"get":{"tags":["Line Items API"],"summary":"Get all line items","description":"Retrieve all line items for a specific goods receipt.","operationId":"getAllLineItems_1","parameters":[{"name":"goodsReceiptId","in":"path","description":"Unique identifier of the goods receipt","required":true,"schema":{"type":"string"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"responses":{"200":{"description":"Successfully retrieved line items","content":{"application/json":{}}},"401":{"description":"Unauthorized - Invalid or missing Bearer token"},"403":{"description":"Forbidden - Token valid but insufficient permissions"},"404":{"description":"Not Found - Goods receipt with the specified ID does not exist"},"500":{"description":"Internal server error - Contact support if this persists"}},"security":[{"oauth":[]}]},"post":{"tags":["Line Items API"],"summary":"Create a new line item","description":"Add a new line item to an existing goods receipt. The line item ID will be generated by the system.","operationId":"createLineItem_1","parameters":[{"name":"goodsReceiptId","in":"path","description":"Unique identifier of the goods receipt","required":true,"schema":{"type":"string"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"description":"Line item data to create","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LineItemCreateDto"}}},"required":true},"responses":{"201":{"description":"Successfully created line item","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LineItemIdResponseDto"}}}},"400":{"description":"Bad Request - Invalid request body or missing mandatory fields"},"401":{"description":"Unauthorized - Invalid or missing Bearer token"},"403":{"description":"Forbidden - Token valid but insufficient permissions"},"404":{"description":"Not Found - Goods receipt with the specified ID does not exist"},"409":{"description":"Conflict - The goods receipt bundle is already acknowledged","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}},"500":{"description":"Internal server error - Contact support if this persists"}},"security":[{"oauth":[]}]}},"/v1/goods-receipts/{goodsReceiptId}/line-items/{lineItemId}/attachments":{"post":{"tags":["Line Items API"],"summary":"Add attachment to line item","description":"Upload an attachment to a specific line item, e.g., images of damaged goods or product documentation.","operationId":"addAttachmentToLineItem_1","parameters":[{"name":"goodsReceiptId","in":"path","description":"Unique identifier of the goods receipt","required":true,"schema":{"type":"string"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"lineItemId","in":"path","description":"Unique identifier of the line item","required":true,"schema":{"type":"string"},"example":"987fcdeb-51a2-43d1-9c4f-123456789abc"}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"content":{"type":"string","format":"binary","description":"File to upload: PDF, JPEG or PNG, at most 20 MB. HEIC/HEIF is not supported."}},"required":["content"]}}}},"responses":{"200":{"description":"OK - File uploaded successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachmentCreateResponseDto"}}}},"400":{"description":"Bad Request - File exceeds 20 MB, or filename or Content-Type is missing"},"401":{"description":"Unauthorized - Invalid or missing Bearer token"},"403":{"description":"Forbidden - Token valid but insufficient permissions"},"404":{"description":"Not Found - Goods receipt or line item with the specified ID does not exist"},"409":{"description":"Conflict - An attachment with identical content already exists on this line item (errorCode ALREADY_EXISTS_ATTACHMENT, parameters.existingAttachmentId)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}},"413":{"description":"Payload Too Large - Request body exceeds 20 MB"},"415":{"description":"Unsupported Media Type - Only PDF, JPEG and PNG are supported; file content and Content-Type must match"},"500":{"description":"Internal server error - Contact support if this persists"}},"security":[{"oauth":[]}]}},"/v1/goods-receipts/{goodsReceiptId}/attachments":{"post":{"tags":["Goods Receipts API"],"summary":"Add attachment to goods receipt","description":"Upload an attachment to an existing goods receipt, e.g. a signed delivery note as PDF or images of damaged goods.\n\n**Supported file types:** PDF, JPEG and PNG. HEIC/HEIF is not supported; convert phone photos to JPEG before upload.\n**Maximum file size:** 20 MB per file.\n**File validation:** The file content and the `Content-Type` of the part must both be one of the supported types.\n\n**Use cases:**\n- Signed delivery notes (PDF)\n- Photos of damaged goods (JPG, PNG)\n- Additional documentation related to the goods receipt\n","operationId":"addAttachmentToGoodsReceipt_1","parameters":[{"name":"goodsReceiptId","in":"path","description":"Unique identifier of the goods receipt to attach the file to","required":true,"schema":{"type":"string"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"content":{"type":"string","format":"binary","description":"File to upload: PDF, JPEG or PNG, at most 20 MB. HEIC/HEIF is not supported."}},"required":["content"]}}}},"responses":{"200":{"description":"OK - File uploaded successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachmentCreateResponseDto"}}}},"400":{"description":"Bad Request - File exceeds 20 MB, or filename or Content-Type is missing"},"401":{"description":"Unauthorized - Invalid or missing Bearer token"},"403":{"description":"Forbidden - Token valid but insufficient permissions"},"404":{"description":"Not Found - Goods receipt with the specified ID does not exist"},"409":{"description":"Conflict - An attachment with identical content already exists on this goods receipt (errorCode ALREADY_EXISTS_ATTACHMENT, parameters.existingAttachmentId)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}},"413":{"description":"Payload Too Large - Request body exceeds 20 MB"},"415":{"description":"Unsupported Media Type - Only PDF, JPEG and PNG are supported; file content and Content-Type must match"},"500":{"description":"Internal server error - Contact support if this persists"},"501":{"description":"Not Implemented - Feature is disabled by configuration"}},"security":[{"oauth":[]}]}},"/v1/goods-receipts/{goodsReceiptId}/acknowledgement":{"post":{"tags":["Goods Receipts API"],"summary":"Sign/Acknowledge corresponding goods receipt bundle","description":"Sign/Acknowledge a goods receipt bundle by goodss receipt ID. This operation marks the goods receipt bundle as signed/acknowledged, meaning no further changes can be made through the UI / API.\n\n**Use cases:**\n- Finalize the goods receipt process after inspection and verification\n- Trigger events for downstream processing (e.g., inventory updates, notifications)\n\n**Important:** Once signed/acknowledged, the goods receipt cannot be modified or updated through the API or UI anymore.\n","operationId":"acknowledgeGoodsReceipt_1","parameters":[{"name":"goodsReceiptId","in":"path","description":"Unique identifier of the goods receipt to acknowledge","required":true,"schema":{"type":"string"},"example":"123e4567-e89b-12d3-a456-426614174000"}],"requestBody":{"description":"Acknowledgement data containing signatures, load carrier exchange check status, and optional comments.\nAll fields are optional but at least one should be provided to create a meaningful acknowledgement.\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoodsReceiptAcknowledgeDto"}}},"required":true},"responses":{"200":{"description":"Successfully acknowledged goods receipt","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoodsReceiptAcknowledgeResponseDto"}}}},"400":{"description":"Bad Request - Request validation failed, check the provided data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}},"401":{"description":"Unauthorized - Invalid or missing Bearer token"},"403":{"description":"Forbidden - Token valid but insufficient permissions"},"404":{"description":"Not Found - Goods receipt with the specified ID does not exist"},"409":{"description":"Conflict - The goods receipt bundle is already acknowledged","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}},"422":{"description":"Unprocessable Entity - Request data is valid JSON but contains business logic errors or validation failures","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}},"500":{"description":"Internal server error - Contact support if this persists"},"501":{"description":"Not Implemented - Feature is disabled by configuration"}},"security":[{"oauth":[]}]}},"/v1/delivery-notes/{goodsReceiptId}/hard-copy":{"post":{"tags":["Delivery Notes API"],"summary":"Upload hard copy of delivery note","description":"Uploads a hard copy (PDF, image, etc.) of the delivery note as an attachment\nto the specified goods receipt.\n\nThis endpoint allows you to attach the original delivery note document to a goods receipt\nthat was previously created from delivery note JSON data.\n\n**Supported file types:** PDF, PNG, JPEG\n**Maximum file size:** 20MB\n","operationId":"createHardCopy","parameters":[{"name":"goodsReceiptId","in":"path","description":"The unique identifier of the goods receipt to attach the hard copy to","required":true,"schema":{"type":"string"},"example":"12345678-1234-1234-1234-123456789012"}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"content":{"type":"string","format":"binary","description":"The delivery note hard copy file to upload. Supported formats: PDF, PNG, JPEG. Maximum size: 20MB"}},"required":["content"]}}}},"responses":{"200":{"description":"File uploaded successfully","content":{"text/plain":{"schema":{"type":"string","example":"File uploaded successfully."}}}},"400":{"description":"Bad Request - Invalid file or missing mandatory fields","content":{"text/plain":{"schema":{"type":"string","example":"Missing mandatory fields"}}}},"401":{"description":"Unauthorized - Invalid or missing Bearer token"},"403":{"description":"Forbidden - Token valid but insufficient permissions"},"404":{"description":"Not Found - Goods receipt not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}},"413":{"description":"Payload Too Large - File size exceeds maximum allowed","content":{"text/plain":{"schema":{"type":"string","example":"File size exceeds maximum allowed size"}}}},"415":{"description":"Unsupported Media Type - File type not supported","content":{"text/plain":{"schema":{"type":"string","example":"Unsupported file type"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}}},"security":[{"oauth":[]}]}},"/v1/delivery-notes":{"post":{"tags":["Delivery Notes API"],"summary":"Create goods receipt bundle from delivery note JSON","description":"Creates a new goods receipt bundle from a delivery note JSON payload.\n\nThis endpoint processes the delivery note data and automatically creates:\n- A goods receipt bundle containing the delivery information\n\nThe delivery note must contain valid header and body information including:\n- Partner information (supplier, buyer, delivery party, etc.)\n- Delivery details (delivery note number, dates, etc.)\n- Package and line item information\n\n**Note:** If a goods receipt bundle already exists for the same delivery note number,\nthe system will return HTTP 208 (Already Reported) without creating a duplicate.\n","operationId":"createGoodsReceiptBundleFromDeliveryNoteJson","requestBody":{"description":"Delivery note data containing header and body information","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryNoteDto"}}},"required":true},"responses":{"201":{"description":"Goods receipt bundle created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryNoteCreateResponse"}}}},"208":{"description":"Already Reported - Goods receipt bundle already exists for this delivery note"},"400":{"description":"Bad Request - Invalid delivery note data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}},"401":{"description":"Unauthorized - Invalid or missing Bearer token"},"403":{"description":"Forbidden - Token valid but insufficient permissions"},"422":{"description":"Unprocessable Entity - Validation errors in delivery note data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}}},"security":[{"oauth":[]}]}},"/v2/transports/{transportId}":{"get":{"tags":["Transports API"],"summary":"Get transport by ID","description":"Retrieves a transport by its unique identifier (the ETD ID returned from POST /v2/transports).","operationId":"getTransport","parameters":[{"name":"transportId","in":"path","description":"The unique identifier of the transport (ETD ID)","required":true,"schema":{"type":"string"},"example":"12345678-1234-1234-1234-123456789012"}],"responses":{"200":{"description":"Successfully retrieved transport","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransportResponseDto"}}}},"401":{"description":"Unauthorized - Invalid or missing Bearer token"},"403":{"description":"Forbidden - Token valid but insufficient permissions"},"404":{"description":"Not Found - Transport with the specified ID does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}}},"security":[{"oauth":[]}]}},"/v2/transports/{transportId}/consignments/{consignmentId}":{"get":{"tags":["Transports API"],"summary":"Get transport consignment by ID","description":"Retrieves a single consignment within a transport by its unique identifier.","operationId":"getConsignment","parameters":[{"name":"transportId","in":"path","description":"The unique identifier of the transport (ETD ID)","required":true,"schema":{"type":"string"},"example":"12345678-1234-1234-1234-123456789012"},{"name":"consignmentId","in":"path","description":"The unique identifier of the consignment (consignment ID)","required":true,"schema":{"type":"string"},"example":"87654321-4321-4321-4321-210987654321"}],"responses":{"200":{"description":"Successfully retrieved consignment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransportConsignmentResponseDto"}}}},"401":{"description":"Unauthorized - Invalid or missing Bearer token"},"403":{"description":"Forbidden - Token valid but insufficient permissions"},"404":{"description":"Not Found - Transport or consignment with the specified ID does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}}},"security":[{"oauth":[]}]}},"/v2/transports/{transportId}/consignments/{consignmentId}/pod":{"get":{"tags":["Transports API"],"summary":"Get proof of delivery (POD) for a consignment","description":"Retrieves the proof of delivery (POD) document for a specific consignment.\nThe response is the raw binary content (typically a PDF) with the appropriate\n`Content-Type` and `Content-Disposition` headers.\n","operationId":"getConsignmentPod","parameters":[{"name":"transportId","in":"path","description":"The unique identifier of the transport (ETD ID)","required":true,"schema":{"type":"string"},"example":"12345678-1234-1234-1234-123456789012"},{"name":"consignmentId","in":"path","description":"The unique identifier of the consignment (consignment ID)","required":true,"schema":{"type":"string"},"example":"87654321-4321-4321-4321-210987654321"}],"responses":{"200":{"description":"Successfully retrieved POD content","content":{"application/pdf":{"schema":{"type":"string","format":"binary"}}}},"401":{"description":"Unauthorized - Invalid or missing Bearer token"},"403":{"description":"Forbidden - Token valid but insufficient permissions"},"404":{"description":"Not Found - Transport, consignment or POD with the specified ID does not exist","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}}},"security":[{"oauth":[]}]}},"/v2/transports/consignments":{"get":{"tags":["Transports API"],"summary":"Search consignments","description":"Retrieves a paginated list of consignments across all transports, filterable by creation timestamp,\nacknowledged date range, carrier GLN, consignee GLN and processing status. Filters are combined using AND logic. Pagination follows the\nstandard Spring Data conventions (`page`, `size`, `sort`).\n\nCallers without admin rights are automatically restricted to consignments belonging to transports\nwhere their authorized GLNs match the carrier or consignee.\n","operationId":"searchConsignments","parameters":[{"name":"page","in":"query","description":"Zero-based page index (0..N)","required":false,"schema":{"type":"integer","default":0,"minimum":0}},{"name":"size","in":"query","description":"The size of the page to be returned","required":false,"schema":{"type":"integer","default":10,"minimum":1}},{"name":"sort","in":"query","description":"Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"createdAfter","in":"query","description":"Filter consignments created at or after this timestamp. Use ISO 8601 format (e.g., 2024-01-15T10:00:00Z). Useful for polling to retrieve only new consignments.","required":false,"schema":{"type":"string","format":"date-time"},"example":"2024-01-15T10:00:00Z"},{"name":"carrierGln","in":"query","description":"Filter consignments by carrier GLN (Global Location Number). When provided, only consignments whose transport has this exact carrier GLN are returned.","required":false,"schema":{"type":"string"},"example":1234567890123},{"name":"consigneeGln","in":"query","description":"Filter consignments by consignee GLN (Global Location Number). When provided, only consignments whose transport has this exact consignee GLN are returned.","required":false,"schema":{"type":"string"},"example":9876543210987},{"name":"status","in":"query","description":"Filter consignments by status: AWAITING_PDF, PROCESSING, PROCESSED, PROCESSING_FAILED or ACKNOWLEDGED.","required":false,"schema":{"type":"string","enum":["AWAITING_PDF","PROCESSING","PROCESSED","PROCESSING_FAILED","ACKNOWLEDGED"]},"example":"ACKNOWLEDGED"},{"name":"acknowledgedAfter","in":"query","description":"Filter consignments acknowledged at or after this timestamp. Use ISO 8601 format (e.g., 2024-01-15T10:00:00Z).","required":false,"schema":{"type":"string","format":"date-time"},"example":"2024-01-15T00:00:00Z"},{"name":"acknowledgedBefore","in":"query","description":"Filter consignments acknowledged at or before this timestamp. Use ISO 8601 format (e.g., 2024-01-15T23:59:59Z).","required":false,"schema":{"type":"string","format":"date-time"},"example":"2024-01-15T23:59:59Z"}],"responses":{"200":{"description":"Successfully retrieved consignments","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PagedModelTransportConsignmentResponseDto"}}}},"400":{"description":"Bad Request - Invalid filter parameters"},"401":{"description":"Unauthorized - Invalid or missing Bearer token"},"403":{"description":"Forbidden - Token valid but insufficient permissions"},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DVAErrorResponse"}}}}},"security":[{"oauth":[]}]}},"/v2/goods-receipts/{goodsReceiptId}/line-items/{lineItemId}/attachments/{attachmentId}":{"get":{"tags":["Line Items API V2"],"summary":"Get attachment content by ID (v2)","description":"Retrieve the content of a specific attachment associated with a line item.","operationId":"getAttachmentContent","parameters":[{"name":"goodsReceiptId","in":"path","description":"Unique identifier of the goods receipt","required":true,"schema":{"type":"string"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"lineItemId","in":"path","description":"Unique identifier of the line item","required":true,"schema":{"type":"string"},"example":"987fcdeb-51a2-43d1-9c4f-123456789abc"},{"name":"attachmentId","in":"path","description":"Unique identifier of the attachment","required":true,"schema":{"type":"string"},"example":"456e7890-f12b-34c5-d678-901234567abc"}],"responses":{"200":{"description":"Successfully retrieved attachment content","content":{"application/octet-stream":{}}},"401":{"description":"Unauthorized - Invalid or missing Bearer token"},"403":{"description":"Forbidden - Token valid but insufficient permissions"},"404":{"description":"Not Found - Goods receipt, line item, or attachment with the specified ID does not exist"},"500":{"description":"Internal server error - Contact support if this persists"}},"security":[{"oauth":[]}]},"delete":{"tags":["Line Items API V2"],"summary":"Delete attachment from line item (v2)","description":"Delete a specific attachment from a line item.","operationId":"deleteAttachment","parameters":[{"name":"goodsReceiptId","in":"path","description":"Unique identifier of the goods receipt","required":true,"schema":{"type":"string"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"lineItemId","in":"path","description":"Unique identifier of the line item","required":true,"schema":{"type":"string"},"example":"987fcdeb-51a2-43d1-9c4f-123456789abc"},{"name":"attachmentId","in":"path","description":"Unique identifier of the attachment","required":true,"schema":{"type":"string"},"example":"456e7890-f12b-34c5-d678-901234567abc"}],"responses":{"204":{"description":"Successfully deleted attachment"},"401":{"description":"Unauthorized - Invalid or missing Bearer token"},"403":{"description":"Forbidden - Token valid but insufficient permissions"},"404":{"description":"Not Found - Goods receipt, line item, or attachment with the specified ID does not exist"},"500":{"description":"Internal server error - Contact support if this persists"}},"security":[{"oauth":[]}]}},"/v2/goods-receipts/{goodsReceiptId}/attachments/{attachmentId}":{"get":{"tags":["Goods Receipts API V2"],"summary":"Get attachment content by ID (v2)","operationId":"getAttachmentContent_1","parameters":[{"name":"goodsReceiptId","in":"path","required":true,"schema":{"type":"string"}},{"name":"attachmentId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successfully retrieved attachment content","content":{"application/octet-stream":{}}},"401":{"description":"Unauthorized - Invalid or missing Bearer token"},"403":{"description":"Forbidden - Token valid but insufficient permissions"},"404":{"description":"Not Found - Goods receipt or attachment with the specified ID does not exist"},"500":{"description":"Internal server error - Contact support if this persists"}},"security":[{"oauth":[]}]}},"/v1/goods-receipts/{goodsReceiptId}/line-items/{lineItemId}/attachments/{attachmentId}":{"get":{"tags":["Line Items API"],"summary":"Get attachment content by ID","description":"Retrieve the content of a specific attachment associated with a line item.","operationId":"getAttachmentContent_2","parameters":[{"name":"goodsReceiptId","in":"path","description":"Unique identifier of the goods receipt","required":true,"schema":{"type":"string"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"lineItemId","in":"path","description":"Unique identifier of the line item","required":true,"schema":{"type":"string"},"example":"987fcdeb-51a2-43d1-9c4f-123456789abc"},{"name":"attachmentId","in":"path","description":"Unique identifier of the attachment","required":true,"schema":{"type":"string"},"example":"456e7890-f12b-34c5-d678-901234567abc"}],"responses":{"200":{"description":"Successfully retrieved attachment content","content":{"application/octet-stream":{}}},"401":{"description":"Unauthorized - Invalid or missing Bearer token"},"403":{"description":"Forbidden - Token valid but insufficient permissions"},"404":{"description":"Not Found - Goods receipt, line item, or attachment with the specified ID does not exist"},"500":{"description":"Internal server error - Contact support if this persists"}},"security":[{"oauth":[]}]},"delete":{"tags":["Line Items API"],"summary":"Delete attachment from line item","description":"Delete a specific attachment from a line item.","operationId":"deleteAttachment_1","parameters":[{"name":"goodsReceiptId","in":"path","description":"Unique identifier of the goods receipt","required":true,"schema":{"type":"string"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"lineItemId","in":"path","description":"Unique identifier of the line item","required":true,"schema":{"type":"string"},"example":"987fcdeb-51a2-43d1-9c4f-123456789abc"},{"name":"attachmentId","in":"path","description":"Unique identifier of the attachment","required":true,"schema":{"type":"string"},"example":"456e7890-f12b-34c5-d678-901234567abc"}],"responses":{"204":{"description":"Successfully deleted attachment"},"401":{"description":"Unauthorized - Invalid or missing Bearer token"},"403":{"description":"Forbidden - Token valid but insufficient permissions"},"404":{"description":"Not Found - Goods receipt, line item, or attachment with the specified ID does not exist"},"500":{"description":"Internal server error - Contact support if this persists"}},"security":[{"oauth":[]}]}},"/v1/goods-receipts/{goodsReceiptId}/attachments/{attachmentId}":{"get":{"tags":["Goods Receipts API"],"summary":"Get attachment content by ID","description":"Retrieves the content of a specific attachment associated with a goods receipt.\n\n**Use cases:**\n- Download signed delivery notes\n- View uploaded images of damaged goods\n- Access any file attachments related to the goods receipt\n\n**Response:** Returns the attachment file content with appropriate MIME type headers.\n","operationId":"getAttachmentContent_3","parameters":[{"name":"goodsReceiptId","in":"path","description":"Unique identifier of the goods receipt","required":true,"schema":{"type":"string"},"example":"123e4567-e89b-12d3-a456-426614174000"},{"name":"attachmentId","in":"path","description":"Unique identifier of the attachment to retrieve","required":true,"schema":{"type":"string"},"example":"987fcdeb-51a2-43d1-9c4f-123456789abc"}],"responses":{"200":{"description":"Successfully retrieved attachment content","content":{"application/octet-stream":{}}},"401":{"description":"Unauthorized - Invalid or missing Bearer token"},"403":{"description":"Forbidden - Token valid but insufficient permissions"},"404":{"description":"Not Found - Goods receipt or attachment with the specified ID does not exist"},"500":{"description":"Internal server error - Contact support if this persists"}},"security":[{"oauth":[]}]}}},"components":{"schemas":{"AddressDto":{"type":"object","description":"Physical address information for partner locations. Contains standard address components for delivery and contact purposes.","properties":{"addressLine1":{"type":"string","description":"Primary address line (street name and house number)","example":"Musterstraße 123"},"addressLine2":{"type":"string","description":"Secondary address line (additional address information like apartment, suite, etc.)","example":"Gebäude A, 2. OG"},"stateProvinceCounty":{"type":"string","description":"State, province, or county information","example":"Brandenburg"},"zipcode":{"type":"string","description":"Postal/ZIP code","example":"12345"},"city":{"type":"string","description":"City name","example":"Berlin"},"countryCode":{"type":"string","description":"Country code (ISO 3166-1 alpha-2 format)","example":"DE"}}},"GoodsReceiptProtocolDto":{"type":"object","description":"Protocol containing inspection results and compliance checks performed during the goods receipt process. Used to document quality control and regulatory compliance verification.","properties":{"sanitation":{"type":"boolean","description":"Indicates whether sanitation and hygiene requirements were met during delivery inspection.","example":true},"papers":{"type":"boolean","description":"Indicates whether all required documentation and papers were present and correct.","example":true},"condition":{"type":"boolean","description":"Indicates whether the physical condition of goods met acceptance criteria.","example":true},"organicControlNumber":{"type":"boolean","description":"Indicates whether organic control number verification was completed successfully for organic products.","example":false},"bestBeforeDate":{"type":"boolean","description":"Indicates whether best before date verification was performed and products were within acceptable date ranges.","example":true},"temperatureCheck":{"type":"boolean","description":"Indicates whether temperature checks were performed for temperature-sensitive goods.","example":true},"temperatureValue":{"type":"number","format":"double","description":"The actual temperature value measured during inspection, if temperature check was performed.","example":4.5},"comment":{"type":"string","description":"Additional comments or observations made during the inspection process.","example":"All items in excellent condition. Minor packaging damage on 2 boxes but contents unaffected."}}},"GoodsReceiptUpdateV2Dto":{"type":"object","description":"Data transfer object for updating an existing goods receipt (v2). Contains all updatable fields. The goods receipt ID is provided separately via the URL path parameter. All line items MUST include valid IDs. V2 line items support accepted/delivered quantities at line-item level and list-based quantity variance entries.","properties":{"referenceNumber":{"type":"string","description":"Reference number assigned by the goods management system (WWS). Unique identifier used for tracking and cross-referencing with external systems.","example":"REF-2024-001234"},"archiveNumber":{"type":"string","description":"Archive or barcode number used to match documents in ECM (Enterprise Content Management) and Mareko systems. This number enables document traceability across different platforms.","example":"ARC-789012345"},"receivingAdvice":{"$ref":"#/components/schemas/ReceivingAdviceUpdateV2Dto","description":"Complete receiving advice information (v2) containing delivery details, partner information, line items, and all related delivery data according to EANCOM DESADV standards. All line items MUST have valid IDs. Line items not included will be deleted."},"protocol":{"$ref":"#/components/schemas/GoodsReceiptProtocolDto","description":"Goods receipt protocol containing inspection results and compliance checks performed during the receiving process."},"loadCarrierExchange":{"$ref":"#/components/schemas/LoadCarrierExchangeDto","description":"Load carrier exchange information including exchange status, coupon issuance, and detailed load carrier information."},"assortments":{"type":"array","description":"List of assortment classifications to assign to this goods receipt. Assortments categorize goods by type such as fresh, dry, or frozen products.","example":["FRESH","DRY"],"items":{"type":"string","description":"Assortment type classification for goods receipt","enum":["FRESH","MEAT","FRUITS_AND_VEGETABLES","DRY","FROZEN"],"x-enum-descriptions":{"FRUITS_AND_VEGETABLES":"Fruits and vegetables assortment","DRY":"Dry goods assortment","FROZEN":"Frozen goods assortment","FRESH":"Fresh goods assortment","MEAT":"Meat assortment"}}},"state":{"type":"string","description":"Optional state of the goods receipt bundle on the WE-Board. If not provided, the current state remains unchanged.","enum":["ANNOUNCED_DELIVERIES","DOCUMENT_REVIEW","GATE_ASSIGNMENT","DELIVERIES_CONTROL"],"example":"DOCUMENT_REVIEW"}}},"LineItemHierarchyType":{"type":"string","description":"Packing level of a line item master data unit. Each value maps to the GS1 unit descriptor used in the persisted line item master data.","enum":["BASE_UNIT","CASE","PALLET","DISPLAY"]},"LineItemMasterDataUnitV2Dto":{"type":"object","description":"One packing level of the line item hierarchy. Every level carries the total number of base units it contains, so the goods receipt view can derive the delivered amount of base units from the despatched quantity.","properties":{"isBaseUnit":{"type":"boolean","description":"Whether this packing level is the base unit of the article","example":false},"gtin":{"type":"string","description":"Global Trade Item Number (GTIN) identifying this packing level","example":"1234567890123","minLength":1},"unitDescriptor":{"$ref":"#/components/schemas/LineItemHierarchyType","description":"Packing level of this unit","example":"CASE"},"quantityOfBaseUnits":{"type":"integer","format":"int32","description":"Total number of base units contained in this packing level. A carton holding 10 base units has 10, a pallet holding 5 of those cartons has 50.","example":50}},"required":["gtin","isBaseUnit","quantityOfBaseUnits","unitDescriptor"]},"LineItemMasterDataV2Dto":{"type":"object","description":"Article master data including the packing hierarchy of a line item, supplied by the client. When present, this hierarchy is used instead of automatically enriching it.","properties":{"articleDescription":{"type":"string","description":"Article description of this line item","example":"Example article"},"articleNumberSupplier":{"type":"string","description":"Supplier specific article number for this item","example":"67890123"},"lineItemMasterDataUnits":{"type":"array","description":"Packing levels of this line item, for example base unit, carton and pallet. Must contain at least one packing level.","items":{"$ref":"#/components/schemas/LineItemMasterDataUnitV2Dto"},"minItems":1}},"required":["lineItemMasterDataUnits"]},"LineItemQuantityVarianceEntryV2Dto":{"type":"object","description":"Single variance entry for a line item. In v2, accepted and delivered quantities are stored on the line item itself.","properties":{"varianceQuantity":{"type":"number","format":"double","description":"Variance quantity/value for this row"},"reason":{"type":"string","description":"Reason for the quantity variance","enum":["SHORT_SHIPPED","OVER_SHIPPED","DAMAGED","DELIVERED_TOO_LATE","GOODS_DELIVERED_TOO_EARLY","SHIPMENT_PARTIAL_CONSIDERED_COMPLETE_NO_BACKORDER","NOT_ORDERED","QUALITY_DEFECT_TRANSPORT_CARGO_UNIT","QUALITY_DEFECT_GOODS","SPOILAGE_OF_GOODS","UNREADABLE_BARCODE","MINIMUM_MAXIMUM_PRODUCT_DURABILITY_DATE_UNACCEPTABLE","DELIVERED_BUT_NOT_ADVISED","ARTICLE_NUMBER_UNKNOWN","DELIVERY_CONDITIONS_NOT_MET","REGULATORY_REQUIREMENTS_DISCREPANCIES","TRANSPORT_MEANS_TECHNICAL_FAILURE","ITEM_DISCONTINUED_BY_WHOLESALER","ITEM_NO_LONGER_PRODUCED","ITEM_OUT_OF_STOCK_AT_MANUFACTURER","NEXT_HIGHER_PACKAGING_QUANTITY","AVAILABLE_NOW","SHIPMENT_PARTIAL_BACK_ORDER_TO_FOLLOW","SHIPMENT_COMPLETE","SHIPMENT_INCLUDES_EXTRA_ITEMS_TO_MEET_PRICE_BREAK","CANCELLED_FROM_PREVIOUS_ORDER","SHIPMENT_COMPLETE_WITH_ADDITIONAL_QUANTITY","NEXT_CARRIER","SHIPMENT_COMPLETE_WITH_SUBSTITUTION","ITEM_CANCELLED","ITEM_REPRESENTS_SUBSTITUTION_FROM_ORIGINAL_ORDER","ITEM_OUT_OF_STOCK_AT_WHOLESALER","PURCHASE_ORDER_INQUIRY_UNSHIPPED_ITEMS_ONLY","PURCHASE_ORDER_INQUIRY_SPECIFIC_ITEMS","IN_PROCESS","ITEM_RATIONED","ITEM_TEMPORAIRLY_DISCONTINUED_BY_WHOLESALER","PACK_TO_CLOSEST_COMPLETE_LOGISTIC_PACKAGING_QUANTITY","PACK_TO_NEXT_LOWER_COMPLETE_LOGISTIC_QUANTITY","GRADE_DIFFERENCE_OUT_OF_TOLERANCE_LEVEL","UNIT_OF_MEASURE_DIFFERENCE","RECEIPT_TEMPERATURE_OUTSIDE_AGREED_RANGE"],"x-enum-descriptions":{"UNIT_OF_MEASURE_DIFFERENCE":"(UM) Unit of measure different from ordered","GOODS_DELIVERED_TOO_EARLY":"(AI) Goods delivered too early","DELIVERED_TOO_LATE":"(AG) Delivered later than the agreed delivery date","ITEM_NO_LONGER_PRODUCED":"(AB) Item discontinued and no longer in production","IN_PROCESS":"(PS) Being manufactured, scheduled to ship","DELIVERED_BUT_NOT_ADVISED":"(BO) Delivered without advance notification","MINIMUM_MAXIMUM_PRODUCT_DURABILITY_DATE_UNACCEPTABLE":"(PE) Durability date not acceptable","PACK_TO_NEXT_LOWER_COMPLETE_LOGISTIC_QUANTITY":"(UT) Pack to next lower complete packaging","QUALITY_DEFECT_TRANSPORT_CARGO_UNIT":"(BC) Equipment technical failure (damaged or wrong)","ITEM_OUT_OF_STOCK_AT_WHOLESALER":"(OW) Item not available at distribution point","PURCHASE_ORDER_INQUIRY_UNSHIPPED_ITEMS_ONLY":"(PO) Response about unshipped items only","PURCHASE_ORDER_INQUIRY_SPECIFIC_ITEMS":"(PP) Response about specific items subset","OVER_SHIPPED":"(AC) More goods shipped than contracted for delivery","NEXT_CARRIER":"(CN) Item will be shipped on next available carrier","SHIPMENT_PARTIAL_CONSIDERED_COMPLETE_NO_BACKORDER":"(CP) Quantity shipped is less than authorized, no plan to ship remaining","SHIPMENT_PARTIAL_BACK_ORDER_TO_FOLLOW":"(BP) Partial order held open, back order to follow","ITEM_RATIONED":"(RA) Product restricted due to limited availability","REGULATORY_REQUIREMENTS_DISCREPANCIES":"(OS) Item out of stock due to strike or force majeure","CANCELLED_FROM_PREVIOUS_ORDER":"(CK) Amount deleted from earlier schedule","DELIVERY_CONDITIONS_NOT_MET":"(AZ) Delivery conditions not met","AVAILABLE_NOW":"(AS) Material available, scheduled to ship at future date","QUALITY_DEFECT_GOODS":"(BE) Goods technical failure (instability, overhang, damage)","DAMAGED":"(AF) Part or all goods were delivered damaged","UNREADABLE_BARCODE":"(BK) Barcode not readable by scanning device","SHIPMENT_COMPLETE_WITH_ADDITIONAL_QUANTITY":"(CM) Quantity dispatched exceeds ordered quantity","SHIPMENT_COMPLETE":"(CC) Quantity dispatched fulfilled the order quantity","PACK_TO_CLOSEST_COMPLETE_LOGISTIC_PACKAGING_QUANTITY":"(US) Pack to closest complete packaging","NEXT_HIGHER_PACKAGING_QUANTITY":"(AH) Packed to next higher packaging quantity","ITEM_TEMPORAIRLY_DISCONTINUED_BY_WHOLESALER":"(TW) Temporarily not available from wholesaler","SHORT_SHIPPED":"(119) Part of the consignment was not shipped","ITEM_CANCELLED":"(IC) Item cancelled from order by buyer or supplier","ITEM_DISCONTINUED_BY_WHOLESALER":"(AA) Wholesaler no longer offers the product","RECEIPT_TEMPERATURE_OUTSIDE_AGREED_RANGE":"(BN) Temperature outside agreed range","ARTICLE_NUMBER_UNKNOWN":"(AUE) Article code (GTIN) is unknown","TRANSPORT_MEANS_TECHNICAL_FAILURE":"(BB) Transport means technical failure","SHIPMENT_COMPLETE_WITH_SUBSTITUTION":"(CS) Shipment complete with substitution","SHIPMENT_INCLUDES_EXTRA_ITEMS_TO_MEET_PRICE_BREAK":"(CE) Extra items to meet price break","GRADE_DIFFERENCE_OUT_OF_TOLERANCE_LEVEL":"(BG) Grade variation outside tolerance level","NOT_ORDERED":"(AT) Item or product was not ordered","SPOILAGE_OF_GOODS":"(BF) Change resulting from spoilage of goods","ITEM_REPRESENTS_SUBSTITUTION_FROM_ORIGINAL_ORDER":"(IS) Item substitutes originally ordered item","ITEM_OUT_OF_STOCK_AT_MANUFACTURER":"(AD) Item out of stock at manufacturer"}},"actionType":{"type":"string","description":"Action type to be taken for this variance","enum":["RETURN","DESTRUCTION","RECEIVED_AND_ACCEPTED","COLLECTION_DESIRED"],"x-enum-descriptions":{"RETURN":"(195) Received, not accepted, to be returned","DESTRUCTION":"(196) Received, not accepted, to be destroyed","COLLECTION_DESIRED":"(201) Collection desired","RECEIVED_AND_ACCEPTED":"(194) Received and accepted"}},"comment":{"type":"string","description":"Additional comments regarding the quantity variance"}}},"LineItemUpdateV2Dto":{"type":"object","description":"Data transfer object for updating an existing line item. When used in bulk update operations (PUT /goods-receipts), the ID is required. When used in standalone operations (PUT /line-items), the ID comes from the URL path parameter.","properties":{"id":{"type":"string","description":"Unique identifier for the line item. Required when updating line items as part of a goods receipt bulk update. Optional for standalone line item updates where ID comes from URL path.","example":"550e8400-e29b-41d4-a716-446655440000"},"lineItemNumber":{"type":"string","description":"Line item number to uniquely identify this line item. The line item number iterates over the whole message starting with 1.","example":"2"},"hierarchyLevel":{"type":"string","description":"CPS Level - hierarchy level indicator"},"hierarchyLevelParent":{"type":"string","description":"CPS Parent - parent hierarchy level reference"},"gtin":{"type":"string","description":"Global Trade Item Number (GTIN) to uniquely identify this line item. A unique number, up to 14-digits.","example":"1234567890123"},"targetMarket":{"type":"string","description":"Target market identifier"},"articleNumberBuyer":{"type":"string","description":"Buyer specific article number for this item","example":"67890123"},"articleNumberSupplier":{"type":"string","description":"Supplier specific article number for this item","example":"67890123"},"ssccs":{"$ref":"#/components/schemas/SsccsDto","description":"Serial Shipping Container Codes (SSCC) for this line item. The SSCC is used to uniquely identify individual packages."},"despatchedQuantity":{"$ref":"#/components/schemas/QuantityDto","description":"Dispatched quantity of items in this line item."},"acceptedQuantity":{"$ref":"#/components/schemas/QuantityDto","description":"Accepted quantity shared across all variance entries. If it differs from despatchedQuantity, quantityVariances requires at least one entry."},"deliveredQuantity":{"$ref":"#/components/schemas/QuantityDto","description":"Delivered quantity shared across all variance entries. If it differs from despatchedQuantity, quantityVariances requires at least one entry."},"orderedQuantity":{"$ref":"#/components/schemas/QuantityDto","description":"Ordered quantity of items for this line item"},"bestBeforeDate":{"type":"string","format":"date-time","description":"Best before date for this line item."},"organicControlNumber":{"type":"string","description":"ECO controlling agency (RFF+XC1). The article is a BIO product. The indication overwrites information of the heading section."},"hazardInformation":{"type":"string","description":"Hazard information containing Agreement concerning the International Carriage of Dangerous Goods by Road (ADR) related information like an UN number of the item"},"pharmacyProductNumber":{"type":"string","description":"Pharmacy Product Number holding the Product Registration Agency Code (PRA-Code)"},"articleDescription":{"type":"string","description":"Article description of this line item"},"quantityVariances":{"type":"array","description":"List of variance entries for this line item. At least one entry is required when acceptedQuantity or deliveredQuantity differs from despatchedQuantity.","items":{"$ref":"#/components/schemas/LineItemQuantityVarianceEntryV2Dto"}},"weightVariance":{"$ref":"#/components/schemas/LineItemWeightVarianceDto","description":"Weight variance information for the line item in kilograms"},"batchNumber":{"type":"string","description":"Batch number supplementing the identification code of a product used to identify the specific production place and/or time of a product."},"masterData":{"$ref":"#/components/schemas/LineItemMasterDataV2Dto","description":"Optional article master data including the packing hierarchy of this line item. When provided, the packing hierarchy is not automatically resolved. When provided, lineItemMasterDataUnits must contain at least one packing level with all fields set. When omitted in a goods receipt bulk update, previously supplied master data is dropped and must be resent. When omitted in a standalone line item update, previously supplied master data is kept."}}},"LineItemWeightVarianceDto":{"type":"object","description":"Weight variance information for a line item, reported in kilograms.","properties":{"orderedWeightInKg":{"type":"number","format":"double","description":"Ordered weight in kilograms","example":478.2},"deliveredWeightInKg":{"type":"number","format":"double","description":"Delivered weight in kilograms","example":423.2}}},"LoadCarrierDto":{"type":"object","description":"Load carrier information including type and quantities","properties":{"type":{"type":"string","description":"Type of load carrier","enum":["EURO","CHEP","IPP","H1","DD","E1_E2","E1","E2","OTHER"],"example":"EURO","x-enum-descriptions":{"DD":"DD type load carrier","OTHER":"Other type of load carrier","E1_E2":"E1/E2 combined type load carrier","IPP":"IPP pallet","H1":"H1 type load carrier","E1":"E1 type load carrier","EURO":"European standard pallet","E2":"E2 type load carrier","CHEP":"CHEP pallet"}},"quantityReceived":{"type":"integer","format":"int32","description":"Quantity of load carriers received","example":10},"quantityReturned":{"type":"integer","format":"int32","description":"Quantity of load carriers returned","example":8},"quantityDamaged":{"type":"integer","format":"int32","description":"Quantity of damaged load carriers","example":1}}},"LoadCarrierExchangeDto":{"type":"object","description":"Load carrier exchange information including exchange status and details","properties":{"exchangedOneToOne":{"type":"boolean","description":"Whether load carriers were exchanged one-to-one","example":true},"couponIssued":{"type":"boolean","description":"Whether a coupon was issued for the exchange","example":false},"comment":{"type":"string","description":"Additional comments about the load carrier exchange","example":"Some pallets were damaged during transport"},"loadCarrierDetails":{"type":"array","description":"Detailed information about the load carriers involved in the exchange","items":{"$ref":"#/components/schemas/LoadCarrierDto"}}}},"PartnerDto":{"type":"object","description":"Partner information in the supply chain. Contains identification and address details for business partners like buyers, suppliers, delivery parties, etc.","properties":{"gln":{"type":"string","description":"Global Location Number (GLN) - a unique identifier for business locations according to GS1 standards. 13-digit number used to identify partners in EDI transactions.","example":"4012345000013","pattern":"[0-9]{13}"},"name":{"type":"string","description":"Business name of the partner organization.","example":"ACME Supply Company GmbH"},"internalPartnerId":{"type":"string","description":"Internal partner identifier used for reference purposes (RFF+API). Not included in P&G DESADV messages.","example":"42"},"address":{"$ref":"#/components/schemas/AddressDto","description":"Physical address information of the partner location."},"vatNumber":{"type":"string","description":"VAT (Value Added Tax) number of the partner organization. Not included in P&G DESADV messages.","example":"DE-999999999"}},"required":["gln"]},"QuantityDto":{"type":"object","description":"Quantity information with value and unit of measure.","properties":{"amount":{"type":"number","format":"double","description":"Numeric quantity value","example":1242},"unit":{"type":"string","description":"Unit of measure according to UN/CEFACT standards","enum":["STK","Stück","ST","Karton","KRT","KT","CLT","CMT","CT","GL","GRM","INH","KGM","LTR","MGM","MLT","NAR","NRL","P1","PA","PCE","PF","PND","PR","PTN","TNE","VI","UNKNOWN"],"example":"PCE","x-enum-descriptions":{"INH":"Inch. A unit of length equal to 25.4 millimetres.","PR":"Pair. Two articles which belong together but are not necessarily identical.","GRM":"Gram. A unit of mass equal to one thousandth of a kilogram.","PND":"Pound. A unit of mass equal to 16 ounces or approximately 0.4536 kilograms.","Stück":"(Deprecated) Stück (piece), mostly used in the German market, mapped to PCE. Use PCE instead.","NRL":"Number of rolls. A count representing the number of rolls.","CLT":"Centilitre. A unit of volume equal to one hundredth of a liter.","TNE":"Tonne (metric ton). Metric ton (1000kg).","STK":"(Deprecated) Stück (piece), mostly used in the German market, mapped to PCE. Use PCE instead.","LTR":"Litre. A unit of volume equal to one cubic decimetre (1 dm³).","PTN":"Portion. The number of portions into which a product may be broken for serving.","KRT":"(Deprecated) Karton (carton), mostly used in the German market, mapped to CT. Use CT instead.","Karton":"(Deprecated) Karton (carton), mostly used in the German market, mapped to CT. Use CT instead.","MLT":"Millilitre. A unit of volume equal to one thousandth of a litre.","ST":"(Deprecated) Stück (piece), mostly used in the German market, mapped to PCE. Use PCE instead.","P1":"Percent. Used to indicate measurements in terms of percentages.","GL":"Gram per litre. A unit of density expressed as grams per litre.","KT":"(Deprecated) Karton (carton), mostly used in the German market, mapped to CT. Use CT instead.","CMT":"Centimetre. A unit of length equal to one hundredth of a metre.","KGM":"Kilogram. A unit of mass equal to one thousand grams.","CT":"Carton.","PA":"Packet. A small package or container.","MGM":"Milligram. A unit of mass equal to one thousandth of a gram.","PCE":"Piece. A unit of count defining the number of pieces.","VI":"Vial. Small glass container.","PF":"Pallet (lift). A number of articles expressed in terms of pallets.","UNKNOWN":"Unknown unit of measure.","NAR":"Number of articles. A count representing the number of individual items."}}}},"ReceivingAdviceUpdateV2Dto":{"type":"object","description":"Receiving advice data for updating a goods receipt (v2) according to EANCOM DESADV standards. All line items MUST include valid IDs for update operations. V2 line items support accepted/delivered quantities at line-item level and list-based quantity variance entries.","properties":{"documentNumber":{"type":"string","description":"Document number assigned by sender. This segment is used to indicate the type and function of a message and to transmit the identifying number (BGM).","example":"DESADV2024001234"},"orderNumber":{"type":"string","description":"Reference Order Number of buyer (ON).","example":"ORD-2024-5678"},"orderNumberSupplier":{"type":"string","description":"Reference Order Number of supplier (VN).","example":"SUP-ORD-9876"},"deliveryNoteNumber":{"type":"string","description":"Delivery Note Number (RFF+DQ).","example":"DN-2024-3456"},"documentDate":{"type":"string","format":"date-time","description":"Date/time when the document/message was issued. This may include authentication (DTM+137)."},"orderDate":{"type":"string","format":"date-time","description":"Date or time on which the goods were ordered (only P&G specific field)"},"despatchedDate":{"type":"string","format":"date-time","description":"Date or time on which the goods are or are expected to be despatched or shipped (DTM+11)."},"deliveryDateRequested":{"type":"string","format":"date-time","description":"Date on which buyer requests goods to be delivered (DTM+2)."},"deliveryDateActual":{"type":"string","format":"date-time","description":"Actual delivery date/time (DTM+35). Date/time on which goods or consignment are delivered at their destination."},"deliveryDateEstimated":{"type":"string","format":"date-time","description":"Date and/or time when the shipper of the goods expects delivery will take place (DTM+17)."},"buyer":{"$ref":"#/components/schemas/PartnerDto","description":"Optional but recommended. Party to whom merchandise and/or service is sold (NAD+BY). Enriched data by Partner Pool, if GLN is provided. Also being used to get additional LineItem data by the bayard pool, for example missing article description."},"deliveryParty":{"$ref":"#/components/schemas/PartnerDto","description":"Party to which goods should be delivered, if not the same as the buyer (NAD+DP). Enriched data by Partner Pool, if GLN is provided."},"supplier":{"$ref":"#/components/schemas/PartnerDto","description":"Party which provides service(s) and/or manufactures or otherwise has possession of goods, and consigns or makes them available in trade (NAD+SU). Enriched data by Partner Pool, if GLN is provided"},"shipFrom":{"$ref":"#/components/schemas/PartnerDto","description":"Identification of the party from where goods will be or have been shipped (NAD+SF). Enriched data by Partner Pool, if GLN is provided."},"organicControlNumber":{"type":"string","description":"ECO controlling agency (RFF+XC1).","example":"DE-ÖKO-001"},"carrier":{"$ref":"#/components/schemas/PartnerDto","description":"Carrier information for the shipment"},"despatchedPalletCount":{"type":"string","description":"Number of pallets dispatched in the shipment","example":"12"},"lineItems":{"type":"array","description":"List of individual line items included in this receiving advice (v2). All line items MUST include valid IDs. Line items not included will be deleted.","items":{"$ref":"#/components/schemas/LineItemUpdateV2Dto"}}},"required":["deliveryNoteNumber","deliveryParty","lineItems"]},"SsccsDto":{"type":"object","description":"Serial Shipping Container Code (SSCC) information. The SSCC is an 18-digit number used to identify logistics units.","properties":{"masterSscc":{"type":"string","description":"Master SSCC for multiple line items","example":"340353770000001234"},"ssccs":{"type":"array","description":"List of SSCCs for individual packages within a specific line item","example":["340353770000001234","340353770000001235"],"items":{"type":"string"}}}},"GoodsReceiptAttachmentWithoutContentDto":{"type":"object","description":"Attachments of a goods receipt without content, such as images or documents.","properties":{"id":{"type":"string","description":"Unique identifier of the attachment, generated by the system upon creation.","example":"550e8400-e29b-41d4-a716-446655440000"},"filename":{"type":"string","description":"Name of the attachment file.","example":"delivery_receipt.jpg"},"mimeFileType":{"type":"string","description":"MIME type of the attachment file.","example":"image/jpeg"},"attachmentType":{"type":"string","description":"Type of the attachment, indicating its purpose or content type.","enum":["ORIGINAL_DELIVERY_NOTE","ENRICHED_DELIVERY_NOTE","SIGNED_DELIVERY_NOTE","UPLOADED_BY_USER"],"example":"UPLOADED_BY_USER"},"version":{"type":"integer","format":"int64","description":"Version of the attachment, used for tracking changes or updates.","example":1}}},"GoodsReceiptResponseV2Dto":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"referenceNumber":{"type":"string"},"archiveNumber":{"type":"string"},"assortments":{"type":"array","items":{"type":"string","description":"Assortment type classification for goods receipt","enum":["FRESH","MEAT","FRUITS_AND_VEGETABLES","DRY","FROZEN"],"x-enum-descriptions":{"FRUITS_AND_VEGETABLES":"Fruits and vegetables assortment","DRY":"Dry goods assortment","FROZEN":"Frozen goods assortment","FRESH":"Fresh goods assortment","MEAT":"Meat assortment"}}},"receivingAdvice":{"$ref":"#/components/schemas/ReceivingAdviceResponseV2Dto"},"protocol":{"$ref":"#/components/schemas/GoodsReceiptProtocolDto"},"loadCarrierExchange":{"$ref":"#/components/schemas/LoadCarrierExchangeDto"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/GoodsReceiptAttachmentWithoutContentDto"}},"parentGoodsReceiptId":{"type":"string"},"childGoodsReceiptId":{"type":"string"}}},"LineItemResponseV2Dto":{"type":"object","description":"Data transfer object representing a line item in API responses (v2). Contains complete line item information including system-generated fields. V2 supports accepted/delivered quantities at line-item level and list-based quantity variance entries.","properties":{"id":{"type":"string","description":"Unique identifier for the line item, generated by the system.","example":"550e8400-e29b-41d4-a716-446655440000"},"lineItemNumber":{"type":"string","description":"Line item number to uniquely identify this line item. The line item number iterates over the whole message starting with 1.","example":"2"},"hierarchyLevel":{"type":"string","description":"CPS Level - hierarchy level indicator"},"hierarchyLevelParent":{"type":"string","description":"CPS Parent - parent hierarchy level reference"},"gtin":{"type":"string","description":"Global Trade Item Number (GTIN) to uniquely identify this line item. A unique number, up to 14-digits.","example":"1234567890123"},"targetMarket":{"type":"string","description":"Target market identifier"},"articleNumberBuyer":{"type":"string","description":"Buyer specific article number for this item","example":"67890123"},"articleNumberSupplier":{"type":"string","description":"Supplier specific article number for this item","example":"67890123"},"ssccs":{"$ref":"#/components/schemas/SsccsDto","description":"Serial Shipping Container Codes (SSCC) for this line item. The SSCC is used to uniquely identify individual packages."},"despatchedQuantity":{"$ref":"#/components/schemas/QuantityDto","description":"Dispatched quantity of items in this line item."},"acceptedQuantity":{"$ref":"#/components/schemas/QuantityDto","description":"Accepted quantity shared across all variance entries"},"deliveredQuantity":{"$ref":"#/components/schemas/QuantityDto","description":"Delivered quantity shared across all variance entries"},"orderedQuantity":{"$ref":"#/components/schemas/QuantityDto","description":"Ordered quantity of items for this line item"},"bestBeforeDate":{"type":"string","format":"date-time","description":"Best before date for this line item."},"organicControlNumber":{"type":"string","description":"ECO controlling agency (RFF+XC1). The article is a BIO product. The indication overwrites information of the heading section."},"hazardInformation":{"type":"string","description":"Hazard information containing Agreement concerning the International Carriage of Dangerous Goods by Road (ADR) related information like an UN number of the item"},"pharmacyProductNumber":{"type":"string","description":"Pharmacy Product Number holding the Product Registration Agency Code (PRA-Code)"},"articleDescription":{"type":"string","description":"Article description of this line item"},"quantityVariances":{"type":"array","description":"List of variance entries for this line item","items":{"$ref":"#/components/schemas/LineItemQuantityVarianceEntryV2Dto"}},"weightVariance":{"$ref":"#/components/schemas/LineItemWeightVarianceDto","description":"Weight variance information for the line item in kilograms"},"batchNumber":{"type":"string","description":"Batch number supplementing the identification code of a product used to identify the specific production place and/or time of a product."},"attachments":{"type":"array","description":"Attachments associated with this line item","items":{"$ref":"#/components/schemas/GoodsReceiptAttachmentWithoutContentDto"}}}},"ReceivingAdviceResponseV2Dto":{"type":"object","properties":{"documentNumber":{"type":"string"},"orderNumber":{"type":"string"},"orderNumberSupplier":{"type":"string"},"deliveryNoteNumber":{"type":"string"},"documentDate":{"type":"string","format":"date-time"},"orderDate":{"type":"string","format":"date-time"},"despatchedDate":{"type":"string","format":"date-time"},"deliveryDateRequested":{"type":"string","format":"date-time"},"deliveryDateActual":{"type":"string","format":"date-time"},"deliveryDateEstimated":{"type":"string","format":"date-time"},"buyer":{"$ref":"#/components/schemas/PartnerDto"},"deliveryParty":{"$ref":"#/components/schemas/PartnerDto"},"supplier":{"$ref":"#/components/schemas/PartnerDto"},"shipFrom":{"$ref":"#/components/schemas/PartnerDto"},"organicControlNumber":{"type":"string"},"carrier":{"$ref":"#/components/schemas/PartnerDto"},"despatchedPalletCount":{"type":"string"},"lineItems":{"type":"array","items":{"$ref":"#/components/schemas/LineItemResponseV2Dto"}}}},"DVAErrorResponse":{"type":"object","description":"Standard error response structure returned by all API endpoints when an error occurs","properties":{"error":{"type":"string","description":"Human-readable error message describing what went wrong","example":"Goods receipt with ID 'gr-123456-789' not found"},"errorCode":{"type":"string","description":"Machine-readable error code for programmatic error handling","example":"NOT_FOUND"},"parameters":{"type":"object","additionalProperties":{"type":"string"},"description":"Additional parameters and context information related to the error","example":{"id":"gr-123456-789","entityType":"GoodsReceipt"}},"invocationId":{"type":"string","description":"Unique identifier for this API request/invocation for tracing and debugging purposes","example":"req-abc123-def456-ghi789"}}},"GoodsReceiptUpdateDto":{"type":"object","description":"Data transfer object for updating an existing goods receipt. Contains all updatable fields. The goods receipt ID is provided separately via the URL path parameter. All line items MUST include valid IDs.","properties":{"referenceNumber":{"type":"string","description":"Reference number assigned by the goods management system (WWS). Unique identifier used for tracking and cross-referencing with external systems.","example":"REF-2024-001234"},"archiveNumber":{"type":"string","description":"Archive or barcode number used to match documents in ECM (Enterprise Content Management) and Mareko systems. This number enables document traceability across different platforms.","example":"ARC-789012345"},"receivingAdvice":{"$ref":"#/components/schemas/ReceivingAdviceUpdateDto","description":"Complete receiving advice information containing delivery details, partner information, line items, and all related delivery data according to EANCOM DESADV standards. All line items MUST have valid IDs. Line items not included will be deleted."},"protocol":{"$ref":"#/components/schemas/GoodsReceiptProtocolDto","description":"Goods receipt protocol containing inspection results and compliance checks performed during the receiving process."},"loadCarrierExchange":{"$ref":"#/components/schemas/LoadCarrierExchangeDto","description":"Load carrier exchange information including exchange status, coupon issuance, and detailed load carrier information."},"assortments":{"type":"array","description":"List of assortment classifications to assign to this goods receipt. Assortments categorize goods by type such as fresh, dry, or frozen products.","example":["FRESH","DRY"],"items":{"type":"string","description":"Assortment type classification for goods receipt","enum":["FRESH","MEAT","FRUITS_AND_VEGETABLES","DRY","FROZEN"],"x-enum-descriptions":{"FRUITS_AND_VEGETABLES":"Fruits and vegetables assortment","DRY":"Dry goods assortment","FROZEN":"Frozen goods assortment","FRESH":"Fresh goods assortment","MEAT":"Meat assortment"}}},"state":{"type":"string","description":"Optional state of the goods receipt bundle on the WE-Board. If not provided, the current state remains unchanged.","enum":["ANNOUNCED_DELIVERIES","DOCUMENT_REVIEW","GATE_ASSIGNMENT","DELIVERIES_CONTROL"],"example":"DOCUMENT_REVIEW"}}},"LineItemHierarchyTypeDto":{"type":"string","description":"Packing level of a line item master data unit. Each value maps to the GS1 unit descriptor used in the persisted line item master data.","enum":["BASE_UNIT","CASE","PALLET","DISPLAY"]},"LineItemMasterDataDto":{"type":"object","description":"Article master data including the packing hierarchy of a line item, supplied by the client. When present, this hierarchy is used instead of automatically enriching it.","properties":{"articleDescription":{"type":"string","description":"Article description of this line item","example":"Example article"},"articleNumberSupplier":{"type":"string","description":"Supplier specific article number for this item","example":"67890123"},"lineItemMasterDataUnits":{"type":"array","description":"Packing levels of this line item, for example base unit, carton and pallet. Must contain at least one packing level.","items":{"$ref":"#/components/schemas/LineItemMasterDataUnitDto"},"minItems":1}},"required":["lineItemMasterDataUnits"]},"LineItemMasterDataUnitDto":{"type":"object","description":"One packing level of the line item hierarchy. Every level carries the total number of base units it contains, so the goods receipt view can derive the delivered amount of base units from the despatched quantity.","properties":{"isBaseUnit":{"type":"boolean","description":"Whether this packing level is the base unit of the article","example":false},"gtin":{"type":"string","description":"Global Trade Item Number (GTIN) identifying this packing level","example":"1234567890123","minLength":1},"unitDescriptor":{"$ref":"#/components/schemas/LineItemHierarchyTypeDto","description":"Packing level of this unit","example":"CASE"},"quantityOfBaseUnits":{"type":"integer","format":"int32","description":"Total number of base units contained in this packing level. A carton holding 10 base units has 10, a pallet holding 5 of those cartons has 50.","example":50}},"required":["gtin","isBaseUnit","quantityOfBaseUnits","unitDescriptor"]},"LineItemQuantityVarianceDto":{"type":"object","description":"Quantity variance information for line items, documenting differences between delivered and accepted quantities.","properties":{"acceptedQuantity":{"$ref":"#/components/schemas/QuantityDto","description":"Quantity that was accepted during goods receipt"},"deliveredQuantity":{"$ref":"#/components/schemas/QuantityDto","description":"Quantity that was actually delivered"},"reason":{"type":"string","description":"Reason for the quantity variance","enum":["SHORT_SHIPPED","OVER_SHIPPED","DAMAGED","DELIVERED_TOO_LATE","GOODS_DELIVERED_TOO_EARLY","SHIPMENT_PARTIAL_CONSIDERED_COMPLETE_NO_BACKORDER","NOT_ORDERED","QUALITY_DEFECT_TRANSPORT_CARGO_UNIT","QUALITY_DEFECT_GOODS","SPOILAGE_OF_GOODS","UNREADABLE_BARCODE","MINIMUM_MAXIMUM_PRODUCT_DURABILITY_DATE_UNACCEPTABLE","DELIVERED_BUT_NOT_ADVISED","ARTICLE_NUMBER_UNKNOWN","DELIVERY_CONDITIONS_NOT_MET","REGULATORY_REQUIREMENTS_DISCREPANCIES","TRANSPORT_MEANS_TECHNICAL_FAILURE","ITEM_DISCONTINUED_BY_WHOLESALER","ITEM_NO_LONGER_PRODUCED","ITEM_OUT_OF_STOCK_AT_MANUFACTURER","NEXT_HIGHER_PACKAGING_QUANTITY","AVAILABLE_NOW","SHIPMENT_PARTIAL_BACK_ORDER_TO_FOLLOW","SHIPMENT_COMPLETE","SHIPMENT_INCLUDES_EXTRA_ITEMS_TO_MEET_PRICE_BREAK","CANCELLED_FROM_PREVIOUS_ORDER","SHIPMENT_COMPLETE_WITH_ADDITIONAL_QUANTITY","NEXT_CARRIER","SHIPMENT_COMPLETE_WITH_SUBSTITUTION","ITEM_CANCELLED","ITEM_REPRESENTS_SUBSTITUTION_FROM_ORIGINAL_ORDER","ITEM_OUT_OF_STOCK_AT_WHOLESALER","PURCHASE_ORDER_INQUIRY_UNSHIPPED_ITEMS_ONLY","PURCHASE_ORDER_INQUIRY_SPECIFIC_ITEMS","IN_PROCESS","ITEM_RATIONED","ITEM_TEMPORAIRLY_DISCONTINUED_BY_WHOLESALER","PACK_TO_CLOSEST_COMPLETE_LOGISTIC_PACKAGING_QUANTITY","PACK_TO_NEXT_LOWER_COMPLETE_LOGISTIC_QUANTITY","GRADE_DIFFERENCE_OUT_OF_TOLERANCE_LEVEL","UNIT_OF_MEASURE_DIFFERENCE","RECEIPT_TEMPERATURE_OUTSIDE_AGREED_RANGE"],"x-enum-descriptions":{"UNIT_OF_MEASURE_DIFFERENCE":"(UM) Unit of measure different from ordered","GOODS_DELIVERED_TOO_EARLY":"(AI) Goods delivered too early","DELIVERED_TOO_LATE":"(AG) Delivered later than the agreed delivery date","ITEM_NO_LONGER_PRODUCED":"(AB) Item discontinued and no longer in production","IN_PROCESS":"(PS) Being manufactured, scheduled to ship","DELIVERED_BUT_NOT_ADVISED":"(BO) Delivered without advance notification","MINIMUM_MAXIMUM_PRODUCT_DURABILITY_DATE_UNACCEPTABLE":"(PE) Durability date not acceptable","PACK_TO_NEXT_LOWER_COMPLETE_LOGISTIC_QUANTITY":"(UT) Pack to next lower complete packaging","QUALITY_DEFECT_TRANSPORT_CARGO_UNIT":"(BC) Equipment technical failure (damaged or wrong)","ITEM_OUT_OF_STOCK_AT_WHOLESALER":"(OW) Item not available at distribution point","PURCHASE_ORDER_INQUIRY_UNSHIPPED_ITEMS_ONLY":"(PO) Response about unshipped items only","PURCHASE_ORDER_INQUIRY_SPECIFIC_ITEMS":"(PP) Response about specific items subset","OVER_SHIPPED":"(AC) More goods shipped than contracted for delivery","NEXT_CARRIER":"(CN) Item will be shipped on next available carrier","SHIPMENT_PARTIAL_CONSIDERED_COMPLETE_NO_BACKORDER":"(CP) Quantity shipped is less than authorized, no plan to ship remaining","SHIPMENT_PARTIAL_BACK_ORDER_TO_FOLLOW":"(BP) Partial order held open, back order to follow","ITEM_RATIONED":"(RA) Product restricted due to limited availability","REGULATORY_REQUIREMENTS_DISCREPANCIES":"(OS) Item out of stock due to strike or force majeure","CANCELLED_FROM_PREVIOUS_ORDER":"(CK) Amount deleted from earlier schedule","DELIVERY_CONDITIONS_NOT_MET":"(AZ) Delivery conditions not met","AVAILABLE_NOW":"(AS) Material available, scheduled to ship at future date","QUALITY_DEFECT_GOODS":"(BE) Goods technical failure (instability, overhang, damage)","DAMAGED":"(AF) Part or all goods were delivered damaged","UNREADABLE_BARCODE":"(BK) Barcode not readable by scanning device","SHIPMENT_COMPLETE_WITH_ADDITIONAL_QUANTITY":"(CM) Quantity dispatched exceeds ordered quantity","SHIPMENT_COMPLETE":"(CC) Quantity dispatched fulfilled the order quantity","PACK_TO_CLOSEST_COMPLETE_LOGISTIC_PACKAGING_QUANTITY":"(US) Pack to closest complete packaging","NEXT_HIGHER_PACKAGING_QUANTITY":"(AH) Packed to next higher packaging quantity","ITEM_TEMPORAIRLY_DISCONTINUED_BY_WHOLESALER":"(TW) Temporarily not available from wholesaler","SHORT_SHIPPED":"(119) Part of the consignment was not shipped","ITEM_CANCELLED":"(IC) Item cancelled from order by buyer or supplier","ITEM_DISCONTINUED_BY_WHOLESALER":"(AA) Wholesaler no longer offers the product","RECEIPT_TEMPERATURE_OUTSIDE_AGREED_RANGE":"(BN) Temperature outside agreed range","ARTICLE_NUMBER_UNKNOWN":"(AUE) Article code (GTIN) is unknown","TRANSPORT_MEANS_TECHNICAL_FAILURE":"(BB) Transport means technical failure","SHIPMENT_COMPLETE_WITH_SUBSTITUTION":"(CS) Shipment complete with substitution","SHIPMENT_INCLUDES_EXTRA_ITEMS_TO_MEET_PRICE_BREAK":"(CE) Extra items to meet price break","GRADE_DIFFERENCE_OUT_OF_TOLERANCE_LEVEL":"(BG) Grade variation outside tolerance level","NOT_ORDERED":"(AT) Item or product was not ordered","SPOILAGE_OF_GOODS":"(BF) Change resulting from spoilage of goods","ITEM_REPRESENTS_SUBSTITUTION_FROM_ORIGINAL_ORDER":"(IS) Item substitutes originally ordered item","ITEM_OUT_OF_STOCK_AT_MANUFACTURER":"(AD) Item out of stock at manufacturer"}},"actionType":{"type":"string","description":"Action type to be taken for this variance","enum":["RETURN","DESTRUCTION","RECEIVED_AND_ACCEPTED","COLLECTION_DESIRED"],"x-enum-descriptions":{"RETURN":"(195) Received, not accepted, to be returned","DESTRUCTION":"(196) Received, not accepted, to be destroyed","COLLECTION_DESIRED":"(201) Collection desired","RECEIVED_AND_ACCEPTED":"(194) Received and accepted"}},"comment":{"type":"string","description":"Additional comments regarding the quantity variance"}}},"LineItemUpdateDto":{"type":"object","description":"Data transfer object for updating an existing line item. When used in bulk update operations (PUT /goods-receipts), the ID is required. When used in standalone operations (PUT /line-items), the ID comes from the URL path parameter.","properties":{"id":{"type":"string","description":"Unique identifier for the line item. Required when updating line items as part of a goods receipt bulk update. Optional for standalone line item updates where ID comes from URL path.","example":"550e8400-e29b-41d4-a716-446655440000"},"lineItemNumber":{"type":"string","description":"Line item number to uniquely identify this line item. The line item number iterates over the whole message starting with 1.","example":"2"},"hierarchyLevel":{"type":"string","description":"CPS Level - hierarchy level indicator"},"hierarchyLevelParent":{"type":"string","description":"CPS Parent - parent hierarchy level reference"},"gtin":{"type":"string","description":"Global Trade Item Number (GTIN) to uniquely identify this line item. A unique number, up to 14-digits.","example":"1234567890123"},"targetMarket":{"type":"string","description":"Target market identifier"},"articleNumberBuyer":{"type":"string","description":"Buyer specific article number for this item","example":"67890123"},"articleNumberSupplier":{"type":"string","description":"Supplier specific article number for this item","example":"67890123"},"ssccs":{"$ref":"#/components/schemas/SsccsDto","description":"Serial Shipping Container Codes (SSCC) for this line item. The SSCC is used to uniquely identify individual packages."},"despatchedQuantity":{"$ref":"#/components/schemas/QuantityDto","description":"Dispatched quantity of items in this line item."},"orderedQuantity":{"$ref":"#/components/schemas/QuantityDto","description":"Ordered quantity of items for this line item"},"bestBeforeDate":{"type":"string","format":"date-time","description":"Best before date for this line item."},"organicControlNumber":{"type":"string","description":"ECO controlling agency (RFF+XC1). The article is a BIO product. The indication overwrites information of the heading section."},"hazardInformation":{"type":"string","description":"Hazard information containing Agreement concerning the International Carriage of Dangerous Goods by Road (ADR) related information like an UN number of the item"},"pharmacyProductNumber":{"type":"string","description":"Pharmacy Product Number holding the Product Registration Agency Code (PRA-Code)"},"articleDescription":{"type":"string","description":"Article description of this line item"},"quantityVariance":{"$ref":"#/components/schemas/LineItemQuantityVarianceDto","description":"Quantity variances for the dispatched line items coming from the UI"},"weightVariance":{"$ref":"#/components/schemas/LineItemWeightVarianceDto","description":"Weight variance information for the line item in kilograms"},"batchNumber":{"type":"string","description":"Batch number supplementing the identification code of a product used to identify the specific production place and/or time of a product."},"masterData":{"$ref":"#/components/schemas/LineItemMasterDataDto","description":"Optional article master data including the packing hierarchy of this line item. When provided, the packing hierarchy is not automatically resolved. When provided, lineItemMasterDataUnits must contain at least one packing level with all fields set. When omitted in a goods receipt bulk update, previously supplied master data is dropped and must be resent. When omitted in a standalone line item update, previously supplied master data is kept."}}},"ReceivingAdviceUpdateDto":{"type":"object","description":"Receiving advice data for updating a goods receipt according to EANCOM DESADV standards. All line items MUST include valid IDs for update operations.","properties":{"documentNumber":{"type":"string","description":"Document number assigned by sender. This segment is used to indicate the type and function of a message and to transmit the identifying number (BGM).","example":"DESADV2024001234"},"orderNumber":{"type":"string","description":"Reference Order Number of buyer (ON).","example":"ORD-2024-5678"},"orderNumberSupplier":{"type":"string","description":"Reference Order Number of supplier (VN).","example":"SUP-ORD-9876"},"deliveryNoteNumber":{"type":"string","description":"Delivery Note Number (RFF+DQ).","example":"DN-2024-3456"},"documentDate":{"type":"string","format":"date-time","description":"Date/time when the document/message was issued. This may include authentication (DTM+137)."},"orderDate":{"type":"string","format":"date-time","description":"Date or time on which the goods were ordered (only P&G specific field)"},"despatchedDate":{"type":"string","format":"date-time","description":"Date or time on which the goods are or are expected to be despatched or shipped (DTM+11)."},"deliveryDateRequested":{"type":"string","format":"date-time","description":"Date on which buyer requests goods to be delivered (DTM+2)."},"deliveryDateActual":{"type":"string","format":"date-time","description":"Actual delivery date/time (DTM+35). Date/time on which goods or consignment are delivered at their destination."},"deliveryDateEstimated":{"type":"string","format":"date-time","description":"Date and/or time when the shipper of the goods expects delivery will take place (DTM+17)."},"buyer":{"$ref":"#/components/schemas/PartnerDto","description":"Optional but recommended. Party to whom merchandise and/or service is sold (NAD+BY). Enriched data by Partner Pool, GLN is provided by DESADV. Also being used to get additional LineItem data by the bayard pool, for example missing article description."},"deliveryParty":{"$ref":"#/components/schemas/PartnerDto","description":"Party to which goods should be delivered, if not the same as the buyer (NAD+DP). Enriched data by Partner Pool, GLN is provided by DESADV."},"supplier":{"$ref":"#/components/schemas/PartnerDto","description":"Party which provides service(s) and/or manufactures or otherwise has possession of goods, and consigns or makes them available in trade (NAD+SU). Enriched data by Partner Pool, GLN is provided by DESADV."},"shipFrom":{"$ref":"#/components/schemas/PartnerDto","description":"Identification of the party from where goods will be or have been shipped (NAD+SF). Enriched data by Partner Pool, GLN is provided by DESADV."},"organicControlNumber":{"type":"string","description":"ECO controlling agency (RFF+XC1).","example":"DE-ÖKO-001"},"carrier":{"$ref":"#/components/schemas/PartnerDto","description":"Carrier information for the shipment"},"despatchedPalletCount":{"type":"string","description":"Number of pallets dispatched in the shipment","example":"12"},"lineItems":{"type":"array","description":"List of individual line items included in this receiving advice. All line items MUST include valid IDs. Line items not included will be deleted.","items":{"$ref":"#/components/schemas/LineItemUpdateDto"}}},"required":["deliveryNoteNumber","deliveryParty","lineItems"]},"GoodsReceiptResponseDto":{"type":"object","description":"Data transfer object representing a goods receipt in API responses. Contains complete goods receipt information including system-generated fields.","properties":{"id":{"type":"string","description":"Unique identifier of the goods receipt, generated by the system upon creation.","example":"550e8400-e29b-41d4-a716-446655440000"},"createdAt":{"type":"string","format":"date-time","description":"Timestamp when the goods receipt was created in the system.","example":"2024-01-15T10:30:00Z"},"referenceNumber":{"type":"string","description":"Reference number assigned by the goods management system (WWS). Unique identifier used for tracking and cross-referencing with external systems.","example":"REF-2024-001234"},"archiveNumber":{"type":"string","description":"Archive or barcode number used to match documents in ECM (Enterprise Content Management) and Mareko systems. This number enables document traceability across different platforms.","example":"ARC-789012345"},"assortments":{"type":"array","description":"List of assortment classifications assigned to this goods receipt. Assortments categorize goods by type such as fresh, dry, or frozen products.","example":["FRESH","DRY"],"items":{"type":"string","description":"Assortment type classification for goods receipt","enum":["FRESH","MEAT","FRUITS_AND_VEGETABLES","DRY","FROZEN"],"x-enum-descriptions":{"FRUITS_AND_VEGETABLES":"Fruits and vegetables assortment","DRY":"Dry goods assortment","FROZEN":"Frozen goods assortment","FRESH":"Fresh goods assortment","MEAT":"Meat assortment"}}},"receivingAdvice":{"$ref":"#/components/schemas/ReceivingAdviceResponseDto","description":"Complete receiving advice information containing delivery details, partner information, line items, and all related delivery data according to EANCOM DESADV standards."},"protocol":{"$ref":"#/components/schemas/GoodsReceiptProtocolDto","description":"Goods receipt protocol containing inspection results and compliance checks performed during the receiving process. May be null if no protocol has been created yet."},"loadCarrierExchange":{"$ref":"#/components/schemas/LoadCarrierExchangeDto","description":"Load carrier exchange information including exchange status, coupon issuance, and detailed load carrier information. May be null if no load carrier exchange occurred."},"attachments":{"type":"array","description":"Attachments related to the goods receipt, such as images or documents.","items":{"$ref":"#/components/schemas/GoodsReceiptAttachmentWithoutContentDto"}},"parentGoodsReceiptId":{"type":"string","description":"ID of the parent goods receipt if this is a subsequent delivery. Subsequent deliveries share the same orderNumber and deliveryNoteNumber but have a different referenceNumber.","example":"550e8400-e29b-41d4-a716-446655440001"},"childGoodsReceiptId":{"type":"string","description":"ID of the child goods receipt if this has a subsequent delivery. Subsequent deliveries share the same orderNumber and deliveryNoteNumber but have a different referenceNumber.","example":"550e8400-e29b-41d4-a716-446655440002"}}},"LineItemResponseDto":{"type":"object","description":"Data transfer object representing a line item in API responses. Contains complete line item information including system-generated fields.","properties":{"id":{"type":"string","description":"Unique identifier for the line item, generated by the system.","example":"550e8400-e29b-41d4-a716-446655440000"},"lineItemNumber":{"type":"string","description":"Line item number to uniquely identify this line item. The line item number iterates over the whole message starting with 1.","example":"2"},"hierarchyLevel":{"type":"string","description":"CPS Level - hierarchy level indicator"},"hierarchyLevelParent":{"type":"string","description":"CPS Parent - parent hierarchy level reference"},"gtin":{"type":"string","description":"Global Trade Item Number (GTIN) to uniquely identify this line item. A unique number, up to 14-digits.","example":"1234567890123"},"targetMarket":{"type":"string","description":"Target market identifier"},"articleNumberBuyer":{"type":"string","description":"Buyer specific article number for this item","example":"67890123"},"articleNumberSupplier":{"type":"string","description":"Supplier specific article number for this item","example":"67890123"},"ssccs":{"$ref":"#/components/schemas/SsccsDto","description":"Serial Shipping Container Codes (SSCC) for this line item. The SSCC is used to uniquely identify individual packages."},"despatchedQuantity":{"$ref":"#/components/schemas/QuantityDto","description":"Dispatched quantity of items in this line item."},"orderedQuantity":{"$ref":"#/components/schemas/QuantityDto","description":"Ordered quantity of items for this line item"},"bestBeforeDate":{"type":"string","format":"date-time","description":"Best before date for this line item."},"organicControlNumber":{"type":"string","description":"ECO controlling agency (RFF+XC1). The article is a BIO product. The indication overwrites information of the heading section."},"hazardInformation":{"type":"string","description":"Hazard information containing Agreement concerning the International Carriage of Dangerous Goods by Road (ADR) related information like an UN number of the item"},"pharmacyProductNumber":{"type":"string","description":"Pharmacy Product Number holding the Product Registration Agency Code (PRA-Code)"},"articleDescription":{"type":"string","description":"Article description of this line item"},"quantityVariance":{"$ref":"#/components/schemas/LineItemQuantityVarianceDto","description":"Quantity variances for the dispatched line items"},"weightVariance":{"$ref":"#/components/schemas/LineItemWeightVarianceDto","description":"Weight variance information for the line item in kilograms"},"batchNumber":{"type":"string","description":"Batch number supplementing the identification code of a product used to identify the specific production place and/or time of a product."},"attachments":{"type":"array","description":"Attachments associated with this line item","items":{"$ref":"#/components/schemas/GoodsReceiptAttachmentWithoutContentDto"}}}},"ReceivingAdviceResponseDto":{"type":"object","description":"Receiving advice data returned in API responses according to EANCOM DESADV standards. Contains complete delivery notification information including document references, dates, partners, and line items with their IDs.","properties":{"documentNumber":{"type":"string","description":"Document number assigned by sender. This segment is used to indicate the type and function of a message and to transmit the identifying number (BGM).","example":"DESADV2024001234"},"orderNumber":{"type":"string","description":"Reference Order Number of buyer (ON).","example":"ORD-2024-5678"},"orderNumberSupplier":{"type":"string","description":"Reference Order Number of supplier (VN).","example":"SUP-ORD-9876"},"deliveryNoteNumber":{"type":"string","description":"Delivery Note Number (RFF+DQ).","example":"DN-2024-3456"},"documentDate":{"type":"string","format":"date-time","description":"Date/time when the document/message was issued. This may include authentication (DTM+137)."},"orderDate":{"type":"string","format":"date-time","description":"Date or time on which the goods were ordered (only P&G specific field)"},"despatchedDate":{"type":"string","format":"date-time","description":"Date or time on which the goods are or are expected to be despatched or shipped (DTM+11)."},"deliveryDateRequested":{"type":"string","format":"date-time","description":"Date on which buyer requests goods to be delivered (DTM+2)."},"deliveryDateActual":{"type":"string","format":"date-time","description":"Actual delivery date/time (DTM+35). Date/time on which goods or consignment are delivered at their destination."},"deliveryDateEstimated":{"type":"string","format":"date-time","description":"Date and/or time when the shipper of the goods expects delivery will take place (DTM+17)."},"buyer":{"$ref":"#/components/schemas/PartnerDto","description":"Party to whom merchandise and/or service is sold (NAD+BY). Enriched data by Partner Pool, GLN is provided by DESADV."},"deliveryParty":{"$ref":"#/components/schemas/PartnerDto","description":"Party to which goods should be delivered, if not the same as the buyer (NAD+DP). Enriched data by Partner Pool, GLN is provided by DESADV."},"supplier":{"$ref":"#/components/schemas/PartnerDto","description":"Party which provides service(s) and/or manufactures or otherwise has possession of goods, and consigns or makes them available in trade (NAD+SU). Enriched data by Partner Pool, GLN is provided by DESADV."},"shipFrom":{"$ref":"#/components/schemas/PartnerDto","description":"Identification of the party from where goods will be or have been shipped (NAD+SF). Enriched data by Partner Pool, GLN is provided by DESADV."},"organicControlNumber":{"type":"string","description":"ECO controlling agency (RFF+XC1).","example":"DE-ÖKO-001"},"carrier":{"$ref":"#/components/schemas/PartnerDto","description":"Carrier information for the shipment"},"despatchedPalletCount":{"type":"string","description":"Number of pallets dispatched in the shipment","example":"12"},"lineItems":{"type":"array","description":"List of individual line items included in this receiving advice. Each line item includes its unique ID.","items":{"$ref":"#/components/schemas/LineItemResponseDto"}}}},"TransportBodyDto":{"type":"object","description":"Transport body containing the list of consignments within the transport","properties":{"transportConsignments":{"type":"array","description":"List of consignments included in this transport","items":{"$ref":"#/components/schemas/TransportConsignmentDto"}}},"required":["transportConsignments"]},"TransportConsignmentDto":{"type":"object","description":"Individual consignment within a transport containing delivery and partner information","properties":{"consignmentItemNumber":{"type":"string","description":"Sequential item number for this consignment within the transport","example":"1"},"orderNumber":{"type":"string","description":"Reference to the order number fulfilled by this consignment","example":"PO-2024-567890"},"deliveryNoteNumber":{"type":"string","description":"Delivery note number associated with this consignment","example":"DN-2024-001234"},"organicControlNumber":{"type":"string","description":"Organic control number for organic products","example":"DE-ÖKO-001"},"consignmentNumber":{"type":"string","description":"Consignment number (carrier shipment number)","example":"CARR-SHIP-2024-001"},"consignor":{"$ref":"#/components/schemas/TransportPartnerDto","description":"Consignor (ship from) partner information"},"buyer":{"$ref":"#/components/schemas/TransportPartnerDto","description":"Buyer partner information"},"supplier":{"$ref":"#/components/schemas/TransportPartnerDto","description":"Supplier partner information"},"deliveryDateRequested":{"type":"string","format":"date-time","description":"Requested delivery date in ISO-8601 format (DTM+2)","example":"2024-01-20T14:00:00Z"},"deliveryDateActual":{"type":"string","format":"date-time","description":"Actual delivery date in ISO-8601 format (DTM+35)","example":"2024-01-20T15:30:00Z"},"deliveryDateEstimated":{"type":"string","format":"date-time","description":"Estimated delivery date in ISO-8601 format (DTM+17)","example":"2024-01-20T14:00:00Z"}},"required":["deliveryNoteNumber","orderNumber"]},"TransportDto":{"type":"object","description":"Transport document containing header and body information for creating goods receipts from transport data","properties":{"header":{"$ref":"#/components/schemas/TransportHeaderDto","description":"Header information containing transport-level details like carrier and delivery dates"},"body":{"$ref":"#/components/schemas/TransportBodyDto","description":"Body information containing the list of consignments within this transport"}},"required":["body","header"]},"TransportHeaderDto":{"type":"object","description":"Transport header information containing carrier details and delivery dates","properties":{"deliveryDate":{"type":"string","format":"date-time","description":"Expected delivery date for the transport in ISO-8601 format","example":"2024-01-20T14:00:00Z"},"shipmentNumber":{"type":"string","description":"Shipment number provided by the carrier for this transport","example":"SHIP-2024-001"},"carrier":{"$ref":"#/components/schemas/TransportPartnerDto","description":"Carrier information responsible for the transport"},"consignee":{"$ref":"#/components/schemas/TransportPartnerDto","description":"Consignee (delivery party) information where the transport will be delivered"}},"required":["consignee","deliveryDate","shipmentNumber"]},"TransportPartnerAddressDto":{"type":"object","description":"Physical address information for transport partners","properties":{"addressLine1":{"type":"string","description":"First line of the address (street and number)","example":"123 Main Street"},"addressLine2":{"type":"string","description":"Second line of the address (additional address information)","example":"Building A, Floor 2"},"stateProvinceCounty":{"type":"string","description":"State, province, or county","example":"Bavaria"},"zipcode":{"type":"string","description":"Postal code or ZIP code","example":"80331"},"city":{"type":"string","description":"City name","example":"Munich"},"countryCode":{"type":"string","description":"ISO 3166-1 alpha-2 country code","example":"DE","pattern":"^[A-Z]{2}$"}}},"TransportPartnerDto":{"type":"object","description":"Partner information for transport participants including identification and address details","properties":{"gln":{"type":"string","description":"Global Location Number (GLN) - unique identifier for the partner","example":"4012345000017","pattern":"^[0-9]{13}$"},"name":{"type":"string","description":"Partner name","example":"ACME Corporation Ltd."},"internalPartnerId":{"type":"string","description":"Internal partner identifier used by the organization","example":"ACME-001"},"address":{"$ref":"#/components/schemas/TransportPartnerAddressDto","description":"Physical address of the partner"},"vatNumber":{"type":"string","description":"VAT number of the partner","example":"DE123456789"},"rootGln":{"type":"string","description":"Root GLN for hierarchical partner structures","example":"4012345000000","pattern":"^[0-9]{13}$"}},"required":["gln"]},"TransportConsignmentResponseDto":{"type":"object","description":"Response information for a created consignment within a transport","properties":{"consignmentId":{"type":"string","description":"Unique identifier of the created consignment (goods receipt ID)","example":"87654321-4321-4321-4321-210987654321"},"transportId":{"type":"string","description":"Unique identifier of the parent transport (ETD ID)","example":"12345678-1234-1234-1234-123456789012"},"shipmentNumber":{"type":"string","description":"Shipment number of the parent transport (carrier TMS reference from transport header)","example":"SHIP-2024-001"},"deliveryNoteNumber":{"type":"string","description":"Delivery note number associated with this consignment","example":"DN-2024-001234"},"orderNumber":{"type":"string","description":"Order number fulfilled by this consignment","example":"PO-2024-567890"},"organicControlNumber":{"type":"string","description":"Organic control number for organic products","example":"DE-ÖKO-001"},"consignmentNumber":{"type":"string","description":"Consignment number (carrier shipment number)","example":"CARR-SHIP-2024-001"},"status":{"type":"string","description":"Status of the consignment. AWAITING_PDF: created via Transport API, no PDF uploaded yet. PROCESSING: PDF uploaded, AI analysis running. PROCESSED: AI analysis complete, proof of delivery not available yet. PROCESSING_FAILED: AI analysis failed. ACKNOWLEDGED: delivery acknowledged, proof of delivery available.","enum":["AWAITING_PDF","PROCESSING","PROCESSED","PROCESSING_FAILED","ACKNOWLEDGED"],"example":"PROCESSED"},"consigneeGln":{"type":"string","description":"Consignee GLN (Global Location Number) of the delivery party for this consignment.","example":"9876543210987"},"acknowledgedAt":{"type":"string","format":"date-time","description":"Timestamp when this consignment was acknowledged (POD received). Null if not yet acknowledged.","example":"2024-01-15T14:30:00Z"}}},"TransportResponseDto":{"type":"object","description":"Response containing the created transport information with consignment details","properties":{"transportId":{"type":"string","description":"Unique identifier of the created transport (ETD ID)","example":"12345678-1234-1234-1234-123456789012"},"qrCodeContent":{"type":"string","description":"Share URL encoded by the transport QR code","example":"https://dva.markant.services/share/b7e8f9a0-1b2c-3d4e-5f6a-7b8c9d0e1f2a"},"consignments":{"type":"array","description":"List of consignments created from the transport document","items":{"$ref":"#/components/schemas/TransportConsignmentResponseDto"}},"status":{"type":"string","description":"Status of the transport, derived from its consignments. PROCESSING_DOCUMENTS: delivery notes are being processed. PROCESSING_FAILED: processing of at least one delivery note failed. WAITING_FOR_POD: processing complete, no proof of delivery available yet. PODS_PARTIALLY_AVAILABLE: some but not all proofs of delivery are available. COMPLETED: all proofs of delivery are available.","enum":["PROCESSING_DOCUMENTS","PROCESSING_FAILED","WAITING_FOR_POD","PODS_PARTIALLY_AVAILABLE","COMPLETED"],"example":"WAITING_FOR_POD"}}},"TransportConsignmentDeliveryNoteUploadResponseDto":{"type":"object","description":"Response for delivery note upload operation indicating success or failure","properties":{"success":{"type":"boolean","description":"Indicates whether the upload was successful","example":true},"error":{"type":"string","description":"Error message if upload failed, null if successful","example":"File size exceeds maximum allowed"}}},"GoodsReceiptCreateV2Dto":{"type":"object","description":"Data transfer object for creating a new goods receipt (v2). Contains all necessary information to create a goods receipt from receiving advice data. V2 line items support accepted/delivered quantities at line-item level and list-based quantity variance entries.","properties":{"referenceNumber":{"type":"string","description":"Reference number assigned by the warehouse management system (WMS). Unique identifier used for tracking and cross-referencing with external systems.","example":"REF-2024-001234"},"archiveNumber":{"type":"string","description":"Archive or barcode number used to match documents in ECM (Enterprise Content Management) and Markant Mareko systems. This number enables document traceability across different platforms.","example":"ARC-789012345"},"receivingAdvice":{"$ref":"#/components/schemas/ReceivingAdviceCreateV2Dto","description":"Complete receiving advice information (v2) containing delivery details, partner information, line items, and all related delivery data according to EANCOM DESADV standards."},"protocol":{"$ref":"#/components/schemas/GoodsReceiptProtocolDto","description":"Goods receipt protocol containing inspection results and compliance checks performed during the receiving process."},"loadCarrierExchange":{"$ref":"#/components/schemas/LoadCarrierExchangeDto","description":"Load carrier exchange information including exchange status, coupon issuance, and detailed load carrier information."},"assortments":{"type":"array","description":"List of assortment classifications to assign to this goods receipt. Assortments categorize goods by type such as fresh, dry, or frozen products.","example":["FRESH","DRY"],"items":{"type":"string","description":"Assortment type classification for goods receipt","enum":["FRESH","MEAT","FRUITS_AND_VEGETABLES","DRY","FROZEN"],"x-enum-descriptions":{"FRUITS_AND_VEGETABLES":"Fruits and vegetables assortment","DRY":"Dry goods assortment","FROZEN":"Frozen goods assortment","FRESH":"Fresh goods assortment","MEAT":"Meat assortment"}}},"state":{"type":"string","description":"Optional initial state of the goods receipt bundle on the WE-Board. If not provided, defaults to ANNOUNCED_DELIVERIES.","enum":["ANNOUNCED_DELIVERIES","DOCUMENT_REVIEW","GATE_ASSIGNMENT","DELIVERIES_CONTROL"],"example":"ANNOUNCED_DELIVERIES"}},"required":["receivingAdvice","referenceNumber"]},"LineItemCreateV2Dto":{"type":"object","description":"Data transfer object for creating a new line item (v2). The ID will be generated by the system. V2 supports accepted/delivered quantities at line-item level and list-based quantity variance entries.","properties":{"lineItemNumber":{"type":"string","description":"Line item number to uniquely identify this line item. The line item number iterates over the whole message starting with 1.","example":"2"},"hierarchyLevel":{"type":"string","description":"CPS Level - hierarchy level indicator"},"hierarchyLevelParent":{"type":"string","description":"CPS Parent - parent hierarchy level reference"},"gtin":{"type":"string","description":"Global Trade Item Number (GTIN) to uniquely identify this line item. A unique number, up to 14-digits.","example":"1234567890123"},"targetMarket":{"type":"string","description":"Target market identifier"},"articleNumberBuyer":{"type":"string","description":"Buyer specific article number for this item","example":"67890123"},"articleNumberSupplier":{"type":"string","description":"Supplier specific article number for this item","example":"67890123"},"ssccs":{"$ref":"#/components/schemas/SsccsDto","description":"Serial Shipping Container Codes (SSCC) for this line item. The SSCC is used to uniquely identify individual packages."},"despatchedQuantity":{"$ref":"#/components/schemas/QuantityDto","description":"Dispatched quantity of items in this line item."},"acceptedQuantity":{"$ref":"#/components/schemas/QuantityDto","description":"Accepted quantity shared across all variance entries. If it differs from despatchedQuantity, quantityVariances requires at least one entry."},"deliveredQuantity":{"$ref":"#/components/schemas/QuantityDto","description":"Delivered quantity shared across all variance entries. If it differs from despatchedQuantity, quantityVariances requires at least one entry."},"orderedQuantity":{"$ref":"#/components/schemas/QuantityDto","description":"Ordered quantity of items for this line item"},"bestBeforeDate":{"type":"string","format":"date-time","description":"Best before date for this line item."},"organicControlNumber":{"type":"string","description":"ECO controlling agency (RFF+XC1). The article is a BIO product. The indication overwrites information of the heading section."},"hazardInformation":{"type":"string","description":"Hazard information containing Agreement concerning the International Carriage of Dangerous Goods by Road (ADR) related information like an UN number of the item"},"pharmacyProductNumber":{"type":"string","description":"Pharmacy Product Number holding the Product Registration Agency Code (PRA-Code)"},"articleDescription":{"type":"string","description":"Article description of this line item"},"quantityVariances":{"type":"array","description":"List of variance entries for this line item. At least one entry is required when acceptedQuantity or deliveredQuantity differs from despatchedQuantity.","items":{"$ref":"#/components/schemas/LineItemQuantityVarianceV2Dto"}},"weightVariance":{"$ref":"#/components/schemas/LineItemWeightVarianceDto","description":"Weight variance information for the line item in kilograms"},"batchNumber":{"type":"string","description":"Batch number supplementing the identification code of a product used to identify the specific production place and/or time of a product."},"masterData":{"$ref":"#/components/schemas/LineItemMasterDataV2Dto","description":"Optional article master data including the packing hierarchy of this line item. When provided, the packing hierarchy is not automatically enriched. When provided, lineItemMasterDataUnits must contain at least one packing level with all fields set."}}},"LineItemQuantityVarianceV2Dto":{"type":"object","description":"Quantity variance entry for line item create operations (v2). Accepted and delivered quantities are stored on the line item itself.","properties":{"varianceQuantity":{"type":"number","format":"double","description":"Variance quantity/value for this reason"},"reason":{"type":"string","description":"Reason for the quantity variance","enum":["SHORT_SHIPPED","OVER_SHIPPED","DAMAGED","DELIVERED_TOO_LATE","GOODS_DELIVERED_TOO_EARLY","SHIPMENT_PARTIAL_CONSIDERED_COMPLETE_NO_BACKORDER","NOT_ORDERED","QUALITY_DEFECT_TRANSPORT_CARGO_UNIT","QUALITY_DEFECT_GOODS","SPOILAGE_OF_GOODS","UNREADABLE_BARCODE","MINIMUM_MAXIMUM_PRODUCT_DURABILITY_DATE_UNACCEPTABLE","DELIVERED_BUT_NOT_ADVISED","ARTICLE_NUMBER_UNKNOWN","DELIVERY_CONDITIONS_NOT_MET","REGULATORY_REQUIREMENTS_DISCREPANCIES","TRANSPORT_MEANS_TECHNICAL_FAILURE","ITEM_DISCONTINUED_BY_WHOLESALER","ITEM_NO_LONGER_PRODUCED","ITEM_OUT_OF_STOCK_AT_MANUFACTURER","NEXT_HIGHER_PACKAGING_QUANTITY","AVAILABLE_NOW","SHIPMENT_PARTIAL_BACK_ORDER_TO_FOLLOW","SHIPMENT_COMPLETE","SHIPMENT_INCLUDES_EXTRA_ITEMS_TO_MEET_PRICE_BREAK","CANCELLED_FROM_PREVIOUS_ORDER","SHIPMENT_COMPLETE_WITH_ADDITIONAL_QUANTITY","NEXT_CARRIER","SHIPMENT_COMPLETE_WITH_SUBSTITUTION","ITEM_CANCELLED","ITEM_REPRESENTS_SUBSTITUTION_FROM_ORIGINAL_ORDER","ITEM_OUT_OF_STOCK_AT_WHOLESALER","PURCHASE_ORDER_INQUIRY_UNSHIPPED_ITEMS_ONLY","PURCHASE_ORDER_INQUIRY_SPECIFIC_ITEMS","IN_PROCESS","ITEM_RATIONED","ITEM_TEMPORAIRLY_DISCONTINUED_BY_WHOLESALER","PACK_TO_CLOSEST_COMPLETE_LOGISTIC_PACKAGING_QUANTITY","PACK_TO_NEXT_LOWER_COMPLETE_LOGISTIC_QUANTITY","GRADE_DIFFERENCE_OUT_OF_TOLERANCE_LEVEL","UNIT_OF_MEASURE_DIFFERENCE","RECEIPT_TEMPERATURE_OUTSIDE_AGREED_RANGE"],"x-enum-descriptions":{"UNIT_OF_MEASURE_DIFFERENCE":"(UM) Unit of measure different from ordered","GOODS_DELIVERED_TOO_EARLY":"(AI) Goods delivered too early","DELIVERED_TOO_LATE":"(AG) Delivered later than the agreed delivery date","ITEM_NO_LONGER_PRODUCED":"(AB) Item discontinued and no longer in production","IN_PROCESS":"(PS) Being manufactured, scheduled to ship","DELIVERED_BUT_NOT_ADVISED":"(BO) Delivered without advance notification","MINIMUM_MAXIMUM_PRODUCT_DURABILITY_DATE_UNACCEPTABLE":"(PE) Durability date not acceptable","PACK_TO_NEXT_LOWER_COMPLETE_LOGISTIC_QUANTITY":"(UT) Pack to next lower complete packaging","QUALITY_DEFECT_TRANSPORT_CARGO_UNIT":"(BC) Equipment technical failure (damaged or wrong)","ITEM_OUT_OF_STOCK_AT_WHOLESALER":"(OW) Item not available at distribution point","PURCHASE_ORDER_INQUIRY_UNSHIPPED_ITEMS_ONLY":"(PO) Response about unshipped items only","PURCHASE_ORDER_INQUIRY_SPECIFIC_ITEMS":"(PP) Response about specific items subset","OVER_SHIPPED":"(AC) More goods shipped than contracted for delivery","NEXT_CARRIER":"(CN) Item will be shipped on next available carrier","SHIPMENT_PARTIAL_CONSIDERED_COMPLETE_NO_BACKORDER":"(CP) Quantity shipped is less than authorized, no plan to ship remaining","SHIPMENT_PARTIAL_BACK_ORDER_TO_FOLLOW":"(BP) Partial order held open, back order to follow","ITEM_RATIONED":"(RA) Product restricted due to limited availability","REGULATORY_REQUIREMENTS_DISCREPANCIES":"(OS) Item out of stock due to strike or force majeure","CANCELLED_FROM_PREVIOUS_ORDER":"(CK) Amount deleted from earlier schedule","DELIVERY_CONDITIONS_NOT_MET":"(AZ) Delivery conditions not met","AVAILABLE_NOW":"(AS) Material available, scheduled to ship at future date","QUALITY_DEFECT_GOODS":"(BE) Goods technical failure (instability, overhang, damage)","DAMAGED":"(AF) Part or all goods were delivered damaged","UNREADABLE_BARCODE":"(BK) Barcode not readable by scanning device","SHIPMENT_COMPLETE_WITH_ADDITIONAL_QUANTITY":"(CM) Quantity dispatched exceeds ordered quantity","SHIPMENT_COMPLETE":"(CC) Quantity dispatched fulfilled the order quantity","PACK_TO_CLOSEST_COMPLETE_LOGISTIC_PACKAGING_QUANTITY":"(US) Pack to closest complete packaging","NEXT_HIGHER_PACKAGING_QUANTITY":"(AH) Packed to next higher packaging quantity","ITEM_TEMPORAIRLY_DISCONTINUED_BY_WHOLESALER":"(TW) Temporarily not available from wholesaler","SHORT_SHIPPED":"(119) Part of the consignment was not shipped","ITEM_CANCELLED":"(IC) Item cancelled from order by buyer or supplier","ITEM_DISCONTINUED_BY_WHOLESALER":"(AA) Wholesaler no longer offers the product","RECEIPT_TEMPERATURE_OUTSIDE_AGREED_RANGE":"(BN) Temperature outside agreed range","ARTICLE_NUMBER_UNKNOWN":"(AUE) Article code (GTIN) is unknown","TRANSPORT_MEANS_TECHNICAL_FAILURE":"(BB) Transport means technical failure","SHIPMENT_COMPLETE_WITH_SUBSTITUTION":"(CS) Shipment complete with substitution","SHIPMENT_INCLUDES_EXTRA_ITEMS_TO_MEET_PRICE_BREAK":"(CE) Extra items to meet price break","GRADE_DIFFERENCE_OUT_OF_TOLERANCE_LEVEL":"(BG) Grade variation outside tolerance level","NOT_ORDERED":"(AT) Item or product was not ordered","SPOILAGE_OF_GOODS":"(BF) Change resulting from spoilage of goods","ITEM_REPRESENTS_SUBSTITUTION_FROM_ORIGINAL_ORDER":"(IS) Item substitutes originally ordered item","ITEM_OUT_OF_STOCK_AT_MANUFACTURER":"(AD) Item out of stock at manufacturer"}},"actionType":{"type":"string","description":"Action type to be taken for this variance","enum":["RETURN","DESTRUCTION","RECEIVED_AND_ACCEPTED","COLLECTION_DESIRED"],"x-enum-descriptions":{"RETURN":"(195) Received, not accepted, to be returned","DESTRUCTION":"(196) Received, not accepted, to be destroyed","COLLECTION_DESIRED":"(201) Collection desired","RECEIVED_AND_ACCEPTED":"(194) Received and accepted"}},"comment":{"type":"string","description":"Additional information for this variance"}}},"ReceivingAdviceCreateV2Dto":{"type":"object","description":"Receiving advice data for creating a goods receipt (v2) according to EANCOM DESADV standards. Line items do not require IDs as they will be generated by the system. V2 line items support accepted/delivered quantities at line-item level and list-based quantity variance entries.","properties":{"documentNumber":{"type":"string","description":"Document number assigned by sender. This segment is used to indicate the type and function of a message and to transmit the identifying number (BGM).","example":"DESADV2024001234"},"orderNumber":{"type":"string","description":"Reference Order Number of buyer (ON).","example":"ORD-2024-5678"},"orderNumberSupplier":{"type":"string","description":"Reference Order Number of supplier (VN).","example":"SUP-ORD-9876"},"deliveryNoteNumber":{"type":"string","description":"Delivery Note Number (RFF+DQ).","example":"DN-2024-3456"},"documentDate":{"type":"string","format":"date-time","description":"Date/time when the document/message was issued (DTM+137)."},"orderDate":{"type":"string","format":"date-time","description":"Date or time on which the goods were ordered (only P&G specific field)"},"despatchedDate":{"type":"string","format":"date-time","description":"Date or time on which the goods are or are expected to be despatched or shipped (DTM+11)."},"deliveryDateRequested":{"type":"string","format":"date-time","description":"Date on which buyer requests goods to be delivered (DTM+2)."},"deliveryDateActual":{"type":"string","format":"date-time","description":"Actual delivery date/time (DTM+35). Date/time on which goods or consignment are delivered at their destination."},"deliveryDateEstimated":{"type":"string","format":"date-time","description":"Date and/or time when the shipper of the goods expects delivery will take place (DTM+17)."},"buyer":{"$ref":"#/components/schemas/PartnerDto","description":"Optional but recommended. Party to whom merchandise and/or service is sold (NAD+BY). Enriched data by Partner Pool, if GLN is provided. Also being used to get additional LineItem data by the bayard pool, for example missing article description."},"deliveryParty":{"$ref":"#/components/schemas/PartnerDto","description":"Party to which goods should be delivered, if not the same as the buyer (NAD+DP). Enriched data by Partner Pool, if GLN is provided."},"supplier":{"$ref":"#/components/schemas/PartnerDto","description":"Party which provides service(s) and/or manufactures or otherwise has possession of goods, and consigns or makes them available in trade (NAD+SU). Enriched data by Partner Pool, if GLN is provided."},"shipFrom":{"$ref":"#/components/schemas/PartnerDto","description":"Identification of the party from where goods will be or have been shipped (NAD+SF). Enriched data by Partner Pool, if GLN is provided."},"organicControlNumber":{"type":"string","description":"ECO controlling agency (RFF+XC1).","example":"DE-ÖKO-001"},"carrier":{"$ref":"#/components/schemas/PartnerDto","description":"Carrier information for the shipment"},"despatchedPalletCount":{"type":"string","description":"Number of pallets dispatched in the shipment","example":"12"},"lineItems":{"type":"array","description":"List of individual line items included in this receiving advice (v2). Line item IDs are not required and will be generated by the system.","items":{"$ref":"#/components/schemas/LineItemCreateV2Dto"}}},"required":["deliveryNoteNumber","deliveryParty","orderNumber"]},"GoodsReceiptIdResponseDto":{"type":"object","description":"Response containing the unique identifier of a goods receipt.","properties":{"goodsReceiptId":{"type":"string","description":"Unique identifier of the goods receipt","example":"550e8400-e29b-41d4-a716-446655440000"}}},"LineItemIdResponseDto":{"type":"object","description":"Response containing the ID of a newly created line item","properties":{"lineItemId":{"type":"string","description":"Unique identifier of the created line item","example":"550e8400-e29b-41d4-a716-446655440000"}}},"AttachmentCreateResponseDto":{"type":"object","description":"Response containing the unique identifier of a created attachment.","properties":{"attachmentId":{"type":"string","description":"Unique identifier of the created attachment","example":"123e4567-e89b-12d3-a456-426614174000"}}},"GoodsReceiptAcknowledgeDto":{"type":"object","description":"Acknowledgement of a goods receipt including signatures, load carrier exchange check, and comments","properties":{"signatures":{"type":"array","description":"List of signatures for the acknowledgement (optional)","example":[{"name":"John Doe","signatureContent":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...","type":"CLERK"}],"items":{"$ref":"#/components/schemas/SignatureCreateDto"},"maxItems":2,"minItems":0},"loadCarrierExchangeChecked":{"type":"boolean","deprecated":true,"description":"Whether all load carriers were exchanged 1:1. If true, loadCarrierExchange.exchangedOneToOne is set to true on every goods receipt of the bundle. Use loadCarrierExchange.exchangedOneToOne on the goods receipt instead.","example":true},"comment":{"type":"string","description":"Comment or additional information regarding the acknowledgement","example":"All items received in good condition","maxLength":1000,"minLength":0}}},"SignatureCreateDto":{"type":"object","description":"Signature information for acknowledging a goods receipt","properties":{"name":{"type":"string","description":"Name of the person signing (optional)","example":"John Doe"},"signatureContent":{"type":"string","description":"Signature content as a Data URI (RFC 2397). Must start with 'data:image/png;base64,' followed by the base64-encoded PNG image data. The decoded image size must be ≤ 1MB.","example":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...","minLength":1},"type":{"type":"string","description":"Type of signature - either DRIVER or CLERK","enum":["DRIVER","CLERK"],"example":"CLERK"}},"required":["signatureContent","type"]},"GoodsReceiptAcknowledgeResponseDto":{"type":"object","description":"Response containing acknowledgement confirmation details for a goods receipt","properties":{"goodsReceiptId":{"type":"string","description":"Unique identifier of the acknowledged goods receipt","example":"123e4567-e89b-12d3-a456-426614174000"},"goodsReceiptBundleId":{"type":"string","description":"Unique identifier of the goods receipt bundle that was acknowledged","example":"987fcdeb-51a2-43d1-9c4f-123456789abc"},"acknowledgedAt":{"type":"string","format":"date-time","description":"Timestamp when the acknowledgement was created in ISO-8601 format","example":"2024-01-20T15:30:00Z"},"acknowledgedBy":{"type":"string","description":"User who created the acknowledgement","example":"API-External-System"},"acknowledgementAccessKey":{"type":"string","description":"Unique access key for the acknowledgement, can be used to access proof of delivery documents","example":"ack-key-abc123def456"},"automaticallyCreated":{"type":"boolean","description":"Indicates whether the acknowledgement was created automatically","example":true}}},"GoodsReceiptCreateDto":{"type":"object","description":"Data transfer object for creating a new goods receipt. Contains all necessary information to create a goods receipt from receiving advice data.","properties":{"referenceNumber":{"type":"string","description":"Reference number assigned by the warehouse management system (WMS). Unique identifier used for tracking and cross-referencing with external systems.","example":"REF-2024-001234"},"archiveNumber":{"type":"string","description":"Archive or barcode number used to match documents in ECM (Enterprise Content Management) and Markant Mareko systems. This number enables document traceability across different platforms.","example":"ARC-789012345"},"receivingAdvice":{"$ref":"#/components/schemas/ReceivingAdviceCreateDto","description":"Complete receiving advice information containing delivery details, partner information, line items, and all related delivery data according to EANCOM DESADV standards."},"protocol":{"$ref":"#/components/schemas/GoodsReceiptProtocolDto","description":"Goods receipt protocol containing inspection results and compliance checks performed during the receiving process."},"loadCarrierExchange":{"$ref":"#/components/schemas/LoadCarrierExchangeDto","description":"Load carrier exchange information including exchange status, coupon issuance, and detailed load carrier information."},"assortments":{"type":"array","description":"List of assortment classifications to assign to this goods receipt. Assortments categorize goods by type such as fresh, dry, or frozen products.","example":["FRESH","DRY"],"items":{"type":"string","description":"Assortment type classification for goods receipt","enum":["FRESH","MEAT","FRUITS_AND_VEGETABLES","DRY","FROZEN"],"x-enum-descriptions":{"FRUITS_AND_VEGETABLES":"Fruits and vegetables assortment","DRY":"Dry goods assortment","FROZEN":"Frozen goods assortment","FRESH":"Fresh goods assortment","MEAT":"Meat assortment"}}},"state":{"type":"string","description":"Optional initial state of the goods receipt bundle on the WE-Board. If not provided, defaults to ANNOUNCED_DELIVERIES.","enum":["ANNOUNCED_DELIVERIES","DOCUMENT_REVIEW","GATE_ASSIGNMENT","DELIVERIES_CONTROL"],"example":"ANNOUNCED_DELIVERIES"}},"required":["receivingAdvice","referenceNumber"]},"LineItemCreateDto":{"type":"object","description":"Data transfer object for creating a new line item. The ID will be generated by the system.","properties":{"lineItemNumber":{"type":"string","description":"Line item number to uniquely identify this line item. The line item number iterates over the whole message starting with 1.","example":"2"},"hierarchyLevel":{"type":"string","description":"CPS Level - hierarchy level indicator"},"hierarchyLevelParent":{"type":"string","description":"CPS Parent - parent hierarchy level reference"},"gtin":{"type":"string","description":"Global Trade Item Number (GTIN) to uniquely identify this line item. A unique number, up to 14-digits.","example":"1234567890123"},"targetMarket":{"type":"string","description":"Target market identifier"},"articleNumberBuyer":{"type":"string","description":"Buyer specific article number for this item","example":"67890123"},"articleNumberSupplier":{"type":"string","description":"Supplier specific article number for this item","example":"67890123"},"ssccs":{"$ref":"#/components/schemas/SsccsDto","description":"Serial Shipping Container Codes (SSCC) for this line item. The SSCC is used to uniquely identify individual packages."},"despatchedQuantity":{"$ref":"#/components/schemas/QuantityDto","description":"Dispatched quantity of items in this line item."},"orderedQuantity":{"$ref":"#/components/schemas/QuantityDto","description":"Ordered quantity of items for this line item"},"bestBeforeDate":{"type":"string","format":"date-time","description":"Best before date for this line item."},"organicControlNumber":{"type":"string","description":"ECO controlling agency (RFF+XC1). The article is a BIO product. The indication overwrites information of the heading section."},"hazardInformation":{"type":"string","description":"Hazard information containing Agreement concerning the International Carriage of Dangerous Goods by Road (ADR) related information like an UN number of the item"},"pharmacyProductNumber":{"type":"string","description":"Pharmacy Product Number holding the Product Registration Agency Code (PRA-Code)"},"articleDescription":{"type":"string","description":"Article description of this line item"},"quantityVariance":{"$ref":"#/components/schemas/LineItemQuantityVarianceDto","description":"Quantity variances for the dispatched line items coming from the UI"},"weightVariance":{"$ref":"#/components/schemas/LineItemWeightVarianceDto","description":"Weight variance information for the line item in kilograms"},"batchNumber":{"type":"string","description":"Batch number supplementing the identification code of a product used to identify the specific production place and/or time of a product."},"masterData":{"$ref":"#/components/schemas/LineItemMasterDataDto","description":"Optional article master data including the packing hierarchy of this line item. When provided, the packing hierarchy is not automatically enriched. When provided, lineItemMasterDataUnits must contain at least one packing level with all fields set."}}},"ReceivingAdviceCreateDto":{"type":"object","description":"Receiving advice data for creating a goods receipt according to EANCOM DESADV standards. Line items do not require IDs as they will be generated by the system.","properties":{"documentNumber":{"type":"string","description":"Document number assigned by sender. This segment is used to indicate the type and function of a message and to transmit the identifying number (BGM).","example":"DESADV2024001234"},"orderNumber":{"type":"string","description":"Reference Order Number of buyer (ON).","example":"ORD-2024-5678"},"orderNumberSupplier":{"type":"string","description":"Reference Order Number of supplier (VN).","example":"SUP-ORD-9876"},"deliveryNoteNumber":{"type":"string","description":"Delivery Note Number (RFF+DQ).","example":"DN-2024-3456"},"documentDate":{"type":"string","format":"date-time","description":"Date/time when the document/message was issued. This may include authentication (DTM+137)."},"orderDate":{"type":"string","format":"date-time","description":"Date or time on which the goods were ordered (only P&G specific field)"},"despatchedDate":{"type":"string","format":"date-time","description":"Date or time on which the goods are or are expected to be despatched or shipped (DTM+11)."},"deliveryDateRequested":{"type":"string","format":"date-time","description":"Date on which buyer requests goods to be delivered (DTM+2)."},"deliveryDateActual":{"type":"string","format":"date-time","description":"Actual delivery date/time (DTM+35). Date/time on which goods or consignment are delivered at their destination."},"deliveryDateEstimated":{"type":"string","format":"date-time","description":"Date and/or time when the shipper of the goods expects delivery will take place (DTM+17)."},"buyer":{"$ref":"#/components/schemas/PartnerDto","description":"Optional but recommended. Party to whom merchandise and/or service is sold (NAD+BY). Enriched data by Partner Pool, GLN is provided by DESADV. Also being used to get additional LineItem data by the bayard pool, for example missing article description."},"deliveryParty":{"$ref":"#/components/schemas/PartnerDto","description":"Party to which goods should be delivered, if not the same as the buyer (NAD+DP). Enriched data by Partner Pool, GLN is provided by DESADV."},"supplier":{"$ref":"#/components/schemas/PartnerDto","description":"Party which provides service(s) and/or manufactures or otherwise has possession of goods, and consigns or makes them available in trade (NAD+SU). Enriched data by Partner Pool, GLN is provided by DESADV."},"shipFrom":{"$ref":"#/components/schemas/PartnerDto","description":"Identification of the party from where goods will be or have been shipped (NAD+SF). Enriched data by Partner Pool, GLN is provided by DESADV."},"organicControlNumber":{"type":"string","description":"ECO controlling agency (RFF+XC1).","example":"DE-ÖKO-001"},"carrier":{"$ref":"#/components/schemas/PartnerDto","description":"Carrier information for the shipment"},"despatchedPalletCount":{"type":"string","description":"Number of pallets dispatched in the shipment","example":"12"},"lineItems":{"type":"array","description":"List of individual line items included in this receiving advice. Line item IDs are not required and will be generated by the system.","items":{"$ref":"#/components/schemas/LineItemCreateDto"}}},"required":["deliveryNoteNumber","deliveryParty","orderNumber"]},"Address":{"type":"object","properties":{"addressLine1":{"type":"string","example":"Musterstraße 123"},"addressLine2":{"type":"string","example":"Gebäude A, 2. OG"},"stateProvinceCounty":{"type":"string","example":"Brandenburg"},"zipcode":{"type":"string","example":"12345"},"city":{"type":"string","example":"Berlin"},"countryCode":{"type":"string","example":"DE"}}},"DeliveryNoteBodyDto":{"type":"object","description":"Body information for the delivery note containing package structure and totals","properties":{"sscc":{"type":"string","description":"Serial Shipping Container Code for the whole delivery","example":"340353770000001234","pattern":"^[0-9]{18}$"},"packages":{"type":"array","description":"First level packages in the delivery hierarchy","items":{"$ref":"#/components/schemas/DeliveryNotePackageDto"}},"total":{"$ref":"#/components/schemas/DeliveryNoteTotal","description":"Total volume and weight of the entire delivery"}},"required":["packages"]},"DeliveryNoteDto":{"type":"object","description":"Delivery note data containing header and body information for creating goods receipts","properties":{"header":{"$ref":"#/components/schemas/DeliveryNoteHeaderDto","description":"Header information containing partner details, delivery information, and reference numbers"},"body":{"$ref":"#/components/schemas/DeliveryNoteBodyDto","description":"Body information containing package structure and line items"}}},"DeliveryNoteHeaderDto":{"type":"object","description":"Header information for the delivery note containing partner details and delivery metadata","properties":{"supplier":{"$ref":"#/components/schemas/DeliveryNotePartner","description":"Supplier information"},"sender":{"$ref":"#/components/schemas/DeliveryNotePartner","description":"Delivery sender information"},"deliveryParty":{"$ref":"#/components/schemas/DeliveryNotePartner","description":"Delivery party information"},"buyer":{"$ref":"#/components/schemas/DeliveryNotePartner","description":"Buyer information"},"carrier":{"$ref":"#/components/schemas/DeliveryNotePartner","description":"Delivery carrier information"},"deliveryNoteNumber":{"type":"string","description":"Delivery note number","example":"DN-2024-001234"},"orderNumber":{"type":"string","description":"Reference to the order number fulfilled by this delivery note","example":"PO-2024-567890"},"orderDate":{"type":"string","format":"date-time","description":"Order date to the referenced order in ISO-8601 format","example":"2024-01-15T10:30:00Z"},"deliveryDate":{"type":"string","format":"date-time","description":"Date of the expected delivery in ISO-8601 format","example":"2024-01-20T14:00:00Z"},"organicControlNumber":{"type":"string","description":"Organic Control Number","example":"DE-ÖKO-001"},"supplierShipmentNumber":{"type":"string","description":"The shipment number as transmitted by the supplier","example":"SHIP-2024-001"},"carrierShipmentNumber":{"type":"string","description":"The shipment number as transmitted by the carrier","example":"CARR-2024-001"},"fileTransferId":{"type":"string","description":"A file transfer ID which can be used and set by an API client","example":"FT-2024-001"}},"required":["buyer","deliveryDate","deliveryNoteNumber","deliveryParty","supplier"]},"DeliveryNoteLineItemDto":{"type":"object","description":"Line item information containing product details, quantities, and packaging information","properties":{"lineItemNumber":{"type":"integer","format":"int32","description":"Sequential number for the line item within the delivery note","example":1,"minimum":1},"sscc":{"type":"string","description":"Serial Shipping Container Code for this specific line item","example":"340353770000001234","pattern":"^[0-9]{18}$"},"gtin":{"type":"string","description":"Global Trade Item Number (GTIN) to uniquely identify this product","example":"1234567890123","pattern":"^[0-9]{8,14}$"},"quantity":{"type":"number","format":"double","description":"Quantity of items in this line item","example":10.0,"minimum":0},"unit":{"$ref":"#/components/schemas/DeliveryNoteUnitType","description":"Unit of measurement for the quantity in this line item. Supported: PCE and CT","example":"PCE"},"packageType":{"$ref":"#/components/schemas/DeliveryNotePackageType","description":"Type of packaging used for this line item"},"description":{"type":"string","description":"Human-readable description of the product","example":"Swiss chocolate bars"},"supplierItemNumber":{"type":"string","description":"Supplier-specific item number for this product","example":"SUP-67890123"},"buyerItemNumber":{"type":"string","description":"Buyer-specific item number for this product","example":"BUY-96251521"},"bestBeforeDate":{"type":"string","format":"date-time","description":"Best before date of this product in ISO-8601 format","example":"2024-12-31T23:59:59Z"},"batchNumber":{"type":"string","description":"Batch or lot number of this product","example":"BATCH-05.12345"},"pharmacyProductNumber":{"type":"string","description":"Pharmacy product number (PZN) for pharmaceutical products","example":"PZN-1234567"},"hazardInformation":{"type":"string","description":"Hazard information or warnings for dangerous goods","example":"Flammable liquid"},"organicControlNumber":{"type":"string","description":"Organic control number for organic products","example":"DE-ÖKO-001"},"subLineItems":{"type":"array","description":"Sub-line items that are part of this line item, typically used for pre-packed items","example":[],"items":{"$ref":"#/components/schemas/DeliveryNoteLineItemDto"}},"volume":{"$ref":"#/components/schemas/DeliveryNoteVolume","description":"Volume information for this line item"},"weight":{"$ref":"#/components/schemas/DeliveryNoteWeight","description":"Weight information for this line item"}},"required":["gtin","quantity"]},"DeliveryNotePackageDto":{"type":"object","description":"Package information containing hierarchical packaging structure and contained items","properties":{"sscc":{"type":"string","description":"Serial Shipping Container Code for this package level","example":"340353770000001234","pattern":"^[0-9]{18}$"},"gtin":{"type":"string","description":"Global Trade Item Number (GTIN) for the package itself","example":"1234567890123","pattern":"^[0-9]{8,14}$"},"quantity":{"type":"number","format":"double","description":"Quantity of packages at this level","example":5.0,"minimum":0},"packageType":{"$ref":"#/components/schemas/DeliveryNotePackageType","description":"Type of packaging used at this level"},"description":{"type":"string","description":"Human-readable description of the package","example":"Euro pallet with mixed products"},"supplierItemNumber":{"type":"string","description":"Supplier-specific item number for this package","example":"SUP-PKG-001"},"buyerItemNumber":{"type":"string","description":"Buyer-specific item number for this package","example":"BUY-PKG-001"},"packages":{"type":"array","description":"Sub-packages contained within this package (hierarchical structure)","example":[],"items":{"$ref":"#/components/schemas/DeliveryNotePackageDto"}},"lineItems":{"type":"array","description":"Line items directly contained in this package","items":{"$ref":"#/components/schemas/DeliveryNoteLineItemDto"}},"volume":{"$ref":"#/components/schemas/DeliveryNoteVolume","description":"Volume information for this package"},"weight":{"$ref":"#/components/schemas/DeliveryNoteWeight","description":"Weight information for this package"}}},"DeliveryNotePackageType":{"type":"string","description":"Enumeration of supported package types for delivery notes","enum":["PALLET_EURO_1_1","PALLET_EURO_1_2","PALLET_EURO_1_4","PALLET_EURO_CHEP_BLUE","PALLET_EURO_LPR_RED","PALLET_ONE_WAY","MEAT_BOX_E1","MEAT_BOX_E2","MEAT_BOX_E3","OUTER_PACKAGING","CARTON","GS1_SMART_BOX","UNKNOWN"]},"DeliveryNotePartner":{"type":"object","description":"Partner information including identification and address details","properties":{"gln":{"type":"string","description":"Global Location Number (GLN) - unique identifier for the partner","example":"4012345000017","pattern":"^[0-9]{13}$"},"name":{"type":"string","description":"Partner name","example":"ACME Corporation Ltd."},"internalPartnerId":{"type":"string","description":"Internal partner identifier used by the organization","example":"ACME-001"},"address":{"$ref":"#/components/schemas/Address","description":"Physical address of the partner"},"vatNumber":{"type":"string","description":"VAT number of the partner","example":"DE123456789"},"rootGln":{"type":"string","description":"Root GLN for hierarchical partner structures","example":"4012345000000","pattern":"^[0-9]{13}$"}},"required":["gln"]},"DeliveryNoteTotal":{"type":"object","description":"Total volume and weight information for the entire delivery","properties":{"volume":{"$ref":"#/components/schemas/DeliveryNoteVolume","description":"Total volume information for the delivery"},"weight":{"$ref":"#/components/schemas/DeliveryNoteWeight","description":"Total weight information for the delivery"}}},"DeliveryNoteUnitType":{"type":"string","description":"Enumeration of supported unit types for the quantity of lineitems in delivery notes","enum":["PCE","CT"]},"DeliveryNoteVolume":{"type":"object","description":"Volume information with unit of measurement","properties":{"unitOfMeasurement":{"type":"string","description":"Unit of measurement for volume","enum":["m³","l","cm³","dm³"],"example":"m³"},"gross":{"type":"number","format":"double","description":"Gross volume including packaging","example":1.5,"minimum":0}}},"DeliveryNoteWeight":{"type":"object","description":"Weight information with unit of measurement including net and gross weights","properties":{"unitOfMeasurement":{"type":"string","description":"Unit of measurement for weight","enum":["kg","g","t","lb","oz"],"example":"kg"},"net":{"type":"number","format":"double","description":"Net weight excluding packaging","example":25.5,"minimum":0},"gross":{"type":"number","format":"double","description":"Gross weight including packaging","example":27.8,"minimum":0}}},"DeliveryNoteCreateResponse":{"type":"object","description":"Response containing the ID of the created goods receipt from delivery note processing","properties":{"id":{"type":"string","description":"The unique identifier of the created goods receipt","example":"12345678-1234-1234-1234-123456789012"}}},"PageMetadata":{"type":"object","properties":{"size":{"type":"integer","format":"int64"},"number":{"type":"integer","format":"int64"},"totalElements":{"type":"integer","format":"int64"},"totalPages":{"type":"integer","format":"int64"}}},"PagedModelTransportConsignmentResponseDto":{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/TransportConsignmentResponseDto"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"PagedModelGoodsReceiptResponseV2Dto":{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/GoodsReceiptResponseV2Dto"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}},"PagedModelGoodsReceiptResponseDto":{"type":"object","properties":{"content":{"type":"array","items":{"$ref":"#/components/schemas/GoodsReceiptResponseDto"}},"page":{"$ref":"#/components/schemas/PageMetadata"}}}},"securitySchemes":{"event-grid-code":{"type":"apiKey","description":"API key authentication for Event Grid endpoints","name":"code","in":"query"},"oauth":{"type":"oauth2","description":"OAuth 2.0 authentication using client credentials flow.\n\n**How to obtain a token:**\n1. Request M2M client credentials (clientId and clientSecret) from dva.support@de.markant.com\n2. Use the client credentials flow to get an access token from the token endpoint\n3. Include the access token as a Bearer token in the Authorization header\n\n**Token endpoint:** https://identity.markant.com/oauth/token\n\n**Example curl command:**\n```\ncurl --request POST \\\n\t--location 'https://identity.markant.com/oauth/token' \\\n\t--header 'Content-Type: application/x-www-form-urlencoded' \\\n\t--data-urlencode 'grant_type=client_credentials' \\\n\t--data-urlencode 'client_id=<clientId>' \\\n\t--data-urlencode 'client_secret=<clientSecret>' \\\n\t--data-urlencode 'audience=https://api.m.markant.com'\n```\n\n**Token validity:** 1 hour\n","flows":{"implicit":{"authorizationUrl":"https://identity.markant.com/authorize?audience=https://api.m.markant.com","tokenUrl":"https://identity.markant.com/oauth/token","scopes":{}}}}}}}