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
    • 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. 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.
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-02-02 03:38:06
Previous
Create Account
Next
Make your first API call
Built with