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
import java.math.*
import java.util.*
import net.servicestack.client.*


open class CallCenterProfileSalesHistoryGetList : IGet
{
    var accountNumber:BigDecimal? = null
    var campaign:String? = null
}

open class CallCenterProfileSalesHistoryGetListResponse : GetListResponse<CallCenterProfileSalesHistoryGetListViewModel>()
{
}

open class GetListResponse<TEntity>
{
    var items:ArrayList<TEntity> = ArrayList<TEntity>()
    var responseStatus:ResponseStatus? = null
}

open class CallCenterProfileSalesHistoryGetListViewModel
{
    var accountNumber:BigDecimal? = null
    var year:Int? = null
    var campaign:String? = null
    var campaignSales:BigDecimal? = null
    var awardSales:BigDecimal? = null
    var netSales:BigDecimal? = null
    var orderBuilders:BigDecimal? = null
    var salesAids:BigDecimal? = null
    var demoSales:BigDecimal? = null
    var returns:BigDecimal? = null
    var leadership:BigDecimal? = null
    var earningsPercent:BigDecimal? = null
    var freeAmount:BigDecimal? = null
    var customerPrice:BigDecimal? = null
    var salesAidsOrder:BigDecimal? = null
    var orderSize:BigDecimal? = null
}

Kotlin CallCenterProfileSalesHistoryGetList DTOs

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

HTTP + CSV

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: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
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"}}}