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

# Create Invoice



## OpenAPI

````yaml /actionkit/openapi.json POST /projects/{project_id}/tools/#XERO_CREATE_INVOICE
openapi: 3.0.0
info:
  title: ActionKit Tools API
  version: 1.0.0
servers:
  - url: https://actionkit.useparagon.com
    description: US Cloud
security: []
paths:
  /projects/{project_id}/tools/#XERO_CREATE_INVOICE:
    post:
      summary: Create Invoice
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
            description: >-
              Your Paragon Project ID. You can copy your Project ID from your
              dashboard URL or by clicking Copy Project ID under the Environment
              switcher.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                tool:
                  type: string
                  default: XERO_CREATE_INVOICE
                parameters:
                  type: object
                  properties:
                    invoiceType:
                      type: string
                      description: Invoice Type
                      enum:
                        - ACCPAY
                        - ACCREC
                    contactId:
                      type: string
                      description: >-
                        Contact : The customer this invoice is associated with.
                        (example: "Contact ID")
                    lineItems:
                      type: object
                      description: >-
                        Line items : Enter an array of Line items including the
                        description, quantity, and amount for each Line item.
                        (example: "[
                          {
                            "Description": "White T-Shirt", 
                            "Quantity": "2",
                            "UnitAmount": "20.00",
                            "AccountCode": "200"
                          }
                        ]  
                          ")
                      properties: {}
                    invoiceStatus:
                      type: string
                      description: Status
                      enum:
                        - DRAFT
                        - SUBMITTED
                        - AUTHORISED
                    date:
                      type: string
                      description: >-
                        Date : Date the invoice was issued. (example:
                        "YYYY-MM-DD")
                    dueDate:
                      type: string
                      description: >-
                        Due Date : Date the invoice is due. (example:
                        "YYYY-MM-DD")
                    currency:
                      type: string
                      description: 'Currency (example: "USD")'
                    invoiceNumber:
                      type: string
                      description: >-
                        Invoice Number : Alpha numeric code identifying the
                        invoice (example: "OIT00546")
                    reference:
                      type: string
                      description: Reference
                  required:
                    - invoiceType
                    - contactId
                    - lineItems
                  x-integration: xero
              required:
                - tool
                - parameters
      responses:
        '200':
          description: Success
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Your [Paragon User
        Token](/getting-started/installing-the-connect-sdk#setup) (JWT), which
        you can generate using your project's signing keys.

````