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:
- Sign in to your Merchant Dashboard using your credentials
- Fetch your OTP from your registered email and enter the OTP
- Once signed in, go to Settings
- Click on "APIs and Keys" tab
- Copy your keys from your dashboard
Request Headers
note
The request headers vary depending on the context (Collections or Payout)
Collection Headers
| Header Name | Value |
|---|---|
| Content-Type | application/json |
| x-business | Base_64(merchant public key) |
| x-app | api |
| x-api-key | Base_64(merchant public key) |
Payout Headers
| Header Name | Value |
|---|---|
| Content-Type | application/json |
| x-api-key | Base_64(merchant public key) passed as header parameter with key |