KeldroveOpen dashboard
Keldrove / Developer reference

Verify and process an invoice webhook

A crypto payment webhook tells your store that an invoice has changed. Under Keldrove’s proposed contract, the same signed event would reach a merchant whether the buyer sent Monero, Bitcoin or a supported token. The store would verify the delivery, read the invoice and release goods once its fulfillment rules pass.

By the Published · Updated

What would the endpoint receive?

Consider an order queued for a one-time license. The store has already saved the invoice ID, order price and expected network. A notification for that invoice is an invitation to inspect its current state. The endpoint receiving notifications should be a server under your control. Customer browsers can close and customer-supplied messages cannot vouch for the gateway.

{
  "id": "evt_example",
  "type": "invoice.updated",
  "invoice_id": "inv_example",
  "store_id": "store_example",
  "revision": 4,
  "status": "confirmed"
}

Separate the webhook signing secret from the API key your worker uses to read the invoice. Think through a rotation before deployment. Record which endpoint and environment own each secret and who may replace it. During an agreed overlap, a receiver could verify against either of two authorized secrets and then discard the earlier one. A sandbox secret should never authorize a production fulfillment.

Which bytes are signed?

The proposed headers are Keldrove-Timestamp and Keldrove-Signature. The timestamp contains Unix seconds, and the signature value begins with v1= followed by a hexadecimal HMAC-SHA256. Construct the message from the timestamp as received, a single ASCII period, and the original request body bytes. Use the secret configured for this endpoint.

Keep the original body before any JSON parser changes it. A serializer might reorder object fields, escape characters differently or change whitespace.

Receiver checks for the proposed version-one signature
InputReceiver behavior
Malformed timestamp, missing header or unsupported signature versionReject the delivery before queuing work.
Timestamp more than 300 seconds from the receiver clockReject the stale or future-dated delivery and monitor clock drift.
Digest differs or has an unexpected lengthReject. Compare valid-length digests using a constant-time primitive.
Signature valid and event ID already committedAcknowledge the earlier durable receipt and keep the existing work item.

A short timestamp window constrains old deliveries. An authentic event can still be delivered twice inside the window. Use an event ID and persistent uniqueness to avoid duplicate effects. A later retry would carry a fresh timestamp while retaining its event ID. The timestamp tells you about the delivery attempt, whereas the invoice revision tells you how recent the underlying update is.

Acknowledge work you can recover

Persist a verified message in an inbox table or durable queue. A useful unique index covers environment, store and event ID. Return a successful HTTP status after the storage transaction commits. If the process stops before the commit, the sender can try again.

If it stops after the commit but before returning the response, the repeat will find the existing row. Both outcomes are recoverable.

Queue consumers should look up the associated store key on the server and fetch the current invoice. Verify the invoice belongs to the stored order and matches its price and currency. Apply a transition using the stored revision. Commit a fulfillment job with a unique order key in the same local transaction that records the decision. This protects a slow warehouse at the point where multiple events might otherwise request the same shipment.

Work through a reversal of arrival order

At 09:12 your queue receives revision six, while revision five sits on a retry queue. The invoice read says revision six is confirmed. The store prepares the license once and saves that decision. A minute later, revision five arrives and says detected.

The saved revision prevents the second event from moving the order back into a waiting state. An authentic message can still describe an older state.

Suppose a later revision seven moves the invoice to review after a chain reorganization. An ordinary “ignore everything after fulfilled” rule would hide that change. Preserve the new review state in the payment record and notify the person who owns exceptions. Keep the issued-license record intact. This gives support an accurate account of what happened to the money and what the customer already received.

Recover a missed event without rebuilding the order

Monitor your queue’s oldest unprocessed item and the time of the last successful invoice read. During an outage, flag existing orders that have a live invoice but no terminal decision. After service returns, read those invoices using the same authorization and apply the usual identity and fulfillment checks.

A replay or a manual read is another input to the same workflow. Creating another invoice for every unresolved order would make support harder.

Look for a provider’s guidance on raw request bodies, retries, duplicates and out-of-order notifications when assessing another integration. Stripe documents these operational requirements for its own events. Header names, algorithms and event definitions come from each provider’s contract. A successful verification using a Stripe SDK cannot verify a proposed Keldrove signature. Stripe webhook delivery documentation.

What should be visible to a support agent?

Show the latest invoice read, event ID, attempt time, retry count, current revision and the fulfillment record. A successful HTTP delivery records transport success only. It says nothing about whether a shipment completed or an entitlement reached the customer. Keep secrets, full raw signatures and private checkout URLs out of support tickets.

The proposed Pro and Business callback system is still awaiting implementation and end-to-end acceptance.

During acceptance, stop the worker after its inbox commit and before its invoice read. Restart it and verify that the same order gets one release job. Save the result with the implementation version your merchant intends to deploy.

Questions merchants ask

Which subscription includes signed notifications?

The proposed Pro and Business plans include API access and webhooks. A merchant using Starter would manage hosted invoices and payment links through the planned merchant interface.

Why fetch the invoice after a valid signature?

The signature identifies the origin and contents of this delivery. A fresh authenticated read gives the latest revision and the commercial fields your order record must match.

Can I use the event timestamp to order updates?

Compare invoice revisions for the same invoice. A retry has a fresh delivery timestamp and may carry an older invoice update.

Merchant terms at a glance
Subscription currencies
BTC, LTC, ETH, SOL, USDC on Ethereum, USDT on Ethereum or Tron, and Monero (XMR).
Account
Register with an email and password or a private account code. No identity document is requested.
Price on 2026-11-27
$25 for Starter per 30 days. Keldrove charges only the subscription, with 0% transaction fees on every plan. The subscription funding minimum is $25. Customer invoices have separate network limits.
Activation
Create an order at checkout. Activation follows payment verification.
Compare three published gateway fee models
Provider pricing checked November 27, 2026, excluding network costs
ProviderService fee basis
CryptAPI1% in the entry volume band.
BitPay2% plus 25¢ per transaction under $500,000 monthly volume. Higher-risk industries may pay more.
BTCPay Server0% software processing fee. Operating or renting a server carries separate costs.