Create a package type
Adds a kind of packaging to the store.
weight is the empty package’s own weight, added to content weight on
every quote; max_weight is what it can hold. Setting default makes
this the box every parcel quote is built on, and demotes whichever row
held that before.
A variant references a carton-kind row to say what it is packed
into; other kinds are the merchant’s own vocabulary.
Required scope: write_package_types (for API-key authentication).
Authorizations
Secret API key for admin access
JWT token for admin user authentication
Headers
Bearer token for admin authentication
Body
Unique within the store.
"Euro pallet"
What this packaging is: the box parcels ship in, or the carton, pallet or container a wholesale order leaves on.
box, envelope, carton, pallet, container "pallet"
Unit the three dimensions are in; falls back to the store's unit system.
mm, cm, in, ft "cm"
The empty package's own weight, added to content weight on every quote.
What the package can hold, not the same as its own weight.
g, kg, lb, oz "kg"
The box every parcel quote is built on. Setting this demotes whichever row held it.
Response
package type created
box, envelope, carton, pallet, container mm, cm, in, ft g, kg, lb, oz 
