PATCH
/
accounts
/
{id}
/
settings
curl -X PATCH "https://api.stableyard.fi/v2/accounts/acc_123/settings" \
  -H "Authorization: Bearer sy_auth_*" \
  -H "Content-Type: application/json" \
  -d '{
    "settlement": {
      "mode": "crypto",
      "crypto": {
        "chain": 8453,
        "token": "USDC",
        "destination": "wallet"
      }
    }
  }'
{
  "object": "account",
  "accountId": "acc_123",
  "settlement": {
    "mode": "crypto",
    "crypto": {
      "chain": 8453,
      "token": "USDC",
      "destination": "wallet"
    },
    "fiat": null
  },
  "requestId": "req_abc123"
}
Update the account’s settlement configuration or username. Auth: sy_auth_*
id
string
required
Account ID
settlement
object
Settlement configuration
username
string
Unique username for payment address (e.g., alicealice@stableyard)
curl -X PATCH "https://api.stableyard.fi/v2/accounts/acc_123/settings" \
  -H "Authorization: Bearer sy_auth_*" \
  -H "Content-Type: application/json" \
  -d '{
    "settlement": {
      "mode": "crypto",
      "crypto": {
        "chain": 8453,
        "token": "USDC",
        "destination": "wallet"
      }
    }
  }'
{
  "object": "account",
  "accountId": "acc_123",
  "settlement": {
    "mode": "crypto",
    "crypto": {
      "chain": 8453,
      "token": "USDC",
      "destination": "wallet"
    },
    "fiat": null
  },
  "requestId": "req_abc123"
}