openapi: 3.0.1
info:
  title: Storm Query API Documentation
  description: >-
    Storm Query API is an API based on OData V4. It is an API to fill the need
    for data from Storm in integration services that do not have direct access
    to Storm’s data and data models.
  version: '2.0'
servers:
  - url: https://query.storm.io/Query/2.0
paths:
  /Shopping/ApplicationPaymentMethods:
    get:
      tags:
        - Shopping
      summary: Get ApplicationPaymentMethod
      description: Get ApplicationPaymentMethod
      operationId: ApplicationPaymentMethods
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: >-
                    #/components/schemas/Enferno.Storm.Query.Api.DataContexts.ShoppingModel.ApplicationPaymentMethod
        '500':
          description: Internal Server Error
          content: {}
  /Shopping/ApplicationDeliveryMethods:
    get:
      tags:
        - Shopping
      summary: Get ApplicationDeliveryMethod
      description: Get ApplicationDeliveryMethod
      operationId: ApplicationDeliveryMethods
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: >-
                    #/components/schemas/Enferno.Storm.Query.Api.DataContexts.ShoppingModel.ApplicationDeliveryMethod
        '500':
          description: Internal Server Error
          content: {}
  /Shopping/RecurringOrders:
    get:
      tags:
        - Shopping
      summary: Get RecurringOrder
      description: Get RecurringOrder
      operationId: RecurringOrders
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: >-
                    #/components/schemas/Enferno.Storm.Query.Api.DataContexts.ShoppingModel.RecurringOrder
        '500':
          description: Internal Server Error
          content: {}
  /Shopping/GetPaymentAmount:
    get:
      tags:
        - Shopping
      summary: GetPaymentAmount
      description: GetPaymentAmount
      operationId: GetPaymentAmount
      parameters:
        - name: quotationId
          in: query
          required: true
          schema:
            type: integer
            format: int32
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: number
                format: decimal
        '500':
          description: Internal Server Error
          content: {}
components:
  schemas:
    Enferno.Storm.Query.Api.DataContexts.ShoppingModel.ApplicationDeliveryMethodCulture:
      type: object
      properties:
        ApplicationId:
          type: integer
          description: ApplicationId. Key property.
          format: int32
        DeliveryMethodId:
          type: integer
          description: DeliveryMethodId. Key property.
          format: int32
        CultureCode:
          type: string
          description: 'CultureCode. MaxLength: 16. Key property.'
        Name:
          type: string
          description: 'Name. MaxLength: 50. Nullable.'
        Description:
          type: string
          description: Description. Nullable.
        LogoPath:
          type: string
          description: 'LogoPath. MaxLength: 255. Nullable.'
        Updated:
          type: string
          description: Updated. Nullable.
          format: date-time
        UpdatedBy:
          type: integer
          description: UpdatedBy. Nullable.
          format: int32
        LogoKey:
          type: string
          description: LogoKey. Nullable.
          format: guid
        ClientId:
          type: integer
          description: ClientId. Nullable.
          format: int32
      format: >-
        Enferno.Storm.Query.Api.DataContexts.ShoppingModel.ApplicationDeliveryMethodCulture
    Enferno.Storm.Query.Api.DataContexts.ShoppingModel.ApplicationPaymentMethodCulture:
      type: object
      properties:
        ApplicationId:
          type: integer
          description: ApplicationId. Key property.
          format: int32
        PaymentMethodId:
          type: integer
          description: PaymentMethodId. Key property.
          format: int32
        CultureCode:
          type: string
          description: 'CultureCode. MaxLength: 16. Key property.'
        Name:
          type: string
          description: 'Name. MaxLength: 50. Nullable.'
        Description:
          type: string
          description: Description. Nullable.
        LogoPath:
          type: string
          description: 'LogoPath. MaxLength: 500. Nullable.'
        Updated:
          type: string
          description: Updated. Nullable.
          format: date-time
        UpdatedBy:
          type: integer
          description: UpdatedBy.
          format: int32
        LogoKey:
          type: string
          description: LogoKey. Nullable.
          format: guid
        ClientId:
          type: integer
          description: ClientId. Nullable.
          format: int32
      format: >-
        Enferno.Storm.Query.Api.DataContexts.ShoppingModel.ApplicationPaymentMethodCulture
    Enferno.Storm.Query.Api.DataContexts.ShoppingModel.RecurringOrderSchedule:
      type: object
      properties:
        RecurringOrderId:
          type: integer
          description: RecurringOrderId. Key property.
          format: int32
        Id:
          type: integer
          description: Id. Key property.
          format: int32
        ClientId:
          type: integer
          description: ClientId.
          format: int32
        ApplicationId:
          type: integer
          description: ApplicationId.
          format: int32
        FrequencyId:
          type: integer
          description: FrequencyId.
          format: int32
        RecurValue:
          type: integer
          description: RecurValue.
          format: int32
        WeeklyMonday:
          type: boolean
          description: WeeklyMonday.
        WeeklyTuesday:
          type: boolean
          description: WeeklyTuesday.
        WeeklyWednesday:
          type: boolean
          description: WeeklyWednesday.
        WeeklyThursday:
          type: boolean
          description: WeeklyThursday.
        WeeklyFriday:
          type: boolean
          description: WeeklyFriday.
        WeeklySaturday:
          type: boolean
          description: WeeklySaturday.
        WeeklySunday:
          type: boolean
          description: WeeklySunday.
        MonthlyDay:
          type: integer
          description: MonthlyDay.
          format: int32
        MonthlyIntervalId:
          type: integer
          description: MonthlyIntervalId.
          format: int32
        MonthlyIntervalValueId:
          type: integer
          description: MonthlyIntervalValueId.
          format: int32
        TimeOfDay:
          type: string
          description: TimeOfDay. Nullable.
        IsActive:
          type: boolean
          description: IsActive.
        StoppedDate:
          type: string
          description: StoppedDate. Nullable.
          format: date-time
        StoppedBy:
          type: integer
          description: StoppedBy. Nullable.
          format: int32
        Created:
          type: string
          description: Created.
          format: date-time
        CreatedBy:
          type: integer
          description: CreatedBy.
          format: int32
        Updated:
          type: string
          description: Updated. Nullable.
          format: date-time
        UpdatedBy:
          type: integer
          description: UpdatedBy. Nullable.
          format: int32
      format: >-
        Enferno.Storm.Query.Api.DataContexts.ShoppingModel.RecurringOrderSchedule
    Enferno.Storm.Query.Api.DataContexts.ShoppingModel.RecurringOrderType:
      type: object
      properties:
        Id:
          type: integer
          description: Id. Key property.
          format: int32
        ClientId:
          type: integer
          description: ClientId.
          format: int32
        ApplicationId:
          type: integer
          description: ApplicationId.
          format: int32
        Code:
          type: string
          description: 'Code. MaxLength: 50. Nullable.'
        Name:
          type: string
          description: 'Name. MaxLength: 50. Nullable.'
        Description:
          type: string
          description: 'Description. MaxLength: 500. Nullable.'
        EndDate:
          type: string
          description: EndDate. Nullable.
          format: date-time
        IsActive:
          type: boolean
          description: IsActive.
        StoppedDate:
          type: string
          description: StoppedDate. Nullable.
          format: date-time
        StoppedBy:
          type: integer
          description: StoppedBy. Nullable.
          format: int32
        Created:
          type: string
          description: Created.
          format: date-time
        CreatedBy:
          type: integer
          description: CreatedBy.
          format: int32
        Updated:
          type: string
          description: Updated. Nullable.
          format: date-time
        UpdatedBy:
          type: integer
          description: UpdatedBy. Nullable.
          format: int32
      format: Enferno.Storm.Query.Api.DataContexts.ShoppingModel.RecurringOrderType
    Enferno.Storm.Query.Api.DataContexts.ShoppingModel.ApplicationPaymentMethod:
      type: object
      properties:
        ApplicationId:
          type: integer
          description: ApplicationId. Key property.
          format: int32
        PaymentMethodId:
          type: integer
          description: PaymentMethodId. Key property.
          format: int32
        PaymentServiceId:
          type: integer
          description: PaymentServiceId.
          format: int32
        OnlyCompanies:
          type: boolean
          description: OnlyCompanies.
        OnlyNotCompanies:
          type: boolean
          description: OnlyNotCompanies.
        HasDeliveryMethods:
          type: boolean
          description: HasDeliveryMethods.
        HasDivisions:
          type: boolean
          description: HasDivisions.
        HasFields:
          type: boolean
          description: HasFields.
        CurrencyId:
          type: integer
          description: CurrencyId. Nullable.
          format: int32
        MinOrderValue:
          type: number
          description: MinOrderValue. Nullable.
          format: decimal
        MaxOrderValue:
          type: number
          description: MaxOrderValue. Nullable.
          format: decimal
        Fee:
          type: number
          description: Fee.
          format: decimal
        FeeVatRate:
          type: number
          description: FeeVatRate.
          format: decimal
        Code:
          type: string
          description: 'Code. MaxLength: 50. Nullable.'
        ExternalPartnerCode:
          type: string
          description: 'ExternalPartnerCode. MaxLength: 50. Nullable.'
        PartNo:
          type: string
          description: 'PartNo. MaxLength: 50. Nullable.'
        SortOrder:
          type: integer
          description: SortOrder. Nullable.
          format: int32
        IsActive:
          type: boolean
          description: IsActive.
        Created:
          type: string
          description: Created.
          format: date-time
        CreatedBy:
          type: integer
          description: CreatedBy.
          format: int32
        Updated:
          type: string
          description: Updated. Nullable.
          format: date-time
        UpdatedBy:
          type: integer
          description: UpdatedBy. Nullable.
          format: int32
        IsRecurrable:
          type: boolean
          description: IsRecurrable. Nullable.
        ClientId:
          type: integer
          description: ClientId. Nullable.
          format: int32
        Cultures:
          type: array
          description: Cultures.
          items:
            $ref: >-
              #/components/schemas/Enferno.Storm.Query.Api.DataContexts.ShoppingModel.ApplicationPaymentMethodCulture
      format: >-
        Enferno.Storm.Query.Api.DataContexts.ShoppingModel.ApplicationPaymentMethod
    Enferno.Storm.Query.Api.DataContexts.ShoppingModel.ApplicationDeliveryMethod:
      type: object
      properties:
        ApplicationId:
          type: integer
          description: ApplicationId. Key property.
          format: int32
        DeliveryMethodId:
          type: integer
          description: DeliveryMethodId. Key property.
          format: int32
        Code:
          type: string
          description: 'Code. MaxLength: 50. Nullable.'
        OnlyCompanies:
          type: boolean
          description: OnlyCompanies.
        OnlyNotCompanies:
          type: boolean
          description: OnlyNotCompanies.
        HasLocations:
          type: boolean
          description: HasLocations.
        HasCustomerFlags:
          type: boolean
          description: HasCustomerFlags.
        HasPaymentMethods:
          type: boolean
          description: HasPaymentMethods.
        HasDeliveryNotification:
          type: boolean
          description: HasDeliveryNotification.
        AvailableAsDropShip:
          type: boolean
          description: AvailableAsDropShip.
        AllowDangerousGoods:
          type: boolean
          description: AllowDangerousGoods.
        CurrencyId:
          type: integer
          description: CurrencyId. Nullable.
          format: int32
        MaxOrderProductValue:
          type: number
          description: MaxOrderProductValue. Nullable.
          format: decimal
        MaxWeight:
          type: number
          description: MaxWeight. Nullable.
          format: decimal
        MaxWidth:
          type: number
          description: MaxWidth. Nullable.
          format: decimal
        MaxHeight:
          type: number
          description: MaxHeight. Nullable.
          format: decimal
        MaxDepth:
          type: number
          description: MaxDepth. Nullable.
          format: decimal
        MaxGirth:
          type: number
          description: MaxGirth. Nullable.
          format: decimal
        MaxVolume:
          type: number
          description: MaxVolume. Nullable.
          format: decimal
        MaxUnits:
          type: number
          description: MaxUnits. Nullable.
          format: decimal
        MinTemp:
          type: number
          description: MinTemp. Nullable.
          format: decimal
        MaxTemp:
          type: number
          description: MaxTemp. Nullable.
          format: decimal
        UseVolumeWeight:
          type: boolean
          description: UseVolumeWeight.
        UseLargestWeight:
          type: boolean
          description: UseLargestWeight.
        VolumeWeightFactor:
          type: number
          description: VolumeWeightFactor. Nullable.
          format: decimal
        IsStackable:
          type: boolean
          description: IsStackable.
        IsActive:
          type: boolean
          description: IsActive.
        Created:
          type: string
          description: Created.
          format: date-time
        CreatedBy:
          type: integer
          description: CreatedBy.
          format: int32
        Updated:
          type: string
          description: Updated. Nullable.
          format: date-time
        UpdatedBy:
          type: integer
          description: UpdatedBy. Nullable.
          format: int32
        MaxVolumeWeight:
          type: number
          description: MaxVolumeWeight. Nullable.
          format: decimal
        HasSkuTypes:
          type: boolean
          description: HasSkuTypes.
        AreSkuTypesForced:
          type: boolean
          description: AreSkuTypesForced.
        SortOrder:
          type: integer
          description: SortOrder. Nullable.
          format: int32
        MinOrderProductValue:
          type: number
          description: MinOrderProductValue. Nullable.
          format: decimal
        ClientId:
          type: integer
          description: ClientId. Nullable.
          format: int32
        Cultures:
          type: array
          description: Cultures.
          items:
            $ref: >-
              #/components/schemas/Enferno.Storm.Query.Api.DataContexts.ShoppingModel.ApplicationDeliveryMethodCulture
      format: >-
        Enferno.Storm.Query.Api.DataContexts.ShoppingModel.ApplicationDeliveryMethod
    Enferno.Storm.Query.Api.DataContexts.ShoppingModel.RecurringOrder:
      type: object
      properties:
        Id:
          type: integer
          description: Id. Key property.
          format: int32
        ClientId:
          type: integer
          description: ClientId.
          format: int32
        ApplicationId:
          type: integer
          description: ApplicationId.
          format: int32
        TypeId:
          type: integer
          description: TypeId.
          format: int32
        TemplateQuotationId:
          type: integer
          description: TemplateQuotationId.
          format: int32
        StatusId:
          type: integer
          description: StatusId.
          format: int32
        HoldFromDate:
          type: string
          description: HoldFromDate. Nullable.
          format: date-time
        HoldUntilDate:
          type: string
          description: HoldUntilDate. Nullable.
          format: date-time
        StartDate:
          type: string
          description: StartDate. Nullable.
          format: date-time
        EndDate:
          type: string
          description: EndDate. Nullable.
          format: date-time
        Created:
          type: string
          description: Created.
          format: date-time
        CreatedBy:
          type: integer
          description: CreatedBy.
          format: int32
        Updated:
          type: string
          description: Updated. Nullable.
          format: date-time
        UpdatedBy:
          type: integer
          description: UpdatedBy. Nullable.
          format: int32
        Schedules:
          type: array
          description: Schedules.
          items:
            $ref: >-
              #/components/schemas/Enferno.Storm.Query.Api.DataContexts.ShoppingModel.RecurringOrderSchedule
        Type:
          $ref: >-
            #/components/schemas/Enferno.Storm.Query.Api.DataContexts.ShoppingModel.RecurringOrderType
      format: Enferno.Storm.Query.Api.DataContexts.ShoppingModel.RecurringOrder
x-original-swagger-version: '2.0'
