API Documentation
API List
- Address API
- Bank accounts API
- Bank payments API
- Bank payouts API
- Crypto payments API
- Onboarding API
- Orders API
- Quotes API
- Users API
- Webhooks API
Users API
Update current user
PATCH
/
api
/
users
curl --request PATCH \
--url https://app.sandbox.rio.trade/api/users \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"individualData": {
"birthday": "1988-01-01"
},
"invoicing": {
"MX": {
"shouldInvoice": true
}
},
"onboarding": {
"MX": {
"legalRepresentative": {
"firstName": "Name",
"email": "test@riotransfer.co"
},
"address": {
"street2": "Address 2"
}
}
}
}'
{
"invoicing": {
"MX": {}
},
"individualData": {
"firstName": "<string>",
"middleName": "<string>",
"lastName": "<string>",
"birthday": "1988-06-06T00:00:00.000Z"
},
"businessData": {
"businessName": "<string>"
},
"createdAt": "2024-05-28T19:08:48.590Z",
"type": "business",
"phoneNumber": "+526589562354",
"email": "testing@riotransfer.co",
"onboarding": {
"MX": {
"status": "approved",
"onboardingId": "66562ae87f5e01543da3b784",
"aiPriseId": "1c1bba7c-59e7-4e00-956e-0803ad6e259d",
"address": {
"street1": "Address 1",
"street2": "Address 2",
"city": "City",
"state": "State",
"country": "Country",
"postalCode": "Postal Code"
},
"hasAcceptedTerms": true
}
},
"id": "66562bc04fe8bf83c577c178"
}
Requirements to consume the endpoint.
Create and modify role
The user must have the role to create and modify.
Authorizations
Body
application/json
Response
200 - application/json
OK
The response is of type object
.
curl --request PATCH \
--url https://app.sandbox.rio.trade/api/users \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"individualData": {
"birthday": "1988-01-01"
},
"invoicing": {
"MX": {
"shouldInvoice": true
}
},
"onboarding": {
"MX": {
"legalRepresentative": {
"firstName": "Name",
"email": "test@riotransfer.co"
},
"address": {
"street2": "Address 2"
}
}
}
}'
{
"invoicing": {
"MX": {}
},
"individualData": {
"firstName": "<string>",
"middleName": "<string>",
"lastName": "<string>",
"birthday": "1988-06-06T00:00:00.000Z"
},
"businessData": {
"businessName": "<string>"
},
"createdAt": "2024-05-28T19:08:48.590Z",
"type": "business",
"phoneNumber": "+526589562354",
"email": "testing@riotransfer.co",
"onboarding": {
"MX": {
"status": "approved",
"onboardingId": "66562ae87f5e01543da3b784",
"aiPriseId": "1c1bba7c-59e7-4e00-956e-0803ad6e259d",
"address": {
"street1": "Address 1",
"street2": "Address 2",
"city": "City",
"state": "State",
"country": "Country",
"postalCode": "Postal Code"
},
"hasAcceptedTerms": true
}
},
"id": "66562bc04fe8bf83c577c178"
}
Assistant
Responses are generated using AI and may contain mistakes.