POST
/
orders
/
bags
/
search

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

Headers

X-Violet-Token
string
X-Violet-App-Secret
string
X-Violet-App-Id
integer

Query Parameters

page
integer
default: 1
size
integer
default: 20
extended
boolean
default: false
exclude_in_progress
boolean
default: true

Body

application/json

Bag Search Request

merchant_id
integer

Merchant ID

order_id
integer

Order ID

id
integer

Bag ID

external_id
string

Bag External ID

bag_status
enum<string>

Bag Status

Available options:
IN_PROGRESS,
SUBMITTED,
ACCEPTED,
COMPLETED,
PARTIALLY_REFUNDED,
REFUNDED,
REJECTED,
CANCELED,
BACKORDERED
app_order_id
string

Order ID in the Channels System

before_date
string
deprecated

Use date_last_modified:max.

after_date
string
deprecated

Use date_last_modified:min.

before_date_created
string
deprecated

Use date_created:max.

after_date_created
string
deprecated

Use date_created:min.

sort_by
string

Property to sort by in camelCase

sort_direction
string

Direction to sort by

date_last_modified:min
string

Only include bags modified after this date.

date_last_modified:max
string

Only include bags modified before this date.

date_created:min
string

Only include bags created after this date.

date_created:max
string

Only include bags created before this date.

Response

default - application/json
content
object[]

The actual content of the response; A list of the result objects

last
boolean

Boolean indicating if this is the last page

total_pages
integer

The total count of pages available

total_elements
integer

The total count of objects available

first
boolean

Boolean indicating if this is the first page of the response

number_of_elements
integer

The total number of objects in this specific response

size
integer

The page size selected at request time

number
integer

The page number selected at request time

empty
boolean

Boolean indicating if the response content is empty

next_page_cursor
string

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.

pageable
object

Violet wrapper for springframework pageable

sort
object

Violet Wrapper for springframework sort