Skip to main content
Question

Trying to create invoice on quickbooks on webhook and getting error

  • August 27, 2026
  • 3 replies
  • 29 views

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_id value ("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_id from 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.

3 replies

SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • August 28, 2026

Hi and welcome to the Community, ​@Eliana0809! 😁

Does the ID (111) match the ID for the product/service in QuickBooks, or have you not been able to confirm that yet?

Can you share a screenshot of your QuickBooks Create Invoice action, specifically the line items section and the Product/Service field? That'll help us see what has been mapped and whether something there is causing the error.


SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • September 18, 2026

Hey ​@Eliana0809! 👋 How are things going with this? 

Let us know if you sorted it, or could do with some more help here.


Dev.wondertap

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_id value ("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_id from 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.

Hey @Eliana0809! Adding to the AI note above: if you're sure ID "111" exists in QuickBooks, the issue often comes from passing "111" as a simple string instead of an array element within the Line Items structure in Webhooks by Zapier. 

Try testing a Find Item step right before your create action, or ensure your JSON payload nests line items inside square brackets `[ {"ItemRef": {"value": "111"}} ]`. 

If you want me to take a quick look at your Webhook setup/payload structure to get it working, --Details removed by moderator--!

 

This post has been edited by a moderator to remove solicitation as per our Community Code of Conduct. Please keep conversations publicly visible in the community so that everyone can benefit from any solutions shared.