Poll Request Status
Polling API to get status of refresh transactions based on the extRequestId
Send your Spinwheel secret key as a bearer token: Authorization: Bearer <secretKey>. Keys are environment-specific.
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/users/string/liabilities/refresh/string"Response with a current status of refreshing liabilities
{ "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": "COMPLETED", "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" } ]}Reverse a Payment to Platform POST
This API will allow you to reverse a payment to platform. The original external requestId (extRequestId) from the original payment to platform request is needed to match the original transaction. The amount field is optional, some considerations: - If no amount is provided, it will attempt to reverse the entire value from the original extRequestId - If an amount is provided, it can be up to the entire amount of the original extRequestId (paymentToPlatform) - However, there is also tracking of the partial amounts that have previously been reversed. The partner cannot go over the original paymentToPlatform amount that was sent in increments of reversals.
Request Liability Data POST
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

