DOKU Malaysia API Reference
Home
Products
Products
  • Checkout
  • Payment
  • Cards Payment
DOKU Docs
Home
Products
Products
  • Checkout
  • Payment
  • Cards Payment
DOKU Docs
  1. Technical Reference
  • Introduction
  • Getting Started
    • Create Account
    • Authentication & API Keys
    • Make your first API call
  • Checkout
    • Overview
    • Create Checkout
      POST
    • Retrieve Checkout Status
      GET
  • Payment
    • Overview
    • Create Payment
    • Get Bank List - FPX
    • Retrieve Payment Status
  • Cards Payment
    • Overview
    • Payment Form
      • Request Payment
    • Host-to-Host Payment
      • Check Three D Secure
      • Charge Payment
      • Capture Authorized Payment
    • Request Refund
    • Unbind Token
    • Check Status
  • Notification
    • Overview
    • Setup Notification URL
    • Retry Notification
    • Sample Notification - Global
    • Sample Notification - Cards
  • Technical Reference
    • Authentication & Integrity
    • Idempotency
    • Data Type
    • Order & Transaction Status
    • Postman Collection
    • Response Code
      • Error Code
    • API Version
      • Create Checkout
      • Create Payment
      • Get Bank List - FPX
      • Retrieve Checkout
      • Retrieve Payment
    • Signature
      • Signature - Global
        • Signature
      • Signature - Cards Payment API
        • Signature Component from Request Header
        • Signature Component from Response Header
        • Signature from API Get Method
        • Sample Code
  1. Technical Reference

Idempotency

Idempotency Requests#

DOKU Global API supports idempotency, which allows merchants to safely retry requests without triggering duplicate processing. Idempotency ensures that when the same request is sent multiple times, the system treats it as a single operation and always returns the same result as the first attempt.
The idempotency layer compares incoming payload to those of the original request and errors if they’re not the same to prevent accidental misuse. Subsequent requests with the same key and payload (digest) return the same result, including http code 409 conflicts.
DOKU only verified the keys for last 24 hours old and we suggest using V4 UUIDs to generate the Id, or another random string with enough entropy to avoid collisions. Idempotency keys are up to 255 characters long.
Modified at 2026-02-02 03:38:06
Previous
Authentication & Integrity
Next
Data Type
Built with