| POST | /ShippingInformation/ShippingInformationUpdate | Updates or creates Shipping Information of a Shipping Provider for a document. | Uses your API Key, a valid DocumentId, and a ShippingInfo object to update the shipping information of the specified document. The response contains the updated ShippingInfo along with the ResponseStatus message.
A. Update shipping information for a document with DocumentId = 12345
Value:
{
"DocumentId": 12345,
"ShippingInfo": {
"ProviderInfo": {
"ProviderId": 2018,
"ServiceId": "EXPRESS",
"PackageId": "PKG001"
},
"CostInfo": {
"ShippingCost": 6.00,
"OtherCosts": 1.00,
"TotalCost": 7.00
},
"WeightInfo": {
"Weight": 1.5,
"WeightUnitId": 1
},
"ShipmentDimensionsInfo": {
"ShipmentDimensionsLength": 35.0,
"ShipmentDimensionsWidth": 22.0,
"ShipmentDimensionsHeight": 12.0,
"ShipmentDimensionsUnit": "centimeter"
},
"ShipDateInfo": {
"ShipDate": "2024-05-18"
},
"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-000999888777",
"LockerId": 42
}
}
Response:
{
"ShippingInfo": {
"ProviderInfo": {
"ProviderId": 2018,
"ServiceId": "EXPRESS",
"PackageId": "PKG001"
},
"CostInfo": {
"ShippingCost": 6.00,
"OtherCosts": 1.00,
"TotalCost": 7.00
},
"WeightInfo": {
"Weight": 1.5,
"WeightUnitId": 1
},
"ShipmentDimensionsInfo": {
"ShipmentDimensionsLength": 35.0,
"ShipmentDimensionsWidth": 22.0,
"ShipmentDimensionsHeight": 12.0,
"ShipmentDimensionsUnit": "centimeter"
},
"ShipDateInfo": {
"ShipDate": "2024-05-18"
},
"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-000999888777",
"LockerId": 42
},
"ResponseStatus": {
"ErrorCode": "0",
"Message": ""
}
}
A valid DocumentId and a complete ShippingInfo object are required. If either is missing or invalid, the response will contain an appropriate error message. |
|---|