| GET | /call-center/profiles/{BeeNumber}/sales-recognition |
|---|
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class CallCenterProfileSalesRecognitionGetResponse:
account_number: Optional[Decimal] = None
p_ctag: Optional[str] = None
loa: Optional[Decimal] = None
amt_needed_for_premier_level: Optional[Decimal] = None
amt_needed_for_presidents_club: Optional[Decimal] = None
amt_needed_for_honor_society: Optional[Decimal] = None
amt_needed_for_rose_circle: Optional[Decimal] = None
amt_needed_for_mc_connells: Optional[Decimal] = None
amt_needed_for_presidents_council: Optional[Decimal] = None
amt_needed_for_inner_circle: Optional[Decimal] = None
current_campaign_sale_this_year: Optional[Decimal] = None
current_campaign_sale_last_year: Optional[Decimal] = None
previous_campaign_sale_this_year: Optional[Decimal] = None
previous_campaign_sale_last_year: Optional[Decimal] = None
campaign_sale_this_cycle: Optional[Decimal] = None
campaign_sale_last_cycle: Optional[Decimal] = None
bonus_sale_this_cycle: Optional[Decimal] = None
bonus_sale_last_cycle: Optional[Decimal] = None
response_status: Optional[ResponseStatus] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class CallCenterProfileSalesRecognitionGet(IGet):
bee_number: Optional[Decimal] = None
Python CallCenterProfileSalesRecognitionGet DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /call-center/profiles/{BeeNumber}/sales-recognition HTTP/1.1
Host: extensions.avon.ca
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
accountNumber: 0,
pCtag: String,
loa: 0,
amtNeededForPremierLevel: 0,
amtNeededForPresidentsClub: 0,
amtNeededForHonorSociety: 0,
amtNeededForRoseCircle: 0,
amtNeededForMcConnells: 0,
amtNeededForPresidentsCouncil: 0,
amtNeededForInnerCircle: 0,
currentCampaignSaleThisYear: 0,
currentCampaignSaleLastYear: 0,
previousCampaignSaleThisYear: 0,
previousCampaignSaleLastYear: 0,
campaignSaleThisCycle: 0,
campaignSaleLastCycle: 0,
bonusSaleThisCycle: 0,
bonusSaleLastCycle: 0,
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
}
}