List all packages
How to fetch a collection of packages via API
To fetch a collection of packages, send a GET
request to the /api/packages
endpoint.
Request
GET https://yourdomain.commercelayer.io/api/packages
Example
The following request fetches a collection of packages:
Remember that when you fetch a list of resources you get paginated result.
Sortable fields
The list of packages can be sorted by the following fields:
Attributes
code
created_at
height
id
length
name
reference
reference_origin
unit_of_length
updated_at
width
Relationships
stock_location
Filterable fields
The list of packages can be filtered by the following fields:
Attributes
code
created_at
height
id
length
metadata
name
reference
reference_origin
unit_of_length
updated_at
width
Relationships
attachments
parcels
stock_location
Last updated