curl --request PUT \
  --url https://api.dots.dev/api/v2/users/{user_id}/compliance \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "w8ben": {
    "address": {
      "city": "<string>",
      "country": "<string>",
      "line_1": "<string>",
      "line_2": "<string>",
      "postcode": "<string>",
      "state": "<string>"
    },
    "citizenship_country": "<string>",
    "date_of_birth": "2023-12-25",
    "foreign_tax_id": "<string>",
    "name": "<string>",
    "signature": {
      "consent": true,
      "email": "<string>",
      "name": "<string>"
    },
    "tax_treaty_citation": "<string>",
    "tax_treaty_country": "<string>",
    "tax_treaty_explanation": "<string>",
    "tax_treaty_income_type": "interest1",
    "tax_treaty_rate": 123,
    "tin": "<string>"
  },
  "w9": {
    "address": {
      "city": "<string>",
      "country": "<string>",
      "line_1": "<string>",
      "line_2": "<string>",
      "postcode": "<string>",
      "state": "<string>"
    },
    "business_name": "<string>",
    "date_of_birth": "2023-12-25",
    "entity_type": "individual",
    "first_name": "<string>",
    "last_name": "<string>",
    "tin": "<string>"
  }
}'

Authorizations

Authorization
string
headerrequired

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

user_id
string
required

Id of the user to fetch

Body

application/json
w8ben
object

W8-BEN form for foreign payees.

w9
object

W-9 equivalent for users based in the United States.