API Reference

Available queries

BatchNumberInventoryLog - Returns a single inventory log linked to a batch based on the id provided

query {
  BatchNumberInventoryLog (id: 100012) {
    id
    on_hand
    inventory_log
    batch_number
  }
}

BatchNumberInventoryLogs - Returns a list of inventory logs linked to batches based on the filter define

query {
  BatchNumberInventoryLogs {
    data {
      id
      on_hand
      inventory_log
      batch_number
    }
  }
}


Available fields

id - Int
Unique identifier of the Batch inventory log
on_hand - Float
On hand quantity in stocks for the batch
on_hand - String
Name of the variant
inventory_log - InventoryLog
Inventory log linked to this batch
batch_number - BatchNumber
Batch number informations


Filters

You can create filters based on following fields

inventory_log_id
Example:{ "column": "INVENTORY_LOG_ID", "operator": "EQ", "value": 100001 }
batch_number_id
Example:{ "column": "BATCH_NUMBER_ID", "operator": "EQ", "value": 100101 }

Sorting

You can sort data based on following fields : id, on_hand, inventory_log_id, batch_number_id