X-API-KEY: ********************{
"bagNrs": "bag-001,bag-002",
"unlinkOtherBagsIfAny": true,
"ensureOnlyIncludedBags": true,
"allowPartialSuccess": true
}curl --location --request POST 'https://api.test.post-plus.io/api/v1/shipments//link-bags' \
--header 'Accept: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"bagNrs": "bag-001,bag-002",
"unlinkOtherBagsIfAny": true,
"ensureOnlyIncludedBags": true,
"allowPartialSuccess": true
}'{
"successParcelsCount": 5,
"failedParcelsCount": 1,
"parcels": [
{
"identifiers": {
"id": 1234,
"parcelNr": "RS12345678US",
"senderParcelNr": "client-id-123"
},
"references": {
"shipmentId": 0,
"shipmentNr": "123-000000123",
"bagNr": "bag-001",
"carrier": "string",
"carrierServiceCode": "string",
"carrierParcelNr": "string",
"manifestParcelNr": "string",
"printId": 1234567890,
"externalIds": 1234567890
},
"error": "Parcel is already linked to manifested shipment SH001"
}
],
"failedParcels": [
{
"identifiers": {
"id": 1234,
"parcelNr": "RS12345678US",
"senderParcelNr": "client-id-123"
},
"references": {
"shipmentId": 0,
"shipmentNr": "123-000000123",
"bagNr": "bag-001",
"carrier": "string",
"carrierServiceCode": "string",
"carrierParcelNr": "string",
"manifestParcelNr": "string",
"printId": 1234567890,
"externalIds": 1234567890
},
"error": "Parcel is already linked to manifested shipment SH001"
}
],
"bagNrs": [
"string"
],
"failedBagNrs": [
"string"
]
}