What this error means:
The "Invalid Reference Id" error indicates that the line_item_id value being passed to QuickBooks Online doesn't match a valid product or service in your QuickBooks account. This typically occurs when the item reference ID is incorrect, missing, or doesn't correspond to an actual product/service set up in QuickBooks Online.
How to fix it:
- Verify that the
line_item_idvalue ("111" in your case) corresponds to a valid product/service item in QuickBooks Online. The ID must be the unique identifier QuickBooks assigns to the item, not the item name or description. - Check that the product/service exists in QuickBooks Online and is marked as available for sales transactions.
- If you're mapping the
line_item_idfrom a previous step (the WebHookCLIAPI step), ensure that step is actually providing a valid QuickBooks item ID. You may need to add a "Find Product(s)" action to search for and retrieve the correct product ID from QuickBooks before creating the invoice. - As a workaround, try copying the product's SKU from QuickBooks Online and using that value instead of the line item ID.
- Test the action with sample data to confirm the item reference is being passed correctly before running the full Zap.

