Skip to main content

Authentication

The 54Pay API uses specialized headers for authentication. To make an authenticated request to our API, you need to pass custom headers as described in this section.

Obtain Keys

To obtain your keys:

  1. Sign in to your Merchant Dashboard using your credentials
  2. Fetch your OTP from your registered email and enter the OTP
  3. Once signed in, go to Settings
  4. Click on "APIs and Keys" tab
  5. Copy your keys from your dashboard

Request Headers

note

The request headers vary depending on the context (Collections or Payout)

Collection Headers

Header NameValue
Content-Typeapplication/json
x-businessBase_64(merchant public key)
x-appapi
x-api-keyBase_64(merchant public key)

Payout Headers

Header NameValue
Content-Typeapplication/json
x-api-keyBase_64(merchant public key) passed as header parameter with key