Info
|
Creates a new order based on an existing one and cancels the original
Used if the count and weight of parcels require updating.
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 |
parameters | Parameters[] | See object below |
Name | Type | Description |
GetParcelsBarcodes | boolean | All Barcodes object for clients who print their own label |
{ "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" } ] "Parameters": { "GetParcelsBarcodes": true } }
Example Response (Success - HTTP code 200):
{ "clientOrderId": "2__80826253034", "courierShipmentId": "80826253034", "courierShipmentVoucher": null, "courier": 2, "courierParcelsBarcodes": [ { "sequenceNo": 1, "barcode": "1000808262530349260000000019", "customerBarcode": "string" }, { "sequenceNo": 2, "barcode": "1808262530300229260000000013", "customerBarcode": "string" }, { "sequenceNo": 3, "barcode": "1808262530300339260000000017", "customerBarcode": "string" } ], "price": { "amount": 11.80, "vat": 2.24, "totalAmount": 14.04, "currency": "RON", "priceComponents": null }, "calculatedDeliveryDate": "2024-03-14T22:00:00Z", "trackPageUrl": "https://wa-trackpage-ymqidzpfvthl2.azurewebsites.net/JQxnpqexrk6AqC6rOcnSZA", "courierTrackPageUrl": "https://tracking.dpd.ro/?shipmentNumber=80826253034&language=ro_RO", "courierResponse": null, "extra": { "bankRepaymentAmount": 0.00, "bankRepaymentCurrency": "RON", "cashOnDeliveryAmount": null, "cashOnDeliveryAmountCurrency": null, "cashOnDeliveryPayoutToLocation": null, "declaredValueAmount": null, "declaredValueAmountCurrency": null, "openPackage": null, "saturdayDelivery": null, "insuranceAmount": 0.00, "insuranceAmountCurrency": "RON", "reference1": null, "reference2": null, "reference3": null, "reference4": null, "returnOfDocuments": null, "returnOfDocumentsComment": null, "returnPackage": null, "returnVoucher": null, "bank": null, "bankIBAN": null, "bankAccountHolder": null, "customsDeclaration": null, "marketPlace": null, "uitCode": null }, "address": null }