API quick start: how do I make my first API call?

Our APIs let your website, app or software offer services such as mobile and DTH recharge, BBPS bill payments, KYC verification, OTP SMS and bank payouts. This quick start takes you from a new account to your first successful call. It is written for developers, but business owners can follow it to understand what their developer will do.

Step 1: Create your account

Sign up or sign in at our client area. Complete your business profile, because live access to financial and verification services requires your business details and KYC documents to be approved.

Step 2: Choose the services you need

Open the API section of your account at /account/api. Here you can see the available services, the packages you can subscribe to, and your current pricing. Current rates are also listed on the API pricing page.

Step 3: Generate a test key

In the API section, open API Keys and generate a test key. Test keys work in a sandbox: requests are processed against simulated responses, no real money moves, and no real recharge or verification is carried out. Copy the key and store it securely. It is shown in full only once.

Step 4: Whitelist your server IP

For security, API calls are accepted only from IP addresses you have added to your whitelist. Add the public IP address of the server that will make the calls. If you are testing from your own computer, add your current public IP temporarily, and remove it later.

Step 5: Make your first request

The simplest call is a balance check, which confirms your key, IP and connection are all working. All endpoints sit under the base URL https://www.pepploweb.com/api/services/v1/.

curl -X GET "https://www.pepploweb.com/api/services/v1/wallet/balance" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"

A successful response looks similar to this:

{
  "status": "success",
  "data": { "balance": "1000.00", "currency": "INR", "mode": "test" }
}

If you receive a 401 or 403 response instead, check the key and the IP whitelist. Our troubleshooting article on 401 and 403 errors explains each cause.

Step 6: Try a real service in test mode

Pick the service you plan to use and send a sample request from the documentation, for example a mobile recharge or a PAN verification. Test mode returns predictable results, so you can build your success, failure and pending handling before going live.

Step 7: Set up webhooks

Many transactions finish a few seconds or minutes after you send them. Add a webhook URL in the API section so we can notify your system when the final status is known. Verify every webhook signature before trusting it.

Step 8: Go live

  1. Make sure your business KYC is approved and the services you need are enabled.
  2. Add funds to your live wallet.
  3. Generate a live key and whitelist your production server IP.
  4. Replace the test key in your server configuration with the live key.
  5. Send one small real transaction and confirm the result end to end.

Good habits from day one

  • Keep keys on the server only, never in mobile apps or browser JavaScript.
  • Send your own unique reference ID with every transaction so you can track it.
  • Log every request and response, with sensitive data masked.
  • Never mark a transaction as failed just because a request timed out; check its status first.
The examples in this article are simplified to show the flow. Field names, endpoint paths and response formats can differ by service, so always follow the current reference in our API documentation.

Need a hand?

Read the full reference in our API documentation, compare services on the API services page, or open a ticket if you get stuck. If you would like us to build the integration for you, see our API integration service.

Was this article helpful?

Still stuck? Open a support ticket and our team will help.


Related articles

← Back

Chat with us
Hi! Send us a message and we will reply here as soon as we can.
Security check image
Chat with us