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
- POST /api/v1/invoices/1740101000000098779/lineitems HTTP/1.1
- Host: subscriptions.zoho.com
- X-com-zoho-subscriptions-organizationid: {Organization-id}
- Authorization: Zoho-authtoken {Auth-key}
- Content-Type: application/json
- cache-control: no-cache
- {
- "reason": "example reason",
- "invoice_items": [
- {
- "item_id": "1740101000000098791",
- "product_id": "1740101000000072556",
- "name": "Per Job LIcence",
- "description": "",
- "code": "LIC-Job",
- "price": 3,
- "quantity": 10
- }
- ]
Response
- {
- "code": 102028,
- "message": "Items of this invoice cannot be modified."
- }
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.