Porta Plus 2 Web Services

<back to all web services

Subscription

The following routes are available for this service:
GET/getSubscriptionsByCurrency/{License}/{Currency}
GET/getCustomerSubscriptions/{License}
GET/getCustomerSubscriptions/{License}/{ICUstomer}
GET/getSubscriptionsById/{License}/{SubscriptionId}
GET/getSubscriptionsByPrefix/{License}/{Prefix}/{MonthlyFee}

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/Subscription HTTP/1.1 
Host: 7el.co 
Content-Type: text/jsv
Content-Length: length

{
	Currency: String,
	SubscriptionId: 0,
	Prefix: String,
	MonthlyFee: 0,
	ICustomer: 0,
	License: String,
	ContentId: 0,
	FeatureName: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	PortaSubscriptions: 
	[
		{
			Id: String,
			ISubscription: 0,
			Name: String,
			Description: String,
			ISO4217: String,
			Daily: 0,
			Weekly: 0,
			Biweekly: 0,
			Monthly: 0,
			AdvancePeriod: 0,
			InvoiceDescription: String,
			IsFinished: String,
			StartDate: 0001-01-01,
			FinishDate: 0001-01-01,
			ExpectedBillTime: 0001-01-01
		}
	],
	PortaMonthlySubscription: 
	[
		{
			ISubscription: 0,
			Name: String,
			Description: String,
			ISO4217: String,
			Daily: 0,
			Weekly: 0,
			Biweekly: 0,
			Monthly: 0,
			AdvancePeriod: 0
		}
	],
	AllSubscriptions: {},
	License: String,
	ContentId: 0,
	FeatureName: String
}