Update Invoice

Update an existing invoice’s information. Note that some fields cannot be updated once the invoice is sent.

Endpoint

PUT /api/invoices/{invoice_id}

Path Parameters

ParameterTypeRequiredDescription
invoice_idstringYesThe unique identifier for the invoice

Request Body

ParameterTypeRequiredDescription
descriptionstringNoInvoice description
due_datestringNoDue date (ISO 8601 format)

Response

Returns the updated invoice object.
{
  "id": "inv_123456789",
  "customer_id": "cust_123456789",
  "amount": 250.00,
  "currency": "USD",
  "description": "Updated service invoice",
  "status": "draft",
  "due_date": "2023-02-15T00:00:00Z",
  "created_at": "2023-01-01T00:00:00Z"
}