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
CallCenterProfileSalesHistoryGetList Parameters:
NameParameterData TypeRequiredDescription
AccountNumberpathdecimalNo
CampaignpathstringNo
GetListResponse<TEntity> Parameters:
NameParameterData TypeRequiredDescription
ItemsformList<TEntity>No
ResponseStatusformResponseStatusNo
CallCenterProfileSalesHistoryGetListViewModel Parameters:
NameParameterData TypeRequiredDescription
AccountNumberformdecimalNo
YearformintNo
CampaignformstringNo
CampaignSalesformdecimalNo
AwardSalesformdecimalNo
NetSalesformdecimalNo
OrderBuildersformdecimalNo
SalesAidsformdecimalNo
DemoSalesformdecimalNo
ReturnsformdecimalNo
LeadershipformdecimalNo
EarningsPercentformdecimalNo
FreeAmountformdecimalNo
CustomerPriceformdecimalNo
SalesAidsOrderformdecimalNo
OrderSizeformdecimalNo

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"}}}