# InvoiceTemplateCreateDto

A model the API reference uses in a request or a response. The operation pages link every field typed as this model here.

Input DTO for creating an invoice template.

## Fields
- `name` (string) required: (nullable, max length 100)
- `isDefault` (boolean): (nullable)
- `theme` ([InvoiceThemeDto](https://devportal.signapay-sbx.winkpg.io/docs/api/models/InvoiceThemeDto.md)): DTO for invoice theme visual settings.
  Fields:
  - `primaryColor` (string): (nullable)
  - `accentColor` (string): (nullable)
  - `logoUrl` (string): (nullable)
  - `fontFamily` (string): (nullable)
  - `showBillerAddress` (boolean)
  - `showBillerLogo` (boolean)
  - `showBillerTaxId` (boolean)
- `layout` ([InvoiceLayoutDto](https://devportal.signapay-sbx.winkpg.io/docs/api/models/InvoiceLayoutDto.md)): DTO for invoice layout configuration.
  Fields:
  - `showProductCode` (boolean)
  - `showQuantity` (boolean)
  - `showUnitPrice` (boolean)
  - `showDiscount` (boolean)
  - `showTax` (boolean)
  - `showRecipientTaxId` (boolean)
  - `showShippingAddress` (boolean)
  - `showNotes` (boolean)
  - `showPaymentInstructions` (boolean)
  - `additionalColumns` (array<string>): (nullable)
- `headerHtml` (string): Conditional: When HeaderHtml is not null. Max length: 50000. (nullable)
- `footerHtml` (string): Conditional: When FooterHtml is not null. Max length: 50000. (nullable)
- `emailSubjectTemplate` (string): Conditional: When EmailSubjectTemplate is not null. Max length: 500. (nullable)
- `emailBodyTemplate` (string): Conditional: When EmailBodyTemplate is not null. Max length: 50000. (nullable)
- `attachPdfToEmail` (boolean): Whether the invoice and reminder emails sent from this template carry the invoice PDF as an attachment. Only false turns the attachment off. On create, null attaches. On update, null leaves the stored setting as it is. (nullable)
- `isActive` (boolean): (nullable)
- `billerId` (string(uuid)) required
- `billerType` ([InvoicePartyType](https://devportal.signapay-sbx.winkpg.io/docs/api/models/InvoicePartyType.md)): Identifies the type of entity acting as the biller or recipient on an invoice.
  Values:
  - `GatewayOwner`: Platform-level gateway owner.
  - `Reseller`: Reseller entity.
  - `Merchant`: Merchant entity.
  - `Customer`: End customer.

## See also

- [All documentation](https://devportal.signapay-sbx.winkpg.io/llms.txt): the machine-readable index of every public page on this site.
