Get global user attributes
Changed onThis GET endpoint is used to retrieve all stored user global attributes. <br> You can use this endpoint to retrieve user attributes and provide personalized service to your users based on their preferences, demographic data, or other relevant information. <br> To use this endpoint, you need to provide the user_token as parameters in the URL Path. <br> The endpoint will then return all the stored global attributes for the provided user.
Request
- Base URLhttps://api.masspay.io/v1.0.0
- Auth
- API key in header Authorization
- or API key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Token representing the user to retrieve attributes for
Query parameters
Country code ISO_3166. When provided, it will obtain the global attributes for the country. If not provided, it will default to the country in the user profile
When set to true, it will only return the latest value stored for each attributes type, otherwise it will return all values
Headers
Unique key to prevent duplicate processing
Response
successful operation
Example response
[
{
"token": "attr_e2ca24e9-c546-4c64-90d2-cb8e70e7c9ba",
"attr_set_token": "attr_set_e2ca24e9-c546-4c64-90d2-cb8e70e7c9ba",
"label": "Checking Account Number",
"validation": "[0-9]{50}",
"is_optional": true,
"value": "432532532",
"expected_value": "Date format MM/DD/YYYY",
"type": "BankAccountNumber",
"input_type": "text"
}
]Changes
- info
endpoint added
- info