Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

ShippingService

Auth /GetApplicationProfileBySecretKey

Response: ApplicationProfileResponse



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)

Parameters

NameTypeDescription
applicationIdGuidYour application Id
applicationSecretGuidYour application secret key
userIdGuidUser Id (Id field of the session)

Example Request

The following request format is required for this method.

Endpoint URL

POST https://api.linnworks.net/api/Auth/GetApplicationProfileBySecretKey

Headers

Connection: keep-alive
Accept: application/json
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip, deflate

Request Body

This is an example of the request structure. Results will vary depending on your data.

applicationId=72ab3ad5-8a89-4ba3-b346-ae7bc8aafbb5&applicationSecret=346b430c-8b4b-4cbc-803d-d1d55e5259bb&userId=40dd5bef-8fcc-4b4f-a9ab-08c3147ab4e7

Response

This is an example of the response JSON. Results will vary depending on your data.

{
  "PlanTag": "sample string 1",
  "PlanName": "sample string 2",
  "ActivationDate": "2021-07-29T09:24:57.5445079+01:00",
  "LastPaymentDate": "2021-07-29T09:24:57.5445079+01:00",
  "NextPaymentDate": "2021-07-29T09:24:57.5445079+01:00",
  "ProfileExpires": "2021-07-29T09:24:57.5445079+01:00",
  "IsProfileActive": true
}