Idempotent Requests

<p>
The Wizit API supports <a target="_blank" href="https://en.wikipedia.org/wiki/Idempotence">idempotency</a> that allows the safe retry of requests, guaranteeing the operation is only performed once.
</p>
<p>
For example, if a refund request fails with a network error, the request can be retried with the same <span style={{ fontWeight: "bold" }}>requestId</span> and <span style={{ fontWeight: "bold" }}>merchantReference</span>. This is especially important for partial refunds to ensure retry attempts are not processed as separate refunds.
</p>
<p>
Wizit recommends that merchants generate UUIDs for use as request IDs. The resources that include a <span style={{ fontWeight: "bold" }}>requestId</span> may send back the same response.
</p>
<span style={{ display: "inline-block", paddingTop: "8px", fontWeight: "bold" }}>
Note
</span>
<p>
When performing an idempotent retry of an API request, a response with response code 412 may be encountered. This generally indicates that the original request was received, but is still processing. Please try again in a few moments, and repeat with the same requestId until something other than a 412 response is received.
</p>