GET /users/{userId}/products

Purpose

Retrieve the list of products a user is entitled access to

Request

Resource URL

GET https://api.ft.com/users/{userId}/products

For security reasons requests must be made over HTTPS.

Parameters

Path ParamValue
userId
The unique identifier for the user whose products are to be retrieved

Request Headers

HeaderValue
X-Api-Key <API key value>

Request Body

Not supported.

Response

Response Body

A JSON representation of the user’s User Products Resource an example of which is as below:

{
  “user”: {
      “userId”: “b412ec22-c387-4267-a248-cf2fd757990b”,
      “products”: [
        {“productCode”: “Tools”},
        {“productCode”: “P0”},
        {“productCode”: “P2”}
      ]
  }
}

HTTP Status Codes

Http StatusDescription
200 Ok The user products resource for the supplied userId was returned successfully. Note that the API call does not validate if the userId exists.
400 Bad Request The request was invalid. You may refer to Error Response Object returned for details around why the request was invalid.
403 Forbidden Invalid API key

404 Not Found

User does not exist
503 Backend service not available
504 Gateway timeout