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

Authentication & API Keys

Environments and Keys#

DOKU provides two separate environments:
EnvironmentPurposeBase URL
SandboxFor testing and integrationhttps://api-sandbox.doku.com
ProductionFor real transactionshttps://api.doku.com
Each environment uses its own set of credentials and API keys. You’ll receive both after registering your merchant account.

Types of Credentials#

After registration, you will get the following credentials for each environment:
Credential NameDescription
Client IDUnique Identifier to associate your API Request with your merchant account
Secret KeyUsed to generate signature & access tokens
API KeyProvided by DOKU, used for access the API endpoints by including it as an user on Authorization header

Where to find your API Credentials#

1.
In the DOKU Dashboard, go to Settings > API Keys. You will find your Client ID, Secret Key and API Key there.
2.
To see your Secret Key, click Reveal Key and enter the 6-digit code sent to your email. The key is shown for 30 seconds.
3.
To regenerate your Secret Key, click Regenerate Secret Key. Regenerating immediately stops your current Secret Key from working and disrupts live transactions, so update your system straight away, or choose a scheduled regeneration instead.
Notes for API Key
The API-Key will be used as a credential to authenticate requests at DOKU's API endpoints. You will use this API-Key as a username in the Basic Authentication scheme when making API calls.
Please ensure the Authorization header is formatted correctly as follows: Authorization: Basic BASE64_ENCODED(API-Key:)
Please ensure to add a colon (:) after the API-Key before encoding it in Base64 format. This indicates that there is no password associated with the API-Key.
Example: If your API-Key is "your_api_key", the string to be encoded in Base64 would be "your_api_key:". be provided to you upon registration or request from DOKU's support team.
Keep it secure and do not share it publicly, as it grants access to your DOKU account and its associated services.
Modified at 2026-11-02 08:29:46
Previous
Make your first API call
Next
Overview
Built with