Metered Billing feature enabled. Unable to generate pending invoice.

Metered Billing feature enabled. Unable to generate pending invoice.

I want to update an item's quantity in invoice before end of the subscription cycle using APIs.
Request
  1. POST /api/v1/invoices/1740101000000098779/lineitems HTTP/1.1
  2. Host: subscriptions.zoho.com
  3. X-com-zoho-subscriptions-organizationid: {Organization-id}
  4. Authorization: Zoho-authtoken {Auth-key}
  5. Content-Type: application/json
  6. cache-control: no-cache
  7. {
  8.     "reason": "example reason",
  9.     "invoice_items": [
  10.         {
  11.             "item_id": "1740101000000098791",
  12.             "product_id": "1740101000000072556",
  13.             "name": "Per Job LIcence",
  14.             "description": "",
  15.             "code": "LIC-Job",
  16.             "price": 3,
  17.             "quantity": 10
  18.         }
  19.     ]

Response
  1. {
  2.     "code": 102028,
  3.     "message": "Items of this invoice cannot be modified."
  4. }
I know the reason for above response. Invoice doesn't have pending status.
I tried to create a invoice with pending status unfortunately all in vain.