Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.firstresonance.io/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Scrap, transfer, or recount a PartInventory row. Use case group: Manage Supply Chain

Mutation

mutation AdjustInventory($input: InventoryAdjustmentInput!) {
  adjustInventory(input: $input) {
    partInventory { id quantity state location { id name } }
  }
}

Variables

{
  "input": {
    "partInventoryId": 12345,
    "adjustmentType": "scrap",
    "quantity": 5,
    "reason": "Failed inspection"
  }
}

Sample response

{
  "data": {
    "adjustInventory": {
      "partInventory": { "id": 12345, "quantity": 95, "state": "available", "location": { "id": 4, "name": "WH-Receiving" } }
    }
  }
}

Notes

adjustmentType accepts scrap, transfer, recount. For transfer, also pass targetLocationId.