openapi: 3.0.0
info:
  version: DO-SIB
  title: 
  description: Digital Ocean - Sendinblue
servers:
  - url: http://localhost:8093/
paths:
  /SalesOrder:
    get:
      description: ''
      operationId: 'getSalesOrder'
      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/SalesOrderCollection'
        403:
          description: A security issue occured, an incorrect API key is the most likely cause
        400:
          description: An incorrect query parameter or condition
    post:
      description: ''
      operationId: 'createNewSalesOrder'
      requestBody:
        description: ''
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SalesOrder_Write'
      responses:
        200:
          description: The post was successful
          content: 
            application/json:
              schema:
                $ref: '#/components/schemas/PostResponse'
        403:
          description: A security issue occured, an incorrect API key is the most likely cause
    put:
      description: ''
      operationId: 'updateSalesOrder'
      requestBody:
        description: ''
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SalesOrder_Write'
      responses:
        200:
          description: The put was successful
          content: 
            application/json:
              schema:
                $ref: '#/components/schemas/PutResponse'
        403:
          description: A security issue occured, an incorrect API key is the most likely cause
  /SalesOrder/{id}:
    get:
      description: ''
      operationId: 'getSalesOrderById'
      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/SalesOrder'
        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
    SalesOrder:
      type: object
      properties:
        ID:
          type: integer
          format: int64
        UpdatedOn:
          type: string
          format: date
        CreatedOn:
          type: string
          format: date
        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
            HomeBranch:
              type: object
              properties:
                ID:
                  type: integer
                  format: int64
                UpdatedOn:
                  type: string
                  format: date
                CreatedOn:
                  type: string
                  format: date
                Description:
                  type: string
                Code:
                  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
            IndustryType:
              type: object
              properties:
                ID:
                  type: integer
                  format: int64
                UpdatedOn:
                  type: string
                  format: date
                CreatedOn:
                  type: string
                  format: date
                Description:
                  type: string
                Code:
                  type: string
            D_MarketingAddToNoLists:
              type: string
            EmailAddress:
              type: string
            PricingSetup:
              type: object
              properties:
                ID:
                  type: integer
                  format: int64
                UpdatedOn:
                  type: string
                  format: date
                CreatedOn:
                  type: string
                  format: date
                PricingCategory:
                  type: object
                  properties:
                    ID:
                      type: integer
                      format: int64
                    UpdatedOn:
                      type: string
                      format: date
                    CreatedOn:
                      type: string
                      format: date
                    Description:
                      type: string
                    Code:
                      type: string
            D_MarketingSIBContactID:
              type: number
        Contact:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            FullName:
              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
        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
        ActiveDeliveryContactName:
          type: string
        ActiveDeliveryContactMobilePhoneNumber:
          type: string
        ActiveDeliveryContactPhoneNumber:
          type: string
        ActiveDeliveryAddress:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            FullAddress:
              type: string
        D_BusinessOrConsumer:
          type: string
        Number:
          type: string
        D_UPSTrackingNumber:
          type: string
        D_InstallDate:
          type: string
          format: date
        D_TEInstallNote:
          type: string
        Date:
          type: string
          format: date
        G_ItemAuditLastUpdateInformation:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            DateTime:
              type: string
              format: date
        D_TESuccessNote:
          type: string
        PreTaxTotal:
          type: number
        D_TE1ToSend:
          type: string
        D_TE1Sent:
          type: number
        D_TE2ToSend:
          type: string
        D_TE2Sent:
          type: number
        D_TE3ToSend:
          type: string
        D_TE3Sent:
          type: number
        D_TE4ToSend:
          type: string
        D_TE4Sent:
          type: number
        D_TE5ToSend:
          type: string
        D_TE5Sent:
          type: number
        TransactionDeliveryContact:
          type: object
          properties:
            ID:
              type: integer
              format: int64
            UpdatedOn:
              type: string
              format: date
            CreatedOn:
              type: string
              format: date
            FullName:
              type: string
            D_MarketingAddToNoLists:
              type: string
            EmailAddress:
              type: string
            D_MarketingSIBContactID:
              type: number
        D_TET1Message:
          type: string
        D_TET2Message:
          type: string
        D_TET3Message:
          type: string
        D_TET4Message:
          type: string
        D_TET5Message:
          type: string
        D_ActiveDeliveryContactEmail:
          type: string
        D_IssueActive:
          type: string
    SalesOrder_Write:
      type: object
      properties:
        ID:
          type: integer
          format: int64
        UpdatedOn:
          type: string
          format: date
        CreatedOn:
          type: string
          format: date
        Customer:
          type: number
        Contact:
          type: number
        SalesRep:
          type: number
        ActiveDeliveryContactName:
          type: string
        ActiveDeliveryContactMobilePhoneNumber:
          type: string
        ActiveDeliveryContactPhoneNumber:
          type: string
        ActiveDeliveryAddress:
          type: number
        D_BusinessOrConsumer:
          type: string
        Number:
          type: string
        D_UPSTrackingNumber:
          type: string
        D_InstallDate:
          type: string
          format: date
        D_TEInstallNote:
          type: string
        Date:
          type: string
          format: date
        G_ItemAuditLastUpdateInformation:
          type: number
        D_TESuccessNote:
          type: string
        PreTaxTotal:
          type: number
        D_TE1ToSend:
          type: string
        D_TE1Sent:
          type: number
        D_TE2ToSend:
          type: string
        D_TE2Sent:
          type: number
        D_TE3ToSend:
          type: string
        D_TE3Sent:
          type: number
        D_TE4ToSend:
          type: string
        D_TE4Sent:
          type: number
        D_TE5ToSend:
          type: string
        D_TE5Sent:
          type: number
        TransactionDeliveryContact:
          type: number
        D_TET1Message:
          type: string
        D_TET2Message:
          type: string
        D_TET3Message:
          type: string
        D_TET4Message:
          type: string
        D_TET5Message:
          type: string
        D_ActiveDeliveryContactEmail:
          type: string
        D_IssueActive:
          type: string
    SalesOrderCollection:
      type: object
      properties:
        TotalCount:
          type: integer
        Data:
          type: array
          items:
            $ref: '#/components/schemas/SalesOrder'
security:
  - apiKey: []
