1. Lots
  2. Archive Lot

Lots

Archive Lot

An lot once created cannot be deleted, however, it can be archived.

js
        
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.