GET api/subscriptions

V2 - Returns all active subscriptions for the currently logged in user

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of UserSubscription
NameDescriptionTypeAdditional information
SubscriptionID

integer

None.

UserID

globally unique identifier

None.

SubscriptionPerPublisherID

integer

None.

PurchaseDate

date

None.

ExpiryDate

date

None.

OrderID

integer

None.

AmountPaid

integer

None.

IsExpired

boolean

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "SubscriptionID": 1,
    "UserID": "5b9992f6-dbfe-442c-974b-e9bef104439f",
    "SubscriptionPerPublisherID": 3,
    "PurchaseDate": "2019-09-17T12:19:04.9312237+02:00",
    "ExpiryDate": "2019-09-17T12:19:04.9312237+02:00",
    "OrderID": 6,
    "AmountPaid": 7,
    "IsExpired": true
  },
  {
    "SubscriptionID": 1,
    "UserID": "5b9992f6-dbfe-442c-974b-e9bef104439f",
    "SubscriptionPerPublisherID": 3,
    "PurchaseDate": "2019-09-17T12:19:04.9312237+02:00",
    "ExpiryDate": "2019-09-17T12:19:04.9312237+02:00",
    "OrderID": 6,
    "AmountPaid": 7,
    "IsExpired": true
  }
]

text/javascript

Sample:
[{"SubscriptionID":1,"UserID":"5b9992f6-dbfe-442c-974b-e9bef104439f","SubscriptionPerPublisherID":3,"PurchaseDate":"2019-09-17T12:19:04.9312237+02:00","ExpiryDate":"2019-09-17T12:19:04.9312237+02:00","OrderID":6,"AmountPaid":7,"IsExpired":true},{"SubscriptionID":1,"UserID":"5b9992f6-dbfe-442c-974b-e9bef104439f","SubscriptionPerPublisherID":3,"PurchaseDate":"2019-09-17T12:19:04.9312237+02:00","ExpiryDate":"2019-09-17T12:19:04.9312237+02:00","OrderID":6,"AmountPaid":7,"IsExpired":true}]

application/xml, text/xml

Sample:
<ArrayOfUserSubscription xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Yindo.DAL.Types">
  <UserSubscription>
    <AmountPaid>7</AmountPaid>
    <ExpiryDate>2019-09-17T12:19:04.9312237+02:00</ExpiryDate>
    <IsExpired>true</IsExpired>
    <OrderID>6</OrderID>
    <PurchaseDate>2019-09-17T12:19:04.9312237+02:00</PurchaseDate>
    <SubscriptionID>1</SubscriptionID>
    <SubscriptionPerPublisherID>3</SubscriptionPerPublisherID>
    <UserID>5b9992f6-dbfe-442c-974b-e9bef104439f</UserID>
  </UserSubscription>
  <UserSubscription>
    <AmountPaid>7</AmountPaid>
    <ExpiryDate>2019-09-17T12:19:04.9312237+02:00</ExpiryDate>
    <IsExpired>true</IsExpired>
    <OrderID>6</OrderID>
    <PurchaseDate>2019-09-17T12:19:04.9312237+02:00</PurchaseDate>
    <SubscriptionID>1</SubscriptionID>
    <SubscriptionPerPublisherID>3</SubscriptionPerPublisherID>
    <UserID>5b9992f6-dbfe-442c-974b-e9bef104439f</UserID>
  </UserSubscription>
</ArrayOfUserSubscription>