NAV

<back to all web services

CallCenterProfileSalesHistoryGetList

The following routes are available for this service:
GET/call-center/profiles/{AccountNumber}/sales-history/{Campaign}
GET/call-center/profiles/{AccountNumber}/sales-history
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports NAV.ServiceModel

Namespace Global

    Namespace NAV.ServiceModel

        Public Partial Class CallCenterProfileSalesHistoryGetList
            Implements IGet
            Public Overridable Property AccountNumber As Decimal
            Public Overridable Property Campaign As String
        End Class

        Public Partial Class CallCenterProfileSalesHistoryGetListResponse
            Inherits GetListResponse(Of CallCenterProfileSalesHistoryGetListViewModel)
        End Class

        Public Partial Class CallCenterProfileSalesHistoryGetListViewModel
            Public Overridable Property AccountNumber As Decimal
            Public Overridable Property Year As Integer
            Public Overridable Property Campaign As String
            Public Overridable Property CampaignSales As Decimal
            Public Overridable Property AwardSales As Decimal
            Public Overridable Property NetSales As Decimal
            Public Overridable Property OrderBuilders As Decimal
            Public Overridable Property SalesAids As Decimal
            Public Overridable Property DemoSales As Decimal
            Public Overridable Property Returns As Decimal
            Public Overridable Property Leadership As Decimal
            Public Overridable Property EarningsPercent As Decimal
            Public Overridable Property FreeAmount As Decimal
            Public Overridable Property CustomerPrice As Decimal
            Public Overridable Property SalesAidsOrder As Decimal
            Public Overridable Property OrderSize As Decimal
        End Class

        Public Partial Class GetListResponse(Of TEntity)
            Public Sub New()
                Items = New List(Of TEntity)
            End Sub

            Public Overridable Property Items As List(Of TEntity)
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class
    End Namespace
End Namespace

VB.NET CallCenterProfileSalesHistoryGetList 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.

GET /call-center/profiles/{AccountNumber}/sales-history/{Campaign} HTTP/1.1 
Host: extensions.avon.ca 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"items":[{"accountNumber":0,"year":0,"campaign":"String","campaignSales":0,"awardSales":0,"netSales":0,"orderBuilders":0,"salesAids":0,"demoSales":0,"returns":0,"leadership":0,"earningsPercent":0,"freeAmount":0,"customerPrice":0,"salesAidsOrder":0,"orderSize":0}],"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}