GET GetUserSubscriptionByUserId?UserId={UserId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| UserId | string |
Required |
Body Parameters
None.
Response Information
Resource Description
UserSubscription| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| DateCreated | date |
None. |
|
| UserId | string |
None. |
|
| SubscriptionId | integer |
None. |
|
| LastPaid | date |
None. |
|
| PaidAmount | decimal number |
None. |
|
| SubscriptionFeeAmount | decimal number |
None. |
|
| CardToken | string |
None. |
|
| SuccessfulPayment | boolean |
None. |
|
| LastSuccessfulPayment | date |
None. |
|
| IsFreeTier | boolean |
None. |
|
| SalesRepId | string |
None. |
|
| SalesRepCode | string |
None. |
|
| NextBillingDate | date |
None. |
|
| PayfastFee | decimal number |
None. |
|
| Profit | decimal number |
None. |
|
| PendingChangeId | integer |
None. |
|
| ExpiryYear | string |
None. |
|
| ExpiryMonth | string |
None. |
|
| Last4Digits | string |
None. |
|
| LastComponentUpdate | date |
None. |
|
| Active | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"id": 1,
"DateCreated": "2025-12-09T04:02:29.7335254+02:00",
"UserId": "sample string 3",
"SubscriptionId": 1,
"LastPaid": "2025-12-09T04:02:29.7335254+02:00",
"PaidAmount": 4.1,
"SubscriptionFeeAmount": 5.1,
"CardToken": "sample string 6",
"SuccessfulPayment": true,
"LastSuccessfulPayment": "2025-12-09T04:02:29.7335254+02:00",
"IsFreeTier": true,
"SalesRepId": "sample string 9",
"SalesRepCode": "sample string 10",
"NextBillingDate": "2025-12-09T04:02:29.7335254+02:00",
"PayfastFee": 11.1,
"Profit": 12.1,
"PendingChangeId": 1,
"ExpiryYear": "sample string 13",
"ExpiryMonth": "sample string 14",
"Last4Digits": "sample string 15",
"LastComponentUpdate": "2025-12-09T04:02:29.7335254+02:00",
"Active": true
}
application/xml, text/xml
Sample:
<UserSubscription xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PanicSAAPI.Database"> <Active>true</Active> <CardToken>sample string 6</CardToken> <DateCreated>2025-12-09T04:02:29.7335254+02:00</DateCreated> <ExpiryMonth>sample string 14</ExpiryMonth> <ExpiryYear>sample string 13</ExpiryYear> <IsFreeTier>true</IsFreeTier> <Last4Digits>sample string 15</Last4Digits> <LastComponentUpdate>2025-12-09T04:02:29.7335254+02:00</LastComponentUpdate> <LastPaid>2025-12-09T04:02:29.7335254+02:00</LastPaid> <LastSuccessfulPayment>2025-12-09T04:02:29.7335254+02:00</LastSuccessfulPayment> <NextBillingDate>2025-12-09T04:02:29.7335254+02:00</NextBillingDate> <PaidAmount>4.1</PaidAmount> <PayfastFee>11.1</PayfastFee> <PendingChangeId>1</PendingChangeId> <Profit>12.1</Profit> <SalesRepCode>sample string 10</SalesRepCode> <SalesRepId>sample string 9</SalesRepId> <SubscriptionFeeAmount>5.1</SubscriptionFeeAmount> <SubscriptionId>1</SubscriptionId> <SuccessfulPayment>true</SuccessfulPayment> <UserId>sample string 3</UserId> <id>1</id> </UserSubscription>