Search returns

Search returns for a client. Filter results via query params. The maximum recommended call frequency for retrieving data from this endpoint is 2 requests per second.

Authentication

AuthorizationBasic

Basic authentication of the form Basic <base64(username:password)>.

Headers

tokenstringRequired

The Authentication token obtained from the get_token route.

clientintegerRequired
The id of the client making the request.

Query parameters

openbooleanOptional
Setting to true will limit results to Returns considered to be in an open state. Setting to false will produce closed state Returns. Open Returns are Returns that are NOT in a terminal state. Terminal states are considered to be `Merchant Refunded`, `Merchant Rejected`, or `Customer Cancelled`. NOTE: This parameter is overridden by the "state" parameter if provided
statelist of enumsOptional

Comma delimited list of Return states to filter by. e.g: ?state=Pending Authorization,Pending Confirmation

marketplacesstringOptional
comma delimited list of marketplace IDs to filter results by
created-beforedatetimeOptional

filter results by returns created before date-time (ISO 8601) | if timezone is not specified default is EST/EDT.

created-afterdatetimeOptional

filter results by returns created after date-time (ISO 8601) | if timezone is not specified default is EST/EDT.

refreshed-beforedatetimeOptional

filter results by returns refreshed before date-time (ISO 8601) | if timezone is not specified default is EST/EDT.

refreshed-afterdatetimeOptional

filter results by returns refreshed after date-time (ISO 8601) | if timezone is not specified default is EST/EDT.

merchant-return-numberstringOptional

filter results by merchant return number (RMA)

limitdoubleOptional

THe max number of returns in the response (50-200). Default is 100.

cursorstringOptional
Cursor for the next page of returns.

Response

List of Order Returns
returnslist of objects
next_cursorstring
The cursor to get the next page of returns.

Errors

400
Bad Request Error