Notifications
Every notification has the same envelope:
{
"type": "payment.updated",
"timestamp": "2026-06-10T13:02:45.239167Z",
"merchantId": "3f0c5a52-7d55-4c3a-9a43-0f1c2b9d8e11",
"data": { ... }
}
| Field | Description |
|---|---|
type |
payment.updated or payout.updated. |
timestamp |
When the notification was created, i.e. when the state in data was current. Use it to ignore notifications older than the state you already have. |
merchantId |
The merchant the notification is for. Always check that it is yours (see Verifying notification signatures). |
data |
Full snapshot of the payment or payout, described below. |
Payment notifications
The optional notificationUrl parameter determines the URL that will receive a POST request when the status of a payment changes.
For payment notifications, data is the full V4 payment representation, matching GET /v4/payments/{paymentId}. Notifications are full snapshots, not deltas, so API clients should replace their local state with the latest payload they receive.
Example payment notification data:
{
"paymentId": "8618ed13372b483b84d56c0cc5509a401c182d9e4dc04824a6ffddd8473753a3",
"priceAmount": 1.23,
"priceCurrency": "USD",
"transferAmount": 0.00018942,
"transferCurrency": "BTC",
"address": "2N3kVr2CHHt2pSdCidq4dwZBFeBnMQhvaka",
"paymentUri": "bitcoin:2N3kVr2CHHt2pSdCidq4dwZBFeBnMQhvaka?amount=0.00018942",
"expirationTime": "2026-06-10T13:12:45.239167Z",
"paymentPageUrl": "https://payments-sandbox.bitclear.li/payments/8618ed13372b483b84d56c0cc5509a401c182d9e4dc04824a6ffddd8473753a3",
"notificationUrl": "https://example.com/payment-callback",
"pendingPaidPriceAmount": 0,
"acceptedPaidPriceAmount": 1.23,
"pendingPaidTransferAmount": 0,
"acceptedPaidTransferAmount": 0.00018942,
"status": "CONFIRMED",
"externalPaymentId": "order-123",
"transactions": []
}
For each payment status change Bitclear API will attempt to call notificationUrl at least once. You may receive duplicated notifications or notifications out of order, so compare the payment status and current state before acting on a notification. See Delivery below.
Underpaid Payments
When a customer sends too little cryptocurrency, Bitclear API sends a notification with status UNDERPAID. Use the updated paid amount fields to decide whether to prompt the customer to send the remaining amount or handle the partial payment differently.
Payout notifications
Payout notifications are sent when a payout with notificationUrl changes state. Here data is the full V4 payout representation, matching GET /v4/payouts/{payoutId}.
Example payout notification data:
{
"payoutId": "592cf20b-0174-4b90-b2a4-2e7209a0e3cd",
"transferAmount": 0.1,
"priceAmount": 111.32,
"priceCurrency": "USD",
"transferCurrency": "BTC",
"comment": "Refund for a purchase of a faulty product",
"expirationTime": "2026-06-10T12:38:50.246Z",
"createdTime": "2026-06-10T11:38:50.246Z",
"notificationUrl": "https://example.com/payout-callback",
"externalPayoutId": "refund-123",
"status": "SENT",
"destination": {
"destinationType": "CRYPTO_ADDRESS",
"cryptoAddress": "2N8hwP1WmJrFF5QWABn38y63uYLhnJYJYTF"
}
}
Delivery
- A notification counts as delivered when your endpoint responds with any
2xxstatus. Respond quickly and process the notification asynchronously: the connection times out after 5 seconds and the response after 15 seconds. - Each notification has a unique
webhook-idheader. The ID stays the same when a notification is retried or redelivered, so store processed IDs and skip repeats. - Failed deliveries may be retried automatically, depending on the environment's configuration. Retries use the same
webhook-idand body, with a freshwebhook-timestampand signature. - Bitclear keeps each notification for 90 days, together with every delivery attempt and your endpoint's response (status and the first 2000 characters of the body). During that time you can review the history and redeliver a notification, see Request Notification Resend.
Notification Security
Notifications are signed following the Standard Webhooks specification with an Ed25519 key. You verify them with a public key, so no key setup is needed on your side. Always verify the signature and check merchantId before acting on a notification.