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

HTTP + XML

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

POST /xml/reply/Subscription HTTP/1.1 
Host: 7el.co 
Content-Type: application/xml
Content-Length: length

<Subscription xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PortaPlus2.API.Web.Dto">
  <ContentId>0</ContentId>
  <FeatureName>String</FeatureName>
  <License>String</License>
  <Currency>String</Currency>
  <ICustomer>0</ICustomer>
  <MonthlyFee>0</MonthlyFee>
  <Prefix>String</Prefix>
  <SubscriptionId>0</SubscriptionId>
</Subscription>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<SubscriptionResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PortaPlus2.API.Web.Dto">
  <ContentId>0</ContentId>
  <FeatureName>String</FeatureName>
  <License>String</License>
  <AllSubscriptions xmlns:d2p1="http://schemas.datacontract.org/2004/07/PortaPlus2.API.Data.Models.Porta">
    <d2p1:AccountSubscriptions i:nil="true" />
    <d2p1:Customersubscriptions i:nil="true" />
  </AllSubscriptions>
  <PortaMonthlySubscription xmlns:d2p1="http://schemas.datacontract.org/2004/07/PortaPlus2.API.Data.Models.Porta">
    <d2p1:PortaMonthlySubscription>
      <d2p1:AdvancePeriod>0</d2p1:AdvancePeriod>
      <d2p1:Biweekly>0</d2p1:Biweekly>
      <d2p1:Daily>0</d2p1:Daily>
      <d2p1:Description>String</d2p1:Description>
      <d2p1:ISO4217>String</d2p1:ISO4217>
      <d2p1:ISubscription>0</d2p1:ISubscription>
      <d2p1:Monthly>0</d2p1:Monthly>
      <d2p1:Name>String</d2p1:Name>
      <d2p1:Weekly>0</d2p1:Weekly>
    </d2p1:PortaMonthlySubscription>
  </PortaMonthlySubscription>
  <PortaSubscriptions xmlns:d2p1="http://schemas.datacontract.org/2004/07/PortaPlus2.API.Data.Models.Porta">
    <d2p1:PortaSubscriptions>
      <d2p1:AdvancePeriod>0</d2p1:AdvancePeriod>
      <d2p1:Biweekly>0</d2p1:Biweekly>
      <d2p1:Daily>0</d2p1:Daily>
      <d2p1:Description>String</d2p1:Description>
      <d2p1:ExpectedBillTime>0001-01-01T00:00:00</d2p1:ExpectedBillTime>
      <d2p1:FinishDate>0001-01-01T00:00:00</d2p1:FinishDate>
      <d2p1:ISO4217>String</d2p1:ISO4217>
      <d2p1:ISubscription>0</d2p1:ISubscription>
      <d2p1:Id>String</d2p1:Id>
      <d2p1:InvoiceDescription>String</d2p1:InvoiceDescription>
      <d2p1:IsFinished>String</d2p1:IsFinished>
      <d2p1:Monthly>0</d2p1:Monthly>
      <d2p1:Name>String</d2p1:Name>
      <d2p1:StartDate>0001-01-01T00:00:00</d2p1:StartDate>
      <d2p1:Weekly>0</d2p1:Weekly>
    </d2p1:PortaSubscriptions>
  </PortaSubscriptions>
</SubscriptionResponse>