# Upsert Invoice Template Upsert Invoice Template Endpoint: PATCH /rest/2.0/INVOICE_TEMPLATE Version: 1.0 Security: JWT ## Header parameters: - `sessionId` (string, required) ## Request fields (application/json; charset=utf-8): - `brmObjects` (object) - `brmObjects.Id` (string, required) Id: Invoice Template Id - `brmObjects.Name` (string) Invoice Template Name: The name of invoice template - `brmObjects.Status` (string) Status: Status of invoice template - `brmObjects.Type` (string) Template Type: Type of invoice template - `brmObjects.Created` (string) System controlled field: Date and time the record was created - `brmObjects.UpdatedUserId` (string) System controlled field: Id of the last user that updated the record - `brmObjects.Updated` (string) System controlled field: Date and time the record was last updated - `brmObjects.CreatedUserId` (string) System controlled field: Id of the user that created the record - `brmObjects.InvoiceFileFormat` (string) Invoice File Format: Customize the filename of the PDF file that is generated. The object reference model can be used here to source information from the data model that is accessible from the invoice object. No need to include the extension as this is automatically appended (e.g. .pdf). - `brmObjects.SupportMessage1` (string) SupportMessage1 - `brmObjects.DefaultFlag` (integer) DefaultFlag - `brmObjects.SupportNumber` (string) SupportNumber - `brmObjects.ShowCreditAdjDetail` (integer) ShowCreditAdjDetail - `brmObjects.ShowTaxFeeDetail` (integer) ShowTaxFeeDetail - `brmObjects.ShowAging` (integer) ShowAging - `brmObjects.EbppUrl` (string) EbppUrl: Online Bill-pay URL - `brmObjects.DateFormat` (string) DateFormat - `brmObjects.LanguageCode` (integer) LanguageCode - `brmObjects.EmailTemplateId` (integer) EmailTemplateId - `brmObjects.InvoiceXslId` (integer) InvoiceXslId - `brmObjects.SupportMessage` (string) SupportMessage - `brmObjects.EmbedEinvoiceDocIntoPDF` (integer) Embed e-invoice document into PDF: In some jurisdictions PDF invoice has to embed e-invoice XML. Enable this option for this behavior. Corresponding invoice skin must be set to generate PDF A-3 files for this option to have effect. BP will pick e-invoice based on the invoice ID in the e-invoice entity. - `brmObjects.ShowPastDueStatements` (integer) ShowPastDueStatements - `brmObjects.AccountId` (integer) AccountId - `externalIDFieldName` (string) Enum: "Name" ## Response 200 fields (application/json): - `upsertResponse` (array) - `upsertResponse.Id` (integer) - `upsertResponse.success` (boolean) - `upsertResponse.ErrorText` (string) - `upsertResponse.ErrorElementField` (string) - `upsertResponse.created` (boolean)