Offloader Wallets API now available  View changelog
Offloader Wallet

Update an offloader wallet

Update an offloader wallet by id

PATCH
/v2/offloader-wallet/{id}
AuthorizationBearer <token>

In: header

Path Parameters

idstring
destinationobject

The bank account destination where converted funds are sent.

integratorBpsFeeRate?string

Integrator fee override in basis points (0-1000). Send "0" to remove the integrator fee.

returnAddress?string

Crypto address where funds are returned on failed transactions. Must be valid for the wallet network.

Response Body

curl -X PATCH "https://api.spherepay.co/v2/offloader-wallet/string" \
  -H "Content-Type: application/json" \
  -d '{
    "destination": {
      "bankAccountId": "bankAccount_6221e8d4299f4a889bd882255e92f581",
      "achReference": "REF456"
    }
  }'
{
  "id": "wallet_a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
  "customerId": "customer_a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
  "address": "0x4838B106FCe9647Bdf1E7877BF73cE8B0BAD5f97",
  "currency": "usdc",
  "network": "ethereum",
  "destination": {
    "bankAccountId": "bankAccount_6221e8d4299f4a889bd882255e92f581",
    "currency": "usd",
    "network": "ach",
    "achReference": "REF123"
  },
  "fees": {
    "integratorFee": {
      "bpsRate": "100",
      "currency": "usdc"
    },
    "platformFee": {
      "bpsRate": "30",
      "currency": "usdc"
    }
  },
  "returnAddress": "0x4838B106FCe9647Bdf1E7877BF73cE8B0BAD5f97",
  "created": "2024-06-15T10:30:00.000Z",
  "updated": "2024-06-15T12:00:00.000Z"
}

{
  "status": 400,
  "detail": "Invalid request parameters",
  "code": "address/invalid",
  "correlationId": "28c61e885c6e5eaa78c1a2183a9b883c"
}

{
  "status": 404,
  "detail": "Resource not found",
  "code": "resource/not-found",
  "correlationId": "28c61e885c6e5eaa78c1a2183a9b883c"
}

{
  "status": 422,
  "detail": "Validation failed",
  "code": "validation/failed",
  "correlationId": "28c61e885c6e5eaa78c1a2183a9b883c",
  "errors": [
    {
      "detail": "Invalid email format",
      "pointer": "/email"
    },
    {
      "detail": "Name is required",
      "pointer": "/name"
    }
  ]
}