Skip to main content
POST
Create a carton template

Authorizations

Authorization
string
header
required

Authenticate using a bearer token. To create a token, navigate to /settings/api-tokens and click Create API Token.

Body

application/json

Create/update payload for a carton template. On create, only name is required; all other fields fall back to their column defaults. On update every field is optional — send only the fields you intend to change.

name
string
required

Carton name (unique among non-deleted templates). Required on create.

Maximum string length: 255
type
enum<string>

Container type. Defaults to box.

Available options:
box,
envelope,
custom
inner_length_in
number<float> | null

Usable interior length, in inches.

Required range: x >= 0
inner_width_in
number<float> | null

Usable interior width, in inches.

Required range: x >= 0
inner_height_in
number<float> | null

Usable interior height, in inches.

Required range: x >= 0
tare_weight_oz
number<float> | null

The empty carton's own weight, in ounces.

Required range: x >= 0
max_weight_oz
number<float> | null

Maximum content weight the carton can hold, in ounces.

Required range: x >= 0
cost
number<float> | null

Cost of the carton itself.

Required range: x >= 0
fill_limit_pct
integer | null

Maximum fill (1–100) of the carton's volume the engine will pack. Defaults to 100.

Required range: 1 <= x <= 100
allowed_packing_classes
string[] | null

List of packing-class values this carton accepts. null (or omitted) means any class.

requires_dry_ice
boolean

Whether shipments packed in this carton require dry ice. Defaults to false.

dry_ice_weight_oz
number<float> | null

Weight of dry ice to add, in ounces.

Required range: x >= 0
default_package_code
string | null

Carrier package-type code used when buying a label for this carton.

Maximum string length: 255
priority
integer

Selection priority. Higher-priority cartons are preferred by the engine. Defaults to 0.

is_active
boolean

Whether the carton is active and available for cartonization. Defaults to true.

Response

Carton template created.

data
object

A carton template — a shipping box, envelope, or packer-custom container in the carton catalog that the cartonization engine can choose from when packing a shipment. Dimensions are stored in inches and weights in ounces.