Pera ServiceStack

<back to all web services

BillingRulesRequest

The following routes are available for this service:
GET,PUT,OPTIONS/v1/BillingRules/{AgentId}
PUT,OPTIONS/v1/BillingRules/{AgentId}/{AgentCharge}/{ProductTypeId}

To override the Content-type in your clients 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.

POST /csv/reply/BillingRulesRequest HTTP/1.1 
Host: api2.publicemployeeretirementassistance.com 
Content-Type: text/csv
Content-Length: length

AgentId,ProductTypeId,AgentCharge,BillingRules
0,0,0,"[{Id:0,AgentId:0,AgentCharge:0,SplitAgentCharge:0,CampaignTypeId:0,DateCreated:0001-01-01,CreatedBy:String,Active:False,ProductTypeId:0,ProductTypeName:String}]"

HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

ResponseStatus,BillingRules
"{ErrorCode:String,Message:String,StackTrace:String,Errors:[{ErrorCode:String,FieldName:String,Message:String}]}","[{Id:0,AgentId:0,AgentCharge:0,SplitAgentCharge:0,CampaignTypeId:0,DateCreated:0001-01-01,CreatedBy:String,Active:False,ProductTypeId:0,ProductTypeName:String}]"