Payers

Create a Partner Payer

POST
/v1/payments/payers/partner

To fund your FBO account, you must first link an external bank account by creating a Payer object. This object acts as the designated source of funds for all Payment to Platform transactions. You may create as many Payers as needed to represent various funding sources. Upon a successful POST request, the API returns a PayerId. You will use this ID in subsequent calls to specify which account should be debited.

To create a valid Payer, you must provide either:

  • accountNumber, routingNumber, and accountType
  • token and tokenType

All other fields are mandatory as they are required by the loan servicers themselves.

Authorization

bearerAuth
AuthorizationBearer <token>

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

In: header

Request Body

application/json

bankAccountDetails*

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/payments/payers/partner" \  -H "Content-Type: application/json" \  -d '{    "bankAccountDetails": {      "nameOnAccount": "Test User",      "institutionName": "Axis Bank Pvt. Ltd.",      "accountHolderProfile": {        "country": "USA",        "city": "Chicago",        "state": "CA",        "zipCode": "60601",        "email": "testuser@test.com",        "phone": "9999999999",        "dateOfBirth": "1980/01/01",        "addressLine1": "Opp. Willis Tower, 233 S Wacker Dr",        "addressLine2": "Unit 502"      },      "accountNumber": "9110001011010",      "routingNumber": "222222226",      "accountType": "CHECKING"    }  }'

Create Partner Payer with account details (no token provided)

{  "status": {    "code": 200,    "desc": "success",    "messages": [      {        "desc": "Example description"      }    ]  },  "data": {    "payerId": "12b9d6e8-c87b-415e-9943-2264cb1ee2dd",    "payerType": "PARTNER",    "payerSubType": "PARTNER",    "institutionName": "Test Bank",    "verificationStatus": {      "status": "IN_PROGRESS",      "statusUpdateTs": 1614602485926    },    "createdOn": 1614602485926,    "updatedOn": 1614602485926,    "accountLast4Digits": "1234"  }}