Skip to main content
PayEm Partner API uses OAuth 2.0. Exchange your client ID and client secret for a short-lived access token outside the API Reference.
Use https://stage.payemcard.com/oauth/token when testing against Staging. Never paste your client secret into the API Reference. Example response:

Use the API Reference playground

  1. Copy only the access_token value from the token response.
  2. Open an endpoint in the API Reference and select Production or Staging.
  3. Paste the token into the Bearer authentication field.
The playground sends it as Authorization: Bearer <access_token>. The token expires after 300 seconds (5 minutes), so obtain a new token when it expires.

Call an API

Pass the token as a Bearer header:

Scopes

Request only the scopes your integration needs.

Generate a new client secret

A company admin can rotate your credentials in the PayEm app under Settings → Developer, by selecting Rotate secret on your app. Your client ID stays the same and a new client secret is shown. Rotation immediately invalidates the previous secret and revokes all active access tokens for your app.
Your integration has brief downtime until it authenticates again with the new secret. Plan rotations for a low-traffic window and update the secret in your integration right away.

Token lifetime

Access tokens expire in 300 seconds (5 minutes). Cache the token and refresh before expiry; do not request a new token on every API call.