| GET POST | /ShippingInformation/ShippingInformationGet | Gets information of documents related shipping providers data. | Uses your API Key and a valid DocumentId to retrieve the shipping information of the specified document. The response includes detailed ShippingInfo data and an optional LabelURL pointing to a PDF label file.
A. Retrieve shipping information for a document with DocumentId = 12345
Value:
{
"DocumentId": 12345
}
Response:
{
"ShippingInfo": {
"ProviderInfo": {
"ProviderId": 2018,
"ServiceId": "EXPRESS",
"PackageId": "PKG001"
},
"CostInfo": {
"ShippingCost": 4.50,
"OtherCosts": 0.50,
"TotalCost": 5.00
},
"WeightInfo": {
"Weight": 1.2,
"WeightUnitId": 1
},
"ShipmentDimensionsInfo": {
"ShipmentDimensionsLength": 30.0,
"ShipmentDimensionsWidth": 20.0,
"ShipmentDimensionsHeight": 10.0,
"ShipmentDimensionsUnit": "centimeter"
},
"ShipDateInfo": {
"ShipDate": "2024-05-17"
},
"GenericAftersalesProServicesInfo": {
"COD": false,
"GTEEC": false,
"Protocol": false,
"Reception": false,
"Insurance": false,
"ChequeCod": false,
"SpecialRate": false,
"VipDelivery": false,
"SenderCharge": false,
"PackageReturn": false,
"ReturnDocument": false,
"CodTotalInCents": 0,
"MorningDelivery": false,
"SameDayIntracity": false,
"SaturdayDelivery": false,
"SeaFreightCyprus": false,
"RefrigeratedGoods": false,
"LessThanTwoKilograms": false,
"LessThanFourKilograms": false,
"SubmissionOfTenderDocuments": false,
"NextDayAirTransportToIslands": false,
"ContainsDocumentsOnlyAndIsLessThanTwoKilograms": false
},
"TrackingId": "TRK-000123456789",
"LockerId": 42
},
"LabelURL": "https://URLPATH/123456789_shipping-label.pdf",
"ResponseStatus": {
"ErrorCode": "0",
"Message": ""
}
}
A valid DocumentId is required. If an invalid DocumentId is provided, the response will contain an appropriate error message. |
|---|