AIM Web Services

<back to all web services

SearchInventoryRequest

SearchInventory
Requires active-e Inventory Service

The following routes are available for this service:
POST, GET/api/SearchInventory
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports AIM.WebService
Imports AIM.Model.DB
Imports AIM.Global.Utils
Imports AIM

Namespace Global

    Namespace AIM

        <DataContract>
        Public Partial Class LocationInfo
            <DataMember>
            Public Overridable Property Id As Long

            <DataMember>
            Public Overridable Property Desc As String

            <DataMember>
            Public Overridable Property ShortDesc As String

            <DataMember>
            Public Overridable Property Region As String

            <DataMember>
            Public Overridable Property Latitude As Decimal

            <DataMember>
            Public Overridable Property Longitude As Decimal

            <DataMember>
            Public Overridable Property InStorePickup As String

            <DataMember>
            Public Overridable Property Active As Boolean

            <DataMember>
            Public Overridable Property CashSaleAcct As Nullable(Of Integer)
        End Class
    End Namespace

    Namespace AIM.Global.Utils

        <DataContract>
        Public Partial Class BindableObject
        End Class
    End Namespace

    Namespace AIM.Model.DB

        <DataContract>
        Public Partial Class SearchInventoryResultSet
            Inherits BindableObject
            Implements IAIMInventoryRecord
            <DataMember>
            Public Overridable Property Pk As Long

            <DataMember>
            Public Overridable Property Description As String

            <DataMember>
            Public Overridable Property InventoryType As String

            <DataMember>
            Public Overridable Property Manufacturer As String

            <DataMember>
            Public Overridable Property Model As String

            <DataMember>
            Public Overridable Property Category As Nullable(Of Decimal)

            <DataMember>
            Public Overridable Property CategoryDescription As String

            <DataMember>
            Public Overridable Property SubCategory As Nullable(Of Decimal)

            <DataMember>
            Public Overridable Property SubCategoryDescription As String

            <DataMember>
            Public Overridable Property SelectionCode As String

            <DataMember>
            Public Overridable Property SelectionCodeDescription As String

            <DataMember>
            Public Overridable Property Sku As String

            <DataMember>
            Public Overridable Property Mpn As String

            <DataMember>
            Public Overridable Property Discontinued As Nullable(Of Boolean)

            <DataMember>
            Public Overridable Property Attribute1 As String

            <DataMember>
            Public Overridable Property Attribute2 As String

            <DataMember>
            Public Overridable Property Attribute3 As String

            <DataMember>
            Public Overridable Property Attribute4 As String

            <DataMember>
            Public Overridable Property Attribute5 As String

            <DataMember>
            Public Overridable Property Attribute6 As String

            <DataMember>
            Public Overridable Property Attribute7 As String

            <DataMember>
            Public Overridable Property Attribute8 As String

            <DataMember>
            Public Overridable Property Attribute9 As String

            <DataMember>
            Public Overridable Property Attribute10 As String

            <DataMember>
            Public Overridable Property Attribute11 As String

            <DataMember>
            Public Overridable Property Attribute12 As String

            <DataMember>
            Public Overridable Property Attribute13 As String

            <DataMember>
            Public Overridable Property Attribute14 As String

            <DataMember>
            Public Overridable Property Attribute15 As String

            <DataMember>
            Public Overridable Property Attribute16 As String

            <DataMember>
            Public Overridable Property Attribute17 As String

            <DataMember>
            Public Overridable Property Attribute18 As String

            <DataMember>
            Public Overridable Property Attribute19 As String

            <DataMember>
            Public Overridable Property Attribute20 As String

            <DataMember>
            Public Overridable Property ComputerQuantity As Decimal

            <DataMember>
            Public Overridable Property OurPrice As Decimal

            <DataMember>
            Public Overridable Property RetailPrice As Decimal

            <DataMember>
            Public Overridable Property ActiveePrice As Decimal

            <DataMember>
            Public Overridable Property PriceA As Decimal

            <DataMember>
            Public Overridable Property PriceB As Decimal

            <DataMember>
            Public Overridable Property PriceC As Decimal

            <DataMember>
            Public Overridable Property MinPrice As Decimal

            <DataMember>
            Public Overridable Property AvailableQuantity As Decimal

            <DataMember>
            Public Overridable Property IsMedia As Boolean

            <DataMember>
            Public Overridable Property IsPackage As Boolean

            <DataMember>
            Public Overridable Property HasImage As Boolean

            <DataMember>
            Public Overridable Property SearchTerm As String

            <DataMember>
            Public Overridable Property Keywords As String

            <DataMember>
            Public Overridable Property KeywordsOrigin As String

            <DataMember>
            Public Overridable Property Deleted As Boolean

            <DataMember>
            Public Overridable Property TimeStamp As Date
        End Class
    End Namespace

    Namespace AIM.WebService

        <DataContract>
        Public Partial Class ActiveEInfo
            Public Sub New()
                WebCategoryIds = New List(Of Long)
            End Sub

            <DataMember>
            Public Overridable Property Dimension As String

            <DataMember>
            Public Overridable Property WebDescription As String

            <DataMember>
            Public Overridable Property Summary As String

            <DataMember>
            Public Overridable Property SETitle As String

            <DataMember>
            Public Overridable Property SEDescription As String

            <DataMember>
            Public Overridable Property SEKeywords As String

            <DataMember>
            Public Overridable Property SEAltText As String

            <DataMember>
            Public Overridable Property SEHtmlFreeText As String

            <DataMember>
            Public Overridable Property Unpublished As Boolean

            <DataMember>
            Public Overridable Property FreeShipping As Boolean

            <DataMember>
            Public Overridable Property IsFeatured As Boolean

            <DataMember>
            Public Overridable Property WebCategoryIds As List(Of Long)
        End Class

        <DataContract>
        Public Partial Class AddOnDetail
            <DataMember>
            Public Overridable Property SadPk As Long

            <DataMember>
            Public Overridable Property SkuPk As Long

            <DataMember>
            Public Overridable Property CatPk As Long

            <DataMember>
            Public Overridable Property SubPk As Long

            <DataMember>
            Public Overridable Property Item As String

            <DataMember>
            Public Overridable Property Description As String

            <DataMember>
            Public Overridable Property Price As Decimal
        End Class

        <DataContract>
        Public Partial Class BaseRequest
            '''<Summary>
            '''This is your AIM API Key provided by Tri-Tech
            '''</Summary>
            <DataMember>
            <ApiMember(DataType:="string", Description:="This is your AIM API Key provided by Tri-Tech", IsRequired:=true, Name:="ApiKey", ParameterType:="header")>
            Public Overridable Property ApiKey As String

            <DataMember>
            <ApiMember(DataType:="string", Name:="OAuthToken", ParameterType:="header")>
            Public Overridable Property OAuthToken As String
        End Class

        <DataContract>
        Public Partial Class BaseResponse
            '''<Summary>
            '''
            '''</Summary>
            <DataMember>
            <ApiMember(DataType:="BaseResponseResult", Description:="", Name:="Status", ParameterType:="body")>
            Public Overridable Property Status As BaseResponseResult

            <DataContract>
            Public Partial Class BaseResponseResult
                '''<Summary>
                '''
                '''</Summary>
                <DataMember>
                <ApiMember(DataType:="string", Description:="", Name:="StatusCode", ParameterType:="body")>
                Public Overridable Property StatusCode As String

                '''<Summary>
                '''
                '''</Summary>
                <DataMember>
                <ApiMember(DataType:="string", Description:="", Name:="Login", ParameterType:="body")>
                Public Overridable Property Login As String

                '''<Summary>
                '''
                '''</Summary>
                <DataMember>
                <ApiMember(DataType:="string", Description:="", Name:="ErrorCode", ParameterType:="body")>
                Public Overridable Property ErrorCode As String

                '''<Summary>
                '''
                '''</Summary>
                <DataMember>
                <ApiMember(DataType:="string", Description:="", Name:="ErrorDisplayText", ParameterType:="body")>
                Public Overridable Property ErrorDisplayText As String

                '''<Summary>
                '''
                '''</Summary>
                <DataMember>
                <ApiMember(DataType:="string", Description:="", Name:="ErrorMessage", ParameterType:="body")>
                Public Overridable Property ErrorMessage As String

                '''<Summary>
                '''
                '''</Summary>
                <DataMember>
                <ApiMember(DataType:="string", Description:="", ExcludeInSchema:=true, Name:="DomainName", ParameterType:="body")>
                Public Overridable Property DomainName As String

                '''<Summary>
                '''
                '''</Summary>
                <DataMember>
                <ApiMember(DataType:="string", Description:="", ExcludeInSchema:=true, Name:="IPAddress", ParameterType:="body")>
                Public Overridable Property IpAddress As String
            End Class
        End Class

        <DataContract>
        Public Partial Class BaseSecureRequest
            Inherits BaseRequest
            '''<Summary>
            '''
            '''</Summary>
            <DataMember>
            <ApiMember(DataType:="string", Description:="", Name:="Token", ParameterType:="Header")>
            Public Overridable Property Token As String

            '''<Summary>
            '''
            '''</Summary>
            <DataMember>
            <ApiMember(DataType:="string", Description:="", Name:="DeviceId", ParameterType:="Header")>
            Public Overridable Property DeviceId As String

            '''<Summary>
            '''
            '''</Summary>
            <DataMember>
            <ApiMember(DataType:="string", Description:="", IsRequired:=true, Name:="AppId", ParameterType:="Header")>
            Public Overridable Property AppId As String
        End Class

        <DataContract>
        Public Partial Class ImageInfo
            <DataMember>
            Public Overridable Property Url As String

            <DataMember>
            Public Overridable Property ImageStream As String

            <DataMember>
            Public Overridable Property ImageSize As String

            <DataMember>
            Public Overridable Property ErrorMessage As String

            <DataMember>
            Public Overridable Property UriPk As Nullable(Of Long)
        End Class

        <DataContract>
        Public Partial Class InventoryDetail
            Public Sub New()
                Images = New List(Of ImageInfo)
                VariantDetails = New List(Of InventoryDetailByVariant)
                AddOns = New List(Of AddOnDetail)
            End Sub

            <DataMember>
            Public Overridable Property SadPk As Long

            <DataMember>
            Public Overridable Property InvType As String

            <DataMember>
            Public Overridable Property Model As String

            <DataMember>
            Public Overridable Property Description As String

            <DataMember>
            Public Overridable Property Mfg As String

            <DataMember>
            Public Overridable Property Category As Integer

            <DataMember>
            Public Overridable Property CategoryDescription As String

            <DataMember>
            Public Overridable Property SubCategory As Integer

            <DataMember>
            Public Overridable Property SubCategoryDescription As String

            <DataMember>
            Public Overridable Property SelectionCode As String

            <DataMember>
            Public Overridable Property SelectionCodeDescription As String

            <DataMember>
            Public Overridable Property SellSerialsOnline As Boolean

            <DataMember>
            Public Overridable Property Notes As String

            <DataMember>
            Public Overridable Property Images As List(Of ImageInfo)

            <DataMember>
            Public Overridable Property HasImages As Boolean

            <DataMember>
            Public Overridable Property VariantDetails As List(Of InventoryDetailByVariant)

            <DataMember>
            Public Overridable Property AddOns As List(Of AddOnDetail)

            <DataMember>
            Public Overridable Property ActiveEInfo As ActiveEInfo

            <DataMember>
            Public Overridable Property Weight As Decimal

            <DataMember>
            Public Overridable Property Unit As String
        End Class

        <DataContract>
        Public Partial Class InventoryDetailAttribute
            <DataMember>
            Public Overridable Property Name As String

            <DataMember>
            Public Overridable Property Value As String

            <DataMember>
            Public Overridable Property Priority As Integer

            '''<Summary>
            '''1 is 'Don't Send to Web', 2 is 'Guided Navigation'
            '''</Summary>
            <DataMember>
            <ApiMember(DataType:="int", Description:="1 is 'Don't Send to Web', 2 is 'Guided Navigation'", Name:="WebType", ParameterType:="query")>
            Public Overridable Property WebType As Integer
        End Class

        <DataContract>
        Public Partial Class InventoryDetailByLocation
            Public Sub New()
                Serials = New List(Of InventoryDetailBySerial)
                Substitutes = New List(Of InventoryDetailSubstitute)
            End Sub

            <DataMember>
            Public Overridable Property SaqPk As Long

            <DataMember>
            Public Overridable Property LocationInfo As LocationInfo

            <DataMember>
            Public Overridable Property Serials As List(Of InventoryDetailBySerial)

            <DataMember>
            Public Overridable Property Substitutes As List(Of InventoryDetailSubstitute)

            <DataMember>
            Public Overridable Property Retail As Decimal

            <DataMember>
            Public Overridable Property OurPrice As Decimal

            <DataMember>
            Public Overridable Property SalePrice As Nullable(Of Decimal)

            <DataMember>
            Public Overridable Property SaleInfo As String

            <DataMember>
            Public Overridable Property PriceA As Decimal

            <DataMember>
            Public Overridable Property PriceB As Decimal

            <DataMember>
            Public Overridable Property PriceC As Decimal

            <DataMember>
            Public Overridable Property MinPrice As Decimal

            <DataMember>
            Public Overridable Property ActiveEPrice As Decimal

            <DataMember>
            Public Overridable Property CustomerPrice As Decimal

            <DataMember>
            Public Overridable Property AllowPriceChange As Boolean

            <DataMember>
            Public Overridable Property Qty As Decimal

            <DataMember>
            Public Overridable Property QtyAvail As Decimal

            <DataMember>
            Public Overridable Property ActiveeHoldbackQty As Decimal

            <DataMember>
            Public Overridable Property ReorderMin As Integer

            <DataMember>
            Public Overridable Property ReorderMax As Integer

            <DataMember>
            Public Overridable Property AverageCost As Nullable(Of Decimal)

            <DataMember>
            Public Overridable Property WeightedCost As Nullable(Of Decimal)

            <DataMember>
            Public Overridable Property Locator As String

            <DataMember>
            Public Overridable Property SelectionCode As String

            <DataMember>
            Public Overridable Property SelectionCodeDescription As String

            <DataMember>
            Public Overridable Property Spiff As Decimal

            <DataMember>
            Public Overridable Property CurrentSpotCheckQty As Nullable(Of Decimal)

            <DataMember>
            Public Overridable Property QtyOut As Decimal

            <DataMember>
            Public Overridable Property QtyOnOrder As Decimal

            <DataMember>
            Public Overridable Property AvailableForSTR As Decimal
        End Class

        <DataContract>
        Public Partial Class InventoryDetailBySerial
            Public Sub New()
                Attributes = New List(Of InventoryDetailAttribute)
                Images = New List(Of ImageInfo)
            End Sub

            <DataMember>
            Public Overridable Property SasPk As Long

            <DataMember>
            Public Overridable Property Serial As String

            <DataMember>
            Public Overridable Property Retail As Decimal

            <DataMember>
            Public Overridable Property OurPrice As Decimal

            <DataMember>
            Public Overridable Property SalePrice As Nullable(Of Decimal)

            <DataMember>
            Public Overridable Property Status As String

            <DataMember>
            Public Overridable Property SaleInfo As String

            <DataMember>
            Public Overridable Property PriceA As Decimal

            <DataMember>
            Public Overridable Property PriceB As Decimal

            <DataMember>
            Public Overridable Property PriceC As Decimal

            <DataMember>
            Public Overridable Property MinPrice As Decimal

            <DataMember>
            Public Overridable Property ActiveEPrice As Decimal

            <DataMember>
            Public Overridable Property AllowPriceChange As Boolean

            <DataMember>
            Public Overridable Property Cost As Nullable(Of Decimal)

            <DataMember>
            Public Overridable Property WeightedCost As Nullable(Of Decimal)

            <DataMember>
            Public Overridable Property Notes As String

            <DataMember>
            Public Overridable Property Attributes As List(Of InventoryDetailAttribute)

            <DataMember>
            Public Overridable Property Images As List(Of ImageInfo)

            <DataMember>
            Public Overridable Property HasImages As Boolean

            <DataMember>
            Public Overridable Property IsActiveeHoldback As Boolean

            <DataMember>
            Public Overridable Property CustomerAcct As Nullable(Of Integer)

            <DataMember>
            Public Overridable Property AvailableForSTR As Boolean
        End Class

        <DataContract>
        Public Partial Class InventoryDetailByVariant
            Public Sub New()
                Attributes = New List(Of InventoryDetailAttribute)
                LocationDetails = New List(Of InventoryDetailByLocation)
                Images = New List(Of ImageInfo)
                Barcodes = New List(Of String)
            End Sub

            <DataMember>
            Public Overridable Property SkuPk As Long

            <DataMember>
            Public Overridable Property Sku As String

            <DataMember>
            Public Overridable Property VendorCost As Nullable(Of Decimal)

            <DataMember>
            Public Overridable Property VendorName As String

            <DataMember>
            Public Overridable Property Attributes As List(Of InventoryDetailAttribute)

            <DataMember>
            Public Overridable Property LocationDetails As List(Of InventoryDetailByLocation)

            <DataMember>
            Public Overridable Property Images As List(Of ImageInfo)

            <DataMember>
            Public Overridable Property HasImages As Boolean

            <DataMember>
            Public Overridable Property Barcodes As List(Of String)
        End Class

        <DataContract>
        Public Partial Class InventoryDetailSubstitute
            <DataMember>
            Public Overridable Property Model As String

            <DataMember>
            Public Overridable Property Sku As String

            <DataMember>
            Public Overridable Property Mfg As String

            <DataMember>
            Public Overridable Property Description As String

            <DataMember>
            Public Overridable Property Price As Decimal

            <DataMember>
            Public Overridable Property AvailableQty As Decimal
        End Class

        <DataContract>
        Public Partial Class SearchInventoryApiResult
            Inherits SearchInventoryResultSet
            <DataMember>
            Public Overridable Property Detail As InventoryDetail

            <DataMember>
            Public Overridable Property IconImage As ImageInfo

            <DataMember>
            Public Overridable Property CustomerPrice As Decimal
        End Class

        '''<Summary>
        '''SearchInventoryRequires active-e Inventory Service
        '''</Summary>
        <DataContract>
        Public Partial Class SearchInventoryRequest
            Inherits BaseSecureRequest
            Public Sub New()
                CatIdList = New List(Of Long)
                SubIdList = New List(Of Long)
                MfgIdList = New List(Of Long)
                SelIdList = New List(Of Long)
            End Sub

            '''<Summary>
            '''If sent, only items from the passed location will be returned
            '''</Summary>
            <DataMember>
            <ApiMember(DataType:="integer", Description:="If sent, only items from the passed location will be returned", Format:="int32", Name:="LocFk")>
            Public Overridable Property LocFk As Nullable(Of Integer)

            '''<Summary>
            '''For Internal Use Only
            '''</Summary>
            <DataMember>
            <ApiMember(DataType:="integer", Description:="For Internal Use Only", Format:="int32", Name:="MfgFk")>
            Public Overridable Property MfgFk As Nullable(Of Integer)

            '''<Summary>
            '''For Internal Use Only
            '''</Summary>
            <DataMember>
            <ApiMember(DataType:="integer", Description:="For Internal Use Only", Format:="int32", Name:="CatFk")>
            Public Overridable Property CatFk As Nullable(Of Integer)

            '''<Summary>
            '''For Internal Use Only
            '''</Summary>
            <DataMember>
            <ApiMember(DataType:="integer", Description:="For Internal Use Only", Format:="int32", Name:="SubFk")>
            Public Overridable Property SubFk As Nullable(Of Integer)

            '''<Summary>
            '''For Internal Use Only
            '''</Summary>
            <DataMember>
            <ApiMember(DataType:="integer", Description:="For Internal Use Only", Format:="int32", Name:="SelFk")>
            Public Overridable Property SelFk As Nullable(Of Integer)

            '''<Summary>
            '''If sent, only items from the passed category# will be returned
            '''</Summary>
            <DataMember>
            <ApiMember(DataType:="integer", Description:="If sent, only items from the passed category# will be returned", Format:="int32", Name:="Cat")>
            Public Overridable Property Cat As Nullable(Of Integer)

            '''<Summary>
            '''If sent, only items from the passed subcategory# will be returned. Must be used in conjunction with the Cat parameter.
            '''</Summary>
            <DataMember>
            <ApiMember(DataType:="integer", Description:="If sent, only items from the passed subcategory# will be returned. Must be used in conjunction with the Cat parameter.", Format:="int32", Name:="Sub")>
            Public Overridable Property Sub As Nullable(Of Integer)

            '''<Summary>
            '''If sent, only items with the passed selection code will be returned
            '''</Summary>
            <DataMember>
            <ApiMember(Description:="If sent, only items with the passed selection code will be returned", Name:="SelectionCode")>
            Public Overridable Property SelectionCode As String

            '''<Summary>
            '''If sent, only items with the passed mfg code will be returned
            '''</Summary>
            <DataMember>
            <ApiMember(Description:="If sent, only items with the passed mfg code will be returned", Name:="Mfg")>
            Public Overridable Property Mfg As String

            '''<Summary>
            '''Serialized Items will be included in the search results
            '''</Summary>
            <DataMember>
            <ApiMember(DataType:="boolean", Description:="Serialized Items will be included in the search results", Name:="IncludeSerials")>
            Public Overridable Property IncludeSerials As Nullable(Of Boolean)

            '''<Summary>
            '''Media Items will be included in the search results
            '''</Summary>
            <DataMember>
            <ApiMember(DataType:="boolean", Description:="Media Items will be included in the search results", Name:="IncludeMedia")>
            Public Overridable Property IncludeMedia As Nullable(Of Boolean)

            '''<Summary>
            '''Non-Serialized, Non-Media Items will be included in the search results
            '''</Summary>
            <DataMember>
            <ApiMember(DataType:="boolean", Description:="Non-Serialized, Non-Media Items will be included in the search results", Name:="IncludeAccessories")>
            Public Overridable Property IncludeAccessories As Nullable(Of Boolean)

            '''<Summary>
            '''Package Deal Items will be included in the search results
            '''</Summary>
            <DataMember>
            <ApiMember(DataType:="boolean", Description:="Package Deal Items will be included in the search results", Name:="IncludePackages")>
            Public Overridable Property IncludePackages As Nullable(Of Boolean)

            '''<Summary>
            '''The string to be searched for
            '''</Summary>
            <DataMember>
            <ApiMember(Description:="The string to be searched for", Name:="SearchStr")>
            Public Overridable Property SearchStr As String

            '''<Summary>
            '''If set, only items with the exact model contained in the search string will be returned
            '''</Summary>
            <DataMember>
            <ApiMember(DataType:="boolean", Description:="If set, only items with the exact model contained in the search string will be returned", Name:="ExactModel")>
            Public Overridable Property ExactModel As Nullable(Of Boolean)

            '''<Summary>
            '''The Starting Offse
            '''</Summary>
            <DataMember>
            <ApiMember(DataType:="integer", Description:="The Starting Offse", Format:="int64", Name:="StartOffset")>
            Public Overridable Property StartOffset As Nullable(Of Long)

            '''<Summary>
            '''The # of records to be returned
            '''</Summary>
            <DataMember>
            <ApiMember(DataType:="integer", Description:="The # of records to be returned", Format:="int64", Name:="RecordCount")>
            Public Overridable Property RecordCount As Nullable(Of Long)

            '''<Summary>
            '''If set, Icon Image Urls will be included in the result, if available
            '''</Summary>
            <DataMember>
            <ApiMember(DataType:="boolean", Description:="If set, Icon Image Urls will be included in the result, if available", Name:="IncludeIconImage")>
            Public Overridable Property IncludeIconImage As Nullable(Of Boolean)

            '''<Summary>
            '''If sent, only items from the passed category IDs will be returned
            '''</Summary>
            <DataMember>
            <ApiMember(Description:="If sent, only items from the passed category IDs will be returned", Name:="CatIdList")>
            Public Overridable Property CatIdList As List(Of Long)

            '''<Summary>
            '''If sent, only items from the passed subcategory IDs will be returned
            '''</Summary>
            <DataMember>
            <ApiMember(Description:="If sent, only items from the passed subcategory IDs will be returned", Name:="SubIdList")>
            Public Overridable Property SubIdList As List(Of Long)

            '''<Summary>
            '''If sent, only items from the passed mfg IDs will be returned
            '''</Summary>
            <DataMember>
            <ApiMember(Description:="If sent, only items from the passed mfg IDs will be returned", Name:="MfgIdList")>
            Public Overridable Property MfgIdList As List(Of Long)

            '''<Summary>
            '''If sent, only items from the passed selection code IDs will be returned
            '''</Summary>
            <DataMember>
            <ApiMember(Description:="If sent, only items from the passed selection code IDs will be returned", Name:="SelIdList")>
            Public Overridable Property SelIdList As List(Of Long)

            '''<Summary>
            '''Deleted Items will be included in the search results
            '''</Summary>
            <DataMember>
            <ApiMember(DataType:="boolean", Description:="Deleted Items will be included in the search results", Name:="IncludeDeleted")>
            Public Overridable Property IncludeDeleted As Nullable(Of Boolean)

            '''<Summary>
            '''If sent, only inventory changed on or after this date/time will be included
            '''</Summary>
            <DataMember>
            <ApiMember(DataType:="string", Description:="If sent, only inventory changed on or after this date/time will be included", Format:="date", Name:="ChangedDate", ParameterType:="query")>
            Public Overridable Property ChangedDate As Nullable(Of Date)

            '''<Summary>
            '''Package Deal Line Items will be included
            '''</Summary>
            <DataMember>
            <ApiMember(DataType:="boolean", Description:="Package Deal Line Items will be included", Name:="IncludePackageLineItems")>
            Public Overridable Property IncludePackageLineItems As Nullable(Of Boolean)

            '''<Summary>
            '''If set, the InventoryDetails object for each item will also be returned. This is much slower.
            '''</Summary>
            <DataMember>
            <ApiMember(DataType:="boolean", Description:="If set, the InventoryDetails object for each item will also be returned. This is much slower.", Name:="IncludeDetails")>
            Public Overridable Property IncludeDetails As Nullable(Of Boolean)

            '''<Summary>
            '''If sent, only items with an Available Quantity greater then or equal to the sent value will be returned. Use of this parameter requires that the LocFk parameter also be sent.
            '''</Summary>
            <DataMember>
            <ApiMember(DataType:="integer", Description:="If sent, only items with an Available Quantity greater then or equal to the sent value will be returned. Use of this parameter requires that the LocFk parameter also be sent.", Format:="int32", Name:="MinimumAvailableQuantity")>
            Public Overridable Property MinimumAvailableQuantity As Nullable(Of Integer)
        End Class

        <DataContract>
        Public Partial Class SearchInventoryResponse
            Inherits BaseResponse
            Public Sub New()
                Records = New List(Of SearchInventoryApiResult)
            End Sub

            <DataMember>
            Public Overridable Property StartOffset As Long

            <DataMember>
            Public Overridable Property RecordCount As Long

            <DataMember>
            Public Overridable Property RemainingRecords As Long

            <DataMember>
            Public Overridable Property TotalRecords As Long

            <DataMember>
            <ApiMember(Name:="Records", ParameterType:="body")>
            Public Overridable Property Records As List(Of SearchInventoryApiResult)
        End Class
    End Namespace
End Namespace

VB.NET SearchInventoryRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /api/SearchInventory HTTP/1.1 
Host: active-ewebservice.biz 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"LocFk":0,"MfgFk":0,"CatFk":0,"SubFk":0,"SelFk":0,"Cat":0,"Sub":0,"SelectionCode":"String","Mfg":"String","IncludeSerials":false,"IncludeMedia":false,"IncludeAccessories":false,"IncludePackages":false,"SearchStr":"String","ExactModel":false,"StartOffset":0,"RecordCount":0,"IncludeIconImage":false,"CatIdList":[0],"SubIdList":[0],"MfgIdList":[0],"SelIdList":[0],"IncludeDeleted":false,"ChangedDate":"0001-01-01T00:00:00.0000000","IncludePackageLineItems":false,"IncludeDetails":false,"MinimumAvailableQuantity":0,"Token":"String","DeviceId":"String","AppId":"String","ApiKey":"String","OAuthToken":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"StartOffset":0,"RecordCount":0,"RemainingRecords":0,"TotalRecords":0,"Records":[{"Detail":{"SadPk":0,"InvType":"String","Model":"String","Description":"String","Mfg":"String","Category":0,"CategoryDescription":"String","SubCategory":0,"SubCategoryDescription":"String","SelectionCode":"String","SelectionCodeDescription":"String","SellSerialsOnline":false,"Notes":"String","Images":[{"Url":"String","ImageStream":"String","ImageSize":"String","ErrorMessage":"String","UriPk":0}],"HasImages":true,"VariantDetails":[{}],"AddOns":[{}],"ActiveEInfo":{"Dimension":"String","WebDescription":"String","Summary":"String","SETitle":"String","SEDescription":"String","SEKeywords":"String","SEAltText":"String","SEHtmlFreeText":"String","Unpublished":false,"FreeShipping":false,"IsFeatured":false,"WebCategoryIds":[0]},"Weight":0,"Unit":"String"},"IconImage":{"Url":"String","ImageStream":"String","ImageSize":"String","ErrorMessage":"String","UriPk":0},"CustomerPrice":0,"Pk":0,"Description":"String","InventoryType":"String","Manufacturer":"String","Model":"String","Category":0,"CategoryDescription":"String","SubCategory":0,"SubCategoryDescription":"String","SelectionCode":"String","SelectionCodeDescription":"String","Sku":"String","Mpn":"String","Discontinued":false,"Attribute1":"String","Attribute2":"String","Attribute3":"String","Attribute4":"String","Attribute5":"String","Attribute6":"String","Attribute7":"String","Attribute8":"String","Attribute9":"String","Attribute10":"String","Attribute11":"String","Attribute12":"String","Attribute13":"String","Attribute14":"String","Attribute15":"String","Attribute16":"String","Attribute17":"String","Attribute18":"String","Attribute19":"String","Attribute20":"String","ComputerQuantity":0,"OurPrice":0,"RetailPrice":0,"ActiveePrice":0,"PriceA":0,"PriceB":0,"PriceC":0,"MinPrice":0,"AvailableQuantity":0,"IsMedia":false,"IsPackage":false,"HasImage":false,"SearchTerm":"String","Keywords":"String","KeywordsOrigin":"String","Deleted":false,"PackageLineItems":[{"Model":"String","Cat":0,"Sub":0,"Description":"String","Quantity":0,"Amount":0,"Discount":0,"ItemType":"String"}]}],"Status":{"StatusCode":"String","Login":"String","ErrorCode":"String","ErrorDisplayText":"String","ErrorMessage":"String","DomainName":"String","IpAddress":"String"}}