User Management

Add a Bank Account

POST
/v1/users/{userId}/bankAccounts

Create a bank account for the user

Authorization

bearerAuth
AuthorizationBearer <token>

Send your Spinwheel secret key as a bearer token: Authorization: Bearer <secretKey>. Keys are environment-specific.

In: header

Path Parameters

userId*string

Request Body

application/json

routingNumber*string

Bank account routing number

accountNumber*string

Bank account number

accountType?string

Bank account type

Value in

  • "CHECKING"
  • "SAVINGS"
telephoneBankingPin?string

The telephone banking pin associated with the user's account

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/users/string/bankAccounts" \  -H "Content-Type: application/json" \  -d '{    "routingNumber": "222222226",    "accountNumber": "9110001011010"  }'
{  "status": {    "code": 200,    "desc": "success"  },  "data": {    "bankAccountId": "e9e7258e-f010-40ff-8c11-3f7e80207d1f",    "userId": "cb444634-40a8-4a62-849d-4e2db7b8a9af",    "accountType": "CHECKING",    "accountNumberLastFourDigits": "1234",    "createdOn": 1614602485926,    "updatedOn": 1614602485926,    "capabilities": {      "payments": {        "billPayment": {          "availability": "NOT_SUPPORTED"        },        "receiveOnlyPayment": {          "availability": "NOT_SUPPORTED"        }      },      "data": {        "realtimeBalance": {          "availability": "SUPPORTED"        }      }    }  }}