Real Time Data

Request Liability Data

POST
/v1/users/{userId}/liabilities/refresh

This API will trigger the process of refreshing liabilities given in the POST body. This process is asynchronous and you can either poll results by using API GET /v1/users/{userId}/liabilities/refresh/{extRequestId} or register for a webhook

Authorization

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

extRequestId*string

The external ID for the liability request. Must be unique across the refreshes.

studentLoans?array<>

The list of student loans that will be refreshed. One of the autoLoans or creditCards or studentLoans must be provided.

autoLoans?array<>

The list of auto loans that will be refreshed. One of the autoLoans or creditCards or studentLoans must be provided.

creditCards?array<>

The list of credit cards that will be refreshed. One of the autoLoans or creditCards or studentLoans must be provided.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/users/string/liabilities/refresh" \  -H "Content-Type: application/json" \  -d '{    "extRequestId": "ccf68f5f-f094-4a39-a933-64cc2647fec5",    "creditCards": [      {        "id": "fb444634-40a8-4a62-849d-4e2db7b8a9ad",        "capabilities": [          "REALTIME_BALANCE"        ]      }    ]  }'

Response with all liability types

{  "status": {    "code": 200,    "desc": "success"  },  "data": [    {      "refreshTransactionStatus": "IN_PROGRESS",      "refreshTransactionId": "43ec068e-3ae0-4e40-826e-eaa007e1426f",      "creditCardId": "fb444634-40a8-4a62-849d-4e2db7b8a9ad",      "nextEligibleRefreshOn": 1597753517524,      "capability": "REALTIME_BALANCE"    },    {      "refreshTransactionStatus": "IN_PROGRESS",      "refreshTransactionId": "4dcc6ef1-816d-4da1-a7fb-45478f5e341b",      "creditCardId": "5b747c1e-66a2-4b3e-939d-3a85091218ec",      "nextEligibleRefreshOn": 1597753517524,      "capability": "REALTIME_BALANCE"    },    {      "refreshTransactionStatus": "IN_PROGRESS",      "refreshTransactionId": "0f47706a-0954-424d-b71f-41dccf0cfab7",      "liabilityGroupId": "38ff202f-4c43-4dc5-8ad7-1e1fc5aae30b",      "studentLoanIds": [        "50ba9f11-ebf6-44dd-864d-7e9e6fe9d0a7",        "c38b0a06-6464-4073-b5f6-3942af894c09"      ],      "nextEligibleRefreshOn": 1597753517524,      "capability": "LIABILITY_GROUP_PAYOFF_QUOTE"    },    {      "refreshTransactionStatus": "IN_PROGRESS",      "refreshTransactionId": "b790770b-33c7-49d4-b086-e6e18864ba34",      "creditCardId": "007035e0-7865-49f3-be50-c922b1c63dc6",      "nextEligibleRefreshOn": 1748577600000,      "capability": "ANNUAL_PERCENTAGE_RATE"    }  ]}