DOKU Malaysia API Reference
Home
Products
Products
  • Checkout
  • Payment
  • Cards Payment
DOKU Docs
Home
Products
Products
  • Checkout
  • Payment
  • Cards Payment
DOKU Docs
  1. Response Code
  • 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. Response Code

Error Code

When something goes wrong, we return a structured error code and message to help you quickly identify the cause. This lets you:
1.
Troubleshoot faster
2.
Implement proper fallbacks
3.
Improve user experience
4.
Build predictable logic flows
We categorize errors by type so you know the exact next step to take.

Authetication & Signature#

CodeHttp StatusDescription
unauthorized401Authentication failed. Please provice a valid API key or token
invalid_signature401Invalid Signature, please check the signature components
api_key_missing401API Key is required but was not provided
signature_missing400Signature is required but was not provided
request_timestamp_invalid400Request-Timestamp is missing or outside the allowed range.
expired_token401Access token has expired. Please re-authenticate
forbidden403You do not have permission to access this resource
ip_not_allowed403Your IP address is not allowed to access this resource
account_locked403Your account has been locked due to multiple failed login attempts.
api_key_revoked403API Key has been revoked.

Idempotency & Concurrency#

CodeHttp StatusDescription
idempotency_id_required400Idempotency key is required for this request
idempotency_id_conflict409Duplicate request with the same idempotency id
concurrent_modification409Concurrent update detected in the resource. Try again.

Request Validation#

CodeHttp StatusDescription
invalid_request400The request is malformed or missing required parameters.
missing_parameter400Required paramater {param} is missing.
invalid_parameter400Parameter {param} has invalid value or format.
invalid_query_param400One or more query parameters ar invalid.
invalid_json400Request body must be valid JSON.
payload_too_large400Request payload is too large
unsupported_media_type400Content-Type must be application/json.

Transaction & Payment Errors#

CodeHttp StatusDescription
transaction_not_found404Transaction with the given ID does not exist
transaction_failed400Transaction failed to process
transaction_already_paid400The Transaction has already been paid
duplicate_transaction400A transaction with the same reference already exists.
payment_channel_unavailable404Selected payment channel is currently unavailable
insufficient_funds400Payment failed due to insufficient balance
card_declined400Card was declined by the issuing bank.
invalid_card_number400The card is expired
expired_card400Provided card number is not valid
payment_timeout408Payment processing timed out. Please try again
currency_not_support400The selected currency is not supported

Complience & Risk#

CodeHttp StatusDescription
fraud_suspected403Transaction is suspedted to be fraudulent.

Merchant & Account Errors#

CodeHttp StatusDescription
invalid_client_id404Client Id is not registered.
inactive_client_id403Client Id is inactive or suspended.

Webhook & Callback Errors#

CodeHttp StatusDescription
webhook_url_invalid400Provided webhook URL is invalid or unreachable
webhook_failed400Webhook delivery failed

System/Internal Errors#

CodeHttp StatusDescription
internal_server_errors500An unexpected error occured on the server.
service_unavailable503The service is temporarily unavailable. Please try again later.
timeout_error504The request timed out while processing.

Rate Limiting & Quotas#

CodeHttp StatusDescription
rate_limit_exceeded429Too many requests. Please slow down.
quota_exceeded429Your usage quota has been exceeded
Modified at 2026-07-06 04:24:28
Previous
Postman Collection
Next
API Version
Built with