POST
/
api
/
users
/
{id}
/
terms
/
accept
Accept terms and conditions for a user
curl --request POST \
  --url https://app.sandbox.rio.trade/api/users/{id}/terms/accept \
  --header 'x-api-key: <api-key>'
{
  "platformFeeRanges": {
    "MX": {
      "buy": [
        {}
      ],
      "sell": [
        {}
      ]
    },
    "US": {
      "buy": [
        {}
      ],
      "sell": [
        {}
      ]
    },
    "PE": {
      "buy": [
        {}
      ],
      "sell": [
        {}
      ]
    },
    "CO": {
      "buy": [
        {}
      ],
      "sell": [
        {}
      ]
    }
  },
  "createdAt": "2025-07-16T19:24:51.284Z",
  "type": "business",
  "phoneNumber": "+525561310992",
  "email": "email@testing.test",
  "attributes": [
    "broker"
  ],
  "address": {
    "street1": "Amsterdam 76",
    "street2": null,
    "city": "Mexico City",
    "state": "CDMX",
    "country": "MX",
    "postalCode": "06100"
  },
  "brokerId": "6757546b4c5d19bf3cd7b09c",
  "onboarding": {
    "country": "MX",
    "status": "review",
    "hasAcceptedTerms": true,
    "aipriseUserVerificationSessionUrl": "https://verify-sandbox.aiprise.com/verification_session_id=bb321d1a-8037-44bf-a520-c9e2995fbb4d"
  },
  "businessData": {
    "businessName": "Company Name"
  },
  "individualData": {
    "firstName": "Name",
    "middleName": "Middle Name",
    "lastName": "Name",
    "secondLastName": "Last Name"
  },
  "id": "6877fc83509bb1423ee38202"
}
This endpoint should only be called for users in Mexico and Peru. For US users, terms and conditions must be accepted through the link returned by the create user by link endpoint.

Authorizations

x-api-key
string
header
required

Path Parameters

id
string<mongoId>
required

ID of the user.

Example:

"66562bc04fe8bf83c577c178"

Response

OK

platformFeeRanges
object
createdAt
string

Creation date of the user.

Example:

"2025-07-16T19:24:51.284Z"

type
string

Type of the user.

Example:

"business"

phoneNumber
string

Phone number of the user.

Example:

"+525561310992"

email
string

Email of the user.

Example:

"email@testing.test"

attributes
string[]

User attributes

Example:
["broker"]
address
object
brokerId
string

ID of the broker.

Example:

"6757546b4c5d19bf3cd7b09c"

onboarding
object
businessData
object

Business data (for business users only).

individualData
object

Individual data (for individual users only).

id
string

ID of the user.

Example:

"6877fc83509bb1423ee38202"