API Reference

Available queries

BatchNumberLineItem - Returns a single Line Item linked to a batch based on the id provided

query {
  BatchNumberLineItem (id: 100012) {
    id
    quantity
    line_item
    batch_number
  }
}

BatchNumberLineItems - Returns a list of Line Item linked to batches based on the filter define

query {
  BatchNumberLineItems {
    data {
      id
      quantity
      line_item
      batch_number
    }
  }
}


Available fields

id - Int
Unique identifier of the Batch inventory log
quantity - Float
quantity in the document for the batch
line_item - LineItem
Line items data
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 }
line_item_id
Example:{ "column": "LINE_ITEM_ID", "operator": "EQ", "value": 100101 }

Sorting

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