Skip to main content

Authentication

ZepoPay uses OAuth 2.0 for API authentication. All API requests must include an access token.

Getting an Access Token

curl -X POST https://api.zepopay.com/api/token \
-H "Content-Type: application/json" \
-d '{
"client_id": "your_client_id",
"client_secret": "your_client_secret"
}'

Response

{
"access_token": "eyJhbGciOiJIUzI1NiIs...",
"expires_in": 3600,
"token_type": "Bearer"
}

Using the Token

Include the token in all API requests:

curl https://api.zepopay.com/api/v1/transactions \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIs..."
tip

Tokens expire after 1 hour. Request a new token when needed.