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 .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

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

{
	AgentId: 0,
	ProductTypeId: 0,
	AgentCharge: 0,
	BillingRules: 
	[
		{
			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/jsv
Content-Length: length

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