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": "194edbcd-870a-4d28-a88b-8716eb9674b7", "SubscriptionPerPublisherID": 3, "PurchaseDate": "2024-10-30T02:15:51.944665+01:00", "ExpiryDate": "2024-10-30T02:15:51.944665+01:00", "OrderID": 6, "AmountPaid": 7, "IsExpired": true }, { "SubscriptionID": 1, "UserID": "194edbcd-870a-4d28-a88b-8716eb9674b7", "SubscriptionPerPublisherID": 3, "PurchaseDate": "2024-10-30T02:15:51.944665+01:00", "ExpiryDate": "2024-10-30T02:15:51.944665+01:00", "OrderID": 6, "AmountPaid": 7, "IsExpired": true } ]
text/javascript
Sample:
[{"SubscriptionID":1,"UserID":"194edbcd-870a-4d28-a88b-8716eb9674b7","SubscriptionPerPublisherID":3,"PurchaseDate":"2024-10-30T02:15:51.944665+01:00","ExpiryDate":"2024-10-30T02:15:51.944665+01:00","OrderID":6,"AmountPaid":7,"IsExpired":true},{"SubscriptionID":1,"UserID":"194edbcd-870a-4d28-a88b-8716eb9674b7","SubscriptionPerPublisherID":3,"PurchaseDate":"2024-10-30T02:15:51.944665+01:00","ExpiryDate":"2024-10-30T02:15:51.944665+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-10-30T02:15:51.944665+01:00</ExpiryDate> <IsExpired>true</IsExpired> <OrderID>6</OrderID> <PurchaseDate>2024-10-30T02:15:51.944665+01:00</PurchaseDate> <SubscriptionID>1</SubscriptionID> <SubscriptionPerPublisherID>3</SubscriptionPerPublisherID> <UserID>194edbcd-870a-4d28-a88b-8716eb9674b7</UserID> </UserSubscription> <UserSubscription> <AmountPaid>7</AmountPaid> <ExpiryDate>2024-10-30T02:15:51.944665+01:00</ExpiryDate> <IsExpired>true</IsExpired> <OrderID>6</OrderID> <PurchaseDate>2024-10-30T02:15:51.944665+01:00</PurchaseDate> <SubscriptionID>1</SubscriptionID> <SubscriptionPerPublisherID>3</SubscriptionPerPublisherID> <UserID>194edbcd-870a-4d28-a88b-8716eb9674b7</UserID> </UserSubscription> </ArrayOfUserSubscription>