@@ -16,12 +16,13 @@ export class Invoices extends APIResource {
1616 }
1717
1818 /**
19- * This endpoint allows you to update the `metadata`, `net_terms`, and `due_date`
20- * properties on an invoice. If you pass null for the metadata value, it will clear
21- * any existing metadata for that invoice.
19+ * This endpoint allows you to update the `metadata`, `net_terms`, `due_date`, and
20+ * `invoice_date` properties on an invoice. If you pass null for the metadata
21+ * value, it will clear any existing metadata for that invoice.
2222 *
23- * `metadata` can be modified regardless of invoice state. `net_terms` and
24- * `due_date` can only be modified if the invoice is in a `draft` state.
23+ * `metadata` can be modified regardless of invoice state. `net_terms`, `due_date`,
24+ * and `invoice_date` can only be modified if the invoice is in a `draft` state.
25+ * `invoice_date` can only be modified for non-subscription invoices.
2526 */
2627 update (
2728 invoiceId : string ,
@@ -862,6 +863,11 @@ export interface InvoiceUpdateParams {
862863 */
863864 due_date ?: ( string & { } ) | ( string & { } ) | null ;
864865
866+ /**
867+ * The date of the invoice. Can only be modified for one-off draft invoices.
868+ */
869+ invoice_date ?: ( string & { } ) | ( string & { } ) | null ;
870+
865871 /**
866872 * User-specified key/value pairs for the resource. Individual keys can be removed
867873 * by setting the value to `null`, and the entire metadata mapping can be cleared
0 commit comments