post https://secure.fleetio.com/api/v1/inventory_journal_entries
This endpoint provides the ability to adjust parts inventory.
part_location_detail_id
is available from GET /parts/:id
endpoint. The id
attribute for parts_locations
will provide that value.
// GET /parts/:id
{
"id": 766443,
...
"part_locations": [
{
"id": 4913392, // <- this is the part_location_detail_id
"part_location_name": "Austin HQ",
...
}
]
}
Advanced Inventory Valuation Method (LIFO/FIFO)
If your account has been setup to use LIFO/FIFO, you must provide
unit_cost_cents
value for any positive inventory change. You can find additional information here