⚙️
DusuPay API Documentation
  • Introduction
  • Getting Started
    • Registration
    • Error Handling
    • Authentication
    • Merchant Account Credentials
      • Generate Secret Key
      • Regenerate Security Keys
    • Supported Countries/Regions
    • Transaction Limits
    • Sandbox Test Accounts
    • DusuPay Public Keys
  • Utility Functions
    • Balance Inquiry
    • Payment Options
    • Payout Bank Codes
    • Mobile Money Operator Prefixes
    • Handling Notifications/Callbacks
      • Callback Events
    • Transaction Status Verification
  • Funds Collection
    • Getting Started
    • Mobile Money Collection
      • Mobile Money - Direct Charge
      • Mobile Money - Hosted Page
    • NGN Bank Transfers
    • ZAR Bank Collections
    • Card Payments
      • Hosted Payment Page
      • Direct Card Payment (S2S)
  • Payouts/Disbursements
    • Getting Started
    • Mobile Money Payouts
    • Bank Account Transfers
  • Callbacks
    • HMAC Signature Verification
    • RSA Signature Verification
  • Appendix
    • Merchant Account Transfers
    • Availing Payout Funds
    • Sub Account Transfers
    • Funds Settlement
    • Transaction Audit Logs
    • Cross Currency Transactions
Powered by GitBook
On this page
  • Obtain the Keys
  • Request Headers
  1. Getting Started

Authentication

The DusuPay API uses a key pair (Public and Secret Keys) for authentication. To make an authenticated request to our API, you need to pass custom headers as described in this section.

PreviousError HandlingNextMerchant Account Credentials

Last updated 10 months ago

Obtain the Keys

The Public and Secret keys can be copied from the merchant dashboard under the specific merchant account details as described . These keys should be sent as headers with the header names; public-key and secret-key

Please ensure that your keys are stored safely and not shared with the public. In the event your keys are compromised, please contact us immediately for assistance. You an alternatively regenerate the secret key from within your merchant account dashboard

Request Headers

For most of the API requests, only the public-key header is required. Scenarios that require the secret-key header will be described accordingly.

Header Name
Value
Required

Content-Type

application/json

YES

x-api-version

API version (currently 1)

YES

public-key

The Public Key as obtained from the merchant account settings

YES

secret-key

The Secret Key as obtained from the merchant account settings. Required for specific situations as the document will guide

NO

here