<!-- Public page: https://payeast.app/developers/docs/#authentication · version 2026-12-05 -->

# Merchant authentication

Merchant endpoints use your application's client ID and client secret, sent from your server using HTTP Basic authentication.

```
curl https://api.payeast.app/v1/merchant/payments \
  --user '<client_id>:<client_secret>'

```

The values above are placeholders. Read credentials from a server-side secret store; never put real credentials in a command shared with others, browser code, mobile code, logs or support messages.

## Environments

Use sandbox credentials only with `https://dev.payeast.app/v1` and live credentials only with `https://api.payeast.app/v1`. Credentials are not interchangeable.

A test client secret works for **90 days**. After that, create a new one in the developer sandbox. Live credentials are not affected by this rule.

## Errors

An invalid or unavailable credential returns `401 invalid_client`. A disallowed action returns `403`. Handle rate limits and retryable failures according to the API reference. Rotate credentials if exposure is suspected.

## Customer permission

Application authentication identifies your merchant application. It does not authorize a customer charge. Obtain an accepted mandate first and follow the customer's approval requirements.
