Info
|
Creates a new order based on an existing one and cancels the original
Used if parcels count and weight needs update.
Request Body (JSON) :
Name | Type | Description |
courierId | integer | Original shipment courier. See Service table |
courierShipmentId | string | Generated shipment AWB from courier(main). |
envelopeCount | integer | Count of unit |
parcelsCount | integer | Count of unit |
palettesCount | integer | Count of unit |
oversizedPackage | boolean | If new shipment is over-sized set this to true |
totalWeight | Decimal | Total weight for new shipment |
parcels[] | Parcel[] | Size and weight for each individual unit of transport |
{ "courierId": 1, "courierShipmentId": "string", "envelopeCount": 0, "parcelsCount": 0, "palettesCount": 0, "oversizedPackage": true, "totalWeight": 0, "parcels": [ { "sequenceNo": 0, "size": { "width": 0, "height": 0, "length": 0 }, "weight": 0, "type": "Envelope", "reference1": "string", "reference2": "string", "customerBarcode": "string" } ] }
Example Response (Success - HTTP code 200):
{ "clientOrderId": 662, "courierShipmentId": "877551879", "courierShipmentVoucher": null, "courier": 1, "courierParcelsBarcodes": null, "price": { "amount": 13.36, "vat": 2.54, "totalAmount": 15.9, "currency": "RON", "priceComponents": null }, "calculatedDeliveryDate": "2019-10-03T00:00:00+00:00", "trackPageUrl": null, "courierResponse": null, "extra": null }