API Testing · Middle · Question 13 of 75
What is an idempotency key for a POST request?
- 1A unique key so a retried request isn't processed twice
- 2A secret that encrypts the body of the request
- 3A key that lets any user call admin endpoints
Show the answer
Correct answer: A unique key so a retried request isn't processed twice
Explanation
Payment APIs accept a key in a header. Sending the same key again returns the first result instead of charging twice.