Mutation
mutation ConvertStandardItemToStockItem($request: ConvertStandardItemToStockItemCommandRequestInput!) {
ConvertStandardItemToStockItem(request: $request) {
itemId
}
}Variables
{
"request": {
"itemId": "id",
"stockManagement": {
"hasShelfLifeExpirationDate": true,
"hasBatch": true,
"serialNumberTrackingType": "NONE",
"divisibilityType": "NONE"
}
}
}Response
{
"data": {
"ConvertStandardItemToStockItem": {
"itemId": "id"
}
}
}Mutations
ConvertStandardItemToStockItem
Converts an existing standard item into a stock item, so that its stock is managed in warehouses from then on. The full stock management configuration is mandatory, because the item has no such configuration to fall back on yet. Use POST /v2/items//standard-items/convert for the opposite direction.
If a request with this mutation’s Idempotency-Key was already completed, the response’s extensions contains an idempotency.{responseName} entry with wasReplayed: true.
MUTATION
ConvertStandardItemToStockItem(request: ConvertStandardItemToStockItemCommandRequestInput!): ConvertStandardItemToStockItemCommandResponse!Arguments
request
itemId
ID!
Unique ID of the converted item. Unchanged - a stock item keeps the ID it had as a standard item.
Mutation
mutation ConvertStandardItemToStockItem($request: ConvertStandardItemToStockItemCommandRequestInput!) {
ConvertStandardItemToStockItem(request: $request) {
itemId
}
}Variables
{
"request": {
"itemId": "id",
"stockManagement": {
"hasShelfLifeExpirationDate": true,
"hasBatch": true,
"serialNumberTrackingType": "NONE",
"divisibilityType": "NONE"
}
}
}Response
{
"data": {
"ConvertStandardItemToStockItem": {
"itemId": "id"
}
}
}Was this page helpful?