Retrieves accounting dispatch data.
Access to this method is authorized by the Retrieve accounting dispatches operation.
This API method corresponds to the accounting dispatch import interface. The structure of this request body corresponds to the
List of search parameters (in URL query string format, combined in a logical AND).
Success
Bad Request
Unauthorized
Internal Server Error
{- "AccountingDispatch": [
- {
- "DispatchPid": "string",
- "DispatchId": "CHZRHBNZAKLAAUN00005",
- "ExternalID": "Dd43",
- "ReceiptDt": "2020-06-30",
- "DispatchDt": "2012-01-13",
- "Flights": "BA 123/AF 0098 / LX 9876",
- "DispPreviousNo": 79,
- "TotalNoBags": 10,
- "TotalNoItems": 0,
- "ReturnedBags": 0,
- "TotalWeightGross": 80.4,
- "TotalWeightNet": 0,
- "OriginalInd": "1",
- "ExpressInd": "0",
- "TrialNoteInd": "0",
- "ClosedMailInd": "0",
- "Comments": "string",
- "ProductTypeCD": "s",
- "DuplicateNo": 0,
- "ActualNoBags": 0,
- "ConveyanceType": "P",
- "CustomerReceptaclesInd": "0",
- "Validated": "0",
- "StateInd": 201,
- "Excluded": 0,
- "AccDispatchStreams": [
- {
- "AccStreamID": 145,
- "AccStreamModifier": 2,
- "NoBags": 2,
- "WeightGross": 20.2,
- "WeightNet": 20,
- "NoItems": 0,
- "Rate1": 0,
- "Rate2": 0,
- "Due1": 0,
- "Due2": 0,
- "AdditionalNo": 0,
- "SpecialProcessInd": "0",
- "AccDispatchStreamCN32DA": [
- {
- "ItemCount": 17,
- "WeightGross": 3.145,
- "PercentRebate": 0,
- "AmountRebate": 0,
- "Currency": [
- null
], - "CN32DAPositionCollection": [
- null
]
}
]
}
], - "Events": [
- {
- "EventTypeCD": 800,
- "EventDateTime": "2012-01-14T09:30:47.234+00:00",
- "EventOfficeCD": 2,
- "EventLocalOffset": 2,
- "CaptureGMTDate": "2012-01-14T09:30:47.234+00:00",
- "UserPid": 1,
- "WorkstationPid": 3
}
], - "AccDispatchTransitLegs": [
- {
- "AccDispatchTransitLeg": [
- {
- "TransitCountryCD": "SG",
- "DestCountryCD": "AU",
- "TransitType": "A",
- "TransitLocationFCD": "strin",
- "DestLocationFCD": "strin"
}
]
}
], - "CN65Docs": [
- {
- "DocNo": 12,
- "RegInd": "1",
- "MissentInd": "0",
- "StatInd": "1",
- "OriginalInd": "0",
- "CN65Groups": [
- {
- "GroupID": 1,
- "Weight": 236,
- "Observation": "A-decouvert items going to CK through AU"
}
]
}
], - "EMSADecouvertManifest": [
- {
- "DestinationCountry": "FR",
- "WeightDocs": 187.321,
- "ItemsDocs": 0,
- "WeightMerch": 999.321,
- "ItemsMerch": 0
}
], - "History": [
- {
- "EventType": 800,
- "EventGmtDt": "2012-01-14T09:30:47.234+00:00",
- "DispatchId": "CHZRHBNZAKLAAUN00005",
- "ConveyanceType": "P",
- "DispatchDt": "2012-01-13",
- "ReceiptDt": "2020-06-30",
- "Flights": "BA 123/AF 0098 / LX 9876",
- "TotalNoBags": 10,
- "TotalNoItems": 0,
- "ReturnedBags": 0,
- "TotalWeightGross": 80.4,
- "TotalWeightNet": 0,
- "OriginalInd": "1",
- "ExpressInd": "0",
- "TrialNoteInd": "0",
- "ClosedMailInd": "0",
- "Comments": "string",
- "ProductTypeCD": "s",
- "DuplicateNo": 0,
- "ActualNoBags": 0,
- "CustomerReceptaclesInd": "0",
- "ExternalID": "Dd43",
- "StateInd": 201,
- "Excluded": 0,
- "AccDispatchStreams": [
- {
- "AccStreamID": 145,
- "AccStreamModifier": 2,
- "NoBags": 2,
- "NoItems": 0,
- "WeightGross": 20.2,
- "WeightNet": 20,
- "Rate1": 0,
- "Rate2": 0,
- "Due1": 0,
- "Due2": 0,
- "AdditionalNo": 0,
- "SpecialProcessInd": "0",
- "AccDispatchStreamCN32DA": [
- null
]
}
], - "AccDispatchTransitLegs": [
- {
- "TransitCountryCD": "SG",
- "DestCountryCD": "AU",
- "TransitType": "A",
- "TransitLocationFCD": "strin",
- "DestLocationFCD": "strin"
}
], - "CN65Docs": [
- {
- "DocNo": 12,
- "RegInd": "1",
- "MissentInd": "0",
- "StatInd": "1",
- "OriginalInd": "0",
- "CN65Groups": [
- null
]
}
], - "EMSADecouvertManifest": [
- {
- "DestinationCountry": "FR",
- "WeightDocs": 187.321,
- "ItemsDocs": 0,
- "WeightMerch": 999.321,
- "ItemsMerch": 0
}
]
}
]
}
]
}
Imports accounting dispatch data. If the dispatch does not exist, it is created; if it exists, it is updated.
Access to this method is authorized by the Import accounting dispatches operation.
This API method corresponds to the accounting dispatch import interface. The structure of this request body corresponds to the <AccDispatch>
element of the interface XML schema and the validation performed is the same as that applied to accounting dispatches imported using the interface. For more information, see the IPS Import/Export Administration Guide.
For a 400 error response, error codes are included to give more information, as in the following example:
Errors : [
Error : {
Message : "Invalid destination office (FKAA)",
Code : 2
},
Error : {
Message : "Invalid transit country (GX)",
Code : 2
},
Error : {
Message : "Bad dispatch date format (Monday 2019)",
Code : 3
},
]
}
The codes indicate the general type of error:
Success
Bad Request
Unauthorized
Internal Server Error
{- "AccDispatchStreams": [
- {
- "AccStreamID": 104,
- "AccStreamModifier": 0,
- "NoBags": 1,
- "NoItems": 5,
- "WeightGross": 6.6,
- "WeightNet": 6.6
}
], - "ClosedMailInd": "0",
- "CustomerReceptaclesInd": "0",
- "DispatchDt": "2022-11-10",
- "DispatchId": "PLWAWACZPRGBAUN30296",
- "AccDispatchEvent": {
- "CaptureGMTDate": "2023-02-09T19:19:08.762",
- "EventDateTime": "2023-02-09T19:19:08.761+01:00",
- "EventLocalOffset": 1,
- "EventOfficeCD": 5,
- "EventTypeCD": 800
}, - "ExpressInd": "0",
- "Flights": "D5 00X1",
- "OriginalInd": "1",
- "TotalNoBags": 1,
- "TotalWeightGross": 6.6,
- "TotalWeightNet": 6.6,
- "TrialNoteInd": "0"
}
{- "AccountingDispatch": {
- "DispatchId": "CHZRHBNZAKLAAUN00005",
- "ExternalID": "Dd43",
- "ReceiptDt": "2020-06-30",
- "DispatchDt": "2012-01-13",
- "Flights": "BA 123/AF 0098 / LX 9876",
- "DispPreviousNo": 79,
- "TotalNoBags": 10,
- "TotalNoItems": 0,
- "ReturnedBags": 0,
- "TotalWeightGross": 80.4,
- "TotalWeightNet": 0,
- "OriginalInd": "1",
- "ExpressInd": "0",
- "TrialNoteInd": "0",
- "ClosedMailInd": "0",
- "Comments": "string",
- "ProductTypeCD": "s",
- "DuplicateNo": 0,
- "ActualNoBags": 0,
- "CustomerReceptaclesInd": "0",
- "ClearExistingStreams": "0",
- "AccDispatchStreams": [
- {
- "AccStreamID": 145,
- "AccStreamModifier": 2,
- "NoBags": 2,
- "WeightGross": 20.2,
- "WeightNet": 20,
- "NoItems": 0,
- "Rate1": 0,
- "Rate2": 0,
- "Due1": 0,
- "Due2": 0,
- "AdditionalNo": 0,
- "SpecialProcessInd": "0",
- "AccDispatchStreamCN32DA": [
- {
- "ItemCount": 17,
- "WeightGross": 3.145,
- "PercentRebate": 0,
- "AmountRebate": 0,
- "Currency": [
- {
- "Code": null
}
], - "CN32DAPositionCollection": [
- {
- "ItemCount": null,
- "CustomerDenomination": null,
- "CustomerCode": null,
- "CustomerCodePartner": null,
- "CustomerNumber": null,
- "DeliveryNumber": null,
- "Product": null,
- "AdditionalProductInformation": null,
- "AccessCode": null,
- "WeightPerItem": null,
- "WeightTotal": null,
- "AmountPerItem": null,
- "AmountPerItemTotal": null,
- "AmountPerWeight": null,
- "AmountGrossTotal": null,
- "CN32DAPositionRebateSurchageCollection": [ ]
}
]
}
]
}
], - "AccDispatchEvent": {
- "EventTypeCD": 800,
- "EventDateTime": "2012-01-14T09:30:47.234+00:00",
- "EventOfficeCD": 2,
- "EventLocalOffset": 2,
- "CaptureGMTDate": "2012-01-14T09:30:47.234+00:00",
- "UserPid": 1,
- "WorkstationPid": 3
}, - "AccDispatchTransitLegs": [
- {
- "TransitCountryCD": "SG",
- "DestCountryCD": "AU",
- "TransitType": "A",
- "TransitLocationFCD": "strin",
- "DestLocationFCD": "strin"
}
], - "CN65Docs": [
- {
- "DocNo": 12,
- "RegInd": "1",
- "MissentInd": "0",
- "StatInd": "1",
- "OriginalInd": "0",
- "CN65Groups": [
- {
- "GroupID": 1,
- "Weight": 236,
- "Observation": "A-decouvert items going to CK through AU"
}
]
}
], - "EMSADecouvertManifest": [
- {
- "DestinationCountry": "FR",
- "WeightDocs": 187.321,
- "ItemsDocs": 0,
- "WeightMerch": 999.321,
- "ItemsMerch": 0
}
]
}
}