Skip to main content

Update

PATCH /api/customer/packages/update

Updates a package record using its packageId (the short P-prefixed identifier returned when the label was created, e.g., P0001311322). Supports modifying key shipment fields such as reference data, recipient address, and declared values.

  • URL: https://parcelconnect.apc-pli.com/api/customer/packages/update
  • Auth: HTTP Basic — see Authentication.
note

This endpoint requires the short-form packageId (e.g., P0001311322), not the full tracking number.

The request body is a JSON array of update objects. Each object must include packageId; every other field is optional and is applied only when present. Fields you can update:

GroupFields
Recipient addresscompany, contact, address1, address2, address3, city, stateProv, postalCode, countryISO2, phone, email
Ship-from addressshipFromAttention, shipFromName, shipFromAddress1, shipFromAddress2, shipFromCity, shipFromStateProv, shipFromPostalCode, shipFromCountryISO2, shipFromPhone, shipFromEmail
References & miscref1, ref2, exportReason, serviceCode, shipDateTime, timeZone, parcelContents, labelFormat, importerVATNumber
ParcelparcelWeight, parcelHeight, parcelLength, parcelWidth
Commodity itemscommodityItems[] (declared values, descriptions, tariff codes, etc.)

See the Label reference for the meaning and format of each field.

note
  • A maximum of 20 packages may be updated per request.
  • serviceCode may only be changed to another APC service (a code beginning with APC).
  • shipDateTime must use the format MM/DD/YYYY.

Request

curl -X PATCH -H "Authorization: Basic {{basic_token}}" \
-H "Content-Type: application/json" \
-d '[
{
"packageId": "P0123456789",
"company": "",
"contact": "John Smith",
"address1": "123 Main St",
"address2": "",
"address3": "",
"city": "Toronto",
"stateProv": "ON",
"postalCode": "M5V 3L9",
"countryISO2": "CA",
"phone": "(201) 372-9700",
"email": "apisupport@apc-pli.com",
"ref1": "Order#1002",
"ref2": "",
"exportReason": "",
"serviceCode": "APC.PRIPDC",
"shipDateTime": "01/01/2026",
"timeZone": "",
"parcelContents": "M",
"labelFormat": "ZPL",
"importerVATNumber": "",
"parcelWeight": 1,
"parcelHeight": 2,
"parcelLength": 2,
"parcelWidth": 2,
"commodityItems": [
{
"itemID": "123",
"itemDescription": "Shirt",
"itemQuantity": 1,
"itemWeight": 1,
"itemWeightUOM": "lb",
"itemValue": 9.95,
"itemTariffCode": "610910",
"itemCountryOfOriginISO2": "US"
}
]
}
]' \
"https://parcelconnect.apc-pli.com/api/customer/packages/update"

Response

{
"totalPackages": 1,
"successfulUpdates": 1,
"failedUpdates": 0,
"results": [
{ "success": true, "packageId": "P0123456789", "message": "Package updated successfully" }
]
}