Imports closed outbound dispatch data with all associated receptacle and mail item information.
Access to this method is authorized by the Import dispatches operation.
Note: You can only import closed dispatches and receptacles. Dispatch update is not supported.
In addition to the standard error codes described in Response codes, the IPS API returns a 404 error code for specific error cases, with additional error information as listed in the table below.
Code | Description |
---|---|
1 | Mandatory data is missing from the dispatch, receptacle, bundle, inner bag or mail item. |
2 | A property value in the request contains an invalid value or is in the wrong format. |
3 | Reference data not found. |
4 | The request contains inconsistent data. For example, if trying to insert a parcel in a letter receptacle. |
5 | No transport found for the dispatch. |
6 | The route exists but is not compatible with the dispatch. |
7 | Data already exists in the database. |
8 | Failure storing the dispatch, receptacle, bundle , inner bag or mail item. |
9 | The request body does not match the specified structure. |
10 | Unexpected error handled by the API. |
11 | Error returned from internal IPS business process. |
Success
Bad Request
Unauthorized
Not Found
Internal Server Error
{- "DispatchId": "CHZRHBNZAKLAAUN00005",
- "DispatchPreviousSerialNo": 4,
- "DispatchWeight": 10.5,
- "DispatchEarliestDeparture": "2020-06-30 00:00",
- "DispatchRouteScheduleIdentifier": "8E98516B-1864-4B86-AB45-1CB92117D60D",
- "DispatchClosureDateTime": "2020-06-29T16:38:06+01:00",
- "DispatchProductType": "C",
- "DispatchComments": null,
- "DispatchOtbCNs": [
- {
- "DispatchNumberReturnedBags": 1,
- "DispatchNumberReturnedTrays": 1,
- "DispatchCn44Indicator": 0,
- "DispatchNumberCn65": 1
}
], - "Receptacles": [
- {
- "ReceptacleOwnership": "O",
- "ReceptacleId": "CHZRHBNZAKLAAUN00001001100105",
- "ReceptacleMailSubclass": "UN",
- "ReceptacleWeight": 10.5,
- "ReceptacleContentFormat": "P",
- "ReceptacleCharacteristic": "B",
- "ReceptacleSubType": "BG",
- "ReceptacleTareWeight": 0.5,
- "ReceptacleSealNumber": null,
- "ReceptaclePostalStatus": 20,
- "ReceptacleClosureDateTime": "2020-06-29T16:38:06+01:00",
- "ReceptacleProductType": "C",
- "ReceptacleSendingCustomer": null,
- "ReceptacleComments": null,
- "ReceptacleDocumentationEnclosed": "Y",
- "ReceptacleCustomerNumber": null,
- "Bundles": [
- {
- "BundlePostalStatus": 0,
- "BundleWeight": 10.25,
- "BundleNumberMailItems": 125,
- "BundleExemptIndicator": 0,
- "BundleContent": 0,
- "BundleProductType": "*"
}
], - "InnerBags": [
- {
- "InnerbagId": "CHZRHBCAYMQAAUN00002001",
- "InnerbagClosureDateTime": "2020-06-29T16:38:06+01:00",
- "InnerbagWeight": 3.45,
- "InnerbagExemptIndicator": 0,
- "InnerbagProductType": "*",
- "InnerbagTareWeight": 0.1
}
], - "MailItems": [
- {
- "ItemId": "RR000000011CH",
- "LocalId": "AA123345BB",
- "ItemWeight": 1.2,
- "CurrencyCd": "CHF",
- "Value": 123.45,
- "ClassCd": "U",
- "Content": "D",
- "OrigCountryCd": "CH",
- "DestCountryCd": "NZ",
- "PostalStatusFcd": 1,
- "InsertionDateTime": "2020-06-29T16:38:06+01:00",
- "ProductTypeCd": "C",
- "Misc1": "string",
- "Misc2": "string",
- "Misc3": "string",
- "Misc4": "string",
- "Comments": "string",
- "PostagePaidValue": 12.35,
- "PostagePaidCurrencyCd": "CHF",
- "AdditionalFeesValue": 12.35,
- "AdditionalFeesCurrencyCd": "CHF",
- "NetworkEntryLocationTypeCd": "3",
- "MailItemCategoryCd": "IN",
- "MailItemReturnDelay": 3,
- "Letter": [
- {
- "InsuredValue": 16.5,
- "InsuredSDRValue": 3.2,
- "RouteInstructionCd": "BA",
- "SenderInstructionCd": "RD",
- "LetterCharacteristicCd": "AL",
- "CoDValue": 15.54,
- "CoDCurrencyCd": "CHF",
- "CoDInd": 0,
- "ExemptInd": 0,
- "ExpressInd": 0,
- "DeliveryProofInd": 0,
- "ConveyanceTypeCd": "P",
- "InsuredCurrency": "EUR",
- "MailCategoryCd": "A",
- "MailItemCategoryCd": "FC",
- "ReturnDelay": 123
}
], - "Parcel": [
- {
- "InsuredValue": 16.5,
- "InsuredSDRValue": 3.2,
- "RouteInstructionCd": "BA",
- "SenderInstructionCd": "RD",
- "CoDValue": 15.54,
- "CoDCurrencyCd": "CHF",
- "CoDInd": 0,
- "ExemptInd": 0,
- "ExpressInd": 0,
- "DeliveryProofInd": 0,
- "Comments": "string",
- "InsuredCurrency": "INR",
- "ParcelRate": 0,
- "ParcelDue": 0
}
]
}
]
}
]
}
{- "Dispatch": {
- "dispatchId": "CHZRHBNZAKLAAUN00005",
- "RoutingInformation": [
- {
- "transportType": "PL",
- "transportCompanyCode": "LX",
- "transportNumber": 123,
- "departureLocation": "CHZRH",
- "departureDT": "2020-10-08 21:15",
- "arrivalLocation": "SGSIN",
- "arrivalDT": "2020-10-09 06:20",
- "transitOE": "SGSINA",
- "docName": "CN31",
- "objectType": "DP",
- "objectID": "CHZRHBNZAKLAAUN00005",
- "docData": "string"
}
]
}
}