Create an app
Open Integrations → OAuth apps and select New app. Enter the app name, allowed permissions, and up to 10 redirect URLs. Use HTTPS. For local development, you can use HTTP withlocalhost or 127.0.0.1.
Keep the client ID (pca_…) and client secret (pcs_…). The dashboard shows the secret once. Keep it on your server. New secret replaces the old secret, which stops working immediately.
Ask the seller to approve
Send the seller tohttps://dashboard.paysum.io/oauth/authorize with these query parameters. URL-encode each value.
The seller signs in, chooses a store, and can clear permissions before selecting Allow or Deny. On approval, Paysum redirects with
code. On denial, it redirects with error=access_denied. It returns state in either case if you sent it.
Exchange the code for a key
Exchange it on your server within five minutes. Each code works once. If you sent a PKCE challenge, include itscode_verifier. PKCE does not replace the client secret.
Authorization: Bearer <access_token>. There is no refresh token. If the seller approves the app again for the same store, the new key replaces the old one.
Reconnect a store
The key stops working if the seller selects Disconnect, deletes the key, or loses access to the store. Deleting the app revokes its keys for all connected stores. If the API returns401 with api_key_disabled or invalid_api_key, ask the seller to connect again.