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

# Create an Invoice



## OpenAPI

````yaml post /invoices
openapi: 3.0.0
info:
  title: API V3
  version: '3'
  description: >-
    Create your API key from the API Keys section of the Admin Dashboard to gain
    access to the API.
  contact:
    name: API Support
    email: support@zivio.com
servers:
  - url: https://api.zivio.net/api/v3
    description: Global API Router
  - url: https://api.eu.zivio.net/api/v3
    description: EU Data Region
  - url: https://api.uk.zivio.net/api/v3
    description: UK Data Region
  - url: https://api.us.zivio.net/api/v3
    description: US Data Region
security:
  - apiKey: []
    tenantId: []
paths:
  /invoices:
    post:
      tags:
        - Invoices
      summary: Create an Invoice
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                type:
                  type: string
                  example: ItemisedInvoice
                description:
                  type: string
                  example: Invoice description
                ccy:
                  type: string
                  example: GBP
                job_id:
                  type: integer
                  example: '137'
                due_on:
                  type: string
                  example: '2020-11-01'
                dated_on:
                  type: string
                  example: '2020-10-21'
                milestone_id:
                  type: integer
                  example: '78'
                net_total_cents:
                  type: integer
                  example: '100000'
                tax_total_cents:
                  type: integer
                  example: '20000'
                total_cents:
                  type: integer
                  example: '120000'
                invoice_items_attributes:
                  type: array
                  items:
                    properties:
                      description:
                        type: string
                        example: Item description
                      quantity:
                        type: integer
                        example: '5'
                      billing_start:
                        type: string
                        example: '2020-11-01'
                      billing_end:
                        type: string
                        example: '2020-11-03'
                      unit_type:
                        type: string
                        example: Hotel
                      unit_cost_cents:
                        type: integer
                        example: '20000'
                      tax_type_id:
                        type: integer
                        example: '1'
      responses:
        '200':
          description: ok
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: integer
                    example: '1'
                  status:
                    type: string
                    example: draft
                  job_id:
                    type: integer
                    example: '23'
                  job_summary:
                    type: string
                    example: Some text about the project
                  net_total:
                    type: string
                    example: '16000.00'
                  tax_total:
                    type: string
                    example: '2000.00'
                  total:
                    type: string
                    example: '18000.00'
                  ccy:
                    type: string
                    example: GBP
                  due_on:
                    type: string
                    format: date-time
                  dated_on:
                    type: string
                    format: date-time
                  milestone_id:
                    type: integer
                    example: '435'
                  line_item_sheet_id:
                    type: integer
                    example: '234'
                  credit_note_id:
                    type: integer
                    example: '124'
                  is_credit_note:
                    type: boolean
                    example: 'null'
                  credit_note_reason:
                    type: string
                    example: invoice paid in error
                  created_at:
                    type: string
                    format: date-time
                  updated_at:
                    type: string
                    format: date-time
                  approved_at:
                    type: string
                    format: date-time
                  approved_by:
                    type: object
                    properties:
                      id:
                        type: integer
                        example: '7158'
                      first_name:
                        type: string
                        example: Jack
                      last_name:
                        type: string
                        example: Jones
                      email:
                        type: string
                        example: jack_jones@example.com
                      org_name:
                        type: string
                        example: Organisation Ltd
                      org_id:
                        type: integer
                        example: '567'
                      business_unit:
                        type: string
                        example: Public Private Partnerships
                      division:
                        type: string
                        example: Infastructure
                      department:
                        type: string
                        example: Bridges
                      vetting_status:
                        type: string
                        example: PASSED
                      created_at:
                        type: string
                        format: date-time
                      updated_at:
                        type: string
                        format: date-time
                      custom_fields:
                        type: object
                        properties:
                          key:
                            type: string
                            example: value
                      has_oversight:
                        type: string
                        format: 'true'
                  client:
                    type: object
                    properties:
                      id:
                        type: integer
                        example: '7158'
                      first_name:
                        type: string
                        example: Jack
                      last_name:
                        type: string
                        example: Jones
                      email:
                        type: string
                        example: jack_jones@example.com
                      org_name:
                        type: string
                        example: Organisation Ltd
                      org_id:
                        type: integer
                        example: '567'
                      business_unit:
                        type: string
                        example: Public Private Partnerships
                      division:
                        type: string
                        example: Infastructure
                      department:
                        type: string
                        example: Bridge Building
                      vetting_status:
                        type: string
                        example: PASSED
                      created_at:
                        type: string
                        format: date-time
                      updated_at:
                        type: string
                        format: date-time
                      custom_fields:
                        type: object
                        properties:
                          key:
                            type: string
                            example: value
                      has_oversight:
                        type: string
                        format: 'true'
                  client_org:
                    type: object
                    properties:
                      id:
                        type: integer
                        example: '7158'
                      name:
                        type: string
                        example: Company Ltd
                      is_external_client:
                        type: string
                        format: 'true'
                      created_at:
                        type: string
                        format: date-time
                      updated_at:
                        type: string
                        format: date-time
                  supplier:
                    type: object
                    properties:
                      id:
                        type: integer
                        example: '77'
                      name:
                        type: string
                        example: Company Inc
                      email:
                        type: string
                        example: jack_jones@companyinc.com
                      vetting_status:
                        type: string
                        example: PASSED
                      tax_number:
                        type: string
                        example: '9876543234'
                      tax_registered:
                        type: boolean
                        example: 'true'
                      created_at:
                        type: string
                        format: date-time
                      updated_at:
                        type: string
                        format: date-time
        '401':
          description: unauthorized
        '404':
          description: not found
components:
  securitySchemes:
    apiKey:
      type: apiKey
      name: X-API-Key
      in: header
    tenantId:
      type: apiKey
      name: zivio-tenant-id
      in: header

````