POST v1/Locations/{locationID}/Policies/AgencyFees
Upsert and agency fee
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
locationID |
Id of the location |
string |
Required |
Body Parameters
Agency fee to be upserted
UtilityAgencyFeeDTOName | Description | Type | Additional information |
---|---|---|---|
DefaultAmount | decimal number |
None. |
|
AmountIsPercent | boolean |
None. |
|
Visible | boolean |
None. |
|
LocationID | integer |
None. |
|
ShowInInvoice | boolean |
None. |
|
FeeType | integer |
None. |
|
AgencyFeeID | integer |
None. |
|
AgencyFeeName | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "DefaultAmount": 1.0, "AmountIsPercent": true, "Visible": true, "LocationID": 1, "ShowInInvoice": true, "FeeType": 1, "AgencyFeeID": 3, "AgencyFeeName": "sample string 4" }
application/xml, text/xml
Sample:
<UtilityAgencyFeeDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects.Policies"> <AgencyFeeID>3</AgencyFeeID> <AgencyFeeName>sample string 4</AgencyFeeName> <AmountIsPercent>true</AmountIsPercent> <DefaultAmount>1</DefaultAmount> <FeeType>1</FeeType> <LocationID>1</LocationID> <ShowInInvoice>true</ShowInInvoice> <Visible>true</Visible> </UtilityAgencyFeeDTO>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Upserted agency fee
ActionResultDTOOfUtilityAgencyFeeDTOName | Description | Type | Additional information |
---|---|---|---|
Result | UtilityAgencyFeeDTO |
None. |
|
CreatedBy | string |
None. |
|
EntityID | integer |
None. |
|
RowSource | string |
None. |
|
PolicyID | integer |
None. |
|
IsSuccess | boolean |
None. |
|
ErrorCode | string |
None. |
|
ErrorMessage | string |
None. |
|
InfoMessage | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Result": { "DefaultAmount": 1.0, "AmountIsPercent": true, "Visible": true, "LocationID": 1, "ShowInInvoice": true, "FeeType": 1, "AgencyFeeID": 3, "AgencyFeeName": "sample string 4" }, "CreatedBy": "sample string 1", "EntityID": 2, "RowSource": "sample string 3", "PolicyID": 4, "IsSuccess": true, "ErrorCode": "sample string 6", "ErrorMessage": "sample string 7", "InfoMessage": "sample string 8" }
application/xml, text/xml
Sample:
<ActionResultOfUtilityAgencyFeeDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects"> <ErrorCode>sample string 6</ErrorCode> <ErrorMessage>sample string 7</ErrorMessage> <InfoMessage>sample string 8</InfoMessage> <IsSuccess>true</IsSuccess> <CreatedBy>sample string 1</CreatedBy> <EntityID>2</EntityID> <PolicyID>4</PolicyID> <Result xmlns:d2p1="http://schemas.datacontract.org/2004/07/QQSolutions.NextGen.ModelLibrary.DataTransferObjects.Policies"> <d2p1:AgencyFeeID>3</d2p1:AgencyFeeID> <d2p1:AgencyFeeName>sample string 4</d2p1:AgencyFeeName> <d2p1:AmountIsPercent>true</d2p1:AmountIsPercent> <d2p1:DefaultAmount>1</d2p1:DefaultAmount> <d2p1:FeeType>1</d2p1:FeeType> <d2p1:LocationID>1</d2p1:LocationID> <d2p1:ShowInInvoice>true</d2p1:ShowInInvoice> <d2p1:Visible>true</d2p1:Visible> </Result> <RowSource>sample string 3</RowSource> </ActionResultOfUtilityAgencyFeeDTO>