Method’s API supports idempotency for safely retrying requests without accidentally performing the same operation twice. This helps avoid unwanted duplication in case of failures and retries. For example, in the case of a timeout error, it is possible to safely retry sending the same API payment call multiple times with the guarantee that the payment will only be created once. Method’s idempotency works by saving the resulting status code and body of the first request made for any given idempotency key, regardless of whether it succeeded or failed. Subsequent requests with the same key return the same result, includingDocumentation Index
Fetch the complete documentation index at: https://docs.methodfi.com/llms.txt
Use this file to discover all available pages before exploring further.
500 errors.
Enable idempotency
To submit a request for idempotent processing, send a request with theIdempotency-Key: <key> header. The <key> can be any unique string
up to 255 characters long. (We recommend using V4 UUIDs). All POST requests accept
idempotency keys.
Idempotency error
In the unlikely event that the idempotent data store is unavailable, the API returns a503 error status with a sub type of IDEMPOTENCY_UNAVAILABLE. If idempotency
is required, we recommend retrying your request later, otherwise, fall back to non-idempotent processing by
not submitting the Idempotency-Key header.