[1.23.0] Shipment template searching and sorting



Warning!

Resource available only in the following countries: PL, IT



On this page

Template List

Template search can be performed by specifying one or more of the following criteria.

GET /v1/organizations/:organization_id/shipment_templates

Search criteria

Parameter

Type

Description

Example

Availability

Parameter

Type

Description

Example

Availability

name

String

Searches templates containing the given string in their name.

?name=mag

PL, IT

status

String

Searches templates containing the given string in their status.

?status=suspended

PL, IT

Result sorting

Search results can be sorted using the sort_by  parameter using the following values:

sort_by value

Effect

Example

Availability

sort_by value

Effect

Example

Availability

id

Sorts by id.

?sort_by=id

PL, IT

name

Sorts by name.

?sort_by=name

PL, IT

status

Sorts by status.

?sort_by=status

PL, IT

created_at

Sorts by creation date and time.

?sort_by=created_at

PL, IT

updated_at

Sorts by last update date and time.

?sort_by=updated_at

PL, IT

Sorting can be descending or ascending and is controlled by the sort_order parameter. By default, the sorting order is descending  on the created_at attribute.

sort_order value

Effect

Example

Availability

sort_order value

Effect

Example

Availability

asc

Ascending sorting.

?sort_order=asc&sort_by=id

PL, IT

desc

Descending sorting.

?sort_order=desc&sort_by=id

PL, IT