Inventory__receive Stock
Requires a signed-in staff user. Needs the `inventory__Stock` `update` permission. Send the `x-tenant` header (the gateway sets it from your API key).
inventory__receiveStock(input: ReceiveStockInput!): InventoryStock!Requires a signed-in staff user. Needs the inventory__Stock update permission. Send the x-tenant header (the gateway sets it from your API key).
Arguments
input*Returns
- inventory__receiveStock
_id*ID!allowBackorder*Boolean!archivedAt?DateTimeA date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
available*Int!createdAt?DateTimeA date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
lifecycleStatus*InventoryStockLifecycleStatus!ACTIVEARCHIVEDlowStockThreshold*Int!onHand*Int!productId*ID!reserved*Int!sku?Stringstatus*InventoryStockStatus!BACKORDERIN_STOCKLOW_STOCKNOT_TRACKEDOUT_OF_STOCKtenant*String!trackInventory*Boolean!updatedAt?DateTimeA date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
variantKey?Stringmutation Inventory__receiveStock($input: ReceiveStockInput!) { inventory__receiveStock(input: $input) { _id allowBackorder archivedAt available createdAt lifecycleStatus lowStockThreshold onHand }}{ "input": { "productId": "1", "quantity": 10 }}{ "data": { "inventory__receiveStock": { "_id": "1", "allowBackorder": true, "archivedAt": "<DateTime>", "available": 10, "createdAt": "<DateTime>", "lifecycleStatus": "ACTIVE", "lowStockThreshold": 10, "onHand": 10 } }}Inventory__load Demo Products MUTATION
Requires a signed-in staff user. Needs the `inventory__Product` `create` permission. Send the `x-tenant` header (the gateway sets it from your API key).
Inventory__remove Collection MUTATION
Collection will delete on which tenant user has access to. Requires a signed-in staff user. Needs the `inventory__Collection` `delete` permission. Send the `x-tenant` header (the gateway sets it from your API key).