Webhooks
This guide will describe how to integrate with and consume Spinwheel webhooks.
Overview
Webhooks allow our partners to subscribe to various events that occur within the Spinwheel system. Once subscribed, if an event occurs, we will send a POST request to an endpoint you have configured with information about the event and, optionally, any headers that you have configured.
Whitelisting IPs
Important
For each environment where these webhooks are consumed, certain IPs are to be whitelisted. Note the IPs listed per environment in the table below.
Environment | IPs |
---|---|
Sandbox | 34.203.72.127 52.2.114.95 52.12.60.65 |
Production | 44.232.30.137 3.230.55.249 |
Subscribing to Webhooks
As the preferred method for webhook management, head on over to our Webhook APIs to create, edit, retrieve and delete webhooks.
Head on over to the APIs above and get started!
Production Webhooks
Note - we do not recommend enabling production webhooks in the developer portal, please be aware that this functionality will soon be removed from the portal.
Available Webhooks
The current webhooks that can be subscribed to are as follows:
Webhook Type | Summary | Related Products |
---|---|---|
USER_CREDIT_PROFILE_TRANSACTION | This webhook emits based on latest Debt Profile subscription renewal when there is a successful credit report pull. | Debt Profile Subscription |
USER_CREDIT_PROFILE_TRANSACTION _FAILED | This webhook emits based on latest Debt Profile subscription renewal when there is a failure to pull the credit report. | Debt Profile Subscription |
REFRESH_TRANSACTION_STATUS | This webhook is triggered when a refresh liability status changes to either COMPLETED or FAILED. Please note this is specifically for the refresh liability functionality, not refresh user. | Credit Card Real-TIme Balance |
USER_PAYMENT STATUS | This webhook emits updates regarding payment status changes for user transactions. | Payments |
PLATFORM_PAYMENT_STATUS | This webhook is triggered when the payment request created by a Payment to Platform changes its state. | Payments |
USER_REFINANCE_STATUS | This webhook is triggered when a refinance application status change is received for a user. (Note, it currently only supports a change to CONVERTED) | Refinance |
BANK_ACCOUNT_LOOKUP_STATUS_CHANGE | This webhook is triggered when the status of a bank account information lookup transaction changes to either COMPLETED or FAILED | Bank Account |
Payloads
Here are the expected payloads for each type of webhook:
USER_CREDIT_PROFILE_TRANSACTION Webhook
{
"userId": "3a35a0ba-9656-4b33-ac4f-2fa6dacae8a6",
"extUserId":"b1de1852-dc05-443a-8d13-bd81b4fdf006",
"eventType":"USER_CREDIT_PROFILE_TRANSACTION",
"createdOn":1708637591000,
"subscriptionId": "28ddf73b-bd93-4c06-afa5-fd4e3994d23f",
"status":"COMPLETED",//or "PENDING"
"metadata": {
"creditReportType": "FULL",
"creditScoreModel": "EquifaxVantageScore3.0",
},
"bureau":"Equifax",
}
USER_CREDIT_PROFILE_TRANSACTION_FAILED Webhook
{
"userId": "3a35a0ba-9656-4b33-ac4f-2fa6dacae8a6",
"extUserId":"b1de1852-dc05-443a-8d13-bd81b4fdf006",
"eventType":"USER_CREDIT_PROFILE_TRANSACTION_FAILED",
"createdOn":1708637591000,
"subscriptionId": "28ddf73b-bd93-4c06-afa5-fd4e3994d23f",
"status":"FROZEN_REPORT",//or "FRAUDULENT_REPORT" or "REPORT_FAILED"
"metadata": {
"creditReportType": "FULL",
"creditScoreModel": "EquifaxVantageScore3.0",
},
"bureau":"Equifax",
}
REFRESH_TRANSACTION_STATUS Webhook
{
"eventType": "REFRESH_TRANSACTION_STATUS",
"userId": "b790770b-33c7-49d4-b086-e6e18864ba34",
"extRequestId": "28ddf73b-bd93-4c06-afa5-fd4e3994d23f",
"refreshTransactionId": "b790770b-33c7-49d4-b086-e6e18864ba34",
"creditCardId": "007035e0-7865-49f3-be50-c922b1c63dc6",
"refreshTransactionStatus": "COMPLETED", // or "FAILED"
"webhookId": "1710361341615-0",
"data": {
"balanceDetails": {
"outstandingBalance": 7000,
"updatedOn": 1597753517524
},
"statementSummary": {
"refreshedFields": {
"lastPaymentDate": {
"value": "2021-08-21",
"format": "YYYY-MM-DD",
"updatedOn": 1643917894780
},
"dueDay": {
"value": "08",
"format": "DD",
"updatedOn": 1643917894780
},
"lastPaymentAmount": {
"value": 400,
"updatedOn": 1643917894780
}
}
}
}
}
USER_PAYMENT_STATUS Webhook
{
"userId": "e1b0d89d-6d86-4ff6-a2ab-46b99e2c1b1e",
"status": "SCHEDULED",
"statusComment": "Scheduled payment towards loan account",
"requestId": "a564cbf8-8669-481d-ad4b-82843462b31c",
"transactionRequestId": "c8301530-b77e-46c5-9c03-8d3233ff6b8d",
"transactionId": "f9bcb792-7af5-4eee-a561-3b6bed634556",
"eventType": "USER_PAYMENT_STATUS",
"liabilityType": "STUDENT_LOAN",
"webhookId": "66e0e852-83cf-47c3-a7dc-1a000bc83505",
"paymentTraceNumber":"123456789",//for APPLIED/FAILED/RETURNED
"errorDescription":"Invalid account number provided for the account to be paid."// for FAILED/RETURNED
}
1. Launch loan-servicers-login DIM via your sandbox partner
2. Connect with the "Single Step MFA" Servicer available at the bottom of the list
3. Use credentials "testUser" and "testPass" to properly authenticate
4. Add a test bank account in the precision-pay DIM (or reference whatever payer you would like for the paymentRequest with the newly created userId)
5. Make the paymentRequest (and capture the requestId for hitting the process endpoint)
6. Ping the sandbox/payments/process endpoint with the appropriate extRequestId (requestId) or requestId (transactionRequestId)
7. The transaction will process immediately, and move from SCHEDULING -> PROCESSING -> SCHEDULED
8. The webhook will be triggered
PLATFORM_PAYMENT_STATUS Webhook
{
"employerPayerId": "e1b0d89d-6d86-4ff6-a2ab-46b99e2c1b1e",//for employment benefits only
"payerId": "c5377424-8122-4dc7-826c-5092197cb78a",//for non-employment benefits
"requestId": "db21f285-42b5-4382-b177-42d027acb6e3",
"transactionRequestId": "db21f285-42b5-4382-b177-42d027acb6e3",
"status": "SCHEDULED",
"statusComment": "Scheduled payment towards platform",
"eventType": "PLATFORM_PAYMENT_STATUS",
"webhookId": "4a8235be-3d6c-42cf-9add-5c8c648d411d",
"tag": "Webhook"
}
USER_REFINANCE_STATUS Webhook
{
"userId": "e1b0d89d-6d86-4ff6-a2ab-46b99e2c1b1e",
"externalUserId": "e1b0d89d-6d86-4ff6-a2ab-46b99e2c1b1e",
"applicationId": "e1b0d89d-6d86-4ff6-a2ab-46b99e2c1b1e",
"status": "PROCESSING",
"webhookId": "66e0e852-83cf-47c3-a7dc-1a000bc83505",
"occurredOn": 1645245893901,
"details": {}
}
BANK_ACCOUNT_LOOKUP_STATUS_CHANGE Webhook
{
"eventType": "BANK_ACCOUNT_LOOKUP_STATUS_CHANGE",
"webhookId": "1744732334424-0",
"status": "COMPLETED",
"transactionId": "41896b74-1b1c-461e-b311-a1d2202d3854",
"userId": "4f7fb087-d8d8-40a5-a39f-69ead67fcd8b",
"bankAccountId": "464e5005-4397-4abb-b4ec-00ee26600860",
"nextEligibleRefreshOn": 1744732357083,
"data": {
"accountBalance": 1700
}
}
To learn more about our debt APIs and 1-click solutions, visit spinwheel.io.
Updated 8 days ago