Search Orders

Search for all Orders placed through your application given certain filter critera.

This endpoint will only return completed orders by default (no carts). However it is possible to use this endpoint as a "Search Carts" endpoint by combining two parameters. If you wish to include IN_PROGRESS orders AKA carts you can set the exclude_in_progress query param to false.

If you want to use order search to only search for IN_PROGRESS orders, that is to say, searching for carts, you can include the the following query in your search body: {"bag_status": "IN_PROGRESS"}. You must still set exclude_in_progress to false in this case.

Search Orders

post
Query parameters
pageinteger · int32OptionalDefault: 1
sizeinteger · int32OptionalDefault: 20
extendedbooleanOptionalDefault: false
exclude_in_progressbooleanOptionalDefault: true
includestringOptional
Header parameters
X-Violet-TokenstringRequired
X-Violet-App-SecretstringRequired
X-Violet-App-Idinteger · int32Required
Body

Order Search Request

user_idinteger · int64Optional

User ID

order_idinteger · int64Optional

Order ID

referral_idstringOptional

Referral ID

bag_idinteger · int64Optional

Bag ID

bag_statusstring · enumOptional

Bag Status

Possible values:
merchant_idinteger · int32Optional

Merchant ID

before_datestring · date-timeOptionalDeprecated

Use date_created:max.

after_datestring · date-timeOptionalDeprecated

Use date_created:min.

app_order_idstringOptional

Order ID in the Channels System

customer_namestringOptional

Full customer name to search by - case insensitive.

customer_emailstringOptional

Customer email to search by - case insensitive.

sku_namestringOptional

Name of an Sku present in the order - case insensitive.

totalinteger · int32Optional

Exact total to search.

statusstring · enumOptional

Order status to search.

Possible values:
sort_bystringOptional

Order property to sort by in camel case.

sort_directionstringOptional

Direction to sort results by.

date_last_modified:minstring · date-timeOptional

Only include orders modified after this date.

Pattern: yyyy-MM-dd'T'HH:mm:ssZ
date_last_modified:maxstring · date-timeOptional

Only include orders modified before this date.

Pattern: yyyy-MM-dd'T'HH:mm:ssZ
date_created:minstring · date-timeOptional

Only include orders created after this date.

Pattern: yyyy-MM-dd'T'HH:mm:ssZ
date_created:maxstring · date-timeOptional

Only include orders created before this date.

Pattern: yyyy-MM-dd'T'HH:mm:ssZ
date_submitted:minstring · date-timeOptional

Only include orders submitted after this date.

Pattern: yyyy-MM-dd'T'HH:mm:ssZ
date_submitted:maxstring · date-timeOptional

Only include orders submitted before this date.

Pattern: yyyy-MM-dd'T'HH:mm:ssZ
Responses
chevron-right
default

default response

application/json
lastbooleanOptional

Boolean indicating if this is the last page

total_pagesinteger · int32Optional

The total count of pages available

total_elementsinteger · int32Optional

The total count of objects available

firstbooleanOptional

Boolean indicating if this is the first page of the response

number_of_elementsinteger · int32Optional

The total number of objects in this specific response

sizeinteger · int32Optional

The page size selected at request time

numberinteger · int32Optional

The page number selected at request time

emptybooleanOptional

Boolean indicating if the response content is empty

next_page_cursorstringOptional

Contains the cursor for the next page. This property will only be used for situations where the API does not support the page number/page size paradigm and it will mutually exclusive with the size/number fields in the response. If this property is returned it must be passed when requesting the next page from the API. Does not apply to endpoints that do not have a next_page_cursor query param documented.

post
/orders/search
default

default response

Last updated

Was this helpful?