{"openapi":"3.0.3","info":{"title":"DCSA Event Components","description":"Common components for DCSA Events. This domain is central for all Event Hubs and is used by\n- Event Hub (General event hub for <a href=\"#/components/schemas/transportEvent\">TransportEvent</a>, <a href=\"#/components/schemas/equipmentEvent\">EquipmentEvent</a>, <a href=\"#/components/schemas/shipmentEvent\">ShipmentEvents</a> and <a href=\"#/components/schemas/operationsEvent\">OperationsEvent</a>)\n- T&T v2.1 and later (event hub for <a href=\"#/components/schemas/transportEvent\">TransportEvent</a>, <a href=\"#/components/schemas/equipmentEvent\">EquipmentEvent</a> and <a href=\"#/components/schemas/shipmentEvent\">ShipmentEvents</a>)\n- Documentation Hub used by eBL (event hub for <a href=\"#/components/schemas/shipmentEvent\">ShipmentEvents</a>)\n- OVS Hub used by OVS (event hub for <a href=\"#/components/schemas/transportEvent\">TransportEvent</a> and <a href=\"#/components/schemas/operationsEvent\">OperationsEvent</a>)\n","version":"1.0.4"},"components":{"parameters":{"apiVersion":{"in":"header","name":"API-Version","required":true,"schema":{"type":"string","example":"1.0.0"},"description":"SemVer used to indicate the version of the contract (API version) returned.\n"},"notificationSignature":{"in":"header","name":"Notification-Signature","required":true,"description":"the Notification-Signature is used to sign the notification. The header has the following format: \n\n<i>Notification-Signature&#58; &lt;signature-type&gt;=&lt;signature&gt;</i>\n\nThe <i>&lt;signature-type&gt;</i> part is a keyword that determines which algorithm was used to compute the signature.\n\nThe signature <b>MUST</b> cover the entire request body of the request including whitespace and newlines. The content <b>MUST</b> decoded into bytes using the UTF-8 encoding before computing the signature. None of the HTTP headers nor the request URL is covered by the signature.\n\nSupported signature typies are&#58;\n- sha256\n\nExample&#58; sha256=ae688919f5e31f4c210ca6af362ce4d9ed87acfb51c1721a8507ee395de5e2de\n","schema":{"type":"string","pattern":"\\s*([a-zA-Z0-9-_+]+=[0-9a-fA-F]+)\\s*","example":"sha256=ae688919f5e31f4c210ca6af362ce4d9ed87acfb51c1721a8507ee395de5e2de"}},"signatureHeader":{"in":"header","name":"Signature","required":true,"description":"The signature certifying the request originates from the carrier.\n","deprecated":true,"schema":{"properties":{"keyId":{"type":"string","format":"uuid","example":"4fb682bc-3cd1-43a9-a23a-618a61bd87ca"},"created":{"type":"integer","example":1591960384},"headers":{"type":"string","example":"(request-target) (created) date host"},"signature":{"type":"string","example":"aGkgZnJvbSBkZW5tYXJr"}}}},"subscriptionIDHeader":{"in":"header","name":"Subscription-ID","required":true,"description":"The ID of the subscription triggering the event being sent.","schema":{"type":"string","format":"uuid","example":"b80d923d-e8ac-4c34-9506-55d3de347034"}},"eventID":{"in":"path","name":"eventID","schema":{"$ref":"#/components/schemas/eventID"},"required":true,"deprecated":true,"description":"The ID of the event to receive","example":"123e4567-e89b-12d3-a456-426614174000"},"subscriptionID":{"in":"path","name":"subscriptionID","schema":{"$ref":"#/components/schemas/subscriptionID"},"required":true,"description":"The universal unique ID of the subscription.","example":"123e4567-e89b-12d3-a456-426614174000"},"bookingReference":{"in":"query","name":"bookingReference","deprecated":true,"description":"Deprecated - use carrierBookingReference instead.","required":false,"schema":{"type":"string"}},"carrierBookingReference":{"in":"query","name":"carrierBookingReference","description":"A set of unique characters provided by carrier to identify a booking.\n\nSpecifying this filter will only return events related to this particular carrierBookingReference.\n","schema":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/carrierBookingReference"}},"carrierVoyageNumber":{"in":"query","name":"carrierVoyageNumber","description":"Filter on the vessel operator-specific identifier of the Voyage.\n\nSpecifying this filter will only return events related to this particular carrierVoyageNumber.\n\n<b>Deprecated:</b> Use exportVoyageNumber instead\n","required":false,"deprecated":true,"schema":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/carrierVoyageNumber"}},"exportVoyageNumber":{"in":"query","name":"exportVoyageNumber","description":"Filter on the vessel operator-specific identifier of the export Voyage.\n\nSpecifying this filter will only return events related to this particular exportVoyageNumber.\n","required":false,"schema":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/exportVoyageNumber"}},"carrierServiceCode":{"in":"query","name":"carrierServiceCode","description":"Filter on the carrier specific identifier of the service.\n\nSpecifying this filter will only return events related to this particular carrierServiceCode.\n","required":false,"schema":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/carrierServiceCode"}},"documentTypeCode":{"in":"query","name":"documentTypeCode","explode":false,"style":"form","description":"The documentTypeCode to filter by. Possible values are\n- CBR (Carrier Booking Request Reference)\n- BKG (Booking)\n- SHI (Shipping Instruction)\n- SRM (Shipment Release Message)\n- TRD (Transport Document)\n- ARN (Arrival Notice)\n- VGM (Verified Gross Mass)\n- CAS (Cargo Survey)\n- CUS (Customs Inspection)\n- DGD (Dangerous Goods Declaration)\n- OOG (Out of Gauge)\n\nIt is possible to select multiple values by comma (,) separating them. For multiple values the OR-operator is used. For example <i>documentTypeCode=SHI,TRD</i> Matches <b>both</b> ShippingInstruction (SHI) and TransportDocument (TRD) shipment events.\n\nDefault is all documentTypeCodes.\n\nThis filter is only relevant when filtering on ShipmentEvents\n","example":"SHI,TRD","schema":{"default":"CBR,BKG,SHI,SRM,TRD,ARN,VGM,CAS,CUS,DGD,OOG","type":"array","items":{"$ref":"#/components/schemas/documentTypeCode"}}},"equipmentEventTypeCode":{"in":"query","name":"equipmentEventTypeCode","explode":false,"style":"form","description":"Unique identifier for equipmentEventTypeCode.\n- LOAD (Loaded)\n- DISC (Discharged)\n- GTIN (Gated in)\n- GTOT (Gated out)\n- STUF (Stuffed)\n- STRP (Stripped)\n- PICK (Pick-up)\n- DROP (Drop-off)\n- INSP (Inspected)\n- RSEA (Resealed)\n- RMVD (Removed)\n\nIt is possible to select multiple values by comma (,) separating them. For multiple values the OR-operator is used. For example <i>equipmentEventTypeCode=GTIN,GTOT</i> matches <b>both</b> Gated in (GTIN) and Gated out (GTOT) equipment events.\n\nDefault is all equipmentEventTypeCodes.\n\nThis filter is only relevant when filtering on EquipmentEvents\n","example":"GTIN,GTOT","schema":{"default":"LOAD,DISC,GTIN,GTOT,STUF,STRP,PICK,DROP,INSP,RSEA,RMVD","type":"array","items":{"$ref":"#/components/schemas/equipmentEventTypeCode"}}},"equipmentReference":{"in":"query","name":"equipmentReference","description":"Will filter by the unique identifier for the equipment, which should follow the BIC ISO Container Identification Number where possible.\n\nSpecifying this filter will only return events related to this particular equipmentReference\n","required":false,"schema":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/equipmentReference"}},"eventClassifierCode":{"in":"query","name":"eventClassifierCode","description":"Unique identifier for eventClassifierCode.\n","schema":{"items":{"$ref":"#/components/schemas/eventClassifierCode"}}},"eventCreatedDateTime":{"in":"query","name":"eventCreatedDateTime","description":"Limit the result based on the creating date of the event. It is possible to use operators on this query parameter. This is done by adding a colon followed by an operator at the end of the queryParameterName (before the =)\n\n<i>eventCreatedDateTime<b>&#58;gte</b>=2021-04-01T14&#58;12&#58;56+01&#58;00</i>\n\nwould result in all events created &#8805; 2021-04-01T14&#58;12&#58;56+01&#58;00\n\nThe following operators are supported\n- &#58;gte (&#8805; Greater than or equal)\n- &#58;gt (&#62; Greater than)\n- &#58;lte (&#8804; Less than or equal)\n- &#58;lt (&#60; Less than)\n- &#58;eq (&#61; Equal to)\n\nIf no operator is provided, a <b>strictly equal</b> is used (this is equivalent to <b>&#58;eq</b> operator).\n","required":false,"example":"2021-04-01T14:12:56+01:00","schema":{"$ref":"#/components/schemas/eventCreatedDateTime"}},"operationsEventTypeCode":{"in":"query","name":"operationsEventTypeCode","description":"The code to identify the type of event that is related to the operation\n- STRT (Started)\n- CMPL (Completed)\n- ARRI (Arrived)\n- DEPA (Departed)\n\nIt is possible to select multiple values by comma (,) separating them. For multiple values the OR-operator is used. For example <i>operationsEventTypeCode=ARRI,CMPL</i> matches <b>both</b> Arrived (ARRI) and Completed (CMPL) operations events.\n\nDefault is all operationsEventTypeCodes.\n","example":"ARRI,CMPL","schema":{"default":"STRT,CMPL,ARRI,DEPA","type":"array","items":{"$ref":"#/components/schemas/operationsEventTypeCode"}}},"scheduleID":{"in":"query","name":"scheduleID","description":"ID uniquely identifying a schedule, to filter events by.\n\nThis filter was added by mistake and is thus deprecated.\n","required":false,"schema":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/scheduleID"},"deprecated":true},"shipmentEventTypeCode":{"in":"query","name":"shipmentEventTypeCode","explode":false,"style":"form","description":"The status of the document in the process to filter by. Possible values are\n- RECE (Received)\n- DRFT (Drafted)\n- PENA (Pending Approval)\n- PENU (Pending Update)\n- REJE (Rejected)\n- APPR (Approved)\n- ISSU (Issued)\n- SURR (Surrendered)\n- SUBM (Submitted)\n- VOID (Void)\n- CONF (Confirmed)\n- REQS (Requested)\n- CMPL (Completed)\n- HOLD (On Hold)\n- RELS (Released)\n\nIt is possible to select multiple values by comma (,) separating them. For multiple values the OR-operator is used. For example <i>shipmentEventTypeCode=RECE,DRFT</i>  Matches <b>both</b> Received (RECE) and Drafted (DRFT) shipment events.\n\nDefault is all shipmentEventTypeCodes.\n\nThis filter is only relevant when filtering on ShipmentEvents\n","example":"RECE,DRFT","schema":{"default":"RECE,DRFT,PENA,PENU,REJE,APPR,ISSU,SURR,SUBM,VOID,CONF,REQS,CMPL,HOLD,RELS","type":"array","items":{"$ref":"#/components/schemas/shipmentEventTypeCode"}}},"shippingInstructionID":{"in":"query","name":"shippingInstructionID","description":"The Shipping Instruction ID identifier is an identifier that links to a shipping instruction\n","required":false,"schema":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/shippingInstructionID"}},"transportCallID":{"in":"query","name":"transportCallID","description":"ID uniquely identifying a transport call, to filter events by.\n\nSpecifying this filter will only return events related to this particular transportCallID\n","required":false,"schema":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/transportCallID"}},"transportDocumentID":{"in":"query","name":"transportDocumentID","description":"A unique id to identify a transport document.\n\nDeprecated - use transportDocumentReference instead transportDocumentReference\n","deprecated":true,"schema":{"type":"string","format":"uuid"}},"transportDocumentReference":{"in":"query","name":"transportDocumentReference","description":"A unique number reference allocated by the shipping line to the transport document and the main number used for the tracking of the status of the shipment.\n\nSpecifying this filter will only return events related to this particular transportDocumentReference\n","required":false,"schema":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/transportDocumentReference"}},"transportEventTypeCode":{"in":"query","name":"transportEventTypeCode","explode":false,"style":"form","description":"Identifier for type of Transport event to filter by\n- ARRI (Arrived)\n- DEPA (Departed)\n\nIt is possible to select multiple values by comma (,) separating them. For multiple values the OR-operator is used. For example <i>transportEventTypeCode=ARRI,DEPA</i> matches <b>both</b> Arrived (ARRI) and Departed (DEPA) transport events.\n\nDefault is all transportEventTypeCodes.\n\nThis filter is only relevant when filtering on TransportEvents\n","example":"ARRI,DEPA","schema":{"default":"ARRI,DEPA","type":"array","items":{"$ref":"#/components/schemas/transportEventTypeCode"}}},"UNLocationCode":{"in":"query","name":"UNLocationCode","description":"The UN Location code specifying where the place is located.\n\nSpecifying this filter will only return events related to this particular UN Location code.\n","required":false,"schema":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/UNLocationCode"}},"vesselIMONumber":{"in":"query","name":"vesselIMONumber","description":"The identifier of vessel for which schedule details are published. Depending on schedule type, this may not be available yet.\n\nSpecifying this filter will only return events related to this particular vesselIMONumber.\n","required":false,"schema":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/vesselIMONumber"}}},"schemas":{"baseEventBody":{"type":"object","description":"The Event entity is described as a generalization of all the specific event categories. An event always takes place in relation to a shipment and can additionally be linked to a transport or an equipment\n","allOf":[{"type":"object","properties":{"eventType":{"$ref":"#/components/schemas/eventType"}}},{"type":"object","properties":{"eventClassifierCode":{"$ref":"#/components/schemas/eventClassifierCode"}}},{"type":"object","properties":{"eventDateTime":{"$ref":"#/components/schemas/eventDateTime"}}}],"required":["eventType","eventClassifierCode","eventDateTime"]},"baseEvent":{"type":"object","allOf":[{"type":"object","properties":{"eventID":{"$ref":"#/components/schemas/eventID"}}},{"type":"object","properties":{"eventCreatedDateTime":{"$ref":"#/components/schemas/eventCreatedDateTime"}}},{"$ref":"#/components/schemas/baseEventBody"}],"required":["eventCreatedDateTime"]},"baseShipmentEvent":{"type":"object","description":"The shipment event entity is a specialization of the event entity to support specification of data that only applies to a shipment event.\n","allOf":[{"type":"object","properties":{"eventType":{"example":"SHIPMENT","enum":["SHIPMENT"]}}},{"type":"object","properties":{"eventDateTime":{"description":"Value for eventDateTime must be the same value as eventCreatedDateTime\n"}}},{"type":"object","properties":{"eventClassifierCode":{"description":"Code for the event classifier can be\n- ACT (Actual)\n- PLN (Planned)\n- EST (Estimated)\n","enum":["ACT","PLN","EST"],"example":"ACT"}}},{"type":"object","properties":{"shipmentEventTypeCode":{"$ref":"#/components/schemas/shipmentEventTypeCode"}}},{"type":"object","properties":{"documentID":{"$ref":"#/components/schemas/documentID"}}},{"type":"object","properties":{"documentTypeCode":{"$ref":"#/components/schemas/documentTypeCode"}}},{"type":"object","properties":{"shipmentInformationTypeCode":{"$ref":"#/components/schemas/shipmentInformationType"}}},{"type":"object","properties":{"reason":{"$ref":"#/components/schemas/reason"}}},{"type":"object","properties":{"eventTypeCode":{"$ref":"#/components/schemas/eventTypeCode"}}},{"type":"object","properties":{"eventTypeCode":{"description":"Unique identifier for Event Type Code. For shipment events this can be\n- RECE (Received)\n- CONF (Confirmed)\n- ISSU (Issued)\n- APPR (Approved)\n- SUBM (Submitted)\n- SURR (Surrendered)\n- REJE (Rejected)\n- PENA (Pending approval)\n\nDeprecated - use shipmentEventTypeCode instead\n","deprecated":true,"example":"RECE","enum":["RECE","CONF","ISSU","APPR","SUBM","SURR","REJE","PENA"]}}},{"type":"object","properties":{"shipmentID":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/shipmentID"}}},{"type":"object","properties":{"shipmentID":{"description":"ID uniquely identifying a shipment.\n\nDeprecated - this is replaced by documentID which can contain different values depending on the value of the documentTypeCode field\n","deprecated":true}}},{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DOCUMENTATION_DOMAIN/1.0.4#/components/schemas/references"}],"required":["documentID","shipmentEventTypeCode","documentTypeCode"]},"shipmentEvent":{"type":"object","allOf":[{"$ref":"#/components/schemas/baseEvent"},{"$ref":"#/components/schemas/baseShipmentEvent"}]},"baseTransportEvent":{"type":"object","description":"The transport event entity is a specialization of the event entity to support specification of data that only applies to a transport event.\n","allOf":[{"type":"object","properties":{"eventType":{"example":"TRANSPORT","enum":["TRANSPORT"]}}},{"type":"object","properties":{"eventClassifierCode":{"description":"Code for the event classifier can be\n- ACT (Actual)\n- PLN (Planned)\n- EST (Estimated)\n","enum":["ACT","PLN","EST"],"example":"ACT"}}},{"type":"object","properties":{"transportEventTypeCode":{"$ref":"#/components/schemas/transportEventTypeCode"}}},{"type":"object","properties":{"delayReasonCode":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/delayReasonCode"}}},{"type":"object","properties":{"vesselScheduleChangeRemark":{"$ref":"#/components/schemas/vesselScheduleChangeRemark"}}},{"type":"object","properties":{"changeRemark":{"$ref":"#/components/schemas/changeRemark"}}},{"type":"object","properties":{"transportCallID":{"allOf":[{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/transportCallID"},{"deprecated":true},{"description":"The unique identifier for a transport call<br><br>Deprecated - not needed as the TransportCall object is included"}]}}},{"type":"object","properties":{"transportCall":{"$ref":"#/components/schemas/transportCall"}}},{"type":"object","properties":{"eventTypeCode":{"$ref":"#/components/schemas/eventTypeCode"}}},{"type":"object","properties":{"eventTypeCode":{"description":"Unique identifier for Event Type Code, for transport events this is either\n- ARRI (Arrival)\n- DEPA (Departure)\n\nDeprecated - use transportEventTypeCode instead\n","deprecated":true,"enum":["ARRI","DEPA"]}}}],"required":["transportCall","transportEventTypeCode"]},"operationsTransportEvent":{"type":"object","allOf":[{"$ref":"#/components/schemas/baseEvent"},{"$ref":"#/components/schemas/baseTransportEvent"}]},"transportEvent":{"type":"object","allOf":[{"$ref":"#/components/schemas/operationsTransportEvent"},{"type":"object","properties":{"documentReferences":{"$ref":"#/components/schemas/documentReferences"}}},{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DOCUMENTATION_DOMAIN/1.0.4#/components/schemas/references"}]},"baseEquipmentEvent":{"type":"object","description":"The equipment event entity is a specialization of the event entity to support specification of data that only applies to an equipment event.\n","allOf":[{"type":"object","properties":{"eventType":{"example":"EQUIPMENT","enum":["EQUIPMENT"]}}},{"type":"object","properties":{"eventClassifierCode":{"description":"Code for the event classifier can be\n- PLN (Planned)\n- ACT (Actual)\n- EST (Estimated)\n","enum":["PLN","ACT","EST"],"example":"EST"}}},{"type":"object","properties":{"equipmentEventTypeCode":{"$ref":"#/components/schemas/equipmentEventTypeCode"}}},{"type":"object","properties":{"equipmentReference":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/equipmentReference"}}},{"type":"object","properties":{"ISOEquipmentCode":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/ISOEquipmentCode"}}},{"type":"object","properties":{"emptyIndicatorCode":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/emptyIndicatorCode"}}},{"type":"object","properties":{"eventLocation":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/LOCATION_DOMAIN/1.0.3#/components/schemas/location"}}},{"type":"object","properties":{"transportCallID":{"allOf":[{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/transportCallID"},{"deprecated":true},{"description":"The unique identifier for a transport call<br><br>Deprecated - not needed as the TransportCall object is included"}]}}},{"type":"object","properties":{"transportCall":{"$ref":"#/components/schemas/transportCall"}}},{"type":"object","properties":{"documentReferences":{"$ref":"#/components/schemas/documentReferences"}}},{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DOCUMENTATION_DOMAIN/1.0.4#/components/schemas/references"},{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DOCUMENTATION_DOMAIN/1.0.4#/components/schemas/seals"},{"type":"object","properties":{"eventTypeCode":{"$ref":"#/components/schemas/eventTypeCode"}}},{"type":"object","properties":{"eventTypeCode":{"description":"Unique identifier for Event Type Code, for transport events this is either\n- LOAD (Loaded)\n- DISC (Discharged)\n- GTIN (Gated in)\n- GTOT (Gated out)\n- STUF (Stuffed)\n- STRP (Stripped)\n\nDeprecated - use equipmentEventTypeCode instead\n","deprecated":true,"enum":["LOAD","DISC","GTIN","GTOT","STUF","STRP"]}}}],"required":["emptyIndicatorCode","equipmentEventTypeCode"]},"equipmentEvent":{"type":"object","allOf":[{"$ref":"#/components/schemas/baseEvent"},{"$ref":"#/components/schemas/baseEquipmentEvent"}]},"baseOperationsEvent":{"type":"object","description":"The operations event entity is a specialization of the event entity to support specification of data that only applies to an operations event.\n","allOf":[{"type":"object","properties":{"eventType":{"example":"OPERATIONS","enum":["OPERATIONS"]}}},{"type":"object","properties":{"eventClassifierCode":{"description":"Code for the event classifier can be\n- ACT (Actual)\n- PLN (Planned)\n- EST (Estimated)\n- REQ (Requested)\n","enum":["ACT","PLN","EST","REQ"],"example":"ACT"}}},{"type":"object","properties":{"operationsEventTypeCode":{"$ref":"#/components/schemas/operationsEventTypeCode"}}},{"type":"object","properties":{"publisher":{"allOf":[{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DOCUMENTATION_DOMAIN/1.0.4#/components/schemas/partyNoID"}]}}},{"type":"object","properties":{"publisherRole":{"$ref":"#/components/schemas/publisherRole"}}},{"type":"object","properties":{"eventLocation":{"allOf":[{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/LOCATION_DOMAIN/1.0.3#/components/schemas/location"},{"description":"The location where the event takes place."}]}}},{"type":"object","properties":{"portCallServiceTypeCode":{"$ref":"#/components/schemas/portCallServiceTypeCode"}}},{"type":"object","properties":{"facilityTypeCode":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/facilityTypeCodeOPR"}}},{"type":"object","properties":{"delayReasonCode":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/delayReasonCode"}}},{"type":"object","properties":{"remark":{"$ref":"#/components/schemas/remark"}}},{"type":"object","properties":{"transportCall":{"$ref":"#/components/schemas/transportCall"}}},{"type":"object","properties":{"vesselPosition":{"allOf":[{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/LOCATION_DOMAIN/1.0.3#/components/schemas/geoLocation"},{"description":"The position of the vessel at the time when the message was sent"}]}}}],"required":["portCallServiceTypeCode","operationsEventTypeCode"]},"operationsEvent":{"type":"object","allOf":[{"$ref":"#/components/schemas/baseEvent"},{"$ref":"#/components/schemas/baseOperationsEvent"}]},"shipmentSubscriptionBody":{"type":"object","allOf":[{"type":"object","properties":{"shipmentEventTypeCode":{"$ref":"#/components/schemas/shipmentEventTypeCodes"}}},{"type":"object","properties":{"documentTypeCode":{"$ref":"#/components/schemas/documentTypeCodes"}}},{"type":"object","properties":{"carrierBookingReference":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/carrierBookingReference"}}},{"type":"object","properties":{"bookingReference":{"type":"string","maxLength":35,"example":"ABC709951","description":"The identifier for a shipment, which is issued by and unique within each of the carriers.\n\nDeprecated - use carrierBookingReference instead\n","deprecated":true}}},{"type":"object","properties":{"transportDocumentID":{"type":"string","format":"uuid","deprecated":true,"description":"Uniquely identify a transport document.\n\nDeprecated - use transportDocumentReference instead\n"}}},{"type":"object","properties":{"transportDocumentReference":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/transportDocumentReference"}}},{"type":"object","properties":{"transportDocumentTypeCode":{"allOf":[{"$ref":"#/components/schemas/transportDocumentTypeCodes"},{"deprecated":true},{"description":"List of transportDocumentType to filter by. If multiple values are selected - the OR-operator will be used.\n\nDefault is none as it will not filter on transportDocumentType if not specified.\n\n<b>Deprecated:</b> Not to be used any more\n"}]}}}]},"equipmentSubscriptionBody":{"type":"object","allOf":[{"type":"object","properties":{"equipmentEventTypeCode":{"$ref":"#/components/schemas/equipmentEventTypeCodes"}}},{"type":"object","properties":{"equipmentReference":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/equipmentReference"}}},{"type":"object","properties":{"UNLocationCode":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/UNLocationCode"}}}]},"transportSubscriptionBody":{"type":"object","allOf":[{"type":"object","properties":{"transportEventTypeCode":{"$ref":"#/components/schemas/transportEventTypeCodes"}}},{"type":"object","properties":{"scheduleID":{"allOf":[{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/scheduleID"},{"deprecated":true},{"description":"ID uniquely identifying a schedul.<br>Deprecated as this was added by mistake"}]}}},{"type":"object","properties":{"transportCallID":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/transportCallID"}}},{"type":"object","properties":{"vesselIMONumber":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/vesselIMONumber"}}},{"type":"object","properties":{"carrierVoyageNumber":{"allOf":[{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/carrierVoyageNumber"},{"deprecated":true}]}}},{"type":"object","properties":{"exportVoyageNumber":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/exportVoyageNumber"}}},{"type":"object","properties":{"carrierServiceCode":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/carrierServiceCode"}}},{"type":"object","properties":{"UNLocationCode":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/UNLocationCode"}}}]},"operationsSubscriptionBody":{"type":"object","allOf":[{"type":"object","properties":{"operationsEventTypeCode":{"$ref":"#/components/schemas/operationsEventTypeCodes"}}},{"type":"object","properties":{"UNLocationCode":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/UNLocationCode"}}}]},"documentReferences":{"type":"array","description":"An optional list of key-value (documentReferenceType-documentReferenceValue) pairs representing links to objects relevant to the event. The <b>documentReferenceType</b>-field is used to describe where the <b>documentReferenceValue</b>-field is pointing to.","example":[{"documentReferenceType":"BKG","documentReferenceValue":"ABC123123123"},{"documentReferenceType":"TRD","documentReferenceValue":"85943567-eedb-98d3-f4ed-aed697474ed4"}],"items":{"type":"object","properties":{"documentReferenceType":{"type":"string","description":"Describes where the documentReferenceValue is pointing to","example":"BKG","enum":["BKG (Booking)","TRD (Transport Document)"]},"documentReferenceValue":{"type":"string","description":"The value of the identifier the documentReferenceType is describing","example":"123e4567-e89b-12d3-a456-426614174000"}}}},"transportCall":{"type":"object","allOf":[{"type":"object","properties":{"transportCallID":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/transportCallID"}}},{"type":"object","properties":{"carrierServiceCode":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/carrierServiceCode"}}},{"type":"object","properties":{"carrierVoyageNumber":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/carrierVoyageNumber"}}},{"type":"object","properties":{"carrierVoyageNumber":{"description":"The vessel operator-specific identifier of the Voyage.\n\nIn case there are multiple voyages the export voyage is chosen.\n","deprecated":true}}},{"type":"object","properties":{"exportVoyageNumber":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/exportVoyageNumber"}}},{"type":"object","properties":{"importVoyageNumber":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/importVoyageNumber"}}},{"type":"object","properties":{"transportCallSequenceNumber":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/transportCallSequenceNumber"}}},{"type":"object","properties":{"UNLocationCode":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/UNLocationCode"}}},{"type":"object","properties":{"facilityCode":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/facilityCode"}}},{"type":"object","properties":{"facilityCodeListProvider":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/facilityCodeListProvider"}}},{"type":"object","properties":{"facilityTypeCode":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/facilityTypeCodeTRN"}}},{"type":"object","properties":{"otherFacility":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/otherFacility"}}},{"type":"object","properties":{"modeOfTransport":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/modeOfTransport"}}},{"type":"object","properties":{"location":{"allOf":[{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/LOCATION_DOMAIN/1.0.3#/components/schemas/location"},{"type":"object","description":"Location of the facility. Can often be omitted when it is just repeating the contents of the UNLocationCode field.","example":null}]}}},{"type":"object","properties":{"vessel":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DOCUMENTATION_DOMAIN/1.0.4#/components/schemas/vessel"}}}],"required":["transportCallID","modeOfTransport"]},"callbackUrl":{"type":"string","format":"uri","description":"The endPoint where a Carrier whould send back events to the Shipper. The callback can contain query parameters uniquely identifying the originator of the events.\n","example":"https://myserver.com/send/callback/here?shipperRef=<shipper defined unique id>"},"changeRemark":{"description":"Free text information provided by the vessel operator regarding the reasons for the change in schedule and/or plans to mitigate schedule slippage.","type":"string","example":"Bad weather","maxLength":250},"documentID":{"type":"string","description":"The id of the object defined by the documentTypeCode.\n","example":"the-id-of-the-documentTypeCode"},"documentTypeCode":{"type":"string","maxLength":3,"description":"The code to identify the type of information documentID points to. Can be one of the following values\n- CBR (Carrier Booking Request Reference)\n- BKG (Booking)\n- SHI (Shipping Instruction)\n- SRM (Shipment Release Message)\n- TRD (Transport Document)\n- ARN (Arrival Notice)\n- VGM (Verified Gross Mass)\n- CAS (Cargo Survey)\n- CUS (Customs Inspection)\n- DGD (Dangerous Goods Declaration)\n- OOG (Out of Gauge)\n\nMore details can be found on <a href=\"https://github.com/dcsaorg/DCSA-Information-Model/blob/master/datamodel/referencedata.d/documenttypecodes.csv\">GitHub</a>\n","example":"SHI","enum":["CBR","BKG","SHI","SRM","TRD","ARN","VGM","CAS","CUS","DGD","OOG"]},"documentTypeCodes":{"type":"array","description":"List of documentTypeCode to filter by. If multiple values are selected - the OR-operator will be used.\n\nDefault is none as it will not filter on documentTypeCode if not specified.\n","example":["SHI","TRD"],"items":{"$ref":"#/components/schemas/documentTypeCode"}},"equipmentEventTypeCode":{"type":"string","description":"Unique identifier for equipmentEventTypeCode.\n- LOAD (Loaded)\n- DISC (Discharged)\n- GTIN (Gated in)\n- GTOT (Gated out)\n- STUF (Stuffed)\n- STRP (Stripped)\n- PICK (Pick-up)\n- DROP (Drop-off)\n- INSP (Inspected)\n- RSEA (Resealed)\n- RMVD (Removed)\n\nMore details can be found on <a href=\"https://github.com/dcsaorg/DCSA-Information-Model/blob/master/datamodel/referencedata.d/equipmenteventtypecodes.csv\">GitHub</a>\n","enum":["LOAD","DISC","GTIN","GTOT","STUF","STRP","PICK","DROP","INSP","RSEA","RMVD"],"example":"LOAD"},"equipmentEventTypeCodes":{"type":"array","description":"List of equipmentEventTypeCode to filter by. If multiple values are selected - the OR-operator will be used.\n\nDefault is none as it will not filter on equipmentEventTypeCode if not specified.\n","example":["GTIN","GTOT"],"items":{"$ref":"#/components/schemas/equipmentEventTypeCode"}},"eventClassifierCode":{"type":"string","description":"Code for the event classifier. Values can vary depending on eventType\n"},"eventID":{"type":"string","format":"uuid","description":"The unique identifier for the event (the message - not the source).\n\n<b>NB</b>&#58; This field should be considered Metadata\n","example":"3cecb101-7a1a-43a4-9d62-e88a131651e2"},"eventCreatedDateTime":{"type":"string","format":"date-time","description":"The timestamp of when the event was created.\n\n<b>NB</b>&#58; This field should be considered Metadata\n","example":"2021-01-09T14:12:56+01:00"},"eventDateTime":{"type":"string","format":"date-time","example":"2019-11-12T07:41:00+08:30","description":"The local date and time, where the event took place or when the event will take place, in ISO 8601 format."},"eventType":{"type":"string","description":"The Event Type of the object - to be used as a discriminator.\n\n<b>NB</b>&#58; This field should be considered Metadata\n"},"eventTypeCode":{"type":"string","example":"ARRI","maxLength":4,"description":"Deprecated - Unique identifier for Event Type Code. This has been replaced by Specialized eventTypeCodes: shipmentEventTypeCode, transportEventTypeCode, equipmentEventTypeCode and opertaionsEventType\n","deprecated":true},"operationsEventTypeCode":{"type":"string","description":"The code to identify the type of event that is related to the operation\n- STRT (Started)\n- CMPL (Completed)\n- ARRI (Arrived)\n- DEPA (Departed)\n\nMore details can be found on <a href=\"https://github.com/dcsaorg/DCSA-Information-Model/blob/master/datamodel/referencedata.d/operationseventtypecodes.csv\">GitHub</a>\n","enum":["STRT","CMPL","ARRI","DEPA"],"example":"STRT"},"operationsEventTypeCodes":{"type":"array","description":"List of operationsEventTypeCode to filter by. If multiple values are selected - the OR-operator will be used.\n\nDefault is none as it will not filter on operationsEventTypeCode if not specified.\n","example":["ARRI","CMPL"],"items":{"$ref":"#/components/schemas/operationsEventTypeCode"}},"portCallServiceTypeCode":{"type":"string","description":"The type of the service provided in the port call\n- PILO (Pilotage)\n- MOOR (Mooring)\n- CRGO (Cargo operations)\n- TOWG (Towage)\n- BUNK (Bunkering)\n- WSDP (Waste disposal)\n\nMore details can be found on <a href=\"https://github.com/dcsaorg/DCSA-Information-Model/blob/master/datamodel/referencedata.d/portcallservicetypecodes.csv\">GitHub</a>\n","enum":["PILO","MOOR","CRGO","TOWG","BUNK","WSDP"],"example":"BUNK"},"publisherRole":{"type":"string","description":"The party function code of the publisher:\n- CA (Carrier)\n- AG (Carrier local agent)\n- VSL (Experimental: Vessel)\n- ATH (Experimental: Port Authorities)\n- PLT (Experimental: Port Pilot)\n- TR (Terminal)\n\nMore details can be found on <a href=\"https://github.com/dcsaorg/DCSA-Information-Model/blob/master/datamodel/referencedata.d/publisherrole.csv\">GitHub</a>\n","enum":["CA","AG","VSL","ATH","PLT","TR"],"example":"TR"},"reason":{"type":"string","description":"Reason field in a Shipment event. This field can be used to explain why a specific event has been sent.","example":"The following attributes are missing..."},"remark":{"description":"Free text to provide additional information on the context.\n","type":"string","example":"Port closed due to strike","maxLength":500},"secret":{"type":"string","format":"byte","description":"A Base64 encoded secret shared between the Publisher and the Subscriber.\nIt is used to compute the contents of the Notification-Signature header.\n","example":"MTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTIzNDM2NTc4NjIzODk3NDY5MDgyNzM0OTg3MTIzNzg2NA=="},"shipmentEventTypeCode":{"type":"string","description":"The status of the document in the process. Possible values are\n- RECE (Received)\n- DRFT (Drafted)\n- PENA (Pending Approval)\n- PENU (Pending Update)\n- REJE (Rejected)\n- APPR (Approved)\n- ISSU (Issued)\n- SURR (Surrendered)\n- SUBM (Submitted)\n- VOID (Void)\n- CONF (Confirmed)\n- REQS (Requested)\n- CMPL (Completed)\n- HOLD (On Hold)\n- RELS (Released)\n\nMore details can be found on <a href=\"https://github.com/dcsaorg/DCSA-Information-Model/blob/master/datamodel/referencedata.d/shipmenteventtypecodes.csv\">GitHub</a>\n","enum":["RECE","DRFT","PENA","PENU","REJE","APPR","ISSU","SURR","SUBM","VOID","CONF","REQS","CMPL","HOLD","RELS"],"example":"DRFT"},"shipmentEventTypeCodes":{"type":"array","description":"List of shipmentEventTypeCode to filter by. If multiple values are selected - the OR-operator will be used.\n\nDefault is none as it will not filter on shipmentEventTypeCode if not specified.\n","example":["RECE","DRFT"],"items":{"$ref":"#/components/schemas/shipmentEventTypeCode"}},"shipmentInformationType":{"type":"string","maxLength":3,"deprecated":true,"description":"The code to identify the type of information documentID points to. Can be one of the following values\n- BOK (Booking - deprecated use BKG instead)\n- BKG (Booking)\n- SHI (Shipping Instruction)\n- VGM (Verified Gross Mass)\n- SRM (Shipment Release Message)\n- TRD (Transport Document)\n- ARN (Arrival Notice)\n\n<b>Deprecated</b> - use documentTypeCode instead\n","example":"SHI","enum":["BOK","BKG","SHI","VGM","SRM","TRD","ARN"]},"subscriptionID":{"type":"string","format":"uuid","example":"8fbdc2d8-57c8-48b9-a04b-18fd8ec1d809","description":"The carrier issues a unique ID to the shipper or consignee for that subscription"},"transportDocumentTypeCodes":{"type":"array","description":"List of transportDocumentType to filter by. If multiple values are selected - the OR-operator will be used.\n\nDefault is none as it will not filter on transportDocumentType if not specified.\n","example":["BOL"],"items":{"$ref":"https://api.swaggerhub.com/domains/dcsaorg/DCSA_DOMAIN/1.0.3#/components/schemas/transportDocumentType"}},"transportEventTypeCode":{"type":"string","description":"Identifier for type of Transport event\n- ARRI (Arrived)\n- DEPA (Departed)\n\nMore details can be found on <a href=\"https://github.com/dcsaorg/DCSA-Information-Model/blob/master/datamodel/referencedata.d/transporteventtypecodes.csv\">GitHub</a>\n","enum":["ARRI","DEPA"],"example":"ARRI"},"transportEventTypeCodes":{"type":"array","description":"List of transportEventTypeCode to filter by. If multiple values are selected - the OR-operator will be used.\n\nDefault is none as it will not filter on transportEventTypeCode if not specified.\n","example":["ARRI","DEPA"],"items":{"$ref":"#/components/schemas/transportEventTypeCode"}},"vesselScheduleChangeRemark":{"description":"Free text information provided by the vessel operator regarding the reasons for the change in schedule and/or plans to mitigate schedule slippage.\n\nDeprecated - use changeRemark instead\n","type":"string","example":"Bad weather","maxLength":250,"deprecated":true}}}}