Update Invoice
Updates the due date, notes, terms and conditions, or metafields of an invoice. To record a payment or cancel an invoice, use Record Payment or Void Invoice.
HTTP Request
- URL:
/invoices/{id} - Method:
PUT - Headers:
accessToken: Required. Your API access token.Content-Type:application/json
- Required scope:
READ_WRITE_INVOICE
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | String | Required. The ID of the invoice to update. |
Request Body
The request body is a JSON object with at least one of these fields.
| Field | Type | Required | Description |
|---|---|---|---|
dueDate | String | No | New due date. Cannot be before the issue date. |
notes | String | No | Notes. Send an empty string to clear them. |
termsAndConditions | String | No | Terms. Send an empty string to clear them. |
metaFields | Array | No | Custom field values, each with code and value. Existing codes are updated and new codes are added. |
cURL Example
curl --location --request PUT '<BASE_URL>/invoices/665f2310d5775459152d6dd8' \
--header 'accessToken: <ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"dueDate": "2026-09-01T00:00:00.000Z",
"notes": "Due date extended per AP request.",
"metaFields": [{ "code": "erpInvoiceId", "value": "ERP-INV-88213" }]
}'
Response
- 200 OK: The invoice was updated.
- 400 Bad Request: The invoice ID is not valid, the body is empty, or a value is not allowed (for example, a due date before the issue date).
- 401 Unauthorized: The access token is missing or invalid.
- 403 Forbidden: The access token does not have the required scope.
- 404 Not Found: No invoice exists with this ID.
Sample JSON Response
{
"success": true,
"message": "Invoice updated successfully",
"data": {
"id": "665f2310d5775459152d6dd8",
"entityId": "INV-1001",
"status": "open",
"dueDate": "2026-09-01T00:00:00.000Z",
"notes": "Due date extended per AP request.",
"metaFields": [
{ "id": "665f2310d5775459152d6e11", "code": "erpInvoiceId", "label": "ERP Invoice ID", "value": "ERP-INV-88213" }
],
"payments": []
}
}
Response Details
Invoice Data
| Field | Type | Description |
|---|---|---|
success | Boolean | Whether the invoice was updated. |
message | String | Result message. |
data | Object | The updated invoice. See Get Invoice for all fields. |
Notes
- The due date cannot be changed on invoices that are
paidorvoid. - Each update is added to the invoice's
timeline.