Hi,
I'm creating repair invoices with API with line items which aren't in Items. They're computer parts I get from a supplier's API, and it's literally thousands of them, so I'm just adding them ad-hoc, with just SKU, name, description, tax id and rate.
Recently, the accounts asked for a report which would show purchase_rate for the items. I see that the parameter is there, with no value, when I GET the invoice, but so far I didn't find a way to save it.
Could someone please confirm it's a read-only field loaded from Items via item_id?
I see two other ways to achieve what I need:
- adding an Items custom field shown in transactions but hidden in PDF. This is not very convenient as these repair invoices are just a part of our business.
- always create an Item, or search if exists, then use it via item_id. This is ultimately a correct solution, but also much more complicated, with higher API counts/waits needed for an invoice creation.