Update InvoiceAsk AIpatch https://app.moderntreasury.com/api/invoices/{id}Path ParamsidstringrequiredThe ID of the invoice.Body Paramscounterparty_idstringcounterparty_billing_addressobjectcounterparty_billing_address objectcounterparty_shipping_addressobjectcounterparty_shipping_address objectcurrencystringdescriptionstringdue_datedateinvoicer_namestringWill update the issuer name if included. Passing in a null or empty string will default the value to the Organization name in Modern Treasury.invoicer_addressobjectinvoicer_address objectoriginating_account_idstringpayment_methodstringenumWhen opening an invoice, whether to show the embedded payment UI, automatically create a payment or rely on manual payment from the recipient.uiautomaticmanualAllowed:uiautomaticmanualstatusstringenumInvoice status must be updated in an individual PATCH request that does not modify any other invoice attributes. Valid state transitions are draft to unpaid, draft or unpaid to void and unpaid to paidunpaidvoidAllowed:unpaidvoidpayment_effective_datedateWhen payment_method is automatic: the date that the transaction resulting from the automatically created payment order is to be posted to the participants’ account.receiving_account_idstringWhen payment_method is automatic: receiving_account_id on the automatically created payment orderpayment_typestringenumWhen payment_method is automatic: payment_type on the automatically created payment orderacheftAllowed:acheftfallback_payment_methodstringenumWhen payment_method is automatic: fallback payment method to use when an automatic payment fails.uimanualAllowed:uimanualnotifications_enabledbooleanIf true, the invoice will send email notifications to the invoice recipients about invoice status changes.truefalsenotification_email_addressesarray of stringsEmails in addition to the counterparty email to send invoice status notifications to. At least one email is required if notifications are enabled and the counterparty doesn't have an email.notification_email_addressesADD stringvirtual_account_idstringThe virtual account associated with an invoice. The virtual account routing and accounts numbers will be shown on the invoice in place of the internal account information.recipient_namestringThe name of the recipient of the invoice. Leaving this value as null will fallback to using the counterparty's name.recipient_emailstringThe email of the recipient of the invoice. Leaving this value as null will fallback to using the counterparty's email.remind_after_overdue_daysarray of int32sA list of days after the due date on which overdue reminder emails should be sent. Maximum length of 3, and maximum value of 365, email notifications must be enabledremind_after_overdue_daysADD int32metadatajsonUpdated 8 months ago