Update an invoiceAsk AIpatch https://api.piriod.com/invoices/{id}/Updates an Invoice object. Only invoices with status draft are updated.Path ParamsidstringrequiredUnique ID of the Invoice to updateBody Paramscollection_methodstringMethod to collect payments of this invoice. Must be automatically or deferredcustomerstringID of related Customer object.datedateClosing date of this invoice.discountstringA positive number representing the amount or percentage of the discount.discount_schemestringCan be $ or %. $ apply amount as discount. % apply percentage as discount.documentstringThe ID of the document type this subscription should create.due_datedateThe deadline for the invoice to change from receivable to overdue status in case the customer has not paid.linesarray of objectsList of Invoice Line objects which represents the items for which this invoice is being charged.linesADD objectnotestringA simple text with a 100 characters as max length.referencesarray of objectsList of Invoice Reference objects which represents the documents with which the issuance of this invoice is supported. For ex. a Purchase OrderreferencesADD objectResponse 200200Updated over 3 years ago