Zoho Books Create bill API Error

Zoho Books Create bill API Error

When I try to create a bill using Zoho Books API and the purchase orders I fetch from Zoho Books API, I receive the following error:

{       'code': 4198,       'message': 'There are no items in this purchase order to be billed.' }

However, I can create a bill successfully using the same purchase order on the website. Can you tell me how to resolve this issue?



My Post Data

{
"vendor_id": "408936000000042177",
"date": "2023-05-17",
"bill_number": "148745004389412558073334539991956590882",
"purchaseorder_ids": ["408936000000067376", "408936000000068055", "408936000000068043", "408936000000068031", "408936000000066213", "408936000000060696", "408936000000066201", "408936000000066189", "408936000000060684", "408936000000066177", "408936000000066165", "408936000000068019", "408936000000067364", "408936000000060672", "408936000000067352", "408936000000068007", "408936000000059995", "408936000000060660", "408936000000066153", "408936000000059983", "408936000000060648", "408936000000059971", "408936000000066141", "408936000000060636", "408936000000059959"],
"entity_type": "bill",
"line_items": [{
"purchaseorder_item_id": "408936000000067376",
"item_id": "408936000000049901",
"name": "test123",
"quantity": 0.0,
"rate": 12.0
}, {
"purchaseorder_item_id": "408936000000068055",
"item_id": "408936000000049901",
"name": "test123",
"quantity": 0.0,
"rate": 12.0
}, {
"purchaseorder_item_id": "408936000000068043",
"item_id": "408936000000049883",
"name": "Test Product",
"quantity": 1.0,
"rate": 223.0
}, {
"purchaseorder_item_id": "408936000000068031",
"item_id": "408936000000049883",
"name": "Test Product",
"quantity": 1.0,
"rate": 223.0
}, {
"purchaseorder_item_id": "408936000000066213",
"item_id": "408936000000049883",
"name": "Test Product",
"quantity": 1.0,
"rate": 223.0
}, {
"purchaseorder_item_id": "408936000000060696",
"item_id": "408936000000049883",
"name": "Test Product",
"quantity": 1.0,
"rate": 223.0
}, {
"purchaseorder_item_id": "408936000000066201",
"item_id": "408936000000049883",
"name": "Test Product",
"quantity": 1.0,
"rate": 223.0
}, {
"purchaseorder_item_id": "408936000000066189",
"item_id": "408936000000049883",
"name": "Test Product",
"quantity": 1.0,
"rate": 223.0
}, {
"purchaseorder_item_id": "408936000000060684",
"item_id": "408936000000049883",
"name": "Test Product",
"quantity": 1.0,
"rate": 223.0
}, {
"purchaseorder_item_id": "408936000000066177",
"item_id": "408936000000049883",
"name": "Test Product",
"quantity": 1.0,
"rate": 223.0
}, {
"purchaseorder_item_id": "408936000000066165",
"item_id": "408936000000049883",
"name": "Test Product",
"quantity": 1.0,
"rate": 223.0
}, {
"purchaseorder_item_id": "408936000000068019",
"item_id": "408936000000049883",
"name": "Test Product",
"quantity": 1.0,
"rate": 223.0
}, {
"purchaseorder_item_id": "408936000000067364",
"item_id": "408936000000049883",
"name": "Test Product",
"quantity": 1.0,
"rate": 223.0
}, {
"purchaseorder_item_id": "408936000000060672",
"item_id": "408936000000049901",
"name": "test123",
"quantity": 0.0,
"rate": 12.0
}, {
"purchaseorder_item_id": "408936000000067352",
"item_id": "408936000000049883",
"name": "Test Product",
"quantity": 1.0,
"rate": 223.0
}, {
"purchaseorder_item_id": "408936000000068007",
"item_id": "408936000000049883",
"name": "Test Product",
"quantity": 1.0,
"rate": 223.0
}, {
"purchaseorder_item_id": "408936000000059995",
"item_id": "408936000000049883",
"name": "Test Product",
"quantity": 1.0,
"rate": 223.0
}, {
"purchaseorder_item_id": "408936000000060660",
"item_id": "408936000000049883",
"name": "Test Product",
"quantity": 1.0,
"rate": 223.0
}, {
"purchaseorder_item_id": "408936000000066153",
"item_id": "408936000000049901",
"name": "test123",
"quantity": 0.0,
"rate": 12.0
}, {
"purchaseorder_item_id": "408936000000059983",
"item_id": "408936000000049883",
"name": "Test Product",
"quantity": 1.0,
"rate": 223.0
}, {
"purchaseorder_item_id": "408936000000060648",
"item_id": "408936000000049901",
"name": "test123",
"quantity": 0.0,
"rate": 12.0
}, {
"purchaseorder_item_id": "408936000000059971",
"item_id": "408936000000049883",
"name": "Test Product",
"quantity": 1.0,
"rate": 223.0
}, {
"purchaseorder_item_id": "408936000000066141",
"item_id": "408936000000049883",
"name": "Test Product",
"quantity": 1.0,
"rate": 223.0
}, {
"purchaseorder_item_id": "408936000000060636",
"item_id": "408936000000049901",
"name": "test123",
"quantity": 0.0,
"rate": 12.0
}, {
"purchaseorder_item_id": "408936000000059959",
"item_id": "408936000000049883",
"name": "Test Product",
"quantity": 1.0,
"rate": 223.0
}]
}


    • Recent Topics

    • How to follow up a member in a meeting?

      Hello, I make weekly meeting online with a lot of people. I want(I've been using calendly to do it). I want to do a follow-up to it. I want to send messages via Zoho-flow to all the member that participated in the meeting. How can I do it?
    • Setting Delays in Invoice Reminder Flow

      I am currently working on a flow that sends reminders for unpaid invoices. The flow is designed to delay actions until specific intervals before the due date: A reminder should be sent 7 days before the due date. A second reminder should be sent 3 days
    • Get Sales Orders Related to Inventory Item

      Dear Team, I'm just wondering if there is a way to get a list of all Sales Orders related to a specific Inventory Item. I did search all articles but couldn't find any article that could help.
    • Endpoint Central Cloud Asset Update from Fresh Service

      All, Does anyone use the asset management feature in Fresh Service? I'd like some help on building a flow to update asset attributes in Endpoint Central Cloud based off of an update to that same asset in Fresh Service. The trigger is "asset is updated"
    • Zoho Flow Export to Deluge

      It would be great to take a user built zoho flow and export the entire flow as a deluge script including having multiple connected applications (showing the API connections and webhooks) and different functionality in the other applications interacting
    • Action Iteration/Loop using Zoho Flow

      Trying to use Zoho Flow for automating following Context - A zoho form entry which has image upload field with upto 5 images setting and files are saved into Workdrive. After form is submitted need to create folder based on some fields and move files
    • Zoho Flow - Unable to evaluate formatDate with Zoho Invoice Date Field for Calendar Integration

      Hello Community, I'm trying to automate the creation of all-day events in Zoho Calendar whenever a new invoice is created in Zoho Invoice. I'm using Zoho Flow for this automation. My Goal: When an invoice is created with a specific "Event Date," I want
    • Zoho Inventory Sales Order Items

      I'm trying to build automation using Zoho Flow to add items to a Sales Order. In the automation options for both "create sales order" and "update sales order", The item ID is required. However, when I update the Sales Order, it's just replacing the item
    • Permissions for Azure Devops connection

      I am trying to set up a connection with our Azure DevOps org but it keeps giving me this error. On Azure I should be able to have admin-level access to everything. Can you please point me to which permission this is checking for so I can enable it?
    • Restrict Users access to login into CRM?

      I’m wanting my employees to be able to utilize the Zoho CRM Lookup field within Zoho Forms. For them to use lookup field in Zoho Forms it is my understanding that they need to be licensed for Forms and the CRM. However, I don’t want them to be able to
    • Best way to start zoho inventory with bulk openning stock

      We are already using zoho book since long time for cars trading company. Now to streamline more, would like to import the excel data of closing stock of inventory to zoho inventory and to start on. Since we need to track each VIN (unique vehicle id number)
    • Confused by the distiction between matched and categorized when reconciling a bank statement an how to

      I used to use quickbooks. In quickbooks, it was possible to use the check writing feature to add an expense that was on the bank statement that did not go through the AP and check writing process. I would write a check, assign it a number like etf (for
    • Use Zoho Flow Credits for CRM ‘Actions by Zoho Flow’

      Hello Team, We would like to submit a feature request regarding credit usage for “Actions by Zoho Flow” in Zoho CRM. Use Case: We are Zoho One users and actively use Zoho Flow, where our organization has 52,000 Flow tasks per month. In Zoho CRM, we use
    • Passing the CRM

      Hi, I am hoping someone can help. I have a zoho form that has a CRM lookup field. I was hoping to send this to my publicly to clients via a text message and the form then attaches the signed form back to the custom module. This work absolutely fine when
    • Add Full-Screen Viewing for Quartz Recordings in the Client Interface

      Hi Zoho Team, We would like to request an enhancement to the Zoho Quartz client interface when viewing submitted recordings. Current Limitation: When viewing a Quartz recording from the client (user) interface, there is currently no option to switch the
    • WorkDrive for Excel Add on

      Dear Sir/Madam Have installed Workdrive for Microsoft add on But unable to view the same added in Excel
    • Zoho Calendar s’enrichit avec une intégration à Zoho People et Zoho Cliq

      Les journées de travail ne se déroulent jamais exactement comme prévu. Une conversation informelle devient une séance d’échange d'idées, une absence modifie un planning, et votre agenda se retrouve vite décalé par rapport à la réalité. Chez Zoho Calendar,
    • Holidays

      Hi; For defining Holidays, you need to add logic to handle the year as well as the month & day. We need to be able to enter Holidays for the next year. I need to add a holiday for January 2, 2017, but I can't until January 1st, which is a Sunday and we
    • Zoho public comments are confusing and unnecessary

      Hi, we use zoho desk and have issues with public comments. We started using them because the "Reply" option just seemed very clumsy because of the following reasons: - the top "Reply" button starts what seems to be a regular email, showing the entire
    • Introducing parent-child ticketing in Zoho Desk [Early access]

      Hello Zoho Desk users! We have introduced the parent-child ticketing system to help customer service teams ensure efficient resolution of issues involving multiple, related tickets. You can now combine repetitive and interconnected tickets into parent-child
    • Zoho API - ticket creation - Validation failed for the condition : Ticket Status Info should not be empty

      Hi ! I'm trying to create ticket through Zoho API, and I'm getting a 422 response : "Validation failed for the condition : Ticket Status Info should not be empty" My request looks like this : curl --location 'https://desk.zoho.eu/api/v1/tickets' \ --header
    • How to install Widget in inventory module

      Hi, I am trying to install a app into Sales Order Module related list, however there is no button allow me to do that. May I ask how to install widget to inventory module related list?
    • Create static subforms in Zoho CRM: streamline data entry with pre-defined values

      Last modified on (9 July, 2025): This feature was available in early access and is currently being rolled out to customers in phases. Currently available for users in the the AU, CA, and SA DCs. It will be enabled for the remaining DCs in the next couple
    • Zoho Books Sandbox environment

      Hello. Is there a free sandbox environment for the developers using Zoho Books API? I am working on the Zoho Books add-on and currently not ready to buy a premium service - maybe later when my add-on will start to bring money. Right now I just need a
    • Deleting unwanted ticket replies

      Hello, In a Zoho Desk Ticket thread, sometimes one of the recipients has auto-reply activated. This creates a new message in the Ticket thread that not only pollutes the thread, but most importantly cannot be replied properly because usually auto-reply e-mails don't do "reply all", so the other recipients are not included. I want to delete such a message in the Ticket thread. I searched the help of Zoho Desk, but only found a way to mark as Spam (https://help.zoho.com/portal/kb/articles/marking-support-tickets-as-spam)
    • Desk DMARC forwarding failure for some senders

      I am not receiving important emails into Desk, because of DMARC errors. Here's what's happening: 1. email is sent from customer e.g. john@doe.com, to my email address, e.g info@acme.com 2. email is delivered successfully to info@acme.com (a shared inbox
    • System-generated support email added in CC on “Reply All”

      Hi, I recently set up Zoho Desk for a client and we are trying to prevent the Zoho Desk system-generated support email address (not the mailbox used as the department’s "From address") from being automatically added in CC when agents use “Reply All” on
    • Create & Update Zoho Vault Passwords via Zoho Flow

      Hi Zoho Flow / Zoho Vault Team, We’d like to request an enhancement to the Zoho Vault integration in Zoho Flow. Current Limitation: At the moment, Zoho Flow supports only the following selected Zoho Vault actions, such as: Fetch passwords, Share passwords
    • Managing functions

      Can someone let me know if there are any plans to improve the features for managing functions in CRM? I have lots of functions and finding them is hard. The search only works on the function name and the filter only works on function type. I have created
    • Applying Excess Payments & Conflict Invoices Due to Cancelled Items

      I’m running into several issues that appear to stem from deeper-than-expected overlap between Zoho Finance (Books/Inventory) and Zoho POS. The level of coupling between these systems seems greater than what was originally communicated, and it’s leading
    • Referencing a cell from another sheet

      My workbook has multiple sheets. Each sheet has some calcluated totals in certain cells. The front master sheet has a list of everything that is detailed on the other sheets, with the totals. These could change at any time, so the totals need to be references to the other cell's value, not a fixed number. So on the master sheet, I put in =, then go the other sheet and choose the cell and hit Enter. In regular Excel, this works. But in the Zoho sheet, it doesn't work. I have to edit the result by
    • Please, make writer into a content creation tool

      I'm tired of relying on Google Docs. I'm actually considering moving to ClickUp, but if Writer were a good content creation tool instead of just a word processor, I would finally be able to move all my development within the Zoho ecosystem, rather than
    • Zoho Sheet - Desktop App or Offline

      Since Zoho Docs is now available as a desktop app and offline, when is a realistic ETA for Sheet to have the same functionality?I am surprised this was not laucned at the same time as Docs.
    • HTML Tags added to Reports with Notes

      Recently Zoho added the ability to markup text within notes. That way, users can change font size, colors, etc. It's a great change. However, since the change, reports that include a column for "Note Content" are printing HTML tags within the report.
    • 10GB Email Storage Limits in Zoho CRM

      We’ve had Zoho One for almost 5 years and have always synced our emails from Gmail via IMAP… As of late, we’ve run into issues with our emails not syncing, due to being over the 10GB storage cap… What’s very odd is that we haven’t changed a thing? I know
    • New Feature: Audit Log in Zoho Bookings

      Greetings from the Zoho Bookings team! We’re excited to introduce Audit Log, a new feature designed to help you track all key actions related to your appointments. With Audit Log, you can maintain transparency, strengthen security, and ensure accountability.
    • Bill automation in Zoho Books

      Hi I am looking for 3rd-party options for bill automation in zoho which are economical and preferably have accurate scanning. What options do I have? Zoho's native scanning is a bit pricey
    • Zoho CRM Analytics - Allow To Reorder Dashboards

      I would like to suggest that you add the ability to reorder dashboards in the Analytics Module. I can see that this has been requested some time ago, the latest 9 years ago. I am not sure if this is a big or small endeavor, but such a small fix can go
    • Restrict Payment Methods

      Allow us to restrict certain payment methods specific for each customer.
    • Introducing the Zoho Projects Learning Space

      Every product has its learning curve, and sometimes having a guided path makes the learning experience smoother. With that goal, we introduce a dedicated learning space for Zoho Projects, a platform where you can explore lessons, learn at your own pace,
    • Next Page