Bombshell Agency Platform Service

<back to all web services

AgentSubscriptionRequest

The following routes are available for this service:
GET/v1/AgentSubscription/{AgentId}
POST,OPTIONS/v1/AgentSubscription
PUT,OPTIONS/v1/AgentSubscription

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/AgentSubscriptionRequest HTTP/1.1 
Host: testapi.responsible-advisor.com 
Content-Type: text/jsv
Content-Length: length

{
	AgentId: 0,
	StripeToken: String,
	AgentSubscription: 
	{
		AgentSubscriptionId: 0,
		AgentId: 0,
		SubscriptionId: 0,
		ActiveUntilDate: 0001-01-01,
		AutoRenew: False,
		StripePaymentId: 0,
		AccessPermissionOverride: False,
		AccessDenialOverride: False,
		SubscriptionIsActive: False
	}
}
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
			}
		]
	},
	AgentSubscription: 
	[
		{
			AgentSubscriptionId: 0,
			AgentId: 0,
			SubscriptionId: 0,
			ActiveUntilDate: 0001-01-01,
			AutoRenew: False,
			StripePaymentId: 0,
			AccessPermissionOverride: False,
			AccessDenialOverride: False,
			SubscriptionIsActive: False
		}
	],
	AgentPayment: 
	{
		AgentId: 0,
		Amount: String,
		Approved: False,
		AuthCode: String,
		CardNumber: String,
		Message: String,
		ResponseCode: 0,
		TransactionId: String,
		AgentNumber: String
	},
	Message: String
}