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

Currency,SubscriptionId,Prefix,MonthlyFee,ICustomer,License,ContentId,FeatureName
String,0,String,0,0,String,0,String

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

PortaSubscriptions,PortaMonthlySubscription,AllSubscriptions,License,ContentId,FeatureName
"[{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}]","[{ISubscription:0,Name:String,Description:String,ISO4217:String,Daily:0,Weekly:0,Biweekly:0,Monthly:0,AdvancePeriod:0}]",{},String,0,String