openapi: 3.0.0
info:
  version: ACC-API
  title: 
  description: Access API
servers:
  - url: http://localhost:8095/
paths:
  /Customers:
    get:
      description: ''
      operationId: 'getCustomers'
      parameters:
        - in: query
          name: createdon
          description: The date the item was created
          required: false
          schema:
            type: string
            format: date
        - in: query
          name: updatedon
          description: The date the item was last updated
          required: false
          schema:
            type: string
            format: date
      responses:
        200:
          description: A paged collection of items including a total count of matches
          content: 
            application/json:
              schema:
                $ref: '#/components/schemas/CustomersCollection'
        403:
          description: A security issue occured, an incorrect API key is the most likely cause
        400:
          description: An incorrect query parameter or condition
  /Customers/{id}:
    get:
      description: ''
      operationId: 'getCustomersById'
      parameters:
        - in: path
          name: id
          description: 'The ID of the item'
          required: true
          schema:
            type: integer
      responses:
        200:
          description: A single 
          content: 
            application/json:
              schema:
                $ref: '#/components/schemas/Customers'
        403:
          description: A security issue occured, an incorrect API key is the most likely cause
        400:
          description: An incorrect query parameter or condition
  /CustomerContacts:
    get:
      description: ''
      operationId: 'getCustomerContacts'
      parameters:
        - in: query
          name: createdon
          description: The date the item was created
          required: false
          schema:
            type: string
            format: date
        - in: query
          name: updatedon
          description: The date the item was last updated
          required: false
          schema:
            type: string
            format: date
      responses:
        200:
          description: A paged collection of items including a total count of matches
          content: 
            application/json:
              schema:
                $ref: '#/components/schemas/CustomerContactsCollection'
        403:
          description: A security issue occured, an incorrect API key is the most likely cause
        400:
          description: An incorrect query parameter or condition
  /CustomerContacts/{id}:
    get:
      description: ''
      operationId: 'getCustomerContactsById'
      parameters:
        - in: path
          name: id
          description: 'The ID of the item'
          required: true
          schema:
            type: integer
      responses:
        200:
          description: A single 
          content: 
            application/json:
              schema:
                $ref: '#/components/schemas/CustomerContacts'
        403:
          description: A security issue occured, an incorrect API key is the most likely cause
        400:
          description: An incorrect query parameter or condition
  /Products:
    get:
      description: ''
      operationId: 'getProducts'
      parameters:
        - in: query
          name: createdon
          description: The date the item was created
          required: false
          schema:
            type: string
            format: date
        - in: query
          name: updatedon
          description: The date the item was last updated
          required: false
          schema:
            type: string
            format: date
      responses:
        200:
          description: A paged collection of items including a total count of matches
          content: 
            application/json:
              schema:
                $ref: '#/components/schemas/ProductsCollection'
        403:
          description: A security issue occured, an incorrect API key is the most likely cause
        400:
          description: An incorrect query parameter or condition
  /Products/{id}:
    get:
      description: ''
      operationId: 'getProductsById'
      parameters:
        - in: path
          name: id
          description: 'The ID of the item'
          required: true
          schema:
            type: integer
      responses:
        200:
          description: A single 
          content: 
            application/json:
              schema:
                $ref: '#/components/schemas/Products'
        403:
          description: A security issue occured, an incorrect API key is the most likely cause
        400:
          description: An incorrect query parameter or condition
  /ProductBranchStatistics:
    get:
      description: ''
      operationId: 'getProductBranchStatistics'
      parameters:
        - in: query
          name: createdon
          description: The date the item was created
          required: false
          schema:
            type: string
            format: date
        - in: query
          name: updatedon
          description: The date the item was last updated
          required: false
          schema:
            type: string
            format: date
      responses:
        200:
          description: A paged collection of items including a total count of matches
          content: 
            application/json:
              schema:
                $ref: '#/components/schemas/ProductBranchStatisticsCollection'
        403:
          description: A security issue occured, an incorrect API key is the most likely cause
        400:
          description: An incorrect query parameter or condition
  /ProductBranchStatistics/{id}:
    get:
      description: ''
      operationId: 'getProductBranchStatisticsById'
      parameters:
        - in: path
          name: id
          description: 'The ID of the item'
          required: true
          schema:
            type: integer
      responses:
        200:
          description: A single 
          content: 
            application/json:
              schema:
                $ref: '#/components/schemas/ProductBranchStatistics'
        403:
          description: A security issue occured, an incorrect API key is the most likely cause
        400:
          description: An incorrect query parameter or condition
  /SalesOrders:
    get:
      description: ''
      operationId: 'getSalesOrders'
      parameters:
        - in: query
          name: createdon
          description: The date the item was created
          required: false
          schema:
            type: string
            format: date
        - in: query
          name: updatedon
          description: The date the item was last updated
          required: false
          schema:
            type: string
            format: date
      responses:
        200:
          description: A paged collection of items including a total count of matches
          content: 
            application/json:
              schema:
                $ref: '#/components/schemas/SalesOrdersCollection'
        403:
          description: A security issue occured, an incorrect API key is the most likely cause
        400:
          description: An incorrect query parameter or condition
  /SalesOrders/{id}:
    get:
      description: ''
      operationId: 'getSalesOrdersById'
      parameters:
        - in: path
          name: id
          description: 'The ID of the item'
          required: true
          schema:
            type: integer
      responses:
        200:
          description: A single 
          content: 
            application/json:
              schema:
                $ref: '#/components/schemas/SalesOrders'
        403:
          description: A security issue occured, an incorrect API key is the most likely cause
        400:
          description: An incorrect query parameter or condition
  /SalesOrderLinesForReview:
    get:
      description: ''
      operationId: 'getSalesOrderLinesForReview'
      parameters:
        - in: query
          name: createdon
          description: The date the item was created
          required: false
          schema:
            type: string
            format: date
        - in: query
          name: updatedon
          description: The date the item was last updated
          required: false
          schema:
            type: string
            format: date
      responses:
        200:
          description: A paged collection of items including a total count of matches
          content: 
            application/json:
              schema:
                $ref: '#/components/schemas/SalesOrderLinesForReviewCollection'
        403:
          description: A security issue occured, an incorrect API key is the most likely cause
        400:
          description: An incorrect query parameter or condition
  /SalesOrderLinesForReview/{id}:
    get:
      description: ''
      operationId: 'getSalesOrderLinesForReviewById'
      parameters:
        - in: path
          name: id
          description: 'The ID of the item'
          required: true
          schema:
            type: integer
      responses:
        200:
          description: A single 
          content: 
            application/json:
              schema:
                $ref: '#/components/schemas/SalesOrderLinesForReview'
        403:
          description: A security issue occured, an incorrect API key is the most likely cause
        400:
          description: An incorrect query parameter or condition
  /SalesQuotations:
    get:
      description: ''
      operationId: 'getSalesQuotations'
      parameters:
        - in: query
          name: createdon
          description: The date the item was created
          required: false
          schema:
            type: string
            format: date
        - in: query
          name: updatedon
          description: The date the item was last updated
          required: false
          schema:
            type: string
            format: date
      responses:
        200:
          description: A paged collection of items including a total count of matches
          content: 
            application/json:
              schema:
                $ref: '#/components/schemas/SalesQuotationsCollection'
        403:
          description: A security issue occured, an incorrect API key is the most likely cause
        400:
          description: An incorrect query parameter or condition
  /SalesQuotations/{id}:
    get:
      description: ''
      operationId: 'getSalesQuotationsById'
      parameters:
        - in: path
          name: id
          description: 'The ID of the item'
          required: true
          schema:
            type: integer
      responses:
        200:
          description: A single 
          content: 
            application/json:
              schema:
                $ref: '#/components/schemas/SalesQuotations'
        403:
          description: A security issue occured, an incorrect API key is the most likely cause
        400:
          description: An incorrect query parameter or condition
  /Prospects:
    get:
      description: ''
      operationId: 'getProspects'
      parameters:
        - in: query
          name: createdon
          description: The date the item was created
          required: false
          schema:
            type: string
            format: date
        - in: query
          name: updatedon
          description: The date the item was last updated
          required: false
          schema:
            type: string
            format: date
      responses:
        200:
          description: A paged collection of items including a total count of matches
          content: 
            application/json:
              schema:
                $ref: '#/components/schemas/ProspectsCollection'
        403:
          description: A security issue occured, an incorrect API key is the most likely cause
        400:
          description: An incorrect query parameter or condition
  /Prospects/{id}:
    get:
      description: ''
      operationId: 'getProspectsById'
      parameters:
        - in: path
          name: id
          description: 'The ID of the item'
          required: true
          schema:
            type: integer
      responses:
        200:
          description: A single 
          content: 
            application/json:
              schema:
                $ref: '#/components/schemas/Prospects'
        403:
          description: A security issue occured, an incorrect API key is the most likely cause
        400:
          description: An incorrect query parameter or condition
  /Leads:
    get:
      description: ''
      operationId: 'getLeads'
      parameters:
        - in: query
          name: createdon
          description: The date the item was created
          required: false
          schema:
            type: string
            format: date
        - in: query
          name: updatedon
          description: The date the item was last updated
          required: false
          schema:
            type: string
            format: date
      responses:
        200:
          description: A paged collection of items including a total count of matches
          content: 
            application/json:
              schema:
                $ref: '#/components/schemas/LeadsCollection'
        403:
          description: A security issue occured, an incorrect API key is the most likely cause
        400:
          description: An incorrect query parameter or condition
  /Leads/{id}:
    get:
      description: ''
      operationId: 'getLeadsById'
      parameters:
        - in: path
          name: id
          description: 'The ID of the item'
          required: true
          schema:
            type: integer
      responses:
        200:
          description: A single 
          content: 
            application/json:
              schema:
                $ref: '#/components/schemas/Leads'
        403:
          description: A security issue occured, an incorrect API key is the most likely cause
        400:
          description: An incorrect query parameter or condition
  /Users:
    get:
      description: ''
      operationId: 'getUsers'
      parameters:
        - in: query
          name: createdon
          description: The date the item was created
          required: false
          schema:
            type: string
            format: date
        - in: query
          name: updatedon
          description: The date the item was last updated
          required: false
          schema:
            type: string
            format: date
      responses:
        200:
          description: A paged collection of items including a total count of matches
          content: 
            application/json:
              schema:
                $ref: '#/components/schemas/UsersCollection'
        403:
          description: A security issue occured, an incorrect API key is the most likely cause
        400:
          description: An incorrect query parameter or condition
  /Users/{id}:
    get:
      description: ''
      operationId: 'getUsersById'
      parameters:
        - in: path
          name: id
          description: 'The ID of the item'
          required: true
          schema:
            type: integer
      responses:
        200:
          description: A single 
          content: 
            application/json:
              schema:
                $ref: '#/components/schemas/Users'
        403:
          description: A security issue occured, an incorrect API key is the most likely cause
        400:
          description: An incorrect query parameter or condition
  /SalesDeliveryNotes:
    get:
      description: ''
      operationId: 'getSalesDeliveryNotes'
      parameters:
        - in: query
          name: createdon
          description: The date the item was created
          required: false
          schema:
            type: string
            format: date
        - in: query
          name: updatedon
          description: The date the item was last updated
          required: false
          schema:
            type: string
            format: date
      responses:
        200:
          description: A paged collection of items including a total count of matches
          content: 
            application/json:
              schema:
                $ref: '#/components/schemas/SalesDeliveryNotesCollection'
        403:
          description: A security issue occured, an incorrect API key is the most likely cause
        400:
          description: An incorrect query parameter or condition
  /SalesDeliveryNotes/{id}:
    get:
      description: ''
      operationId: 'getSalesDeliveryNotesById'
      parameters:
        - in: path
          name: id
          description: 'The ID of the item'
          required: true
          schema:
            type: integer
      responses:
        200:
          description: A single 
          content: 
            application/json:
              schema:
                $ref: '#/components/schemas/SalesDeliveryNotes'
        403:
          description: A security issue occured, an incorrect API key is the most likely cause
        400:
          description: An incorrect query parameter or condition
  /ItemNotes:
    get:
      description: ''
      operationId: 'getItemNotes'
      parameters:
        - in: query
          name: createdon
          description: The date the item was created
          required: false
          schema:
            type: string
            format: date
        - in: query
          name: updatedon
          description: The date the item was last updated
          required: false
          schema:
            type: string
            format: date
      responses:
        200:
          description: A paged collection of items including a total count of matches
          content: 
            application/json:
              schema:
                $ref: '#/components/schemas/ItemNotesCollection'
        403:
          description: A security issue occured, an incorrect API key is the most likely cause
        400:
          description: An incorrect query parameter or condition
  /ItemNotes/{id}:
    get:
      description: ''
      operationId: 'getItemNotesById'
      parameters:
        - in: path
          name: id
          description: 'The ID of the item'
          required: true
          schema:
            type: integer
      responses:
        200:
          description: A single 
          content: 
            application/json:
              schema:
                $ref: '#/components/schemas/ItemNotes'
        403:
          description: A security issue occured, an incorrect API key is the most likely cause
        400:
          description: An incorrect query parameter or condition
  /OSSalesOrderLines:
    get:
      description: ''
      operationId: 'getOSSalesOrderLines'
      parameters:
        - in: query
          name: createdon
          description: The date the item was created
          required: false
          schema:
            type: string
            format: date
        - in: query
          name: updatedon
          description: The date the item was last updated
          required: false
          schema:
            type: string
            format: date
      responses:
        200:
          description: A paged collection of items including a total count of matches
          content: 
            application/json:
              schema:
                $ref: '#/components/schemas/OSSalesOrderLinesCollection'
        403:
          description: A security issue occured, an incorrect API key is the most likely cause
        400:
          description: An incorrect query parameter or condition
  /OSSalesOrderLines/{id}:
    get:
      description: ''
      operationId: 'getOSSalesOrderLinesById'
      parameters:
        - in: path
          name: id
          description: 'The ID of the item'
          required: true
          schema:
            type: integer
      responses:
        200:
          description: A single 
          content: 
            application/json:
              schema:
                $ref: '#/components/schemas/OSSalesOrderLines'
        403:
          description: A security issue occured, an incorrect API key is the most likely cause
        400:
          description: An incorrect query parameter or condition
  /SalesInvoices:
    get:
      description: ''
      operationId: 'getSalesInvoices'
      parameters:
        - in: query
          name: createdon
          description: The date the item was created
          required: false
          schema:
            type: string
            format: date
        - in: query
          name: updatedon
          description: The date the item was last updated
          required: false
          schema:
            type: string
            format: date
      responses:
        200:
          description: A paged collection of items including a total count of matches
          content: 
            application/json:
              schema:
                $ref: '#/components/schemas/SalesInvoicesCollection'
        403:
          description: A security issue occured, an incorrect API key is the most likely cause
        400:
          description: An incorrect query parameter or condition
  /SalesInvoices/{id}:
    get:
      description: ''
      operationId: 'getSalesInvoicesById'
      parameters:
        - in: path
          name: id
          description: 'The ID of the item'
          required: true
          schema:
            type: integer
      responses:
        200:
          description: A single 
          content: 
            application/json:
              schema:
                $ref: '#/components/schemas/SalesInvoices'
        403:
          description: A security issue occured, an incorrect API key is the most likely cause
        400:
          description: An incorrect query parameter or condition
  /SalesCreditNotes:
    get:
      description: ''
      operationId: 'getSalesCreditNotes'
      parameters:
        - in: query
          name: createdon
          description: The date the item was created
          required: false
          schema:
            type: string
            format: date
        - in: query
          name: updatedon
          description: The date the item was last updated
          required: false
          schema:
            type: string
            format: date
      responses:
        200:
          description: A paged collection of items including a total count of matches
          content: 
            application/json:
              schema:
                $ref: '#/components/schemas/SalesCreditNotesCollection'
        403:
          description: A security issue occured, an incorrect API key is the most likely cause
        400:
          description: An incorrect query parameter or condition
  /SalesCreditNotes/{id}:
    get:
      description: ''
      operationId: 'getSalesCreditNotesById'
      parameters:
        - in: path
          name: id
          description: 'The ID of the item'
          required: true
          schema:
            type: integer
      responses:
        200:
          description: A single 
          content: 
            application/json:
              schema:
                $ref: '#/components/schemas/SalesCreditNotes'
        403:
          description: A security issue occured, an incorrect API key is the most likely cause
        400:
          description: An incorrect query parameter or condition
  /SalesInvoicesUnpaid:
    get:
      description: ''
      operationId: 'getSalesInvoicesUnpaid'
      parameters:
        - in: query
          name: createdon
          description: The date the item was created
          required: false
          schema:
            type: string
            format: date
        - in: query
          name: updatedon
          description: The date the item was last updated
          required: false
          schema:
            type: string
            format: date
      responses:
        200:
          description: A paged collection of items including a total count of matches
          content: 
            application/json:
              schema:
                $ref: '#/components/schemas/SalesInvoicesUnpaidCollection'
        403:
          description: A security issue occured, an incorrect API key is the most likely cause
        400:
          description: An incorrect query parameter or condition
  /SalesInvoicesUnpaid/{id}:
    get:
      description: ''
      operationId: 'getSalesInvoicesUnpaidById'
      parameters:
        - in: path
          name: id
          description: 'The ID of the item'
          required: true
          schema:
            type: integer
      responses:
        200:
          description: A single 
          content: 
            application/json:
              schema:
                $ref: '#/components/schemas/SalesInvoicesUnpaid'
        403:
          description: A security issue occured, an incorrect API key is the most likely cause
        400:
          description: An incorrect query parameter or condition
  /Activity:
    get:
      description: ''
      operationId: 'getActivity'
      parameters:
        - in: query
          name: createdon
          description: The date the item was created
          required: false
          schema:
            type: string
            format: date
        - in: query
          name: updatedon
          description: The date the item was last updated
          required: false
          schema:
            type: string
            format: date
      responses:
        200:
          description: A paged collection of items including a total count of matches
          content: 
            application/json:
              schema:
                $ref: '#/components/schemas/ActivityCollection'
        403:
          description: A security issue occured, an incorrect API key is the most likely cause
        400:
          description: An incorrect query parameter or condition
  /Activity/{id}:
    get:
      description: ''
      operationId: 'getActivityById'
      parameters:
        - in: path
          name: id
          description: 'The ID of the item'
          required: true
          schema:
            type: integer
      responses:
        200:
          description: A single 
          content: 
            application/json:
              schema:
                $ref: '#/components/schemas/Activity'
        403:
          description: A security issue occured, an incorrect API key is the most likely cause
        400:
          description: An incorrect query parameter or condition
  /Opportunity:
    get:
      description: ''
      operationId: 'getOpportunity'
      parameters:
        - in: query
          name: createdon
          description: The date the item was created
          required: false
          schema:
            type: string
            format: date
        - in: query
          name: updatedon
          description: The date the item was last updated
          required: false
          schema:
            type: string
            format: date
      responses:
        200:
          description: A paged collection of items including a total count of matches
          content: 
            application/json:
              schema:
                $ref: '#/components/schemas/OpportunityCollection'
        403:
          description: A security issue occured, an incorrect API key is the most likely cause
        400:
          description: An incorrect query parameter or condition
  /Opportunity/{id}:
    get:
      description: ''
      operationId: 'getOpportunityById'
      parameters:
        - in: path
          name: id
          description: 'The ID of the item'
          required: true
          schema:
            type: integer
      responses:
        200:
          description: A single 
          content: 
            application/json:
              schema:
                $ref: '#/components/schemas/Opportunity'
        403:
          description: A security issue occured, an incorrect API key is the most likely cause
        400:
          description: An incorrect query parameter or condition
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
  schemas:
    PostResponse:
      type: object
      properties:
        Status:
          type: string
        Message:
          type: string
        QueueEntryId:
          type: integer
        Data:
          type: array
          items:
            type: object
            properties:
              Id:
                type: integer
              TypeName:
                type: string
              Info:
                type: string
    PutResponse:
      type: object
      properties:
        Status:
          type: string
        Message:
          type: string
        QueueEntryId:
          type: integer
        Data:
          type: array
          items:
            type: object
            properties:
              Id:
                type: integer
              TypeName:
                type: string
              Info:
                type: string
    Customers:
      type: object
      properties:
        ID:
          type: integer
          format: int64
        UpdatedOn:
          type: string
          format: date
        CreatedOn:
          type: string
          format: date
        Code:
          type: string
        Name:
          type: string
        SalesRep:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Code:
              type: string
            Name:
              type: string
        CreditStatus:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Code:
              type: string
            Description:
              type: string
        Statistics:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Balance:
              type: number
            BalanceBase:
              type: number
        Phone:
          type: string
        Address:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            FullAddress:
              type: string
    Customers_Write:
      type: object
      properties:
        ID:
          type: integer
          format: int64
        UpdatedOn:
          type: string
          format: date
        CreatedOn:
          type: string
          format: date
        Code:
          type: string
        Name:
          type: string
        SalesRep:
          type: number
        CreditStatus:
          type: number
        Statistics:
          type: number
        Phone:
          type: string
        Address:
          type: number
    CustomersCollection:
      type: object
      properties:
        TotalCount:
          type: integer
        Data:
          type: array
          items:
            $ref: '#/components/schemas/Customers'
    CustomerContacts:
      type: object
      properties:
        ID:
          type: integer
          format: int64
        UpdatedOn:
          type: string
          format: date
        CreatedOn:
          type: string
          format: date
        FullName:
          type: string
        Name:
          type: string
        EmailAddress:
          type: string
        Mobile:
          type: string
        Phone:
          type: string
        ContactType:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Description:
              type: string
        ContactRole:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Description:
              type: string
    CustomerContacts_Write:
      type: object
      properties:
        ID:
          type: integer
          format: int64
        UpdatedOn:
          type: string
          format: date
        CreatedOn:
          type: string
          format: date
        FullName:
          type: string
        Name:
          type: string
        EmailAddress:
          type: string
        Mobile:
          type: string
        Phone:
          type: string
        ContactType:
          type: number
        ContactRole:
          type: number
    CustomerContactsCollection:
      type: object
      properties:
        TotalCount:
          type: integer
        Data:
          type: array
          items:
            $ref: '#/components/schemas/CustomerContacts'
    Products:
      type: object
      properties:
        ID:
          type: integer
          format: int64
        UpdatedOn:
          type: string
          format: date
        CreatedOn:
          type: string
          format: date
        Description:
          type: string
        Code:
          type: string
        Type:
          type: string
        Category:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Code:
              type: string
            Description:
              type: string
        StockingUnits:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Description:
              type: string
        Manufacturer:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Name:
              type: string
            Code:
              type: string
        Purchasing:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            DefaultSupplier:
              type: object
              properties:
                ID:
                  type: integer
                  format: int64
                UpdatedOn:
                  type: string
                  format: date
                CreatedOn:
                  type: string
                  format: date
                Name:
                  type: string
                Code:
                  type: string
            PurchaseUnits:
              type: object
              properties:
                ID:
                  type: integer
                  format: int64
                UpdatedOn:
                  type: string
                  format: date
                CreatedOn:
                  type: string
                  format: date
                Description:
                  type: string
            TradePriceActual:
              type: number
        Selling:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            SellingUnits:
              type: object
              properties:
                ID:
                  type: integer
                  format: int64
                UpdatedOn:
                  type: string
                  format: date
                CreatedOn:
                  type: string
                  format: date
                Description:
                  type: string
        SellingPrice1:
          type: number
        Statistics:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            StockLevel:
              type: number
        SellingPrice2:
          type: number
        SellingPrice3:
          type: number
        D_ProductURL:
          type: string
    Products_Write:
      type: object
      properties:
        ID:
          type: integer
          format: int64
        UpdatedOn:
          type: string
          format: date
        CreatedOn:
          type: string
          format: date
        Description:
          type: string
        Code:
          type: string
        Type:
          type: string
        Category:
          type: number
        StockingUnits:
          type: number
        Manufacturer:
          type: number
        Purchasing:
          type: number
        Selling:
          type: number
        SellingPrice1:
          type: number
        Statistics:
          type: number
        SellingPrice2:
          type: number
        SellingPrice3:
          type: number
        D_ProductURL:
          type: string
    ProductsCollection:
      type: object
      properties:
        TotalCount:
          type: integer
        Data:
          type: array
          items:
            $ref: '#/components/schemas/Products'
    ProductBranchStatistics:
      type: object
      properties:
        ID:
          type: integer
          format: int64
        UpdatedOn:
          type: string
          format: date
        CreatedOn:
          type: string
          format: date
        Branch:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Description:
              type: string
            Code:
              type: string
        Product:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Description:
              type: string
            Code:
              type: string
        StockLevel:
          type: number
        OutstandingWorksOrderRequirements:
          type: number
        AllocatedSalesOrders:
          type: number
        AllocatedWorksOrders:
          type: number
        OutstandingSalesOrders:
          type: number
        ForTransferOut:
          type: number
        OnHire:
          type: number
        ReturnedNotInspected:
          type: number
        AvailableStockLevel:
          type: number
        ForwardSalesOrders:
          type: number
        FreeStockLevel:
          type: number
        OutstandingPurchaseOrders:
          type: number
        ForTransferIn:
          type: number
        EffectiveStockLevel:
          type: number
    ProductBranchStatistics_Write:
      type: object
      properties:
        ID:
          type: integer
          format: int64
        UpdatedOn:
          type: string
          format: date
        CreatedOn:
          type: string
          format: date
        Branch:
          type: number
        Product:
          type: number
        StockLevel:
          type: number
        OutstandingWorksOrderRequirements:
          type: number
        AllocatedSalesOrders:
          type: number
        AllocatedWorksOrders:
          type: number
        OutstandingSalesOrders:
          type: number
        ForTransferOut:
          type: number
        OnHire:
          type: number
        ReturnedNotInspected:
          type: number
        AvailableStockLevel:
          type: number
        ForwardSalesOrders:
          type: number
        FreeStockLevel:
          type: number
        OutstandingPurchaseOrders:
          type: number
        ForTransferIn:
          type: number
        EffectiveStockLevel:
          type: number
    ProductBranchStatisticsCollection:
      type: object
      properties:
        TotalCount:
          type: integer
        Data:
          type: array
          items:
            $ref: '#/components/schemas/ProductBranchStatistics'
    SalesOrders:
      type: object
      properties:
        ID:
          type: integer
          format: int64
        UpdatedOn:
          type: string
          format: date
        CreatedOn:
          type: string
          format: date
        Number:
          type: string
        Date:
          type: string
          format: date
        Branch:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Description:
              type: string
            Code:
              type: string
        DespatchBranch:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Description:
              type: string
            Code:
              type: string
        Customer:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Name:
              type: string
            Code:
              type: string
        OrderType:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Code:
              type: string
            Description:
              type: string
        WorkflowStatus:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Code:
              type: string
            Description:
              type: string
        NetAmountLessDiscount:
          type: number
        Margin:
          type: number
        MarginAmount:
          type: number
        SellingMargin:
          type: number
        SellingMarginAmount:
          type: number
        Items_Count:
          type: number
        Items:
          type: array
          items:
            type: object
            properties:
              ID:
                type: integer
                format: int64
              UpdatedOn:
                type: string
                format: date
              CreatedOn:
                type: string
                format: date
              ActiveLineDescription:
                type: string
              ActiveLineProductCode:
                type: string
              Quantity:
                type: number
              SellingUnits:
                type: object
                properties:
                  ID:
                    type: integer
                    format: int64
                  UpdatedOn:
                    type: string
                    format: date
                  CreatedOn:
                    type: string
                    format: date
                  Description:
                    type: string
              NetPriceLessDiscount:
                type: number
              NetAmountLessDiscount:
                type: number
              Margin:
                type: number
              MarginAmount:
                type: number
              SellingMargin:
                type: number
              SellingMarginAmount:
                type: number
              CalculatedPriceVariance:
                type: number
              CalculatedPriceVariancePercentage:
                type: number
        PricingStatus:
          type: string
    SalesOrders_Write:
      type: object
      properties:
        ID:
          type: integer
          format: int64
        UpdatedOn:
          type: string
          format: date
        CreatedOn:
          type: string
          format: date
        Number:
          type: string
        Date:
          type: string
          format: date
        Branch:
          type: number
        DespatchBranch:
          type: number
        Customer:
          type: number
        OrderType:
          type: number
        WorkflowStatus:
          type: number
        NetAmountLessDiscount:
          type: number
        Margin:
          type: number
        MarginAmount:
          type: number
        SellingMargin:
          type: number
        SellingMarginAmount:
          type: number
        Items_Count:
          type: number
        Items:
          type: array
          items:
            type: object
            properties:
              ID:
                type: integer
                format: int64
              UpdatedOn:
                type: string
                format: date
              CreatedOn:
                type: string
                format: date
              ActiveLineDescription:
                type: string
              ActiveLineProductCode:
                type: string
              Quantity:
                type: number
              SellingUnits:
                type: number
              NetPriceLessDiscount:
                type: number
              NetAmountLessDiscount:
                type: number
              Margin:
                type: number
              MarginAmount:
                type: number
              SellingMargin:
                type: number
              SellingMarginAmount:
                type: number
              CalculatedPriceVariance:
                type: number
              CalculatedPriceVariancePercentage:
                type: number
        PricingStatus:
          type: string
    SalesOrdersCollection:
      type: object
      properties:
        TotalCount:
          type: integer
        Data:
          type: array
          items:
            $ref: '#/components/schemas/SalesOrders'
    SalesOrderLinesForReview:
      type: object
      properties:
        ID:
          type: integer
          format: int64
        UpdatedOn:
          type: string
          format: date
        CreatedOn:
          type: string
          format: date
        _Owner_:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Number:
              type: string
            Customer:
              type: object
              properties:
                ID:
                  type: integer
                  format: int64
                UpdatedOn:
                  type: string
                  format: date
                CreatedOn:
                  type: string
                  format: date
                Code:
                  type: string
                Name:
                  type: string
            SalesRep:
              type: object
              properties:
                ID:
                  type: integer
                  format: int64
                UpdatedOn:
                  type: string
                  format: date
                CreatedOn:
                  type: string
                  format: date
                Code:
                  type: string
                Name:
                  type: string
            G_ItemAuditSummaryInformation:
              type: object
              properties:
                ID:
                  type: integer
                  format: int64
                UpdatedOn:
                  type: string
                  format: date
                CreatedOn:
                  type: string
                  format: date
                CreationUser:
                  type: object
                  properties:
                    ID:
                      type: integer
                      format: int64
                    UpdatedOn:
                      type: string
                      format: date
                    CreatedOn:
                      type: string
                      format: date
                    Code:
                      type: string
                    Name:
                      type: string
        ActiveLineProductCode:
          type: string
        ActiveLineDescription:
          type: string
        Quantity:
          type: number
        SellingUnits:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Description:
              type: string
        NetPrice:
          type: number
        NetPriceLessDiscount:
          type: number
        NetAmount:
          type: number
        CalculatedPriceVariance:
          type: number
        CalculatedPriceVariancePercentage:
          type: number
    SalesOrderLinesForReview_Write:
      type: object
      properties:
        ID:
          type: integer
          format: int64
        UpdatedOn:
          type: string
          format: date
        CreatedOn:
          type: string
          format: date
        _Owner_:
          type: number
        ActiveLineProductCode:
          type: string
        ActiveLineDescription:
          type: string
        Quantity:
          type: number
        SellingUnits:
          type: number
        NetPrice:
          type: number
        NetPriceLessDiscount:
          type: number
        NetAmount:
          type: number
        CalculatedPriceVariance:
          type: number
        CalculatedPriceVariancePercentage:
          type: number
    SalesOrderLinesForReviewCollection:
      type: object
      properties:
        TotalCount:
          type: integer
        Data:
          type: array
          items:
            $ref: '#/components/schemas/SalesOrderLinesForReview'
    SalesQuotations:
      type: object
      properties:
        ID:
          type: integer
          format: int64
        UpdatedOn:
          type: string
          format: date
        CreatedOn:
          type: string
          format: date
        Number:
          type: string
        Date:
          type: string
          format: date
        Branch:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Description:
              type: string
            Code:
              type: string
        DespatchBranch:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Description:
              type: string
            Code:
              type: string
        Customer:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Name:
              type: string
            Code:
              type: string
        OrderType:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Code:
              type: string
            Description:
              type: string
        WorkflowStatus:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Code:
              type: string
            Description:
              type: string
        ExpiryDate:
          type: string
          format: date
        SalesRep:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Name:
              type: string
            Code:
              type: string
        Items_Count:
          type: number
        NetAmountLessDiscount:
          type: number
        Items:
          type: array
          items:
            type: object
            properties:
              ID:
                type: integer
                format: int64
              UpdatedOn:
                type: string
                format: date
              CreatedOn:
                type: string
                format: date
              ActiveLineDescription:
                type: string
              ActiveLineProductCode:
                type: string
              Quantity:
                type: number
              SellingUnits:
                type: object
                properties:
                  ID:
                    type: integer
                    format: int64
                  UpdatedOn:
                    type: string
                    format: date
                  CreatedOn:
                    type: string
                    format: date
                  Description:
                    type: string
              NetPriceLessDiscount:
                type: number
              NetAmountLessDiscount:
                type: number
    SalesQuotations_Write:
      type: object
      properties:
        ID:
          type: integer
          format: int64
        UpdatedOn:
          type: string
          format: date
        CreatedOn:
          type: string
          format: date
        Number:
          type: string
        Date:
          type: string
          format: date
        Branch:
          type: number
        DespatchBranch:
          type: number
        Customer:
          type: number
        OrderType:
          type: number
        WorkflowStatus:
          type: number
        ExpiryDate:
          type: string
          format: date
        SalesRep:
          type: number
        Items_Count:
          type: number
        NetAmountLessDiscount:
          type: number
        Items:
          type: array
          items:
            type: object
            properties:
              ID:
                type: integer
                format: int64
              UpdatedOn:
                type: string
                format: date
              CreatedOn:
                type: string
                format: date
              ActiveLineDescription:
                type: string
              ActiveLineProductCode:
                type: string
              Quantity:
                type: number
              SellingUnits:
                type: number
              NetPriceLessDiscount:
                type: number
              NetAmountLessDiscount:
                type: number
    SalesQuotationsCollection:
      type: object
      properties:
        TotalCount:
          type: integer
        Data:
          type: array
          items:
            $ref: '#/components/schemas/SalesQuotations'
    Prospects:
      type: object
      properties:
        ID:
          type: integer
          format: int64
        UpdatedOn:
          type: string
          format: date
        CreatedOn:
          type: string
          format: date
        Name:
          type: string
        TradingName:
          type: string
        IndustryType:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Description:
              type: string
        SalesRep:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Code:
              type: string
            Name:
              type: string
        Region:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Code:
              type: string
            Description:
              type: string
        WorkflowStatus:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Code:
              type: string
            Description:
              type: string
        EmailAddress:
          type: string
        Mobile:
          type: string
        Phone:
          type: string
        Quotations_Count:
          type: number
    Prospects_Write:
      type: object
      properties:
        ID:
          type: integer
          format: int64
        UpdatedOn:
          type: string
          format: date
        CreatedOn:
          type: string
          format: date
        Name:
          type: string
        TradingName:
          type: string
        IndustryType:
          type: number
        SalesRep:
          type: number
        Region:
          type: number
        WorkflowStatus:
          type: number
        EmailAddress:
          type: string
        Mobile:
          type: string
        Phone:
          type: string
        Quotations_Count:
          type: number
    ProspectsCollection:
      type: object
      properties:
        TotalCount:
          type: integer
        Data:
          type: array
          items:
            $ref: '#/components/schemas/Prospects'
    Leads:
      type: object
      properties:
        ID:
          type: integer
          format: int64
        UpdatedOn:
          type: string
          format: date
        CreatedOn:
          type: string
          format: date
        Name:
          type: string
        TradingName:
          type: string
        IndustryType:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Description:
              type: string
        SalesRep:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Code:
              type: string
            Name:
              type: string
        Region:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Code:
              type: string
            Description:
              type: string
        WorkflowStatus:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Code:
              type: string
            Description:
              type: string
        EmailAddress:
          type: string
        Mobile:
          type: string
        Phone:
          type: string
        LeadSource:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Description:
              type: string
    Leads_Write:
      type: object
      properties:
        ID:
          type: integer
          format: int64
        UpdatedOn:
          type: string
          format: date
        CreatedOn:
          type: string
          format: date
        Name:
          type: string
        TradingName:
          type: string
        IndustryType:
          type: number
        SalesRep:
          type: number
        Region:
          type: number
        WorkflowStatus:
          type: number
        EmailAddress:
          type: string
        Mobile:
          type: string
        Phone:
          type: string
        LeadSource:
          type: number
    LeadsCollection:
      type: object
      properties:
        TotalCount:
          type: integer
        Data:
          type: array
          items:
            $ref: '#/components/schemas/Leads'
    Users:
      type: object
      properties:
        ID:
          type: integer
          format: int64
        UpdatedOn:
          type: string
          format: date
        CreatedOn:
          type: string
          format: date
        Name:
          type: string
        Code:
          type: string
        EmailAddress:
          type: string
        Mobile:
          type: string
        Phone:
          type: string
        JobTitle:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Description:
              type: string
    Users_Write:
      type: object
      properties:
        ID:
          type: integer
          format: int64
        UpdatedOn:
          type: string
          format: date
        CreatedOn:
          type: string
          format: date
        Name:
          type: string
        Code:
          type: string
        EmailAddress:
          type: string
        Mobile:
          type: string
        Phone:
          type: string
        JobTitle:
          type: number
    UsersCollection:
      type: object
      properties:
        TotalCount:
          type: integer
        Data:
          type: array
          items:
            $ref: '#/components/schemas/Users'
    SalesDeliveryNotes:
      type: object
      properties:
        ID:
          type: integer
          format: int64
        UpdatedOn:
          type: string
          format: date
        CreatedOn:
          type: string
          format: date
        Number:
          type: string
        Date:
          type: string
          format: date
        DueDate:
          type: string
          format: date
        Branch:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Description:
              type: string
            Code:
              type: string
        DespatchBranch:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Description:
              type: string
            Code:
              type: string
        Customer:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Name:
              type: string
            Code:
              type: string
        ActiveDeliveryAddress:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            FullAddress:
              type: string
        NetAmountLessDiscount:
          type: number
        Margin:
          type: number
        MarginAmount:
          type: number
        SellingMargin:
          type: number
        SellingMarginAmount:
          type: number
        Items_Count:
          type: number
        Items:
          type: array
          items:
            type: object
            properties:
              ID:
                type: integer
                format: int64
              UpdatedOn:
                type: string
                format: date
              CreatedOn:
                type: string
                format: date
              ActiveLineDescription:
                type: string
              ActiveLineProductCode:
                type: string
              Quantity:
                type: number
              SellingUnits:
                type: object
                properties:
                  ID:
                    type: integer
                    format: int64
                  UpdatedOn:
                    type: string
                    format: date
                  CreatedOn:
                    type: string
                    format: date
                  Description:
                    type: string
              NetPriceLessDiscount:
                type: number
              NetAmountLessDiscount:
                type: number
              Margin:
                type: number
              MarginAmount:
                type: number
              SellingMargin:
                type: number
              SellingMarginAmount:
                type: number
              CalculatedPriceVariance:
                type: number
              CalculatedPriceVariancePercentage:
                type: number
    SalesDeliveryNotes_Write:
      type: object
      properties:
        ID:
          type: integer
          format: int64
        UpdatedOn:
          type: string
          format: date
        CreatedOn:
          type: string
          format: date
        Number:
          type: string
        Date:
          type: string
          format: date
        DueDate:
          type: string
          format: date
        Branch:
          type: number
        DespatchBranch:
          type: number
        Customer:
          type: number
        ActiveDeliveryAddress:
          type: number
        NetAmountLessDiscount:
          type: number
        Margin:
          type: number
        MarginAmount:
          type: number
        SellingMargin:
          type: number
        SellingMarginAmount:
          type: number
        Items_Count:
          type: number
        Items:
          type: array
          items:
            type: object
            properties:
              ID:
                type: integer
                format: int64
              UpdatedOn:
                type: string
                format: date
              CreatedOn:
                type: string
                format: date
              ActiveLineDescription:
                type: string
              ActiveLineProductCode:
                type: string
              Quantity:
                type: number
              SellingUnits:
                type: number
              NetPriceLessDiscount:
                type: number
              NetAmountLessDiscount:
                type: number
              Margin:
                type: number
              MarginAmount:
                type: number
              SellingMargin:
                type: number
              SellingMarginAmount:
                type: number
              CalculatedPriceVariance:
                type: number
              CalculatedPriceVariancePercentage:
                type: number
    SalesDeliveryNotesCollection:
      type: object
      properties:
        TotalCount:
          type: integer
        Data:
          type: array
          items:
            $ref: '#/components/schemas/SalesDeliveryNotes'
    ItemNotes:
      type: object
      properties:
        ID:
          type: integer
          format: int64
        UpdatedOn:
          type: string
          format: date
        CreatedOn:
          type: string
          format: date
        Date:
          type: string
          format: date
        Note:
          type: string
        Subject:
          type: string
    ItemNotes_Write:
      type: object
      properties:
        ID:
          type: integer
          format: int64
        UpdatedOn:
          type: string
          format: date
        CreatedOn:
          type: string
          format: date
        Date:
          type: string
          format: date
        Note:
          type: string
        Subject:
          type: string
    ItemNotesCollection:
      type: object
      properties:
        TotalCount:
          type: integer
        Data:
          type: array
          items:
            $ref: '#/components/schemas/ItemNotes'
    OSSalesOrderLines:
      type: object
      properties:
        ID:
          type: integer
          format: int64
        UpdatedOn:
          type: string
          format: date
        CreatedOn:
          type: string
          format: date
        _Owner_:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Date:
              type: string
              format: date
            Number:
              type: string
            AlternateReference:
              type: string
        ActiveLineProductCode:
          type: string
        ActiveLineDescription:
          type: string
        Quantity:
          type: number
        QuantityOutstanding:
          type: number
        SellingUnits:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Description:
              type: string
        NetPriceLessDiscount:
          type: number
        NetAmountLessDiscount:
          type: number
    OSSalesOrderLines_Write:
      type: object
      properties:
        ID:
          type: integer
          format: int64
        UpdatedOn:
          type: string
          format: date
        CreatedOn:
          type: string
          format: date
        _Owner_:
          type: number
        ActiveLineProductCode:
          type: string
        ActiveLineDescription:
          type: string
        Quantity:
          type: number
        QuantityOutstanding:
          type: number
        SellingUnits:
          type: number
        NetPriceLessDiscount:
          type: number
        NetAmountLessDiscount:
          type: number
    OSSalesOrderLinesCollection:
      type: object
      properties:
        TotalCount:
          type: integer
        Data:
          type: array
          items:
            $ref: '#/components/schemas/OSSalesOrderLines'
    SalesInvoices:
      type: object
      properties:
        ID:
          type: integer
          format: int64
        UpdatedOn:
          type: string
          format: date
        CreatedOn:
          type: string
          format: date
        Number:
          type: string
        Date:
          type: string
          format: date
        Branch:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Code:
              type: string
            Description:
              type: string
        Customer:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Name:
              type: string
            Code:
              type: string
        NetAmountLessDiscount:
          type: number
        Items_Count:
          type: number
    SalesInvoices_Write:
      type: object
      properties:
        ID:
          type: integer
          format: int64
        UpdatedOn:
          type: string
          format: date
        CreatedOn:
          type: string
          format: date
        Number:
          type: string
        Date:
          type: string
          format: date
        Branch:
          type: number
        Customer:
          type: number
        NetAmountLessDiscount:
          type: number
        Items_Count:
          type: number
    SalesInvoicesCollection:
      type: object
      properties:
        TotalCount:
          type: integer
        Data:
          type: array
          items:
            $ref: '#/components/schemas/SalesInvoices'
    SalesCreditNotes:
      type: object
      properties:
        ID:
          type: integer
          format: int64
        UpdatedOn:
          type: string
          format: date
        CreatedOn:
          type: string
          format: date
        Date:
          type: string
          format: date
        Number:
          type: string
        AlternateReference:
          type: string
        Branch:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Description:
              type: string
            Code:
              type: string
        Customer:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Name:
              type: string
            Code:
              type: string
        NetAmountLessDiscount:
          type: number
        Items_Count:
          type: number
    SalesCreditNotes_Write:
      type: object
      properties:
        ID:
          type: integer
          format: int64
        UpdatedOn:
          type: string
          format: date
        CreatedOn:
          type: string
          format: date
        Date:
          type: string
          format: date
        Number:
          type: string
        AlternateReference:
          type: string
        Branch:
          type: number
        Customer:
          type: number
        NetAmountLessDiscount:
          type: number
        Items_Count:
          type: number
    SalesCreditNotesCollection:
      type: object
      properties:
        TotalCount:
          type: integer
        Data:
          type: array
          items:
            $ref: '#/components/schemas/SalesCreditNotes'
    SalesInvoicesUnpaid:
      type: object
      properties:
        ID:
          type: integer
          format: int64
        UpdatedOn:
          type: string
          format: date
        CreatedOn:
          type: string
          format: date
        Date:
          type: string
          format: date
        Number:
          type: string
        AlternateReference:
          type: string
        DueDate:
          type: string
          format: date
        Amount:
          type: number
        Unallocated:
          type: number
    SalesInvoicesUnpaid_Write:
      type: object
      properties:
        ID:
          type: integer
          format: int64
        UpdatedOn:
          type: string
          format: date
        CreatedOn:
          type: string
          format: date
        Date:
          type: string
          format: date
        Number:
          type: string
        AlternateReference:
          type: string
        DueDate:
          type: string
          format: date
        Amount:
          type: number
        Unallocated:
          type: number
    SalesInvoicesUnpaidCollection:
      type: object
      properties:
        TotalCount:
          type: integer
        Data:
          type: array
          items:
            $ref: '#/components/schemas/SalesInvoicesUnpaid'
    Activity:
      type: object
      properties:
        ID:
          type: integer
          format: int64
        UpdatedOn:
          type: string
          format: date
        CreatedOn:
          type: string
          format: date
        Date:
          type: string
          format: date
        Topic:
          type: string
        P_Description:
          type: string
        Contact:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            FullName:
              type: string
        WorkflowStatus:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Code:
              type: string
            Description:
              type: string
    Activity_Write:
      type: object
      properties:
        ID:
          type: integer
          format: int64
        UpdatedOn:
          type: string
          format: date
        CreatedOn:
          type: string
          format: date
        Date:
          type: string
          format: date
        Topic:
          type: string
        P_Description:
          type: string
        Contact:
          type: number
        WorkflowStatus:
          type: number
    ActivityCollection:
      type: object
      properties:
        TotalCount:
          type: integer
        Data:
          type: array
          items:
            $ref: '#/components/schemas/Activity'
    Opportunity:
      type: object
      properties:
        ID:
          type: integer
          format: int64
        UpdatedOn:
          type: string
          format: date
        CreatedOn:
          type: string
          format: date
        Summary:
          type: string
        ActiveDeliveryAddress:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
        ActivityOwnerContext:
          type: string
        Address:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
        AlternateReference:
          type: string
        CloseByDate:
          type: string
          format: date
        CompanyExchangeRate:
          type: number
        Contact:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Name:
              type: string
            Address:
              type: object
              properties:
                ID:
                  type: integer
                  format: int64
                UpdatedOn:
                  type: string
                  format: date
                CreatedOn:
                  type: string
                  format: date
            ContactRole:
              type: object
              properties:
                ID:
                  type: integer
                  format: int64
                UpdatedOn:
                  type: string
                  format: date
                CreatedOn:
                  type: string
                  format: date
                Description:
                  type: string
            ContactType:
              type: object
              properties:
                ID:
                  type: integer
                  format: int64
                UpdatedOn:
                  type: string
                  format: date
                CreatedOn:
                  type: string
                  format: date
                Description:
                  type: string
            EmailAddress:
              type: string
            FirstName:
              type: string
            FullName:
              type: string
            LastName:
              type: string
            Mobile:
              type: string
            Name:
              type: string
            Phone:
              type: string
            Status:
              type: string
        Date:
          type: string
          format: date
        DateClosed:
          type: string
          format: date
        Description:
          type: string
        Details:
          type: string
        DiscountAmount:
          type: number
        DiscountPercentage:
          type: number
        EstimatedCloseDate:
          type: string
          format: date
        Note:
          type: string
        Number:
          type: string
        Priority:
          type: string
        P_OpportunityQuotationCountPropertyDescriptor:
          type: number
        Status:
          type: string
        WorkflowStatus:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            Code:
              type: string
            Description:
              type: string
    Opportunity_Write:
      type: object
      properties:
        ID:
          type: integer
          format: int64
        UpdatedOn:
          type: string
          format: date
        CreatedOn:
          type: string
          format: date
        Summary:
          type: string
        ActiveDeliveryAddress:
          type: number
        ActivityOwnerContext:
          type: string
        Address:
          type: number
        AlternateReference:
          type: string
        CloseByDate:
          type: string
          format: date
        CompanyExchangeRate:
          type: number
        Contact:
          type: number
        Date:
          type: string
          format: date
        DateClosed:
          type: string
          format: date
        Description:
          type: string
        Details:
          type: string
        DiscountAmount:
          type: number
        DiscountPercentage:
          type: number
        EstimatedCloseDate:
          type: string
          format: date
        Note:
          type: string
        Number:
          type: string
        Priority:
          type: string
        P_OpportunityQuotationCountPropertyDescriptor:
          type: number
        Status:
          type: string
        WorkflowStatus:
          type: number
    OpportunityCollection:
      type: object
      properties:
        TotalCount:
          type: integer
        Data:
          type: array
          items:
            $ref: '#/components/schemas/Opportunity'
security:
  - apiKey: []
