Idempotency Request
Last updated
Last updated
DOKU API
Legacy DocumentationIdempotency is a concept where a request can be send multiple times with the same result as the first request, that means the system only performs one process for identical requests.
A request is identical if it is sent with the same request-id. However, the implementation may different in other systems, for example for processing transactions additional parameters such as "order-no, amount" may be required to compliment when decide a request is identical or not.
IDEMPOTENCY KEY IN DOKU
We make
idempotency key
in our system isRequest ID
To implement this, you must do below :
Every API Request must send unique request ID
.
If something happen in Merchant Side and merchant can't get response, then merchant send request again with same request ID and same Request Body, DOKU system will send the same Response body with HTTP Status Code 409 Conflict.