Get store orders

Prev Next
Get
/v2/inventory/storeOrders

Retrieve the paginated list of store orders assigned to the organization or partner of the logged-in user.
The list can be filtered by status and by creation time range, while the language parameter selects the language used to localize the contents of the orders.

Required permissions: READ_ORDERS.

Security
HTTP
Type bearer
Header parameters
X-Servitly-Tenant
stringRequired

The name of the tenant (e.g. acme).

Query parameters
size
integer

The number of elements to retrieve for the current page.

Minimum1
Example200
page
integer

The page number to retrieve (zero-based).

Minimum0
Example0
sort
string

The sorting criteria based on object properties.

Minimum0
Examplename,ASC
minCreationTimestamp
integer (int64)

Condition to get objects created after a specific timestamp.

Example1578438000000
maxCreationTimestamp
integer (int64)

Condition to get objects created before a specific timestamp.

Example1578438000000
language
string

The language used for data localization (e.g. EN, ES).

Exampleit
status
string

The order status.

Valid values[ "PENDING_ACCEPTANCE", "PENDING_SHIPPING", "SHIPPED", "DELIVERED" ]
Minimum1
Responses
200

Successful operation.

Expand All
object
content
Array of object (StoreOrder)
object
id
string

The order internal identifier.

Example691714310c219b1d691be588
orderNumber
string

The order public number.

ExampleORD-000050
organizationId
string

The id of the organization the order is assigned to.

Example661533adc04f90248aa739a2
parnterId
string

The id of the partner the order is assigned to.

Example661533adc04f90248aa739a2
providerName
string

The name of the organization or partner the order is assigned to.

ExampleACME
buyer
object (OrderBuyer)

The buyer who created the order.

name
string

The name of the buyer entity (customer or partner).

ExampleAbon Metal
code
string

Public, human-readable identifier for the buyer. Unlike "id", which is the immutable internal identifier, "code" is exposed externally and can be modified by clients. Must be unique.

ExampleC000050
email
string (email)

The buyer contact email.

Examplebuyer@example.com
customerId
string

The id of the customer if the buyer is a customer.

Example661fa918281ccf25619dc5cc
partnerId
string

The id of the partner if the buyer is a partner.

Example661fa918281ccf25619dc5cc
items
Array of object (OrderItem)

The list of items included in the order.

object
type
string

The type of the item.

Valid values[ "SPARE_PART" ]
ExampleSPARE_PART
itemId
string

The id of the item (e.g. a spare part).

Example66310cb2d8cab311e86d05d6
name
string

The name of the item.

ExampleBi-metal band saw blade 8 TPI
code
string

The public code of the order item (e.g. spare part serial).

ExampleSP-140506
quantity
integer

The quantity of the item.

Minimum1
Example2
unitPrice
number (double)

The item unit price.

Minimum0
Example14.9
total
number (double)

The total price of the order included items.

Example29.8
installationService
boolean

The flag indicating whether the buyer requests the installation service.

Examplefalse
shippingLocation
object (ShippingLocation)

The location details where the order must be shipped.

name
string

The location name.

ExampleStretford, Mosley Rd
country
string

The location country (e.g. UK).

ExampleUnited Kingdom
city
string

The location city.

ExampleStretford
zipCode
string

The location zip code.

Example23563
address
string

The location address.

ExampleMosley Rd
locationId
string

The location identifier.

Example663372d769e1d1672c7595eb
status
string

The order status.

Valid values[ "PENDING_ACCEPTANCE", "PENDING_SHIPPING", "SHIPPED", "DELIVERED" ]
ExamplePENDING_SHIPPING
lastUpdateTimestamp
integer (int64)

Unix timestamp in milliseconds representing the last order update time.

Example1763120222790
creationTimestamp
integer (int64)

Unix timestamp in milliseconds representing the order creation time.

Example1763120177055
approvalTimestamp
integer (int64)

Unix timestamp in milliseconds representing the order approval time.

Example1763120222790
first
boolean

The flag indicating whether the page is the first one.

last
boolean

The flag indicating whether the last page has been reached.

totalPages
integer

The total number of pages.

totalElements
integer

The total number of elements.

sort
string

The current sorting criteria.

numberOfElements
integer

The number of elements in this page.

size
integer

The requested page size.

number
integer

The number of the page (zero-based).

Minimum0
401

User not authenticated.

object
message
string

The error response.

ExampleUser not authenticated
403

User not authorized.

object
message
string

The error response.

ExampleUser not authorized
404

Resource was not found.

object
message
string

The error response.

ExampleResource not found
429

API call rate limit exceeded.

object
message
string

The error response.

ExampleAPI call rate limit exceeded
500

Internal server error.

object
message
string

The error response.

ExampleInternal Server Error