Partner API

Webhooks and event delivery

Credicorp pushes events — decision made, payment settled, document signed — to your registered URL as signed POSTs. Verify the signature, respond 2xx fast, and process idempotently because delivery is at-least-once.

2 min read

Signed POSTTo your URL
At-least-onceDelivery
Verify firstThen trust

How delivery works

When something happens on a partner resource you own — a decision is reached, a payment settles, an e-sign envelope completes — Credicorp POSTs a JSON event to the URL you registered. Each delivery carries a signature header derived from a shared secret so you can prove the payload came from Credicorp and was not tampered with. Your endpoint should verify the signature, do minimal synchronous work, and return a 2xx quickly; queue the heavy processing.

Retries and ordering

Delivery is at-least-once. If your endpoint is slow, errors, or returns a non-2xx, Credicorp retries on a backing-off schedule for a bounded window. That means you may receive the same event more than once and occasionally out of order — so process events idempotently, keyed on the event ID, and treat the event's own timestamp/state as the source of truth rather than arrival order.

Verifying before trusting

Never act on an unverified webhook. Recompute the signature over the raw request body with your endpoint's secret and compare in constant time; reject on mismatch with a 400. See verifying a webhook signature for a worked example, and building an idempotent consumer for the processing side.

Frequently asked questions

Will I ever get the same webhook twice?

Yes — delivery is at-least-once, so duplicates and occasional out-of-order arrivals are normal. De-duplicate on the event ID and make your handler idempotent so a repeat delivery is a no-op.

What should my endpoint return?

Return a 2xx as soon as you have verified the signature and safely enqueued the event. Any non-2xx (or a timeout) tells Credicorp to retry later, so do not fail the response just because downstream processing is still running.

Funding for UK limited companies

Credicorp lends to your company, not to you personally — short-term working capital with no personal guarantee. See what your business could access.