User Management

Create a Payable Bank Account

POST
/v1/users/{userId}/bankAccounts/payable

Create a payable 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

bankAccountDetails*

Bank account details

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/users/string/bankAccounts/payable" \  -H "Content-Type: application/json" \  -d '{    "bankAccountDetails": {      "routingNumber": "222222226",      "accountNumber": "9110001011010",      "accountType": "CHECKING",      "accountHolderProfile": {        "firstName": "Alex",        "lastName": "Cohan",        "email": "a.cohan@abc.com"      }    }  }'
{  "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  }}