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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /json/reply/Subscription HTTP/1.1 
Host: 7el.co 
Content-Type: application/json
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: application/json
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":"\/Date(-62135596800000-0000)\/","FinishDate":"\/Date(-62135596800000-0000)\/","ExpectedBillTime":"\/Date(-62135596800000-0000)\/"}],"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"}