Attribute
Store user attributes
Changed onThis POST endpoint is used to store user attributes, allowing you to associate additional data with a user token. <br> To use this endpoint, you need to provide the user_token, destination_token, and currency as parameters in the URL Path. You also need to provide the attribute values as JSON parameters in the Request body. <br> If existing attributes are already stored for the user, this call will override their values.
post/payout/attribute/{user_token}/{destination_token}/{currency}
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
user_tokenstring required
Token representing the user to store attributes for
destination_tokenstring required
Token that represents the payout destination i.e. MassPay->Brazil->Bank Deposit->Itau. To be retrieved from the #pricing callback.
Headers
Idempotency-Keystring
Unique key to prevent duplicate processing
Request body
Example request
{
"values": [
{
"token": "e2ca24e9-c546-4c64-90d2-cb8e70e7c9ba",
"value": "432532532"
}
],
"attr_set_token": "attr_set_e2ca24e9-c546-4c64-90d2-cb8e70e7c9ba",
"label": "JPMorgan Chase"
}Response
Succesfully created.
Changes
- info
endpoint added
- info