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

# Get supplier invoice report field schema

> Merge fields for single supplier invoice pdf templates. Fixed per report kind, not per workspace.



## OpenAPI

````yaml /openapi.yaml get /reports/supplier_invoice_record/schema
openapi: 3.0.1
info:
  title: GetSpecs REST API
  description: REST API documentation for GetSpecs.
  version: 1.0.0
servers:
  - url: /v1
  - url: https://demo-api.getspecs.io/v1
security: []
paths:
  /reports/supplier_invoice_record/schema:
    get:
      tags:
        - Report
      summary: Get supplier invoice report field schema
      description: >-
        Merge fields for single supplier invoice pdf templates. Fixed per report
        kind, not per workspace.
      operationId: reports/supplier_invoice_record#schema
      parameters:
        - name: X-Workspace-ID
          in: header
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/report_supplier_invoice_record_schema'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
      security:
        - apiKey: []
          workspaceId: []
components:
  schemas:
    report_supplier_invoice_record_schema:
      type: object
      description: >-
        Available merge fields for the single supplier invoice pdf. Fixed per
        report kind: the `workspace` record, the `supplier_invoice` record (the
        invoice's Invoices list row: status and payment labels, supplier,
        amounts, ...) and the `supplier_invoice_items` collection: its lines
        newest first, order items and extra charges. Amounts (`format:
        currency`) are "USD 1,234.50" strings in the invoice's currency, plain
        numbers without one.
      properties:
        workspace:
          $ref: '#/components/schemas/report_schema_record'
        supplier_invoice:
          type: object
          properties:
            name:
              type: string
            type:
              type: string
              enum:
                - record
            fields:
              type: object
              additionalProperties:
                type: object
                properties:
                  type:
                    type: string
                    enum:
                      - string
                      - strings
                      - number
                      - date
                      - boolean
                  name:
                    type: string
                  whitelist_values:
                    type: array
                    items:
                      type: string
                  format:
                    type: string
                    enum:
                      - currency
                required:
                  - type
                  - name
          required:
            - name
            - type
            - fields
        supplier_invoice_items:
          type: object
          properties:
            name:
              type: string
            type:
              type: string
              enum:
                - collection
            fields:
              type: object
              additionalProperties:
                type: object
                properties:
                  type:
                    type: string
                    enum:
                      - string
                      - strings
                      - number
                      - date
                      - boolean
                  name:
                    type: string
                  whitelist_values:
                    type: array
                    items:
                      type: string
                  format:
                    type: string
                    enum:
                      - currency
                required:
                  - type
                  - name
          required:
            - name
            - type
            - fields
      required:
        - workspace
        - supplier_invoice
        - supplier_invoice_items
    error:
      type: object
      properties:
        error:
          type: string
        errors:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
                nullable: true
              code:
                type: string
                nullable: true
              message:
                type: string
            required:
              - message
    report_schema_record:
      type: object
      properties:
        name:
          type: string
        type:
          type: string
          enum:
            - record
        fields:
          type: object
          additionalProperties:
            type: object
            properties:
              type:
                type: string
                enum:
                  - string
                  - image
                  - date
              name:
                type: string
            required:
              - type
              - name
      required:
        - name
        - type
        - fields
  securitySchemes:
    apiKey:
      type: apiKey
      name: authorization
      in: header
    workspaceId:
      type: apiKey
      name: X-Workspace-ID
      in: header

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.