> ## Documentation Index
> Fetch the complete documentation index at: https://billing-docs.platform.ai71services.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get template by ID

> Retrieves a specific invoice template by its unique identifier



## OpenAPI

````yaml specs/billing_api_docs.json get /api/v1/invoices-templates/{id}
openapi: 3.0.1
info:
  title: Billing API
  description: Billing service for managing subscriptions, payments, and entitlements
  contact: {}
  version: '1.0'
servers:
  - url: https://dev-billing-api.iqraa.ai/api/v1
security: []
tags:
  - name: Customers
    description: Customers related endpoints
  - name: Subscriptions
    description: Subscription related endpoints
  - name: Plans
    description: Plans related endpoints
  - name: Entitlements
    description: Entitlements related endpoints
  - name: Payments
    description: Payments related endpoints
  - name: Emails
    description: Email related endpoints
paths:
  /api/v1/invoices-templates/{id}:
    get:
      tags:
        - Invoice Templates
      summary: Get template by ID
      description: Retrieves a specific invoice template by its unique identifier
      operationId: InvoiceTemplatesController_getTemplate
      parameters:
        - name: x-admin-api-key
          in: header
          description: The API key to access the admin API
          required: true
          schema:
            type: string
        - name: id
          required: true
          in: path
          schema:
            type: string
      responses:
        '200':
          description: Template details retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateInvoiceTemplateDto'
        '404':
          description: Template not found
components:
  schemas:
    CreateInvoiceTemplateDto:
      type: object
      properties:
        name:
          type: string
          example: Standard Template
          description: Unique name for the invoice template
        components:
          description: >-
            Template components configuration that defines the invoice layout
            and content.
                Includes:
                - Required fields (invoiceNumber, date, amount, etc.)
                - Display settings (company details, customer details, line items)
                - Company information
                - Tax settings
                - Custom fields
          example:
            requiredFields:
              invoiceNumber: true
              date: true
              amount: true
              customerDetails: true
            showCompanyDetails: true
            showCustomerDetails: true
            showLineItems: true
            showPaymentTerms: true
            showFooter: true
            showLogo: true
            companyDetails:
              companyName: Company Name
              companyAddress: Company Address
              companyCity: City
              companyCountry: Country
              companyEmail: email@company.com
              logoUrl: https://example.com/logo.png
              vatNumber: '123456789'
            taxSettings:
              enabled: true
              rate: 20
              label: VAT
          allOf:
            - $ref: '#/components/schemas/TemplateComponents'
        isDefault:
          type: boolean
          default: false
          description: Set this template as the default template for new invoices
      required:
        - name
        - components
    TemplateComponents:
      type: object
      properties:
        requiredFields:
          type: object
          description: Configure which fields are required in the invoice
          example:
            invoiceNumber: true
            date: true
            amount: true
            customerDetails: true
        showCompanyDetails:
          type: boolean
          description: Show/hide company details section in the invoice
          example: true
        showCustomerDetails:
          type: boolean
          description: Show/hide customer details section in the invoice
          example: true
        showLineItems:
          type: boolean
          description: Show/hide line items section in the invoice
          example: true
        showPaymentTerms:
          type: boolean
          description: Show/hide payment terms section in the invoice
          example: true
        showFooter:
          type: boolean
          description: Show/hide footer section in the invoice
          example: true
        showLogo:
          type: boolean
          description: Show/hide company logo in the invoice header
          example: true
        companyDetails:
          description: Company information to be displayed on the invoice
          allOf:
            - $ref: '#/components/schemas/CompanyDetails'
        taxSettings:
          description: Tax calculation settings for the invoice
          allOf:
            - $ref: '#/components/schemas/TaxSettings'
      required:
        - requiredFields
        - showCompanyDetails
        - showCustomerDetails
        - showLineItems
        - showPaymentTerms
        - showFooter
        - showLogo
        - companyDetails
        - taxSettings
    CompanyDetails:
      type: object
      properties:
        companyName:
          type: string
        companyAddress:
          type: string
          description: The company address to display on the invoice
          example: 123 Business Street, Suite 100, City, Country
          maxLength: 255
        companyCity:
          type: string
        companyCountry:
          type: string
        companyEmail:
          type: string
        vatNumber:
          type: string
        logoUrl:
          type: string
          description: URL of the company logo to display on the invoice
          example: https://example.com/logo.png
      required:
        - companyName
        - companyCity
        - companyCountry
        - companyEmail
    TaxSettings:
      type: object
      properties:
        rate:
          type: number
        label:
          type: string
        enabled:
          type: boolean
      required:
        - rate
        - label
        - enabled

````