curl --request PATCH \
  --url https://api.dots.dev/api/v2/users/{user_id} \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "auto_payout_enabled": true,
  "default_payout_method": "paypal",
  "metadata": "<any>"
}'
{
  "compliance": {
    "1099_collected": true,
    "address_collected": true,
    "date_of_birth_collected": true,
    "flagged": true,
    "id_verified": true,
    "must_collect_1099": true,
    "tax_id_collected": true,
    "w8_ben_collected": true
  },
  "email": "jsmith@example.com",
  "first_name": "<string>",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "last_name": "<string>",
  "metadata": "<string>",
  "phone_number": {
    "country_code": "<string>",
    "phone_number": "<string>"
  },
  "wallet": {
    "amount": 123,
    "credit_balance": 123,
    "withdrawable_amount": 123
  }
}

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
auto_payout_enabled
boolean

Enables auto payout for the user whenever a default payout method is defined

default_payout_method
enum<string>

Configures the user's default payout method. Must be a payout method already configured by the user.

Available options:
paypal,
venmo,
cash_app,
ach,
intl_bank
metadata
any

Arbitrary metadata

Response

200 - application/json
compliance
object
email
string
first_name
string
id
string
last_name
string
metadata

Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.

phone_number
object
wallet
object