ReDoc documentation
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
200 Success.
400 Bad Request
401 Unauthorized
Unexpected error
{- "stock_id": 0,
- "name": "string",
- "extension_attributes": {
- "sales_channels": [
- {
- "type": "string",
- "code": "string",
- "extension_attributes": { }
}
]
}
}
Delete the Stock data by stockId. If stock is not found do nothing
400 Bad Request
401 Unauthorized
Unexpected error
{- "message": "string",
- "errors": [
- {
- "message": "string",
- "parameters": [
- {
- "resources": "string",
- "fieldName": "string",
- "fieldValue": "string"
}
]
}
], - "code": 0,
- "parameters": [
- {
- "resources": "string",
- "fieldName": "string",
- "fieldValue": "string"
}
], - "trace": "string"
}
Save Stock data
required | object (inventory-api-data-stock-interface) Represents product aggregation among some different physical storages (in technical words, it is an index) Used fully qualified namespaces in annotations for proper work of WebApi request parser |
200 Success.
400 Bad Request
401 Unauthorized
Unexpected error
{- "stock": {
- "stock_id": 0,
- "name": "string",
- "extension_attributes": {
- "sales_channels": [
- {
- "type": "string",
- "code": "string",
- "extension_attributes": { }
}
]
}
}
}
0