1. Parcels
  2. Create & Update Parcel

Parcels

Create & Update Parcel

Create Parcel

Parcels can currently only be created through fulfillments, manifests or shipments.

Update Parcel

POST
`/v1/parcels/:parce_id`

Most of the parcel properties can be updated, including

js
        contents;
special_handling_tags;
type;
length;
received;
defective;
missing;
width;
height;
weight;
layout_id;
item_id;
external_container_id;
container_number;
tracking_number;
label_url;
status;

      

The parcel and its contents can be updated as follows

js
        {
  status: "inbound_transit",
  layout_id: "lay_XkTCC8FvgM65akxw",
  contents: {
    id: "ctent_d1ZAYXGSkFiDDXb46bTcT2"
    special_handling_tags: ["ftl"],
  }
}

const res = await fetch(`https://api.packagex.io/v1/parcels/prcl_uFoPiptNpRahvBYZa7DQMo`, {
  method: "POST",
  headers: {
    "PX-API-KEY": process.env.PX_API_KEY,
    "Content-Type": "application/json",
  },
  body: JSON.stringify(data),
}).then((res) => res.json());