Discussions
Job Materials API - Distinguish between *actual* materials, and just labour or invoice items
about 3 years ago by Stephen Wrathall
I've been querying the Job Materials API endpoint, and it's returning a lot more than just Job Materials. I'm getting records back that include things like:
- Callout charge - $50
- Labour to fix the heater - $150
- Etc.
I'm hoping to be able to filter out those above kind of items, and instead only focus on actual materials used in the job. E.g. 1m of 50mm pipe, Kitchen sink, door latch, etc.
Is there any programmatic way of distinguishing between physical materials, and the above items which appear to just be anything you'd add to an invoice?
I did notice that on the Materials API endpoint, there's an attribute called "item_is_inventoried" which can be "0" or "1". Although I'm not sure if that would work for my purpose.
Thanks in advance!