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
required

ID of the user.

Example:

"66562bc04fe8bf83c577c178"

Response

200
application/json

OK

The response is of type object.