Replace a bill
Changed onUpdate 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.
Request
- Base URLhttps://gateway.stage.bill.com/connect
- URLhttps://gateway.stage.bill.com/connect/v3/bills/{billId}
- Authnone declared
Path parameters
BILL-generated ID of the bill. The value begins with 00n.
Headers
API session ID generated with /v3/login
Developer key generated with your BILL developer account
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
Changes
- breaking
the request property
/////became required - breaking
the request property
/////became required - breaking
the
/////request property's minLength was increased from0to1 - warning
the
/////request property's maxLength was set to100 - info
added the new optional request property
///// - info
added the optional property
/////to the response with the status - info
added the optional property
to the response with the status - info
the response property
/////became required for the status - info
the response property
/////became required for the status
- breaking