Partner Webhooks

Update a Webhook

PATCH
/v1/partners/webhooks/{webhookId}

This API allows you to update a specified webhook

Authorization

bearerAuth
AuthorizationBearer <token>

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

In: header

Path Parameters

webhookId*string

Request Body

application/json

eventType?string

The event type which triggers the webhook

Value in

  • "UPDATE_PLAID_CREDENTIALS"
  • "USER_PAYMENT_STATUS"
  • "USER_CONNECTION_STATUS"
  • "EMPTY_LOAN_ACCOUNT_WEBHOOK"
  • "PLATFORM_PAYMENT_STATUS"
  • "USER_ACCOUNT_DISCONNECT"
  • "USER_LIABILITY_ACCOUNT_TRANSITION"
  • "USER_LIABILITY_ACCOUNT_REFRESH"
  • "USER_REFINANCE_STATUS"
  • "USER_CREDIT_PROFILE_TRANSACTION"
  • "USER_CREDIT_PROFILE_TRANSACTION_FAILED"
  • "USER_LIABILITIES_CONNECTED"
  • "USER_LIABILITIES_CONNECTION_FAILED"
  • "REFRESH_TRANSACTION_STATUS"
  • "BANK_ACCOUNT_LOOKUP_STATUS_CHANGE"
  • "LIABILITY_GROUP_PAYOFF_QUOTE_STATUS_CHANGE"
  • "STATEMENT_SUMMARY_NOTIFICATION"
  • "NEW_LIABILITIES_REPORTED"
  • "SUBSCRIPTION_ACTIVATED"
  • "SUBSCRIPTION_FAILED"
url*string

Partner provided webhook URL

headers?array<>

Header credentials are optional for webhooks

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/v1/partners/webhooks/string" \  -H "Content-Type: application/json" \  -d '{    "eventType": "USER_PAYMENT_STATUS",    "url": "https://webhook.site/272fe518-0a3e-4c68-98e4-31a6664e36abcd",    "headers": [      {        "name": "Authorization",        "value": "c3BpbndoZWVsdsOk"      }    ]  }'
{  "status": {    "code": 200,    "desc": "success"  },  "data": {    "webhookId": "5e92c9f3-d2ba-4a36-9133-a9c6df65615e",    "url": "https://webhook.site/272fe518-0a3e-4c68-98e4-31a6664e36aecdd",    "eventType": "USER_PAYMENT_STATUS",    "isEnabled": true,    "headers": [      {        "name": "Authorization23443434334344342324dsds",        "value": "c3BpbndoZWVs"      }    ]  }}