{
  "openapi": "3.0.4",
  "info": {
    "title": "SAM Portal API",
    "contact": {
      "name": "Eagers Automotive Automation Support",
      "email": "automationsupport@eagersautomotive.com.au"
    },
    "version": "v1"
  },
  "paths": {
    "/usedfloorplanreconciliations": {
      "post": {
        "tags": [
          "AccountingFunctions"
        ],
        "summary": "Creates a new floorplan reconciliation request",
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateFloorplanReconciliationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateFloorplanReconciliationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateFloorplanReconciliationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/usedinventoryreconciliations": {
      "post": {
        "tags": [
          "AccountingFunctions"
        ],
        "summary": "Creates a new used vehicle reconciliation request",
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateUsedInventoryReconciliationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateUsedInventoryReconciliationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateUsedInventoryReconciliationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/bailmentpayoutjournals": {
      "post": {
        "tags": [
          "AccountingFunctions"
        ],
        "summary": "Creates a new bailment payout journal request",
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBailmentPayoutJournalRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBailmentPayoutJournalRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBailmentPayoutJournalRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/accountingSites": {
      "get": {
        "tags": [
          "AccountingSites"
        ],
        "summary": "Returns all accounting sites",
        "parameters": [
          {
            "name": "AccountingSiteId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "CompanyId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "CompanyName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Name",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "AccountingSites"
        ],
        "summary": "Creates an new accounting site",
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAccountingSiteRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAccountingSiteRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAccountingSiteRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/accountingSites/{accountingSiteId}": {
      "get": {
        "tags": [
          "AccountingSites"
        ],
        "summary": "Returns a single accounting site by id",
        "parameters": [
          {
            "name": "accountingSiteId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "AccountingSites"
        ],
        "summary": "Updates an existing accounting site",
        "parameters": [
          {
            "name": "accountingSiteId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAccountingSiteRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAccountingSiteRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAccountingSiteRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "AccountingSites"
        ],
        "summary": "Deletes an existing accounting site",
        "parameters": [
          {
            "name": "accountingSiteId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/accountingSites/datatables": {
      "post": {
        "tags": [
          "AccountingSites"
        ],
        "summary": "Returns all accounting sites using DataTables server side processing",
        "parameters": [
          {
            "name": "AccountingSiteId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "CompanyId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "CompanyName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Name",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/actions/replaceapprover": {
      "put": {
        "tags": [
          "Actions"
        ],
        "summary": "Replaces an approver on all cost centres within a company. Optionally update the assignee on all relevant approval tasks.",
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReplaceApproverRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ReplaceApproverRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ReplaceApproverRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/actions/transfercompanycostcentres": {
      "put": {
        "tags": [
          "Actions"
        ],
        "summary": "Transfer all centres in a given company to a new company that shares the same DMS, server and accounting store.",
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TransferCompanyCostCentresRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TransferCompanyCostCentresRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TransferCompanyCostCentresRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/actions/workflow": {
      "post": {
        "tags": [
          "Actions"
        ],
        "summary": "Initiates the workflow routine",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/actions/email": {
      "post": {
        "tags": [
          "Actions"
        ],
        "summary": "Initiates the email routine",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/actions/refreshpurchaseorder/{purchaseOrderId}": {
      "post": {
        "tags": [
          "Actions"
        ],
        "summary": "Overwrite the stored purchase order with the copy held in the DMS",
        "parameters": [
          {
            "name": "purchaseOrderId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/actions/applypurchaseorder/{invoiceId}": {
      "post": {
        "tags": [
          "Actions"
        ],
        "summary": "Reapply the purchase order to the invoice line items",
        "parameters": [
          {
            "name": "invoiceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/actions/agedtaskreport": {
      "post": {
        "tags": [
          "Actions"
        ],
        "summary": "Create aged task report queue item in UiPath Orchestrator",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAgedTaskReportRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAgedTaskReportRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAgedTaskReportRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/auth/getuser": {
      "get": {
        "tags": [
          "Auth"
        ],
        "summary": "Gets current user",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/auth/getroles": {
      "get": {
        "tags": [
          "Auth"
        ],
        "summary": "Returns user's roles",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/companies": {
      "get": {
        "tags": [
          "Companies"
        ],
        "summary": "Returns all companies",
        "parameters": [
          {
            "name": "CompanyId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Name",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Dms",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ServerNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "AccountingStore",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "OperatingStore",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Mailbox",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ExceptionMailbox",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "MailboxActive",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "PageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "Companies"
        ],
        "summary": "Creates a new company",
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCompanyRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCompanyRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCompanyRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/companies/{companyId}": {
      "get": {
        "tags": [
          "Companies"
        ],
        "summary": "Returns a single company by id",
        "parameters": [
          {
            "name": "companyId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Companies"
        ],
        "summary": "Updates an existing company",
        "parameters": [
          {
            "name": "companyId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCompanyRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCompanyRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCompanyRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Companies"
        ],
        "summary": "Deletes an existing company",
        "parameters": [
          {
            "name": "companyId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/companies/datatables": {
      "post": {
        "tags": [
          "Companies"
        ],
        "summary": "Returns all companies using DataTables server side processing",
        "parameters": [
          {
            "name": "CompanyId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Name",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Dms",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ServerNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "AccountingStore",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "OperatingStore",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Mailbox",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ExceptionMailbox",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "MailboxActive",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/companies/definitions": {
      "get": {
        "tags": [
          "Companies"
        ],
        "summary": "Returns a list of all defined companies.",
        "parameters": [
          {
            "name": "CompanyId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Name",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/companysecuredetails": {
      "post": {
        "tags": [
          "CompanySecureDetails"
        ],
        "summary": "Creates a new company secure detail",
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCompanySecureDetailRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCompanySecureDetailRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCompanySecureDetailRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/companies/{companyId}/companyusers": {
      "get": {
        "tags": [
          "CompanyUsers"
        ],
        "summary": "Returns all company users for a given company",
        "parameters": [
          {
            "name": "companyId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "CompanyUserId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Role",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/CompanyUserRoleNullable"
            }
          },
          {
            "name": "FullName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Title",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Active",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "PageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "CompanyUsers"
        ],
        "summary": "Creates a new company user within a given company",
        "parameters": [
          {
            "name": "companyId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCompanyUserRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCompanyUserRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCompanyUserRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/companies/{companyId}/companyusers/{userId}/{role}": {
      "get": {
        "tags": [
          "CompanyUsers"
        ],
        "summary": "Returns a single company user by id",
        "parameters": [
          {
            "name": "companyId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "userId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "role",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/CompanyUserRole"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "CompanyUsers"
        ],
        "summary": "Deletes an existing company user",
        "parameters": [
          {
            "name": "companyId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "userId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "role",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/CompanyUserRole"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/companies/companyusers/bulk": {
      "post": {
        "tags": [
          "CompanyUsers"
        ],
        "summary": "Creates bulk company users",
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCompanyUserBulkRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCompanyUserBulkRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCompanyUserBulkRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/companies/{companyId}/companyusers/datatables": {
      "post": {
        "tags": [
          "CompanyUsers"
        ],
        "summary": "Returns all company users using DataTables server side processing",
        "parameters": [
          {
            "name": "companyId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "CompanyUserId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Role",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/CompanyUserRoleNullable"
            }
          },
          {
            "name": "FullName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Title",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Active",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/costcentres": {
      "get": {
        "tags": [
          "CostCentres"
        ],
        "summary": "Returns all cost centres",
        "parameters": [
          {
            "name": "CostCentreId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "CompanyId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "CompanyName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Name",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ServerNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "AccountingStore",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Code",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Intercompany",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "ApproverId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "ApproverFullName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "DelegateId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "DelegateFullName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ApprovalLimit",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "Active",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "AllCompanies",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "PageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "CostCentres"
        ],
        "summary": "Creates an new cost centre",
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCostCentreRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCostCentreRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCostCentreRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/costcentres/{costCentreId}": {
      "get": {
        "tags": [
          "CostCentres"
        ],
        "summary": "Returns a single cost centre by id",
        "parameters": [
          {
            "name": "costCentreId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "CostCentres"
        ],
        "summary": "Updates an existing cost centre",
        "parameters": [
          {
            "name": "costCentreId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCostCentreRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCostCentreRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCostCentreRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "CostCentres"
        ],
        "summary": "Deletes an existing cost centre",
        "parameters": [
          {
            "name": "costCentreId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/costcentres/datatables": {
      "post": {
        "tags": [
          "CostCentres"
        ],
        "summary": "Returns all cost centres using DataTables server side processing",
        "parameters": [
          {
            "name": "CostCentreId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "CompanyId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "CompanyName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Name",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ServerNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "AccountingStore",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Code",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Intercompany",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "ApproverId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "ApproverFullName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "DelegateId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "DelegateFullName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ApprovalLimit",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "Active",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "AllCompanies",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/customerPayments": {
      "get": {
        "tags": [
          "CustomerPayments"
        ],
        "summary": "Returns all customer payments",
        "parameters": [
          {
            "name": "CustomerPaymentId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "PaymentNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "CompanyId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "CreatedOn",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "CompanyName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "CreatedBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SubmittedBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "CustomerNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "CustomerName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Amount",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "DealNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "EftNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "HasDocument",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "Status",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerPaymentStatus"
              }
            }
          },
          {
            "name": "PageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerPaymentResponsePagedResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerPaymentResponsePagedResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerPaymentResponsePagedResponse"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "CustomerPayments"
        ],
        "summary": "Creates a new customer payment",
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCustomerPaymentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCustomerPaymentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCustomerPaymentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerPaymentResponse"
                }
              }
            }
          }
        }
      }
    },
    "/customerPayments/{customerPaymentId}": {
      "get": {
        "tags": [
          "CustomerPayments"
        ],
        "summary": "Returns a single customer payment by id",
        "parameters": [
          {
            "name": "customerPaymentId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerPaymentResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerPaymentResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerPaymentResponse"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "CustomerPayments"
        ],
        "summary": "Updates an existing customer payment",
        "parameters": [
          {
            "name": "customerPaymentId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCustomerPaymentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCustomerPaymentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCustomerPaymentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerPaymentResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerPaymentResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerPaymentResponse"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "CustomerPayments"
        ],
        "summary": "Deletes an existing customer payment",
        "parameters": [
          {
            "name": "customerPaymentId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/customerPayments/{customerPaymentId}/status": {
      "put": {
        "tags": [
          "CustomerPayments"
        ],
        "summary": "Updates an existing customer payment's status",
        "parameters": [
          {
            "name": "customerPaymentId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCustomerPaymentStatusRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCustomerPaymentStatusRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCustomerPaymentStatusRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerPaymentResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerPaymentResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerPaymentResponse"
                }
              }
            }
          }
        }
      }
    },
    "/customerPayments/datatables": {
      "post": {
        "tags": [
          "CustomerPayments"
        ],
        "summary": "Returns all customer payments using DataTables server side processing",
        "parameters": [
          {
            "name": "CustomerPaymentId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "PaymentNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "CompanyId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "CreatedOn",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "CompanyName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "CreatedBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SubmittedBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "CustomerNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "CustomerName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Amount",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "DealNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "EftNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "HasDocument",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "Status",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerPaymentStatus"
              }
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/customerPayments/{customerPaymentId}/postingpayloads": {
      "get": {
        "tags": [
          "CustomerPayments"
        ],
        "summary": "Gets the request and response from the customer payment's last API posting attempt",
        "parameters": [
          {
            "name": "customerPaymentId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/customerPayments/{customerPaymentId}/document": {
      "get": {
        "tags": [
          "CustomerPayments"
        ],
        "summary": "Returns the document for a given customer payment",
        "parameters": [
          {
            "name": "customerPaymentId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/dashboards/vendor/datatables": {
      "post": {
        "tags": [
          "Dashboards"
        ],
        "summary": "Returns the vendor summary using DataTables server side processing",
        "parameters": [
          {
            "name": "CompanyId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "BatchNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ABN",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "InvoiceDate",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "CompanyName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "VendorName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ABNStatus",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/VendorABNStatusNullable"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/intercompanyjournals": {
      "post": {
        "tags": [
          "IntercompanyJournals"
        ],
        "summary": "Creates a new intercompany journal",
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateIntercompanyJournalRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateIntercompanyJournalRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateIntercompanyJournalRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/invoicerules": {
      "get": {
        "tags": [
          "InvoiceRules"
        ],
        "summary": "Returns all invoices rules",
        "parameters": [
          {
            "name": "InvoiceRuleId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "CompanyId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "CompanyName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "CostCentreId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "VendorId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Name",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Active",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "PageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "InvoiceRules"
        ],
        "summary": "Creates a new invoice rule",
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateInvoiceRuleRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateInvoiceRuleRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateInvoiceRuleRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/invoicerules/{invoiceRuleId}": {
      "get": {
        "tags": [
          "InvoiceRules"
        ],
        "summary": "Returns a single invoice rule by id",
        "parameters": [
          {
            "name": "invoiceRuleId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "InvoiceRules"
        ],
        "summary": "Updates a existing invoice rule",
        "parameters": [
          {
            "name": "invoiceRuleId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateInvoiceRuleRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateInvoiceRuleRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateInvoiceRuleRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "InvoiceRules"
        ],
        "summary": "Deletes an existing invoice rule",
        "parameters": [
          {
            "name": "invoiceRuleId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/invoicerules/datatables": {
      "post": {
        "tags": [
          "InvoiceRules"
        ],
        "summary": "Returns all invoice rules using DataTables server side processing",
        "parameters": [
          {
            "name": "InvoiceRuleId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "CompanyId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "CompanyName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "CostCentreId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "VendorId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Name",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Active",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/invoices": {
      "get": {
        "tags": [
          "Invoices"
        ],
        "summary": "Returns all invoices",
        "parameters": [
          {
            "name": "InvoiceId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "CompanyId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "CompanyName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ServerNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "AccountingStore",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ReceivedOn",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SubmittedBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "VendorName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "BusinessNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PurchaseOrderPurchaseOrderNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "InvoiceNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "InvoiceDate",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "TotalAmount",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "Tax",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "BatchNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Status",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InvoiceStatus"
              }
            }
          },
          {
            "name": "VendorNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "InvoiceNotes",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "includeArchived",
            "in": "query",
            "description": "",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "Invoices"
        ],
        "summary": "Creates a new invoice (includes Base64 encoded file)",
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateInvoiceRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateInvoiceRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateInvoiceRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/invoices/{invoiceId}": {
      "get": {
        "tags": [
          "Invoices"
        ],
        "summary": "Returns a single invoice by id",
        "parameters": [
          {
            "name": "invoiceId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Invoices"
        ],
        "summary": "Updates an existing invoice",
        "parameters": [
          {
            "name": "invoiceId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateInvoiceRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateInvoiceRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateInvoiceRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/invoices/datatables": {
      "post": {
        "tags": [
          "Invoices"
        ],
        "summary": "Returns all invoices using DataTables server side processing",
        "parameters": [
          {
            "name": "InvoiceId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "CompanyId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "CompanyName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ServerNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "AccountingStore",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ReceivedOn",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SubmittedBy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "VendorName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "BusinessNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PurchaseOrderPurchaseOrderNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "InvoiceNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "InvoiceDate",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "TotalAmount",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "Tax",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "BatchNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Status",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/InvoiceStatus"
              }
            }
          },
          {
            "name": "VendorNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "InvoiceNotes",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "includeArchived",
            "in": "query",
            "description": "",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/invoices/{invoiceId}/document": {
      "get": {
        "tags": [
          "Invoices"
        ],
        "summary": "Returns the document for a given invoice",
        "parameters": [
          {
            "name": "invoiceId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/invoices/{invoiceId}/postingpayloads": {
      "get": {
        "tags": [
          "Invoices"
        ],
        "summary": "Gets the request and response from the invoice's last API posting attempt",
        "parameters": [
          {
            "name": "invoiceId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/invoices/{invoiceId}/notes": {
      "put": {
        "tags": [
          "Invoices"
        ],
        "summary": "Updates an existing invoice's notes",
        "parameters": [
          {
            "name": "invoiceId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateInvoiceNotesRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateInvoiceNotesRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateInvoiceNotesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/invoices/archive": {
      "put": {
        "tags": [
          "Invoices"
        ],
        "summary": "Archives invoices older than the configured number of days",
        "parameters": [
          {
            "name": "archiveLimit",
            "in": "query",
            "description": "",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "archiveOlderThanDays",
            "in": "query",
            "description": "",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "archiveActionedOlderThanDays",
            "in": "query",
            "description": "",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/invoices/{invoiceId}/lineitems": {
      "get": {
        "tags": [
          "LineItems"
        ],
        "summary": "Returns all invoice line items",
        "parameters": [
          {
            "name": "invoiceId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "PageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/modernSlaverySurveys": {
      "get": {
        "tags": [
          "ModernSlaverySurveys"
        ],
        "summary": "Returns all modern slavery surveys for a given company",
        "parameters": [
          {
            "name": "ModernSlaverySurveyId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "VendorId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "CompanyId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "VendorName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "VersionLabel",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SendCount",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "LastSentOn",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SurveyCompleted",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "SurveyCompletedOn",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/modernSlaverySurveys/{modernSlaverySurveyId}": {
      "get": {
        "tags": [
          "ModernSlaverySurveys"
        ],
        "summary": "Returns a single modern slavery survey by id",
        "parameters": [
          {
            "name": "modernSlaverySurveyId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "ModernSlaverySurveys"
        ],
        "summary": "Updates an existing modern slavery survey",
        "parameters": [
          {
            "name": "modernSlaverySurveyId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateModernSlaverySurveyRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateModernSlaverySurveyRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateModernSlaverySurveyRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/modernSlaverySurveys/datatables": {
      "post": {
        "tags": [
          "ModernSlaverySurveys"
        ],
        "summary": "Returns all modern slavery surveys using DataTables server side processing",
        "parameters": [
          {
            "name": "ModernSlaverySurveyId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "VendorId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "CompanyId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "VendorName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "VersionLabel",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SendCount",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "LastSentOn",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SurveyCompleted",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "SurveyCompletedOn",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/paymentbatches": {
      "post": {
        "tags": [
          "PaymentBatches"
        ],
        "summary": "Creates a new payment batch",
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePaymentBatchRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePaymentBatchRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePaymentBatchRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/purchaseorderdetails": {
      "get": {
        "tags": [
          "PurchaseOrderDetails"
        ],
        "summary": "Returns all purchase order details",
        "parameters": [
          {
            "name": "PurchaseOrderDetailId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "PurchaseOrderId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "VendorAccountingStore",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "VendorServerNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "CostCentreName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Amount",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "ControlNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Description",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Posted",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "PostedAmount",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "PageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "includeArchived",
            "in": "query",
            "description": "",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "PurchaseOrderDetails"
        ],
        "summary": "Creates an new purchase order detail",
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePurchaseOrderDetailRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePurchaseOrderDetailRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePurchaseOrderDetailRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/purchaseorderdetails/{purchaseOrderDetailId}": {
      "get": {
        "tags": [
          "PurchaseOrderDetails"
        ],
        "summary": "Returns a single purchase order detail by id",
        "parameters": [
          {
            "name": "purchaseOrderDetailId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "PurchaseOrderDetails"
        ],
        "summary": "Updates an existing purchase order detail",
        "parameters": [
          {
            "name": "purchaseOrderDetailId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePurchaseOrderDetailRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePurchaseOrderDetailRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePurchaseOrderDetailRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "PurchaseOrderDetails"
        ],
        "summary": "Deletes an existing purchase order detail",
        "parameters": [
          {
            "name": "purchaseOrderDetailId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/purchaseorderdetails/datatables": {
      "post": {
        "tags": [
          "PurchaseOrderDetails"
        ],
        "summary": "Returns all purchase orders using DataTables server side processing",
        "parameters": [
          {
            "name": "PurchaseOrderDetailId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "PurchaseOrderId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "VendorAccountingStore",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "VendorServerNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "CostCentreName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Amount",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "ControlNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Description",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Posted",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "PostedAmount",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "includeArchived",
            "in": "query",
            "description": "",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/purchaseorders": {
      "get": {
        "tags": [
          "PurchaseOrders"
        ],
        "summary": "Returns all purchase orders",
        "parameters": [
          {
            "name": "PurchaseOrderId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "CompanyId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "VendorId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "VendorServerNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "VendorAccountingStore",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PurchaseOrderNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "VendorName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Total",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "Status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "includeArchived",
            "in": "query",
            "description": "",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "PurchaseOrders"
        ],
        "summary": "Creates an new purchase order",
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePurchaseOrderRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePurchaseOrderRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePurchaseOrderRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/purchaseorders/{purchaseOrderId}": {
      "get": {
        "tags": [
          "PurchaseOrders"
        ],
        "summary": "Returns a single purchase order by id",
        "parameters": [
          {
            "name": "purchaseOrderId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "PurchaseOrders"
        ],
        "summary": "Updates an existing purchase order",
        "parameters": [
          {
            "name": "purchaseOrderId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePurchaseOrderRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePurchaseOrderRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePurchaseOrderRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "PurchaseOrders"
        ],
        "summary": "Deletes an existing purchase order",
        "parameters": [
          {
            "name": "purchaseOrderId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/purchaseorders/datatables": {
      "post": {
        "tags": [
          "PurchaseOrders"
        ],
        "summary": "Returns all purchase orders using DataTables server side processing",
        "parameters": [
          {
            "name": "PurchaseOrderId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "CompanyId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "VendorId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "VendorServerNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "VendorAccountingStore",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PurchaseOrderNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "VendorName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Total",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "Status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "includeArchived",
            "in": "query",
            "description": "",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/purchaseorders/archive": {
      "put": {
        "tags": [
          "PurchaseOrders"
        ],
        "summary": "Archives purchase orders older than the configured number of days",
        "parameters": [
          {
            "name": "archiveLimit",
            "in": "query",
            "description": "",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "archiveOlderThanDays",
            "in": "query",
            "description": "",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "archiveActionedOlderThanDays",
            "in": "query",
            "description": "",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/services": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "Returns all services",
        "parameters": [
          {
            "name": "Name",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Creates a new service",
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateServiceRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateServiceRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateServiceRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/services/{serviceId}": {
      "get": {
        "tags": [
          "Services"
        ],
        "summary": "Returns a single service by id",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Services"
        ],
        "summary": "Updates an existing service",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateServiceRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateServiceRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateServiceRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Services"
        ],
        "summary": "Deletes an existing service",
        "parameters": [
          {
            "name": "serviceId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/services/datatables": {
      "post": {
        "tags": [
          "Services"
        ],
        "summary": "Returns all services using DataTables server side processing",
        "parameters": [
          {
            "name": "Name",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/supplierreconciliations": {
      "post": {
        "tags": [
          "SupplierReconciliations"
        ],
        "summary": "Creates a new supplier reconciliation",
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSupplierReconciliationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSupplierReconciliationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSupplierReconciliationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/users": {
      "get": {
        "tags": [
          "Users"
        ],
        "summary": "Returns all users",
        "parameters": [
          {
            "name": "UserId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Username",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "FirstName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "LastName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "FullName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Title",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Email",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Active",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "PageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "Users"
        ],
        "summary": "Creates a new user",
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateUserRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateUserRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateUserRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/users/{userId}": {
      "get": {
        "tags": [
          "Users"
        ],
        "summary": "Returns a single user by id",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Users"
        ],
        "summary": "Updates an existing user",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateUserRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateUserRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateUserRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/users/datatables": {
      "post": {
        "tags": [
          "Users"
        ],
        "summary": "Returns all users using DataTables server side processing",
        "parameters": [
          {
            "name": "UserId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Username",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "FirstName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "LastName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "FullName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Title",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Email",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Active",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/vendors": {
      "get": {
        "tags": [
          "Vendors"
        ],
        "summary": "Returns all vendors for a given company",
        "parameters": [
          {
            "name": "VendorId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "CompanyId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Name",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ServerNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "AccountingStore",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "VendorNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PaymentGroup",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "BusinessNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PaymentTerms",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "GSTStatus",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/VendorGSTStatusNullable"
            }
          },
          {
            "name": "ABNStatus",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/VendorABNStatusNullable"
            }
          },
          {
            "name": "Active",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "Search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "post": {
        "tags": [
          "Vendors"
        ],
        "summary": "Creates a new vendor within a company",
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateVendorRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateVendorRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateVendorRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/vendors/{vendorId}": {
      "get": {
        "tags": [
          "Vendors"
        ],
        "summary": "Returns a single vendor by id",
        "parameters": [
          {
            "name": "vendorId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Vendors"
        ],
        "summary": "Updates an existing vendor",
        "parameters": [
          {
            "name": "vendorId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateVendorRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateVendorRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateVendorRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Vendors"
        ],
        "summary": "Deletes an existing vendor",
        "parameters": [
          {
            "name": "vendorId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/vendors/datatables": {
      "post": {
        "tags": [
          "Vendors"
        ],
        "summary": "Returns all vendors using DataTables server side processing",
        "parameters": [
          {
            "name": "VendorId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "CompanyId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Name",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ServerNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "AccountingStore",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "VendorNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PaymentGroup",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "BusinessNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "PaymentTerms",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "GSTStatus",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/VendorGSTStatusNullable"
            }
          },
          {
            "name": "ABNStatus",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/VendorABNStatusNullable"
            }
          },
          {
            "name": "Active",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "Search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/workflowactivities": {
      "get": {
        "tags": [
          "WorkflowActivities"
        ],
        "summary": "Returns all workflow activities for a given workflow",
        "parameters": [
          {
            "name": "WorkflowActivityId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "WorkflowId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "InvoiceId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "AssigneeUserId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "ActionedByUserId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Type",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/WorkflowActivityTypeNullable"
            }
          },
          {
            "name": "CreatedOn",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ActionedOn",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ActionedByFullName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "WorkflowInvoiceCompanyName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "WorkflowInvoiceInvoiceNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "WorkflowInvoicePurchaseOrderPurchaseOrderNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "WorkflowInvoicePrimaryCostCentreName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "WorkflowInvoiceInvoiceNotes",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "WorkflowInvoiceVendorPaymentGroup",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "FormattedAssignees",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Status",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/WorkflowActivityStatusNullable"
            }
          },
          {
            "name": "PageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "includeArchived",
            "in": "query",
            "description": "",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/workflowactivities/{workflowActivityId}": {
      "get": {
        "tags": [
          "WorkflowActivities"
        ],
        "summary": "Returns a single workflow activity by id",
        "parameters": [
          {
            "name": "workflowActivityId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "WorkflowActivities"
        ],
        "summary": "Updates an existing workflow activity",
        "parameters": [
          {
            "name": "workflowActivityId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWorkflowActivityRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWorkflowActivityRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWorkflowActivityRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/workflowactivities/datatables": {
      "post": {
        "tags": [
          "WorkflowActivities"
        ],
        "summary": "Returns all workflow activities using DataTables server side processing",
        "parameters": [
          {
            "name": "WorkflowActivityId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "WorkflowId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "InvoiceId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "AssigneeUserId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "ActionedByUserId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Type",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/WorkflowActivityTypeNullable"
            }
          },
          {
            "name": "CreatedOn",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ActionedOn",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ActionedByFullName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "WorkflowInvoiceCompanyName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "WorkflowInvoiceInvoiceNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "WorkflowInvoicePurchaseOrderPurchaseOrderNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "WorkflowInvoicePrimaryCostCentreName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "WorkflowInvoiceInvoiceNotes",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "WorkflowInvoiceVendorPaymentGroup",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "FormattedAssignees",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Status",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/WorkflowActivityStatusNullable"
            }
          },
          {
            "name": "includeArchived",
            "in": "query",
            "description": "",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DataTablesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/workflows": {
      "get": {
        "tags": [
          "Workflows"
        ],
        "summary": "Returns all workflow",
        "parameters": [
          {
            "name": "CompanyId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "PageNumber",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "includeArchived",
            "in": "query",
            "description": "",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/workflows/{invoiceId}": {
      "get": {
        "tags": [
          "Workflows"
        ],
        "summary": "Returns a single workflow by invoice id",
        "parameters": [
          {
            "name": "invoiceId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Workflows"
        ],
        "summary": "Updates an existing workflow",
        "parameters": [
          {
            "name": "invoiceId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWorkflowRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWorkflowRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateWorkflowRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "CompanyUserRole": {
        "enum": [
          0,
          1,
          2,
          3,
          4
        ],
        "type": "integer",
        "format": "int32"
      },
      "CompanyUserRoleNullable": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          null
        ],
        "type": "integer",
        "format": "int32",
        "nullable": true
      },
      "CreateAccountingSiteRequest": {
        "type": "object",
        "properties": {
          "companyId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "siteIdentifierCode": {
            "type": "string",
            "nullable": true
          },
          "siteLocationCode": {
            "type": "string",
            "nullable": true
          },
          "financierDealershipIdentifier": {
            "type": "string",
            "nullable": true
          },
          "inventoryScheduleNumber": {
            "type": "string",
            "nullable": true
          },
          "usedInventoryAccount": {
            "type": "string",
            "nullable": true
          },
          "reconditioningAccount": {
            "type": "string",
            "nullable": true
          },
          "nitcAccount": {
            "type": "string",
            "nullable": true
          },
          "floorplanAccount": {
            "type": "string",
            "nullable": true
          },
          "floorplanClearingAccount": {
            "type": "string",
            "nullable": true
          },
          "floorplanInterestExpenseAccount": {
            "type": "string",
            "nullable": true
          },
          "floorplanInterestPayableAccount": {
            "type": "string",
            "nullable": true
          },
          "gstInputTaxCreditAccount": {
            "type": "string",
            "nullable": true
          },
          "gstOutputTaxAccount": {
            "type": "string",
            "nullable": true
          },
          "floorplanPostInterestJournalDefault": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CreateAgedTaskReportRequest": {
        "type": "object",
        "properties": {
          "companyId": {
            "type": "string",
            "format": "uuid"
          },
          "startDate": {
            "type": "string",
            "format": "date-time"
          },
          "endDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "CreateAllocationRequest": {
        "type": "object",
        "properties": {
          "primaryCostCentre": {
            "type": "boolean"
          },
          "costCentreId": {
            "type": "string",
            "format": "uuid"
          },
          "percentage": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "CreateBailmentPayoutJournalRequest": {
        "type": "object",
        "properties": {
          "companyId": {
            "type": "string",
            "format": "uuid"
          },
          "financierName": {
            "type": "string",
            "nullable": true
          },
          "filename": {
            "type": "string",
            "nullable": true
          },
          "fileData": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateCompanyRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "countryCode": {
            "type": "string",
            "nullable": true
          },
          "dms": {
            "type": "string",
            "nullable": true
          },
          "validateControlNumbers": {
            "$ref": "#/components/schemas/LineItemControlValidation"
          },
          "serverNumber": {
            "type": "string",
            "nullable": true
          },
          "serverAddress": {
            "type": "string",
            "nullable": true
          },
          "operatingStore": {
            "type": "string",
            "nullable": true
          },
          "accountingStore": {
            "type": "string",
            "nullable": true
          },
          "department": {
            "type": "string",
            "nullable": true
          },
          "taxRate": {
            "type": "number",
            "format": "double"
          },
          "branch": {
            "type": "string",
            "nullable": true
          },
          "dealershipCode": {
            "type": "string",
            "nullable": true
          },
          "apAccount": {
            "type": "string",
            "nullable": true
          },
          "gstAccount": {
            "type": "string",
            "nullable": true
          },
          "bankCode": {
            "type": "string",
            "nullable": true
          },
          "customerPaymentBankCode": {
            "type": "string",
            "nullable": true
          },
          "customerPaymentEftRestrictedBankCode": {
            "type": "string",
            "nullable": true
          },
          "customerPaymentDefaultAccount": {
            "type": "string",
            "nullable": true
          },
          "customerPaymentScheduleBalanceChecks": {
            "type": "boolean"
          },
          "customerPaymentFailureNotifications": {
            "type": "boolean"
          },
          "mailbox": {
            "type": "string",
            "nullable": true
          },
          "mailboxActive": {
            "type": "boolean"
          },
          "exceptionMailbox": {
            "type": "string",
            "nullable": true
          },
          "periodCloseDays": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "CreateCompanySecureDetailRequest": {
        "type": "object",
        "properties": {
          "companyId": {
            "type": "string",
            "format": "uuid"
          },
          "tuneApiUri": {
            "type": "string",
            "nullable": true
          },
          "tuneApiKey": {
            "type": "string",
            "nullable": true
          },
          "tuneUsername": {
            "type": "string",
            "nullable": true
          },
          "tunePassword": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateCompanyUserBulkRequest": {
        "type": "object",
        "properties": {
          "companyIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "userId": {
            "type": "string",
            "format": "uuid"
          },
          "role": {
            "$ref": "#/components/schemas/CompanyUserRole"
          }
        },
        "additionalProperties": false
      },
      "CreateCompanyUserRequest": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "string",
            "format": "uuid"
          },
          "role": {
            "$ref": "#/components/schemas/CompanyUserRole"
          }
        },
        "additionalProperties": false
      },
      "CreateCostCentreRequest": {
        "type": "object",
        "properties": {
          "companyId": {
            "type": "string",
            "format": "uuid"
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "intercompany": {
            "type": "boolean"
          },
          "intercompanyCostCentreId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "requireControlNumber": {
            "type": "boolean"
          },
          "primaryReferenceDescription": {
            "type": "string",
            "nullable": true
          },
          "subledgerModule": {
            "type": "string",
            "nullable": true
          },
          "approverId": {
            "type": "string",
            "format": "uuid"
          },
          "delegateId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "approvalLimit": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateCustomerPaymentRequest": {
        "type": "object",
        "properties": {
          "companyId": {
            "type": "string",
            "format": "uuid"
          },
          "dealNumber": {
            "type": "string",
            "nullable": true
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "eftAccountName": {
            "type": "string",
            "nullable": true
          },
          "eftAccountNumber": {
            "type": "string",
            "nullable": true
          },
          "eftBsb": {
            "type": "string",
            "nullable": true
          },
          "documentFileExtension": {
            "type": "string",
            "nullable": true
          },
          "restrictEftDetails": {
            "type": "boolean"
          },
          "fileData": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateFloorplanReconciliationRequest": {
        "type": "object",
        "properties": {
          "accountingSiteId": {
            "type": "string",
            "format": "uuid"
          },
          "financierName": {
            "type": "string",
            "nullable": true
          },
          "submitInterestJournal": {
            "type": "boolean"
          },
          "filename": {
            "type": "string",
            "nullable": true
          },
          "fileData": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateIntercompanyJournalLineRequest": {
        "type": "object",
        "properties": {
          "costCentreId": {
            "type": "string",
            "format": "uuid"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "controlNumber": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "intercompany": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CreateIntercompanyJournalRequest": {
        "type": "object",
        "properties": {
          "requestAmount": {
            "type": "number",
            "format": "double"
          },
          "originLines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreateIntercompanyJournalLineRequest"
            },
            "nullable": true
          },
          "destinationLines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreateIntercompanyJournalLineRequest"
            },
            "nullable": true
          },
          "journalDate": {
            "type": "string",
            "format": "date-time"
          },
          "fileData": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateInvoiceRequest": {
        "type": "object",
        "properties": {
          "companyId": {
            "type": "string",
            "format": "uuid"
          },
          "vendorInternalReference": {
            "type": "string",
            "nullable": true
          },
          "businessNumber": {
            "type": "string",
            "nullable": true
          },
          "invoiceNumber": {
            "type": "string",
            "nullable": true
          },
          "invoiceDate": {
            "type": "string",
            "format": "date-time"
          },
          "purchaseOrderNumber": {
            "type": "string",
            "nullable": true
          },
          "totalAmount": {
            "type": "number",
            "format": "double"
          },
          "tax": {
            "type": "number",
            "format": "double"
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "bankAccountNumber": {
            "type": "string",
            "nullable": true
          },
          "bsb": {
            "type": "string",
            "nullable": true
          },
          "receivedOn": {
            "type": "string",
            "format": "date-time"
          },
          "submittedBy": {
            "type": "string",
            "nullable": true
          },
          "manualUpload": {
            "type": "boolean"
          },
          "systemReference": {
            "type": "string",
            "nullable": true
          },
          "documentVerificationComment": {
            "type": "string",
            "nullable": true
          },
          "fileData": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateInvoiceRuleRequest": {
        "type": "object",
        "properties": {
          "companyId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "active": {
            "type": "boolean"
          },
          "autoApproval": {
            "type": "boolean"
          },
          "autoApprovalAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "autoApprovalFrequency": {
            "$ref": "#/components/schemas/InvoiceRuleAutoApprovalFrequencyNullable"
          },
          "vendors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreateInvoiceRuleVendorRequest"
            },
            "nullable": true
          },
          "allocations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreateAllocationRequest"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateInvoiceRuleVendorRequest": {
        "type": "object",
        "properties": {
          "vendorId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "CreateLineItemRequest": {
        "type": "object",
        "properties": {
          "invoiceId": {
            "type": "string",
            "format": "uuid"
          },
          "costCentreId": {
            "type": "string",
            "format": "uuid"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "controlNumber": {
            "type": "string",
            "nullable": true
          },
          "supplierPart": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "index": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "CreatePaymentBatchRequest": {
        "type": "object",
        "properties": {
          "companyId": {
            "type": "string",
            "format": "uuid"
          },
          "paymentGroup": {
            "type": "string",
            "nullable": true
          },
          "batchDueDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "batchEFTDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lockPassword": {
            "type": "string",
            "nullable": true
          },
          "existingBatchNumber": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreatePurchaseOrderDetailRequest": {
        "type": "object",
        "properties": {
          "purchaseOrderId": {
            "type": "string",
            "format": "uuid"
          },
          "costCentreId": {
            "type": "string",
            "format": "uuid"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "controlNumber": {
            "type": "string",
            "nullable": true
          },
          "supplierPart": {
            "type": "string",
            "nullable": true
          },
          "index": {
            "type": "integer",
            "format": "int32"
          },
          "posted": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CreatePurchaseOrderRequest": {
        "type": "object",
        "properties": {
          "purchaseOrderNumber": {
            "type": "string",
            "nullable": true
          },
          "internalReference": {
            "type": "string",
            "nullable": true
          },
          "vendorId": {
            "type": "string",
            "format": "uuid"
          },
          "total": {
            "type": "number",
            "format": "double"
          },
          "type": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateServiceRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateSupplierReconciliationRequest": {
        "type": "object",
        "properties": {
          "companyId": {
            "type": "string",
            "format": "uuid"
          },
          "vendorId": {
            "type": "string",
            "format": "uuid"
          },
          "supplierName": {
            "type": "string",
            "nullable": true
          },
          "statementTotal": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "statementDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "filename": {
            "type": "string",
            "nullable": true
          },
          "fileData": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateUsedInventoryReconciliationRequest": {
        "type": "object",
        "properties": {
          "accountingSiteId": {
            "type": "string",
            "format": "uuid"
          },
          "cutoffDate": {
            "type": "string",
            "format": "date-time"
          },
          "createReconditioningRec": {
            "type": "boolean"
          },
          "createNitcRec": {
            "type": "boolean"
          },
          "createUsedInventorySubledgerRec": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CreateUserRequest": {
        "type": "object",
        "properties": {
          "username": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "active": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CreateVendorRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "internalReference": {
            "type": "string",
            "nullable": true
          },
          "accountingStore": {
            "type": "string",
            "nullable": true
          },
          "serverNumber": {
            "type": "string",
            "nullable": true
          },
          "vendorNumber": {
            "type": "string",
            "nullable": true
          },
          "paymentGroup": {
            "type": "string",
            "nullable": true
          },
          "businessNumber": {
            "type": "string",
            "nullable": true
          },
          "address1": {
            "type": "string",
            "nullable": true
          },
          "address2": {
            "type": "string",
            "nullable": true
          },
          "suburb": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "type": "string",
            "nullable": true
          },
          "country": {
            "type": "string",
            "nullable": true
          },
          "postCode": {
            "type": "string",
            "nullable": true
          },
          "businessPhone": {
            "type": "string",
            "nullable": true
          },
          "fax": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "bankAccountNumber": {
            "type": "string",
            "nullable": true
          },
          "bsb": {
            "type": "string",
            "nullable": true
          },
          "abnStatus": {
            "$ref": "#/components/schemas/VendorABNStatus"
          },
          "gstStatus": {
            "$ref": "#/components/schemas/VendorGSTStatus"
          },
          "paymentTerms": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CustomerPaymentPostingMethod": {
        "enum": [
          0,
          1
        ],
        "type": "integer",
        "format": "int32"
      },
      "CustomerPaymentResponse": {
        "type": "object",
        "properties": {
          "customerPaymentId": {
            "type": "string",
            "format": "uuid"
          },
          "paymentNumber": {
            "type": "string",
            "nullable": true
          },
          "hasPostingPayloads": {
            "type": "boolean"
          },
          "hasUnpostedEft": {
            "type": "boolean"
          },
          "companyId": {
            "type": "string",
            "format": "uuid"
          },
          "companyName": {
            "type": "string",
            "nullable": true
          },
          "companyDms": {
            "type": "string",
            "nullable": true
          },
          "companyServerNumber": {
            "type": "string",
            "nullable": true
          },
          "companyServerAddress": {
            "type": "string",
            "nullable": true
          },
          "companyAccountingStore": {
            "type": "string",
            "nullable": true
          },
          "dealNumber": {
            "type": "string",
            "nullable": true
          },
          "customerNumber": {
            "type": "string",
            "nullable": true
          },
          "customerName": {
            "type": "string",
            "nullable": true
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "dmsAccountCode": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "scheduleBalance": {
            "type": "number",
            "format": "double"
          },
          "eftAccountName": {
            "type": "string",
            "nullable": true
          },
          "eftAccountNumber": {
            "type": "string",
            "nullable": true
          },
          "eftBsb": {
            "type": "string",
            "nullable": true
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          },
          "submittedBy": {
            "type": "string",
            "nullable": true
          },
          "rejectedBy": {
            "type": "string",
            "nullable": true
          },
          "rejectedOn": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "batchNumber": {
            "type": "string",
            "nullable": true
          },
          "eftNumber": {
            "type": "string",
            "nullable": true
          },
          "possibleDuplicate": {
            "type": "boolean"
          },
          "restrictEftDetails": {
            "type": "boolean"
          },
          "hasDocument": {
            "type": "boolean"
          },
          "documentFileExtension": {
            "type": "string",
            "nullable": true
          },
          "documentUrl": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/CustomerPaymentStatus"
          },
          "statusMessage": {
            "type": "string",
            "nullable": true
          },
          "rejectionReason": {
            "type": "string",
            "nullable": true
          },
          "createdOn": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedOn": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "CustomerPaymentResponsePagedResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerPaymentResponse"
            },
            "nullable": true
          },
          "pageNumber": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "pageSize": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "nextPage": {
            "type": "string",
            "nullable": true
          },
          "previousPage": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CustomerPaymentStatus": {
        "enum": [
          0,
          1,
          2,
          3,
          4
        ],
        "type": "integer",
        "format": "int32"
      },
      "DataTablesRequest": {
        "type": "object",
        "properties": {
          "draw": {
            "type": "integer",
            "format": "int32"
          },
          "start": {
            "type": "integer",
            "format": "int32"
          },
          "length": {
            "type": "integer",
            "format": "int32"
          },
          "columns": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DataTablesRequestColumn"
            },
            "nullable": true
          },
          "search": {
            "$ref": "#/components/schemas/DataTablesRequestSearch"
          },
          "order": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DataTablesRequestOrder"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DataTablesRequestColumn": {
        "type": "object",
        "properties": {
          "data": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "searchable": {
            "type": "boolean"
          },
          "orderable": {
            "type": "boolean"
          },
          "search": {
            "$ref": "#/components/schemas/DataTablesRequestSearch"
          }
        },
        "additionalProperties": false
      },
      "DataTablesRequestOrder": {
        "type": "object",
        "properties": {
          "column": {
            "type": "integer",
            "format": "int32"
          },
          "dir": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DataTablesRequestSearch": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "nullable": true
          },
          "regex": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "InvoicePostingMethod": {
        "enum": [
          0,
          1
        ],
        "type": "integer",
        "format": "int32"
      },
      "InvoiceRejectReasonNullable": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          null
        ],
        "type": "integer",
        "format": "int32",
        "nullable": true
      },
      "InvoiceRuleAutoApprovalFrequencyNullable": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          null
        ],
        "type": "integer",
        "format": "int32",
        "nullable": true
      },
      "InvoiceStatus": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7
        ],
        "type": "integer",
        "format": "int32"
      },
      "LineItemControlValidation": {
        "enum": [
          0,
          1
        ],
        "type": "integer",
        "format": "int32"
      },
      "ReplaceApproverRequest": {
        "type": "object",
        "properties": {
          "companyId": {
            "type": "string",
            "format": "uuid"
          },
          "currentApproverId": {
            "type": "string",
            "format": "uuid"
          },
          "replacementApproverId": {
            "type": "string",
            "format": "uuid"
          },
          "delegateTasks": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "TransferCompanyCostCentresRequest": {
        "type": "object",
        "properties": {
          "companyId": {
            "type": "string",
            "format": "uuid"
          },
          "destinationCompanyId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "UpdateAccountingSiteRequest": {
        "type": "object",
        "properties": {
          "companyId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "siteIdentifierCode": {
            "type": "string",
            "nullable": true
          },
          "siteLocationCode": {
            "type": "string",
            "nullable": true
          },
          "financierDealershipIdentifier": {
            "type": "string",
            "nullable": true
          },
          "inventoryScheduleNumber": {
            "type": "string",
            "nullable": true
          },
          "journalUploadTemplateNumber": {
            "type": "string",
            "nullable": true
          },
          "usedInventoryAccount": {
            "type": "string",
            "nullable": true
          },
          "reconditioningAccount": {
            "type": "string",
            "nullable": true
          },
          "nitcAccount": {
            "type": "string",
            "nullable": true
          },
          "floorplanAccount": {
            "type": "string",
            "nullable": true
          },
          "floorplanClearingAccount": {
            "type": "string",
            "nullable": true
          },
          "floorplanInterestExpenseAccount": {
            "type": "string",
            "nullable": true
          },
          "floorplanInterestPayableAccount": {
            "type": "string",
            "nullable": true
          },
          "gstInputTaxCreditAccount": {
            "type": "string",
            "nullable": true
          },
          "gstOutputTaxAccount": {
            "type": "string",
            "nullable": true
          },
          "floorplanPostInterestJournalDefault": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "UpdateAllocationRequest": {
        "type": "object",
        "properties": {
          "primaryCostCentre": {
            "type": "boolean"
          },
          "costCentreId": {
            "type": "string",
            "format": "uuid"
          },
          "percentage": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "UpdateCompanyRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "countryCode": {
            "type": "string",
            "nullable": true
          },
          "dms": {
            "type": "string",
            "nullable": true
          },
          "invoicePostingMethod": {
            "$ref": "#/components/schemas/InvoicePostingMethod"
          },
          "validateControlNumbers": {
            "$ref": "#/components/schemas/LineItemControlValidation"
          },
          "serverAddress": {
            "type": "string",
            "nullable": true
          },
          "operatingStore": {
            "type": "string",
            "nullable": true
          },
          "department": {
            "type": "string",
            "nullable": true
          },
          "branch": {
            "type": "string",
            "nullable": true
          },
          "taxRate": {
            "type": "number",
            "format": "double"
          },
          "dealershipCode": {
            "type": "string",
            "nullable": true
          },
          "apAccount": {
            "type": "string",
            "nullable": true
          },
          "gstAccount": {
            "type": "string",
            "nullable": true
          },
          "bankCode": {
            "type": "string",
            "nullable": true
          },
          "customerPaymentBankCode": {
            "type": "string",
            "nullable": true
          },
          "customerPaymentEftRestrictedBankCode": {
            "type": "string",
            "nullable": true
          },
          "customerPaymentDefaultAccount": {
            "type": "string",
            "nullable": true
          },
          "customerPaymentScheduleBalanceChecks": {
            "type": "boolean"
          },
          "customerPaymentFailureNotifications": {
            "type": "boolean"
          },
          "customerPaymentPostingMethod": {
            "$ref": "#/components/schemas/CustomerPaymentPostingMethod"
          },
          "mailbox": {
            "type": "string",
            "nullable": true
          },
          "exceptionMailbox": {
            "type": "string",
            "nullable": true
          },
          "mailboxActive": {
            "type": "boolean"
          },
          "periodCloseDays": {
            "type": "integer",
            "format": "int32"
          },
          "loadPOData": {
            "type": "boolean"
          },
          "updateCostCentres": {
            "type": "boolean"
          },
          "postApprovedInvoices": {
            "type": "boolean"
          },
          "checkVendorGstStatus": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "UpdateCostCentreRequest": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "intercompany": {
            "type": "boolean"
          },
          "intercompanyCostCentreId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "requireControlNumber": {
            "type": "boolean"
          },
          "primaryReferenceDescription": {
            "type": "string",
            "nullable": true
          },
          "subledgerModule": {
            "type": "string",
            "nullable": true
          },
          "approverId": {
            "type": "string",
            "format": "uuid"
          },
          "delegateId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "approvalLimit": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "active": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "UpdateCustomerPaymentRequest": {
        "type": "object",
        "properties": {
          "dealNumber": {
            "type": "string",
            "nullable": true
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "dmsAccountCode": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "eftAccountName": {
            "type": "string",
            "nullable": true
          },
          "eftAccountNumber": {
            "type": "string",
            "nullable": true
          },
          "eftBsb": {
            "type": "string",
            "nullable": true
          },
          "batchNumber": {
            "type": "string",
            "nullable": true
          },
          "eftNumber": {
            "type": "string",
            "nullable": true
          },
          "documentFileExtension": {
            "type": "string",
            "nullable": true
          },
          "fileData": {
            "type": "string",
            "nullable": true
          },
          "deleteDocument": {
            "type": "boolean"
          },
          "restrictEftDetails": {
            "type": "boolean",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/CustomerPaymentStatus"
          },
          "statusMessage": {
            "type": "string",
            "nullable": true
          },
          "rejectionReason": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateCustomerPaymentStatusRequest": {
        "type": "object",
        "properties": {
          "status": {
            "$ref": "#/components/schemas/CustomerPaymentStatus"
          },
          "statusMessage": {
            "type": "string",
            "nullable": true
          },
          "eftNumber": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateInvoiceNotesRequest": {
        "type": "object",
        "properties": {
          "invoiceNotes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateInvoiceRequest": {
        "type": "object",
        "properties": {
          "batchNumber": {
            "type": "string",
            "nullable": true
          },
          "eftNumber": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/InvoiceStatus"
          },
          "statusMessage": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateInvoiceRuleRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "active": {
            "type": "boolean"
          },
          "autoApproval": {
            "type": "boolean"
          },
          "autoApprovalAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "autoApprovalFrequency": {
            "$ref": "#/components/schemas/InvoiceRuleAutoApprovalFrequencyNullable"
          },
          "vendors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UpdateInvoiceRuleVendorRequest"
            },
            "nullable": true
          },
          "allocations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UpdateAllocationRequest"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateInvoiceRuleVendorRequest": {
        "type": "object",
        "properties": {
          "vendorId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "UpdateModernSlaverySurveyRequest": {
        "type": "object",
        "properties": {
          "organisationName": {
            "type": "string",
            "nullable": true
          },
          "organisationAddress": {
            "type": "string",
            "nullable": true
          },
          "abn": {
            "type": "string",
            "nullable": true
          },
          "parentCompany": {
            "type": "string",
            "nullable": true
          },
          "contactPerson": {
            "type": "string",
            "nullable": true
          },
          "contactEmail": {
            "type": "string",
            "nullable": true
          },
          "contactPhone": {
            "type": "string",
            "nullable": true
          },
          "supplyChainVisibility": {
            "type": "string",
            "nullable": true
          },
          "policyInPlace": {
            "type": "boolean",
            "nullable": true
          },
          "personResponsible": {
            "type": "boolean",
            "nullable": true
          },
          "staffTrained": {
            "type": "boolean",
            "nullable": true
          },
          "screeningPerformed": {
            "type": "boolean",
            "nullable": true
          },
          "lowSkilledWorkers": {
            "type": "boolean",
            "nullable": true
          },
          "covidVulnerabilityOrganisation": {
            "type": "boolean",
            "nullable": true
          },
          "covidVulnerabilityOrganisationStepsTaken": {
            "type": "boolean",
            "nullable": true
          },
          "covidVulnerabilitySupplyChain": {
            "type": "boolean",
            "nullable": true
          },
          "covidVulnerabilitySupplyChainStepsTaken": {
            "type": "boolean",
            "nullable": true
          },
          "responseProcess": {
            "type": "boolean",
            "nullable": true
          },
          "responseDueDiligence": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdatePurchaseOrderDetailRequest": {
        "type": "object",
        "properties": {
          "purchaseOrderId": {
            "type": "string",
            "format": "uuid"
          },
          "costCentreId": {
            "type": "string",
            "format": "uuid"
          },
          "amount": {
            "type": "number",
            "format": "double"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "controlNumber": {
            "type": "string",
            "nullable": true
          },
          "supplierPart": {
            "type": "string",
            "nullable": true
          },
          "index": {
            "type": "integer",
            "format": "int32"
          },
          "posted": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "UpdatePurchaseOrderRequest": {
        "type": "object",
        "properties": {
          "purchaseOrderNumber": {
            "type": "string",
            "nullable": true
          },
          "internalReference": {
            "type": "string",
            "nullable": true
          },
          "vendorId": {
            "type": "string",
            "format": "uuid"
          },
          "total": {
            "type": "number",
            "format": "double"
          },
          "type": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateServiceRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "lastStartTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastEndTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastRunResult": {
            "type": "string",
            "nullable": true
          },
          "customData": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateUserRequest": {
        "type": "object",
        "properties": {
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "username": {
            "type": "string",
            "nullable": true
          },
          "active": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "UpdateVendorRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "vendorNumber": {
            "type": "string",
            "nullable": true
          },
          "paymentGroup": {
            "type": "string",
            "nullable": true
          },
          "businessNumber": {
            "type": "string",
            "nullable": true
          },
          "address1": {
            "type": "string",
            "nullable": true
          },
          "address2": {
            "type": "string",
            "nullable": true
          },
          "suburb": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "type": "string",
            "nullable": true
          },
          "country": {
            "type": "string",
            "nullable": true
          },
          "postCode": {
            "type": "string",
            "nullable": true
          },
          "businessPhone": {
            "type": "string",
            "nullable": true
          },
          "fax": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "bankName": {
            "type": "string",
            "nullable": true
          },
          "bankAccountNumber": {
            "type": "string",
            "nullable": true
          },
          "bsb": {
            "type": "string",
            "nullable": true
          },
          "abnStatus": {
            "$ref": "#/components/schemas/VendorABNStatus"
          },
          "gstStatus": {
            "$ref": "#/components/schemas/VendorGSTStatus"
          },
          "paymentTerms": {
            "type": "string",
            "nullable": true
          },
          "active": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateWorkflowActivityRequest": {
        "type": "object",
        "properties": {
          "status": {
            "$ref": "#/components/schemas/WorkflowActivityStatus"
          },
          "rejectReason": {
            "$ref": "#/components/schemas/InvoiceRejectReasonNullable"
          },
          "comments": {
            "type": "string",
            "nullable": true
          },
          "invoiceRuleId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "entryDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "purchaseOrderNumber": {
            "type": "string",
            "nullable": true
          },
          "delegateUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "lineItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreateLineItemRequest"
            },
            "nullable": true
          },
          "vendorId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "companyId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "invoiceNumber": {
            "type": "string",
            "nullable": true
          },
          "invoiceDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "totalAmount": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "tax": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "businessNumber": {
            "type": "string",
            "nullable": true
          },
          "currency": {
            "type": "string",
            "nullable": true
          },
          "invoiceNotes": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateWorkflowRequest": {
        "type": "object",
        "properties": {
          "stage": {
            "$ref": "#/components/schemas/WorkflowStage"
          }
        },
        "additionalProperties": false
      },
      "VendorABNStatus": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "format": "int32"
      },
      "VendorABNStatusNullable": {
        "enum": [
          0,
          1,
          2,
          null
        ],
        "type": "integer",
        "format": "int32",
        "nullable": true
      },
      "VendorGSTStatus": {
        "enum": [
          0,
          1,
          2,
          3
        ],
        "type": "integer",
        "format": "int32"
      },
      "VendorGSTStatusNullable": {
        "enum": [
          0,
          1,
          2,
          3,
          null
        ],
        "type": "integer",
        "format": "int32",
        "nullable": true
      },
      "WorkflowActivityStatus": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5
        ],
        "type": "integer",
        "format": "int32"
      },
      "WorkflowActivityStatusNullable": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          null
        ],
        "type": "integer",
        "format": "int32",
        "nullable": true
      },
      "WorkflowActivityTypeNullable": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          null
        ],
        "type": "integer",
        "format": "int32",
        "nullable": true
      },
      "WorkflowStage": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8
        ],
        "type": "integer",
        "format": "int32"
      }
    },
    "securitySchemes": {
      "oauth2": {
        "type": "oauth2",
        "flows": {
          "implicit": {
            "authorizationUrl": "https://login.microsoftonline.com/a882bc25-e1dd-4721-b861-aba1afaec76d/oauth2/v2.0/authorize",
            "tokenUrl": "https://login.microsoftonline.com/a882bc25-e1dd-4721-b861-aba1afaec76d/oauth2/v2.0/token",
            "scopes": {
              "api://a3d09406-c1b0-42ab-888c-38546fd28dab/access_as_user": "Access SAM Portal API as a user."
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "oauth2": [ ]
    }
  ]
}