The pawaPay API enables you to pay and get paid with mobile money in Sub-Saharan Africa.

Let’s play around with the API in Postman:

1

Fork our API to your workspace in Postman

Run In Postman

2

Set up a mock server in Postman

  1. Choose “Mock servers” from the sidebar and select the little ”+” button.
  2. Choose “Select an existing collection”.
  3. Select the “pawaPay Merchant API” as the collection to mock.
  4. Name the server as you please. For example, “pawaPay sandbox”.
  5. Select “Create Mock Server”.
  6. Copy the mock server URL.

If you don’t need callbacks, you can skip this step or do it later.

3

Create an account with pawaPay

If you haven’t done so already, create an account in our sandbox. It only takes a few minutes and you can start testing our API immediately.

4

Set up callbacks

Sign in to the sandbox dashboard and go to System configuration > Callback URLs.

Select “Edit” and paste the callback URL you copied from Postman into the input boxes.

Once configured for all your flows, select “Save Changes”.

5

Generate the API token

Now go to System configuration > API tokens and generate an API token.

Please store it immediately. We do not store the tokens in pawaPay for security reasons.

6

Set up an environment in Postman

  1. Choose “Environments” from the sidebar in Postman and select the little ”+” button.
  2. Name the environment as you please. For example, “pawaPay sandbox”.
  3. Add the following variables into your environment:
VariableValue
apiTokenPaste the token you just generated as the value
baseUrlhttps://api.sandbox.pawapay.io
  1. Remember to save your changes.
  2. Choose the newly created environment from the environment dropdown in the upper right corner.
7

All done.

You can now start sending requests to the pawaPay API in the sandbox. Try “Request deposit” for example.

And explore our API reference to learn more about:

…and much more.