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": "6c7552d4-08c4-408e-b584-97b770a7864d",
    "SubscriptionPerPublisherID": 3,
    "PurchaseDate": "2024-12-13T18:59:51.3642689+01:00",
    "ExpiryDate": "2024-12-13T18:59:51.3642689+01:00",
    "OrderID": 6,
    "AmountPaid": 7,
    "IsExpired": true
  },
  {
    "SubscriptionID": 1,
    "UserID": "6c7552d4-08c4-408e-b584-97b770a7864d",
    "SubscriptionPerPublisherID": 3,
    "PurchaseDate": "2024-12-13T18:59:51.3642689+01:00",
    "ExpiryDate": "2024-12-13T18:59:51.3642689+01:00",
    "OrderID": 6,
    "AmountPaid": 7,
    "IsExpired": true
  }
]

text/javascript

Sample:
[{"SubscriptionID":1,"UserID":"6c7552d4-08c4-408e-b584-97b770a7864d","SubscriptionPerPublisherID":3,"PurchaseDate":"2024-12-13T18:59:51.3642689+01:00","ExpiryDate":"2024-12-13T18:59:51.3642689+01:00","OrderID":6,"AmountPaid":7,"IsExpired":true},{"SubscriptionID":1,"UserID":"6c7552d4-08c4-408e-b584-97b770a7864d","SubscriptionPerPublisherID":3,"PurchaseDate":"2024-12-13T18:59:51.3642689+01:00","ExpiryDate":"2024-12-13T18:59:51.3642689+01: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>2024-12-13T18:59:51.3642689+01:00</ExpiryDate>
    <IsExpired>true</IsExpired>
    <OrderID>6</OrderID>
    <PurchaseDate>2024-12-13T18:59:51.3642689+01:00</PurchaseDate>
    <SubscriptionID>1</SubscriptionID>
    <SubscriptionPerPublisherID>3</SubscriptionPerPublisherID>
    <UserID>6c7552d4-08c4-408e-b584-97b770a7864d</UserID>
  </UserSubscription>
  <UserSubscription>
    <AmountPaid>7</AmountPaid>
    <ExpiryDate>2024-12-13T18:59:51.3642689+01:00</ExpiryDate>
    <IsExpired>true</IsExpired>
    <OrderID>6</OrderID>
    <PurchaseDate>2024-12-13T18:59:51.3642689+01:00</PurchaseDate>
    <SubscriptionID>1</SubscriptionID>
    <SubscriptionPerPublisherID>3</SubscriptionPerPublisherID>
    <UserID>6c7552d4-08c4-408e-b584-97b770a7864d</UserID>
  </UserSubscription>
</ArrayOfUserSubscription>