Skip to content

RT11 - List returns

Request

Call Frequency
Maximum usage: Every 5 minutes
Pagination

This resource supports seek pagination (see documentation)

Sort fields

sort field can have the following values:

  • date_created (Default) - Sort by return date creation (asc by default)

Security
Shop-API-Key(Required scopes: ROLE_PARTNER_ORDER_RETURN_READROLE_SHOP_ADMIN)
Query
return_idArray of strings

Return id for filtering. This parameter can be supplied multiple times (return_id=58fd00d1-4ea4-453e-9a56-ec28c5c156ea&return_id=3071c162-dcd9-414b-a39d-ac3165f29453...).

return_stateArray of strings

Return state for filtering. This parameter can be supplied multiple times (return_state=WAITING_ACCEPTANCE&return_state=IN_PROGRESS...).

return_creation_date_fromstring, (date-time)

Filter returns with a creation date after the given date.

return_creation_date_tostring, (date-time)

Filter returns with a creation date before the given date.

return_last_updated_fromstring, (date-time)

Filter returns updated after the given date.

return_last_updated_tostring, (date-time)

Filter returns updated before the given date.

order_commercial_idArray of strings

Order commercial id for filtering. This parameter can be supplied multiple times (order_commercial_id=OR01-A&order_commercial_id=OR02-A...).

order_line_idArray of strings

Order line id for filtering. This parameter can be supplied multiple times (order_line_id=OR01-A-1&order_line_id=OR02-A-1...).

return_rmaArray of strings

Return RMA for filtering. This parameter can be supplied multiple times (return_rma=RMA-1&return_rma=RMA-2...).

customer_idArray of strings

Customer id for filtering. This parameter can be supplied multiple times (customer_id=id1&customer_id=id2...).

shop_idinteger, (int64)

Use this parameter when your user has access to several shops. If not specified, the shop_id from your default shop will be used.

curl -i -X GET \
  'https://your-instance.mirakl.net/api/returns?return_id=string&return_state=string&return_creation_date_from=2019-08-24T14%3A15%3A22Z&return_creation_date_to=2019-08-24T14%3A15%3A22Z&return_last_updated_from=2019-08-24T14%3A15%3A22Z&return_last_updated_to=2019-08-24T14%3A15%3A22Z&order_commercial_id=string&order_line_id=string&return_rma=string&customer_id=string&shop_id=0' \
  -H 'Authorization: YOUR_API_KEY_HERE'

Responses

OK

Bodyapplication/json
dataArray of objectsrequired

Page of data

next_page_tokenstring

Token to access the next page. Absent if the current page is the last one.

previous_page_tokenstring

Token to access the previous page. Absent if the current page is the first one.

Response
{ "data": [ { … }, { … } ], "next_page_token": "dGhpcy1pcy1hLWZha2UtcGFnZS10b2tlbi1wbGVhc2UtcmVseS1vbi10aGUtdG9rZW4tcHJvdmlkZWQtYnktdGhlLWFwaS1yZXNwb25zZQo=", "previous_page_token": null }