Develop > Application Programming Interface > Legacy APIs > User API > Get list of recent or expiring soon subscriptions for user

Get list of recent or expiring soon subscriptions for user

Details

URI /user/subscription
Returns a list of subscriptions for the user associated with userIdentifier.
Method GET
Parameters

userIdentifier=<user_id>
    Required; the user ID you want to use as credentials for this API call. This user should be a consumer user who has the necessary permissions for the data you want to work with. See Get userIdentifier for the steps required to get the userIdentifier value.

queryType=[expiringSoon|recent]
    Optional; expiringSoon returns the user's subscriptions that will expire within the next 30 days, and recent returns the last five subscriptions initiated by the user.

Returns 200 - Ok
401 - Not authorized
404 - Not found
500 - Server exception