v1
latestOpenAPI 3.0.12026-07-24310590875.6 KBbills
Replace a bill
Update the number of line items in a bill. You can also update other bill details.
You can use the PUT operation to add, remove, or replace the number of line items in a bill. A set of rules apply with the PUT operation.
- When you add a new line item, a new line item id is generated in the bill.
- When you omit an existing line item id, the line item is removed from the bill.
put/v3/bills/{billId}
Path parameters
billIdstring required
BILL-generated ID of the bill. The value begins with 00n.
Example:{{bill_id}}
Headers
sessionIdstring nullable
API session ID generated with /v3/login
Example:{{session_id}}
devKeystring nullable
Developer key generated with your BILL developer account
Example:{{developer_key}}
Request body
Example request
{
"vendorId": "{{vendor_id}}",
"dueDate": "2026-12-31",
"invoice": {
"invoiceNumber": "202601",
"invoiceDate": "2026-12-31"
},
"billLineItems": [
{
"amount": 29.99,
"description": "Premium drummer gloves"
},
{
"id": "{{bill_line_item_id01}}",
"amount": 149,
"description": "USB audio interface"
},
{
"id": "{{bill_line_item_id02}}",
"amount": 79.99,
"description": "Drum foot pedal"
}
]
}Response
Replace a bill response