Stocks

inventory Api Stock Repository V1Get Get

get

Get Stock data by given stockId. If you want to create plugin on get method, also you need to create separate plugin on getList method, because entity loading way is different for these methods

Path parameters
stockIdstringRequired

(Required)

Example: <integer>
Responses
400

Bad Request

application/json
Responseobject
get
/V1/inventory/stocks/{stockId}

inventory Api Stock Repository V1Save Put

put

Save Stock data

Path parameters
stockIdstringRequired

(Required)

Example: <string>
Header parameters
Content-TypestringOptionalExample: application/json
Body
objectOptionalExample: {"stock":{"stock_id":-88693904,"name":"est proident ut laboris adipisicing","extension_attributes":{"sales_channels":[{"type":"mollit Ut tempor occaecat","code":"in nisi dolor","extension_attributes":{"value":"<Error: Too many levels of nesting to fake this schema>"}},{"type":"mollit nostrud","code":"minim sed","extension_attributes":{"value":"<Error: Too many levels of nesting to fake this schema>"}}]}}}
Responses
400

Bad Request

application/json
Responseobject
put
/V1/inventory/stocks/{stockId}

inventory Api Stock Repository V1Delete By Id Delete

delete

Delete the Stock data by stockId. If stock is not found do nothing

Path parameters
stockIdstringRequired

(Required)

Example: <integer>
Responses
400

Bad Request

application/json
Responseobject
delete
/V1/inventory/stocks/{stockId}

inventory Api Stock Repository V1Get List Get

get

Find Stocks by given SearchCriteria SearchCriteria is not required because load all stocks is useful case

Query parameters
searchCriteria[filterGroups][0][filters][0][field]stringOptional

Field

Example: <string>
searchCriteria[filterGroups][0][filters][0][value]stringOptional

Value

Example: <string>
searchCriteria[filterGroups][0][filters][0][conditionType]stringOptional

Condition type

Example: <string>
searchCriteria[sortOrders][0][field]stringOptional

Sorting field.

Example: <string>
searchCriteria[sortOrders][0][direction]stringOptional

Sorting direction.

Example: <string>
searchCriteria[pageSize]stringOptional

Page size.

Example: <integer>
searchCriteria[currentPage]stringOptional

Current page.

Example: <integer>
Responses
get
/V1/inventory/stocks

inventory Api Stock Repository V1Save Post

post

Save Stock data

Header parameters
Content-TypestringOptionalExample: application/json
Body
objectOptionalExample: {"stock":{"stock_id":-88693904,"name":"est proident ut laboris adipisicing","extension_attributes":{"sales_channels":[{"type":"mollit Ut tempor occaecat","code":"in nisi dolor","extension_attributes":{"value":"<Error: Too many levels of nesting to fake this schema>"}},{"type":"mollit nostrud","code":"minim sed","extension_attributes":{"value":"<Error: Too many levels of nesting to fake this schema>"}}]}}}
Responses
400

Bad Request

application/json
Responseobject
post
/V1/inventory/stocks