Stocks
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
stockIdstringRequiredExample:
(Required)
<integer>Responses
200
OK
application/json
400
Bad Request
application/json
Responseobject
401
Unauthorized
application/json
500
Internal Server Error
application/json
get
/V1/inventory/stocks/{stockId}Save Stock data
Path parameters
stockIdstringRequiredExample:
(Required)
<string>Header parameters
Content-TypestringOptionalExample:
application/jsonBody
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
200
OK
application/json
400
Bad Request
application/json
Responseobject
401
Unauthorized
application/json
500
Internal Server Error
application/json
put
/V1/inventory/stocks/{stockId}Delete the Stock data by stockId. If stock is not found do nothing
Path parameters
stockIdstringRequiredExample:
(Required)
<integer>Responses
400
Bad Request
application/json
Responseobject
401
Unauthorized
application/json
500
Internal Server Error
application/json
delete
/V1/inventory/stocks/{stockId}Find Stocks by given SearchCriteria SearchCriteria is not required because load all stocks is useful case
Query parameters
searchCriteria[filterGroups][0][filters][0][field]stringOptionalExample:
Field
<string>searchCriteria[filterGroups][0][filters][0][value]stringOptionalExample:
Value
<string>searchCriteria[filterGroups][0][filters][0][conditionType]stringOptionalExample:
Condition type
<string>searchCriteria[sortOrders][0][field]stringOptionalExample:
Sorting field.
<string>searchCriteria[sortOrders][0][direction]stringOptionalExample:
Sorting direction.
<string>searchCriteria[pageSize]stringOptionalExample:
Page size.
<integer>searchCriteria[currentPage]stringOptionalExample:
Current page.
<integer>Responses
200
OK
application/json
401
Unauthorized
application/json
500
Internal Server Error
application/json
get
/V1/inventory/stocksSave Stock data
Header parameters
Content-TypestringOptionalExample:
application/jsonBody
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
200
OK
application/json
400
Bad Request
application/json
Responseobject
401
Unauthorized
application/json
500
Internal Server Error
application/json
post
/V1/inventory/stocks