POST api/AgentDiscount/Post?AgentUID={AgentUID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
AgentUID

integer

Required

Body Parameters

AgentDiscount
NameDescriptionTypeAdditional information
UID

integer

None.

BusinessChannelUID

integer

None.

DistributorDiscountDatesUID

integer

None.

AgentUID

integer

None.

DiscountLimit

decimal number

None.

AlarmAmount

decimal number

None.

SpendAmount

decimal number

None.

StartDate

date

None.

EndDate

date

None.

CreationDate

date

None.

LastModifiedDate

date

None.

LastModifiedBy

string

None.

EffectiveDate

date

None.

ExpiryDate

date

None.

SpendAmountMobile

decimal number

None.

ReturnDiscount

decimal number

None.

ReturnDiscountMobile

decimal number

None.

Adjustment

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "UID": 1,
  "BusinessChannelUID": 2,
  "DistributorDiscountDatesUID": 1,
  "AgentUID": 1,
  "DiscountLimit": 1.0,
  "AlarmAmount": 1.0,
  "SpendAmount": 1.0,
  "StartDate": "2025-02-12T15:33:54.1877763+05:30",
  "EndDate": "2025-02-12T15:33:54.1877763+05:30",
  "CreationDate": "2025-02-12T15:33:54.1877763+05:30",
  "LastModifiedDate": "2025-02-12T15:33:54.1877763+05:30",
  "LastModifiedBy": "sample string 3",
  "EffectiveDate": "2025-02-12T15:33:54.1877763+05:30",
  "ExpiryDate": "2025-02-12T15:33:54.1877763+05:30",
  "SpendAmountMobile": 1.0,
  "ReturnDiscount": 1.0,
  "ReturnDiscountMobile": 4.0,
  "Adjustment": 5.0
}

application/xml, text/xml

Sample:
<AgentDiscount xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VantageCore.Entity.Model">
  <Adjustment>5</Adjustment>
  <AgentUID>1</AgentUID>
  <AlarmAmount>1</AlarmAmount>
  <BusinessChannelUID>2</BusinessChannelUID>
  <CreationDate>2025-02-12T15:33:54.1877763+05:30</CreationDate>
  <DiscountLimit>1</DiscountLimit>
  <DistributorDiscountDatesUID>1</DistributorDiscountDatesUID>
  <EffectiveDate>2025-02-12T15:33:54.1877763+05:30</EffectiveDate>
  <EndDate>2025-02-12T15:33:54.1877763+05:30</EndDate>
  <ExpiryDate>2025-02-12T15:33:54.1877763+05:30</ExpiryDate>
  <LastModifiedBy>sample string 3</LastModifiedBy>
  <LastModifiedDate>2025-02-12T15:33:54.1877763+05:30</LastModifiedDate>
  <ReturnDiscount>1</ReturnDiscount>
  <ReturnDiscountMobile>4</ReturnDiscountMobile>
  <SpendAmount>1</SpendAmount>
  <SpendAmountMobile>1</SpendAmountMobile>
  <StartDate>2025-02-12T15:33:54.1877763+05:30</StartDate>
  <UID>1</UID>
</AgentDiscount>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

AgentDiscount
NameDescriptionTypeAdditional information
UID

integer

None.

BusinessChannelUID

integer

None.

DistributorDiscountDatesUID

integer

None.

AgentUID

integer

None.

DiscountLimit

decimal number

None.

AlarmAmount

decimal number

None.

SpendAmount

decimal number

None.

StartDate

date

None.

EndDate

date

None.

CreationDate

date

None.

LastModifiedDate

date

None.

LastModifiedBy

string

None.

EffectiveDate

date

None.

ExpiryDate

date

None.

SpendAmountMobile

decimal number

None.

ReturnDiscount

decimal number

None.

ReturnDiscountMobile

decimal number

None.

Adjustment

decimal number

None.

Response Formats

application/json, text/json

Sample:
{
  "UID": 1,
  "BusinessChannelUID": 2,
  "DistributorDiscountDatesUID": 1,
  "AgentUID": 1,
  "DiscountLimit": 1.0,
  "AlarmAmount": 1.0,
  "SpendAmount": 1.0,
  "StartDate": "2025-02-12T15:33:54.1877763+05:30",
  "EndDate": "2025-02-12T15:33:54.1877763+05:30",
  "CreationDate": "2025-02-12T15:33:54.1877763+05:30",
  "LastModifiedDate": "2025-02-12T15:33:54.1877763+05:30",
  "LastModifiedBy": "sample string 3",
  "EffectiveDate": "2025-02-12T15:33:54.1877763+05:30",
  "ExpiryDate": "2025-02-12T15:33:54.1877763+05:30",
  "SpendAmountMobile": 1.0,
  "ReturnDiscount": 1.0,
  "ReturnDiscountMobile": 4.0,
  "Adjustment": 5.0
}

application/xml, text/xml

Sample:
<AgentDiscount xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VantageCore.Entity.Model">
  <Adjustment>5</Adjustment>
  <AgentUID>1</AgentUID>
  <AlarmAmount>1</AlarmAmount>
  <BusinessChannelUID>2</BusinessChannelUID>
  <CreationDate>2025-02-12T15:33:54.1877763+05:30</CreationDate>
  <DiscountLimit>1</DiscountLimit>
  <DistributorDiscountDatesUID>1</DistributorDiscountDatesUID>
  <EffectiveDate>2025-02-12T15:33:54.1877763+05:30</EffectiveDate>
  <EndDate>2025-02-12T15:33:54.1877763+05:30</EndDate>
  <ExpiryDate>2025-02-12T15:33:54.1877763+05:30</ExpiryDate>
  <LastModifiedBy>sample string 3</LastModifiedBy>
  <LastModifiedDate>2025-02-12T15:33:54.1877763+05:30</LastModifiedDate>
  <ReturnDiscount>1</ReturnDiscount>
  <ReturnDiscountMobile>4</ReturnDiscountMobile>
  <SpendAmount>1</SpendAmount>
  <SpendAmountMobile>1</SpendAmountMobile>
  <StartDate>2025-02-12T15:33:54.1877763+05:30</StartDate>
  <UID>1</UID>
</AgentDiscount>