Get all spare-parts

Prev Next
Get
/v2/inventory/sparePartDefinitions

Retrieves the list of spare-parts definitions. This method returns 100 items at a time; to retrieve more items, multiple requests with an incremental page number must be performed.
Required permissions: READ_SPARE_PART.

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

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

Query parameters
searchText
string

The search text used to filter objects (requires searchField parameter).
Use '*' for variants: starts with (foo*), contains (*foo*) or ends with (*foo).

Maximum1
Example*foo*
searchField
string

The name of the field in which to verify the search text.

Maximum-1
Examplename
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
Responses
200

Successful operation.

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

The spare-part object identifier.

name
string

The spare-part name.

code
string

The spare-part unique code.

description
string

The spare-part description text.

technicalDescription
string

The spare-part technical description text.

imageUrls
Array of string

The list of HTTPS image URLs of this spare-part.

string
price
number

The spare-part price.

categoryId
string

The id of the category this spare-part belongs to.

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