Skip to main content
GET
Retrieve a list of returns

Authorizations

Authorization
string
header
required

Basic Authentication using API key and secrets is currently the main authentication mechanism.

Query Parameters

cursor
string

The cursor query string is used as the pivot value to filter results. If no value is provided, the first page of results will be returned. To get this value, you must encode the offset, reverse and position into a base64 string.

There are 3 possible parameters to encode:

  • o: Offset
  • r: Reverse
  • p: Position

For example, r=1&p=300 encoded as a base64 string would be cj0xJnA9MzAw. The query string would then be cursor=cj0xJnA9MzAw.

Example:

"cj0xJnA9MzAw"

from_date
string
required

Excludes all returns before this datetime

Example:

"2022-04-06 00:00:00"

to_date
string
required

Excludes all returns after this datetime

Example:

"2022-04-07 00:00:00"

parent_parcel_status
enum<string>

Search for returns with this parent status

Available options:
ready-to-send,
announced,
to-sorting,
delayed,
sorted,
unsorted,
sorting,
delivery-failed,
delivery-forced,
delivered,
awaiting-customer-pickup,
announced-uncollected,
collect-error,
unsorted2,
undeliverable,
shipment-on-route,
driver-on-route,
picked-up-by-driver,
collected-by-customer,
no-label,
announcing,
cancelling-upstream,
cancelling,
cancelled,
cancelled-upstream,
unknown,
announcement-failed,
at-customs,
at-sorting-centre,
refused-by-recipient,
returned-to-sender,
delivery-method-changed,
delivery-date-changed,
delivery-address-changed,
exception,
address-invalid
Example:

"announced"

page_size
number

Refers to the number of items per page

Required range: 1 <= x <= 40
Example:

10

Response

200 - application/json

OK

next
string

A cursor-based pagination url to go forward

previous
string

A cursor-based pagination url to go backwards

data
Return Object · object[]