Returns current application subscription profile information for a given application for a specific user.
You can use this method to get the current application subscription after AuthorizedByApplication returned a session.
The session will contain Id, this is the UserId you need to supply in the call.
If there are no current subscriptions for the application for the user. The method will return null (nothing)
Name | Type | Description |
---|---|---|
applicationId | Guid | Your application Id |
applicationSecret | Guid | Your application secret key |
userId | Guid | User Id (Id field of the session) |
The following request format is required for this method.
GET | POST https://api.linnworks.net/api/Auth/GetApplicationProfileBySecretKey
Connection: keep-alive
Accept: application/json
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip, deflate
This is an example of the request structure. Results will vary depending on your data.
applicationId=b3339386-480c-451c-8311-51bb152d5bb6&applicationSecret=79c32914-0217-4e67-9df1-0241ce51642d&userId=3416cdda-65e3-4b43-9ab1-52e1f265a3f4
This is an example of the response JSON. Results will vary depending on your data.
{
"PlanTag": "sample string 1",
"PlanName": "sample string 2",
"ActivationDate": "2023-01-10T13:49:55.7300486+00:00",
"LastPaymentDate": "2023-01-10T13:49:55.7300486+00:00",
"NextPaymentDate": "2023-01-10T13:49:55.7300486+00:00",
"ProfileExpires": "2023-01-10T13:49:55.7300486+00:00",
"IsProfileActive": true
}