GET | /call-center/profiles/{AccountNumber}/sales-history/{Campaign} | ||
---|---|---|---|
GET | /call-center/profiles/{AccountNumber}/sales-history |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using NAV.ServiceModel;
namespace NAV.ServiceModel
{
public partial class CallCenterProfileSalesHistoryGetList
: IGet
{
public virtual decimal AccountNumber { get; set; }
public virtual string Campaign { get; set; }
}
public partial class CallCenterProfileSalesHistoryGetListResponse
: GetListResponse<CallCenterProfileSalesHistoryGetListViewModel>
{
}
public partial class CallCenterProfileSalesHistoryGetListViewModel
{
public virtual decimal AccountNumber { get; set; }
public virtual int Year { get; set; }
public virtual string Campaign { get; set; }
public virtual decimal CampaignSales { get; set; }
public virtual decimal AwardSales { get; set; }
public virtual decimal NetSales { get; set; }
public virtual decimal OrderBuilders { get; set; }
public virtual decimal SalesAids { get; set; }
public virtual decimal DemoSales { get; set; }
public virtual decimal Returns { get; set; }
public virtual decimal Leadership { get; set; }
public virtual decimal EarningsPercent { get; set; }
public virtual decimal FreeAmount { get; set; }
public virtual decimal CustomerPrice { get; set; }
public virtual decimal SalesAidsOrder { get; set; }
public virtual decimal OrderSize { get; set; }
}
public partial class GetListResponse<TEntity>
{
public GetListResponse()
{
Items = new List<TEntity>{};
}
public virtual List<TEntity> Items { get; set; }
public virtual ResponseStatus ResponseStatus { get; set; }
}
}
C# CallCenterProfileSalesHistoryGetList DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=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"}}}