-
Migrated question from old forum When requesting an Invoice with a shipping cost line item from codat a line item with an itemRef.id = "SHIPPING_ITEM_ID" is returned from QBO, which is correct. However, when attempting to create an invoice via API with an itemRef.id = "SHIPPING_ITEM_ID", Codat seems to not handle this scenario as I get an error back: "Failed to push to Invoice as ItemRef SHIPPING_ITEM_ID is not found." How does one create an Invoice with a shipping cost line item via Codat's API? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This validation error is raised when the item ref does not exist in QBO. To overcome this you would need to retrieve the correct item id using the GET items endpoint: /companies/{companyId}/data/items. From here you should be able to find the correct itemRef.id and use that in the POST invoice request. Let me know how you get on. |
Beta Was this translation helpful? Give feedback.
This validation error is raised when the item ref does not exist in QBO. To overcome this you would need to retrieve the correct item id using the GET items endpoint: /companies/{companyId}/data/items. From here you should be able to find the correct itemRef.id and use that in the POST invoice request.
Let me know how you get on.