[1.23.0] Shipment search and sorting



Warning!

The resource is available only in the following countries: PL, IT



On this page

Shipment list

Search for shipments is done by specifying one or more of the following criteria

Attention! Debit clients

We don't return rates for debit customers. The rate attribute shall take the value null.



GET /v1/organizations/:organization_id/shipments

Search criteria

Parameter

Type

Description

Example

Availability

Parameter

Type

Description

Example

Availability

id

Integer

Array

Searches for shipments with given id.

Searches for shipments with given ids.

?id=1

?id=1,2

PL, IT

created_at

Date

Searches for shipments created on the day of the parameter.

?created_at=2016-01-07

PL, IT

created_at_gteq

Time

Searches for shipments created after given date.

Date can be in ISO 8601 format or similar, or a timestamp.

?created_at_gteq=2016-01-01T13:10+01:00

?created_at_gteq=1451650200

PL, IT

created_at_lteq

Time

Searches for shipments created before given date.

Date can be in ISO 8601 format or similar, or a timestamp.

?created_at_lteq=2016-01-01T13:10+01:00

?created_at_lteq=1451650200

PL, IT

tracking_number

String

Searches for shipments with tracking number matching the string exactly

?tracking_number=630000328531876219900746

PL, IT

tracking_number_cont

String

Searches for shipments with the tracking number, including the given string

?tracking_number_cont=5318

PL, IT

status

String

Array

Searches for shipments with given statuses.

Searches for shipments with statuses matching any of the given statuses.

?status=confirmed

?status=confirmed,offers_prepared

PL, IT

service

String

Array

Searches for shipments with given service.

Searches for shipments with services matching any of the given services.

?service=inpost_courier_express_1700

?service=inpost_locker_standard,inpost_courier_standard

PL, IT

carrier

String

Array

Searches for shipments with given carrier.

Searches for shipments with carriers matching any of the given carriers.

?carrier=InPost%20Kurier

?carrier=InPost%20Kurier,InPost%20Paczkomaty

PL, IT

insurance_amount_gteq

Number

Searches for shipments with insurance equal or higher to the given number

?insurance_amount_gteq=50

PL, IT

insurance_amount_lteq

Number

Searches for shipments with insurance equal or lower to the given number

?insurance_amount_lteq=100

PL, IT

cod_amount_gteq

Number

Searches for shipments with cod equal or higher to the given number

?cod_amount_gteq=50

PL

cod_amount_lteq

Number

Searches for shipments with cod equal or lower to the given number

?cod_amount_lteq=100

PL

receiver_name

String

Searches for shipments for which the receiver first_name, last_name or company_name starts with the given string

?receiver_name=smith

PL, IT

receiver_address

String

Searches for shipments for which receiver address starts with the given string

?receiver_address=Zaw

PL, IT

receiver_city

String

Searches for shipments with receivers city matching the given string

?receiver_city=Kraków

PL, IT

receiver_post_code

String

Searches for shipments which receivers postal code starts with the given string

?receiver_post_code=30-442

PL, IT

receiver_country_code

String

Searches for shipments with receivers country code matching the given string

?receiver_country_code=PL

PL, IT

receiver_phone

String

Searches for shipments with receivers telephone number matching the given string

?receiver_phone=123123123

PL, IT

receiver_email

String

Searches for shipments which receivers email starts with the given string

?receiver_email=devnull@inpost.pl

PL, IT

sender_name

String

Searches for shipments for which the sender first_name, last_name or company_name starts with the given string

?sender_name=smith

PL, IT

sender_address

String

Searches for shipments for which sender address starts with the given string

?sender_address=Zaw

PL, IT

sender_city

String

Searches for shipments with sender city matching the given string

?sender_city=Kraków

PL, IT

sender_post_code

String

Searches for shipments which sender postal code starts with the given string

?sender_post_code=30-442

PL, IT

sender_country_code

String

Searches for shipments with sender country code matching the given string

?sender_country_code=PL

PL, IT

sender_phone

String

Searches for shipments with sender telephone number matching the given string

?sender_phone=123123123

PL, IT

sender_email

String

Searches for shipments which sender email starts with the given string

?sender_email=devnull@inpost.pl

PL, IT

monitoring 

String

Searches for shipments for which the status is on the list:

dispatched_by_sender, collected_from_sender, taken_by_courier, adopted_at_source_branch, sent_from_source_branch,
adopted_at_sorting_center, sent_from_sorting_center, adopted_at_target_branch, out_for_delivery ready_to_pickup,
ready_to_pickup, pickup_reminder_sent, delivered, pickup_time_expired, avizo, claimed, returned_to_sender, canceled,
other, dispatched_by_sender_to_pok, out_for_delivery_to_address, pickup_reminder_sent_address, rejected_by_receiver,
undelivered_wrong_address, undelivered_incomplete_address, undelivered_unknown_receiver, undelivered_cod_cash_receiver,
taken_by_courier_from_pok, undelivered, return_pickup_confirmation_to_sender, ready_to_pickup_from_branch,
delay_in_delivery, redirect_to_box, canceled_redirect_to_box, readdressed, undelivered_no_mailbox, oversized,
undelivered_lack_of_access_letterbox, ready_to_pickup_from_pok, ready_to_pickup_from_pok_registered, undelivered_not_live_address

?monitoring=true

PL, IT

external_customer_id 

String

Searches for shipments created by a broker for which the id is identical to the given string

?external_customer_id=broker10

PL, IT

sending_method

String

Array

Searches for shipments with given sending method.

Searches for shipments with statuses matching any of the given sending methods.

?sending_method =parcel_locker

?sending_method =parcel_locker,dispatch_order

PL, IT

only_choice_active_offers

Boolean

Searches for shipments that have the only_choice_of_offer  flag set to the boolean value and offers not expired.

?only_choice_active_offers=true

PL, IT

offers_status

String

Searches for shipments with given offer status

?offers_status=available

PL, IT

Result sorting

Search result sorting can be facilitated using the sort_by attribute, which can take the following values:

sort_by value

Description

Example

Availability

sort_by value

Description

Example

Availability

id

Sorts by id

?sort_by=id

PL, IT

created_at

Sorts by creation date and time

?sort_by=created_at

PL, IT

tracking_number

Sorts by tracking number

?sort_by=tracking_number

PL, IT

service

Sorts by service

?sort_by=service

PL, IT

status

Sorts by status

?sort_by=status

PL, IT

insurance_amount

Sorts by insurance amount

?sort_by=insurance_amount

PL, IT

cod_amount

Sorts by cod amount

?sort_by=cod_amount

PL, IT

external_customer_id 

Sorts by brokers external customer id

?sort_by=external_customer_id

PL, IT

Sort ordering can be set using sort_order  attribute. By default, the results are sorted in descending order using the created_at field.

sort_order value

Description

Example

Availability

sort_order value

Description

Example

Availability

asc

Sorts in ascending order

?sort_order=asc&sort_by=insurance_amount

PL, IT

desc

Sorts in descending order

?sort_order=desc&sort_by=status

PL, IT