Skip to main content
POST
Create package type

Authorizations

Authorization
string
header
required

An API token from Sign in, sent as Authorization: Bearer <token>. Tokens last 30 days.

Body

application/json
name
string
required

Package type name. Must not be greater than 255 characters.

Example:

"Box L"

length
number
required

Length. Must be at least 0. Must not be greater than 99999999999.

Example:

40

width
number
required

Width. Must be at least 0. Must not be greater than 99999999999.

Example:

30

height
number
required

Height. Must be at least 0. Must not be greater than 99999999999.

Example:

20

base_weight
number
required

Base package weight. Must be at least 0. Must not be greater than 99999999999.

Example:

1.5

max_weight
number
required

Maximum package weight. Must be at least 0. Must not be greater than 99999999999.

Example:

25

barcode
string | null

Package type barcode. Must not be greater than 255 characters.

Example:

"PKG-TYPE-001"

company_id
integer | null

Company ID. The id of an existing record in the companies table.

Example:

1

Response

Created