Webhooks
Notify Jupid when an Always Bank business account list changes.
Send accounts.changed from your backend after an Always Bank business's
account changes are available through FDX. Jupid then requests a refresh for
that business, reading accounts and transactions from FDX.
The business must already have an authorized Jupid connection and a completed initial import. Jupid supplies a webhook URL and a separate HMAC secret for each enabled environment. Keep the secret on your backend.
Account changes
Use the business's FDX customer ID as payload.business.id and the person's
stable embed JWT sub as sub. The business ID selects the connection to
refresh; the person's currently selected business does not affect routing.
POST https://backend.jupid.com/api/webhooks/alwaysbank
Content-Type: application/json
x-jupid-signature: <hex hmac>The example uses the production endpoint. For staging, use
https://backend.stage.jupid.dev/api/webhooks/alwaysbank with the staging
webhook secret and FDX customer ID.
Request body
{
"type": "accounts.changed",
"sub": "stable-partner-user-id",
"payload": {
"business": {
"id": "fdx-customer-id"
}
}
}| Field | Requirement |
|---|---|
type | Must be accounts.changed. |
sub | Nonempty stable partner user ID matching the embed JWT sub. |
payload.business.id | Nonempty FDX customer ID for the business whose accounts changed. |
Additional fields such as payload.tier, payload.business.name and
payload.accounts are accepted but ignored. Account lists, balances and
statuses come from FDX; the webhook does not write account snapshots or
change billing entitlement. It never grants or restores business consent.
Signatures
Set x-jupid-signature to a hex HMAC-SHA256 digest of the raw request body,
using the webhook secret supplied for this environment. This is separate from
the embed JWT signing secret.
import { createHmac } from "node:crypto"
const signature = createHmac("sha256", webhookSecret)
.update(rawRequestBody)
.digest("hex")Use the exact bytes sent over HTTP as rawRequestBody. Reformatting
JSON after signing changes the digest.
Responses
| Status | Meaning |
|---|---|
200 | { "received": true }: the notification was submitted for background processing. |
400 | Invalid JSON or a body that does not match the required fields above. |
401 | JSON error missing_signature or invalid_signature. Check the environment secret and signed bytes before retrying. |
5xx | Submission or server failure. |
A 200 response confirms acceptance, not a completed refresh. Business
connection checks happen in the background: an unknown business, incomplete
initial import, revoked consent or blocked refresh can prevent the update.
Contact Jupid if an accepted notification does not produce the expected
changes; include the environment, business ID and request time.
Retry network failures and temporary server failures with backoff. Correct invalid bodies or signatures before retrying. There is no completion callback or delivery ordering guarantee.
Timing
Send the notification after the updated accounts are visible in FDX. A refresh already running or a failed refresh can delay or block processing; Jupid can investigate the background result. The regular hourly FDX synchronization continues independently of webhooks.