Skip to main content

Idempotency

billing

Idempotency means performing the same operation twice has the same effect as performing it once. Payment callbacks and provisioning calls must be idempotent so a retried webhook cannot double-charge or double-provision.

Send an idempotency key with every money- or infrastructure-touching request and record it in the operations ledger.

A duplicated M-Pesa callback arrived twice; the idempotency key ensured one invoice, one payment.

Related topics

Frequently asked question

What is Idempotency?

Idempotency means performing the same operation twice has the same effect as performing it once. Payment callbacks and provisioning calls must be idempotent so a retried webhook cannot double-charge or double-provision. Send an idempotency key with every money- or infrastructure-touching request and record it in the operations ledger.

Read the full answer