Glossary / Idempotency key

Idempotency key

A unique value sent with a request so the server can tell when it has seen that exact request before. If the same key arrives twice, the server returns the first result instead of doing the work again.

An example

A customer taps “Pay ₦25,000” and the network drops before the app hears back. The app retries with the same key, pay_7f3a. The server finds pay_7f3a already processed and returns the original receipt. One charge, not two.

Why it matters

Every endpoint that moves money will be called more than once: by retries, double taps and gateways resending webhooks. Without a key, each call looks new.

We build this into client work under payment gateway integration.

WhatsApp