Get user attributes for destination_token
Changed onThis GET endpoint is used to retrieve user attributes for a specific destination token. <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, endpoint_token, and currency as parameters in the URL Path. <br> The endpoint will then return all the required attributes for the provided user for the specified destination token. If any of the attributes already have a stored value, it will be returned as well.
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
Token representing the transaction endpoint — either the destination_token for payouts (e.g., MassPay → Brazil → Bank Deposit → Itau), or the origin_token for pay-ins. For payouts, this value is retrieved from the country services endpoint.
Query parameters
When set to true, will only return the values associated with the latest attr_set_token used. If none were used, it will return all
When set to true, the language that is set on the user profile will be used to display the labels and expected values. When false, English labels will be used.
If true, returns completed global attributes (e.g., SSN, ID number). By default, completed global attributes are excluded.
Headers
Unique key to prevent duplicate processing
When provided, it is used in conjunction with show_translated_labels and overrides the language setting of the user profile
Response
successful operation
Example response
[
{
"attr_set_token": "attr_set_e2ca24e9-c546-4c64-90d2-cb8e70e7c9ba",
"label": "JPMorgan Chase",
"attributes": [
{
"token": "attr_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
- warning
added the new
OAuthGrantenum value to the///response property for the response status - warning
added the new
SecurityAnswerenum value to the///response property for the response status
- warning