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 UserSubscriptionName | Description | Type | Additional 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": "d462fa2a-f7d5-43c7-8a3d-912e9bede21c", "SubscriptionPerPublisherID": 3, "PurchaseDate": "2025-01-18T06:18:12.0577119+01:00", "ExpiryDate": "2025-01-18T06:18:12.0577119+01:00", "OrderID": 6, "AmountPaid": 7, "IsExpired": true }, { "SubscriptionID": 1, "UserID": "d462fa2a-f7d5-43c7-8a3d-912e9bede21c", "SubscriptionPerPublisherID": 3, "PurchaseDate": "2025-01-18T06:18:12.0577119+01:00", "ExpiryDate": "2025-01-18T06:18:12.0577119+01:00", "OrderID": 6, "AmountPaid": 7, "IsExpired": true } ]
text/javascript
Sample:
[{"SubscriptionID":1,"UserID":"d462fa2a-f7d5-43c7-8a3d-912e9bede21c","SubscriptionPerPublisherID":3,"PurchaseDate":"2025-01-18T06:18:12.0577119+01:00","ExpiryDate":"2025-01-18T06:18:12.0577119+01:00","OrderID":6,"AmountPaid":7,"IsExpired":true},{"SubscriptionID":1,"UserID":"d462fa2a-f7d5-43c7-8a3d-912e9bede21c","SubscriptionPerPublisherID":3,"PurchaseDate":"2025-01-18T06:18:12.0577119+01:00","ExpiryDate":"2025-01-18T06:18:12.0577119+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>2025-01-18T06:18:12.0577119+01:00</ExpiryDate> <IsExpired>true</IsExpired> <OrderID>6</OrderID> <PurchaseDate>2025-01-18T06:18:12.0577119+01:00</PurchaseDate> <SubscriptionID>1</SubscriptionID> <SubscriptionPerPublisherID>3</SubscriptionPerPublisherID> <UserID>d462fa2a-f7d5-43c7-8a3d-912e9bede21c</UserID> </UserSubscription> <UserSubscription> <AmountPaid>7</AmountPaid> <ExpiryDate>2025-01-18T06:18:12.0577119+01:00</ExpiryDate> <IsExpired>true</IsExpired> <OrderID>6</OrderID> <PurchaseDate>2025-01-18T06:18:12.0577119+01:00</PurchaseDate> <SubscriptionID>1</SubscriptionID> <SubscriptionPerPublisherID>3</SubscriptionPerPublisherID> <UserID>d462fa2a-f7d5-43c7-8a3d-912e9bede21c</UserID> </UserSubscription> </ArrayOfUserSubscription>