Make Your First API Call
You have your API keys. Let's make sure they work.
PayMongo uses HTTP Basic Auth. Pass your secret key as the username — no password needed.
Get your Account ID
- Log in to your PayMongo Dashboard
- Go to Settings → Business Information
- Copy your Account/Merchant ID
Make the call
Replace {id} with your Account ID and sk_live_YOUR_SECRET_KEY with your live secret key.
curl https://api.paymongo.com/v2/accounts/{id} \
-u sk_live_YOUR_SECRET_KEY:Note the colon (
:) after your key — that's intentional. It tells the server there's no password.
If you see your account details returned, you're authenticated and ready to build.
For the full response schema, see the Account Resource →
Updated 6 days ago