Reading starts here
ChurnAtlas

Repeat-request key windows for 4 providers before a resend

Short answer. Compare Stripe, Adyen, Chargebee and PayPal repeat-request key windows, and check the account before you resend an update that may already be applied.

ChurnAtlas Editorial Team. How posts are made is set out in the editorial standards.

Published · Sources checked · 10 min read

  1. Inputs Your product plan, your permissions and the task you want to finish.
  2. Decision Whether the help page matches what you see on your screen.
  3. Next action Do the task on one test account, then record what you changed.

A repeat-request key is an idempotency key that lets you safely retry POST requests and avoid duplicate records, according to Chargebee. This page compares the documented windows and rules for Stripe, Adyen, Chargebee and PayPal.

Key takeaways

  • Stripe allows removing keys automatically after they are at least 24 hours old according to Stripe.
  • Adyen states idempotency keys remain valid for a period of 7 to 14 days after first submission according to Adyen.
  • Chargebee recommends keeping the webhook event-ID window at 3 days and 7 hours, because the last webhook retry happens around that time, according to Chargebee.
  • Chargebee notes that Estimate APIs do not support Idempotency according to Chargebee.

What a repeat-request key is for

A repeat-request key acts as a unique label that tells the billing system a second copy of the same update is not a new one. When you resend an account update because the first attempt timed out or the connection dropped, the tool checks this label against its stored history. This prevents unintended consequences such as creating duplicate records on the customer’s account, according to Chargebee.

The mechanism specifically addresses the risk inherent in POST requests, which can modify server state. Without this safeguard, a network glitch that triggers a retry could result in two separate actions being recorded where only one was intended. The key allows you to safely retry requests by providing a consistent identifier for the logical operation rather than treating each transmission as a distinct event. You generate this label before sending the initial request and reuse it exactly if you need to send the payload again within the tool’s specified window.

Keep the claim tied to the named source when applying this logic to your workflow. Do not treat one publisher's rule as every firm's rule, as different platforms may have different retention periods or character limits for these keys. For example, while the core purpose remains preventing duplicates, the duration for which the key remains valid varies by provider. Your immediate task is to identify which specific tool you are using to resend the update, then locate the documentation page that defines the idempotency behavior for that exact service.

Repeat-request rules by provider

The following table lists the documented windows and key constraints for each publisher. Each row is sourced exclusively from that publisher's own documentation page.

Publisher Documented Window or Rule Key Constraint or Scope
Stripe 24 hours Idempotency keys are up to 255 characters long according to Stripe. For API v1, you can remove keys from the system automatically after they’re at least 24 hours old according to Stripe.
Adyen 7 to 14 days Idempotency keys are valid for a period of 7 to 14 days after first submission according to Adyen. The system checks that the idempotency keys are unique to the company account according to Adyen.
Chargebee Webhook event-ID window of 3 days and 7 hours Since the last retry for a webhook happens around 3 days and 7 hours after the original event trigger, keep the event-ID window at 3 days and 7 hours according to Chargebee. You can purge stored event IDs that are older than 3 days and 7 hours according to Chargebee.
PayPal No time window supplied; any number of repeat calls You can make idempotent calls any number of times without concern that the server creates or completes an action on a resource more than once according to PayPal. Idempotency enables you to correlate request payloads with response payloads, eliminate duplicate requests, and retry failed requests or requests with unclear responses according to PayPal.

Check the specific tool you are resending through to confirm which of these windows applies before sending the update again.

Stripe's 24 hours and 255-character key

When resending an account update through the Idempotent requests | Stripe API Reference, the system relies on specific retention windows to prevent duplicate processing. For API v1, you can remove keys from the system automatically after they’re at least 24 hours old, according to Stripe. Understanding these rules is critical for customer success managers who need to verify whether a previous update has already been applied before sending another copy of the same instruction.

The length of the identifier itself is also constrained by the platform’s specifications. Idempotency keys are up to 255 characters long, according to Stripe. You do not need to use the full character allowance; however, the string must be unique to the specific action you are performing. Keeping the key under this maximum threshold allows the API to process the header correctly without rejecting the request due to format errors.

Creating these unique identifiers follows a flexible approach regarding their internal structure. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions, according to Stripe. This recommendation helps ensure that two different updates do not accidentally share the same label. While the exact format is not mandated, using a standardized method like a version four universally unique identifier provides a reliable way to generate strings that meet the entropy requirements suggested by the documentation.

Adyen's 7-to-14-day window

The API idempotency documentation states that idempotency keys are valid for a period of 7 to 14 days after first submission, according to Adyen. This validity period applies specifically to POST requests within the Adyen API, as other request types such as GET, DELETE, and PUT are idempotent by definition, according to Adyen. When preparing to resend an account update through this platform, note that the system checks that the idempotency keys are unique to the company account, according to Adyen. If your workflow involves targeting multiple regional endpoints simultaneously, be aware that idempotency keys will not be checked for duplication in other regions, according to Adyen. These constraints define the scope within which a repeated request is recognized as a duplicate rather than a new transaction. Verify the specific regional endpoint you are using before resending, as cross-region duplication checks do not apply. Confirm that your key remains within the seven-to-fourteen-day validity window relative to the initial submission time. Ensure the key is generated uniquely for your specific company account to maintain proper identification during the retry process.

PayPal's repeat rule

PayPal’s documentation for Idempotency | PayPal Developer states that you can make idempotent calls any number of times without concern that the server creates or completes an action on a resource more than once according to PayPal. The same page explains that idempotency enables you to correlate request payloads with response payloads, eliminate duplicate requests, and retry failed requests or requests with unclear responses according to PayPal. When resending an account update through this system, verify that the payload matches the original request exactly.

Recommendation: For PayPal, ensure the idempotency key remains consistent across all retry attempts to maintain correlation between the initial and subsequent calls. Do not assume that a key from one platform functions on another; each tool manages its own validation rules. Check the specific API endpoint documentation for exclusions before relying on the key to prevent duplicates.

What the key does not undo

The documentation for PayPal defines idempotency as a mechanism that enables you to correlate request payloads with response payloads, eliminate duplicate requests, and retry failed requests or requests with unclear responses. This definition describes the technical function of the key within the API layer, specifically how it manages the relationship between what is sent and what is returned during a retry sequence. The page focuses on preventing duplicate execution at the interface level rather than reversing completed business logic.

You can make idempotent calls any number of times without concern that the server creates or completes an action on a resource more than once, according to PayPal. This rule applies to the repeat call itself; it does not provide a mechanism to undo a previous successful change. If your first update went through, the account reflects that change. You must check the account dashboard or the specific record in question to confirm whether the update has already taken effect. If the update is wrong, you need to initiate a separate correction process appropriate for your billing tool, rather than relying on the repeat-request key to fix the error. The key exists to stop accidental double-processing, not to serve as an undo button for mistaken inputs.

Illustrative example: a plan change that timed out

A team sends a plan change and the reply never arrives. It opens the account record first. The field already shows the new plan, so it does not resend. Had the field shown the old plan, it would check whether the first attempt failed before resending with the same key.

Verify before resending * Open the account record in your billing tool. * Confirm the current status of the field you intend to update. * If the field shows the new value, do not resend the update. * If the field shows the old value, check if a prior attempt failed. * Use the repeat-request key only when the original outcome is unclear.

This verification step ensures you do not rely on the idempotency key to correct data that has already been committed. The key protects against duplicate creation or completion of actions, as stated by PayPal. Your responsibility is to distinguish between a failed request that needs a retry and a successful request that requires no further action. Your next step today is to open the account record and check that field before resending anything.

Repeat-request FAQ

What is a repeat-request key for?

A repeat-request key allows you to safely retry POST requests to avoid creating duplicate records on the server. It ensures that if your initial request fails or times out, sending the same request again with the same key does not result in a second action being taken. This mechanism helps maintain data integrity during network interruptions or processing delays.

How long does Stripe keep one?

According to Stripe, for API v1, you can remove keys from the system automatically after they’re at least 24 hours old. The documentation notes this specific timeframe for cleaning up stored idempotency keys within their infrastructure.

How long does Adyen keep one?

According to Adyen, idempotency keys are valid for a period of 7 to 14 days after first submission. Keep this range in mind when planning your retry logic and error handling strategies.

What does Chargebee tell you to keep for 3 days and 7 hours?

According to Chargebee, since the last retry for a webhook happens around 3 days and 7 hours after the original event trigger, keep the webhook event-ID window at 3 days and 7 hours. Note that Estimate APIs do not support Idempotency according to Chargebee.

What does PayPal say a repeat call must not do?

According to PayPal, you can make idempotent calls any number of times without concern that the server creates or completes an action on a resource more than once. The core rule is that the server must not execute the underlying business logic a second time.

Sources

Limits of this post

This post is general operational information, not legal advice about notice periods or renewal clauses. It does not promise that any method keeps a customer. Software can get a fact wrong, so open the sources before you act.