Tazapay API supports idempotency for safely retrying POST requests ensuring that you do not perform the same operation twice. This is useful when an API call is in transit and you do not receive a response. For example, if the request to create a transaction does not give a response, the same request can be successfully retried by using the same idempotency key in the header of the request. Tazapay’s idempotency works by storing the responses associated with successful requests, that is, requests which generate a 2xx status code. When you pass the same idempotency key in the header of the request body, the saved response is returned without performing the same operation again. If the request does not generate a successful response, passing the same idempotency key will cause it to perform the operation again. If the API returns an error, the response is not stored and the operation is executed again. We recommend passing idempotency keys only with POST requests. Passing idempotency keys with GET has no effect. To make idempotent requests, pass the following header with the request.Documentation Index
Fetch the complete documentation index at: https://developer.tazapay.com/llms.txt
Use this file to discover all available pages before exploring further.
Header
Any idempotency key is valid for a period of 24 hours from the time the request hits Tazapay’s servers and it starts executing. If no execution happened, the key is not stored. Moreover, after 24 hours, any request with the same idempotency key is treated as a new request.
