Lots
Archive Lot
An lot once created cannot be deleted, however, it can be archived.
Lots
An lot once created cannot be deleted, however, it can be archived.
const res = await fetch(`https://api.packagex.io/v1/lots`, {
method: "DELETE",
headers: {
"PX-API-KEY": process.env.PX_API_KEY,
"Content-Type": "application/json",
},
}).then((res) => res.json());
const status = res.data.status; // "archived" if successful.