---
updatedAt: 2026-11-06T21:42:16.000Z
agentTools:
  projectIndex: https://developer-docs.paga.com/llms.txt
---

# Paga Connect Operations

## Overview

Once you've acquired an access code for a user, your Client will store the access token and provide it with a secured operation request to impersonate the user credibly. The secure operation URI depends on the operation being executed and is listed later.

> 📘 Obtaining an Access Token
>
> Please see the Getting Started Article for how to obtain an access token.

**Authorization**\
When executing a secured operation, per the specification, the Access Token is provided as a HTTP header with the ‘Bearer’ prefix eg. if the access token value is 3cad5173-7b2a-4626-86be-0ff67804bd59, the header would be:

<Table align={["left"]}>
  <thead>
    <tr>
      <th>

      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        Authorization = Bearer 3cad5173-7b2a-4626-86be-0ff67804bd59
      </td>
    </tr>
  </tbody>
</Table>

**Output Formatting**\
For the secured resource requests you should supply the HTTP **Accept** header to determine the formatting of the response sent back from the operation. The header value must be either **application/json** (for a JSON formatted response body) or **application/xml** (for XML formatted response body). The default if not specified is application/json.

## Secure Operations

The following Secure operations can be performed.

> 📘 Response Type
>
> Paga supports both XML and JSON response types. However JSON is the recommended format.
>
> Test  base-url : <https://beta.mypaga.com/>\
> Live base-url: <https://www.mypaga.com/>

## 1. Merchant Payments

This is the operation executed to make a payment to you on behalf of the customer.

**Parameters passed to the operation**

* **referenceNumber** = `<unique reference number>`\
  This is a unique reference number provided by the client to uniquely identify the transaction and for use in retrieving the transaction records later

* **amount** = `<amount>`\
  Amount to charge the user

* **merchantCustomerReference** = `<your customer identification>`\
  Unique identifier for your customer eg. Phone number, email, id etc.

* **merchantProductCode** = `<your product code>`\
  This is an optional code that you can use to verify your payments.

* **currency** = `<currency>`\
  This is the currency code of the transaction, NGN is the only supported currency as of now (February 2016)

There are several ways in which this operation can be executed, as listed below

**Request Parameter**

<Table align={["left","left","left","left"]}>
  <thead>
    <tr>
      <th>
        Argument Name
      </th>

      <th>
        Type
      </th>

      <th>
        Mandatory(M)/Optional(O)
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        referenceNumber
      </td>

      <td>
        String
      </td>

      <td>
        M
      </td>

      <td>
        This is a unique reference number provided by the client to uniquely identify the transaction and for use in retrieving the transaction records later
      </td>
    </tr>

    <tr>
      <td>
        amount
      </td>

      <td>
        double
      </td>

      <td>
        M
      </td>

      <td>
        Amount to charge the user
      </td>
    </tr>

    <tr>
      <td>
        merchantCustomerReference
      </td>

      <td>
        String
      </td>

      <td>
        M
      </td>

      <td>
        Unique identifier for your customer eg. Phone number, email, id etc.
      </td>
    </tr>

    <tr>
      <td>
        merchantProductCode
      </td>

      <td>
        String
      </td>

      <td>
        O
      </td>

      <td>
        This is an optional code that you can use to verify your payments.
      </td>
    </tr>

    <tr>
      <td>
        currency
      </td>

      <td>
        String
      </td>

      <td>
        O
      </td>

      <td>
        This is the currency code of the transaction, NGN is the only supported currency as of now (February 2016)
      </td>
    </tr>
  </tbody>
</Table>

**1. REST-Style parameterized URL with all parameters provided.**

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Argument Name
      </th>

      <th>
        Merchant Payment Request
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        URI:
      </td>

      <td>
        [https://mypaga.com/paga-webservices/oauth2/secure/merchantPayment/referenceNumber/\{referenceNumber}/amount/\{amount}/merchantCustomerReference/\{merchantCustomerReference}/merchantProductCode/\{merchantProductCode}/currency/\{currency}](https://mypaga.com/paga-webservices/oauth2/secure/merchantPayment/referenceNumber/\{referenceNumber}/amount/\{amount}/merchantCustomerReference/\{merchantCustomerReference}/merchantProductCode/\{merchantProductCode}/currency/\{currency})
      </td>
    </tr>

    <tr>
      <td>
        Headers:
      </td>

      <td>
        Authorization: Bearer `<access token>`\
        Accept: application/json OR application/xml
      </td>
    </tr>

    <tr>
      <td>
        Parameters:
      </td>

      <td>
        N/A
      </td>
    </tr>
  </tbody>
</Table>

**2. REST-Style parameterized URL with optional currency parameter omitted.**

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Argument Name
      </th>

      <th>
        Merchant Payment Request
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        URI:
      </td>

      <td>
        [https://mypaga.com/paga-webservices/oauth2/secure/merchantPayment/referenceNumber/\{referenceNumber}/amount/\{amount}/merchantCustomerReference/\{merchantCustomerReference}/merchantProductCode/\{merchantProductCode}](https://mypaga.com/paga-webservices/oauth2/secure/merchantPayment/referenceNumber/\{referenceNumber}/amount/\{amount}/merchantCustomerReference/\{merchantCustomerReference}/merchantProductCode/\{merchantProductCode})
      </td>
    </tr>

    <tr>
      <td>
        Headers:
      </td>

      <td>
        Authorization: Bearer `<access token>`\
        Accept: application/json OR application/xml
      </td>
    </tr>

    <tr>
      <td>
        Parameters:
      </td>

      <td>
        N/A
      </td>
    </tr>
  </tbody>
</Table>

**3. REST-style parameterized URL with the optional currency AND product code parameters omitted**

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Argument Name
      </th>

      <th>
        Merchant Payment Request
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        URI:
      </td>

      <td>
        [https://mypaga.com/paga-webservices/oauth2/secure/merchantPayment/referenceNumber/\{referenceNumber}/amount/\{amount}/merchantCustomerReference/\{merchantCustomerReference}](https://mypaga.com/paga-webservices/oauth2/secure/merchantPayment/referenceNumber/\{referenceNumber}/amount/\{amount}/merchantCustomerReference/\{merchantCustomerReference})
      </td>
    </tr>

    <tr>
      <td>
        Headers:
      </td>

      <td>
        Authorization: Bearer `<access token>`\
        Accept: application/json OR application/xml
      </td>
    </tr>

    <tr>
      <td>
        Parameters:
      </td>

      <td>

      </td>
    </tr>
  </tbody>
</Table>

**4. Regular non-parameterized http POST URL with request parameters**

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Argument Name
      </th>

      <th>
        Merchant Payment Request
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        URI:
      </td>

      <td>
        [https://mypaga.com/paga-webservices/oauth2/secure/merchantPayment](https://mypaga.com/paga-webservices/oauth2/secure/merchantPayment)
      </td>
    </tr>

    <tr>
      <td>
        Headers:
      </td>

      <td>
        Authorization: Bearer `<access token>`\
        Accept: application/json OR application/xml
      </td>
    </tr>

    <tr>
      <td>
        Parameters:
      </td>

      <td>
        referenceNumber=\{referenceNumber}\&amount=\{amount}\&merchantCustomerReference=\{merchantCustomerReference}
      </td>
    </tr>
  </tbody>
</Table>

**Response Sample**

**Sample Merchant Payment Responses**

```json
{"merchantPaymentResult":
            {   "amount":600.0,"transactionId":"00PF9","confirmationCode":0124HDSUE,
                "agentCommission":null,"fee":0.0,
                "currency":null,"exchangeRate":null
            }
        }
```

## 2. Money Transfer

This operation allows you to credit a user's paga account.

The parameters provided for this operation are:

* **referenceNumber** = `<unique reference number>`\
  This is a unique reference number provided by the client to uniquely identify the transaction and for use in retrieving the transaction records later

* **amount** = `<amount>`\
  Amount to be transferred

* **skipMessaging** = `<skipMessaging>`\
  Turn off Notification of User about payment made to their account.

<Table align={["left","left","left","left"]}>
  <thead>
    <tr>
      <th>
        Argument Name
      </th>

      <th>
        Type
      </th>

      <th>
        Mandatory(M)/Optional(O)
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        referenceNumber
      </td>

      <td>
        String
      </td>

      <td>
        M
      </td>

      <td>
        This is a unique reference number provided by the client to uniquely identify the transaction and for use in retrieving the transaction records later
      </td>
    </tr>

    <tr>
      <td>
        amount
      </td>

      <td>
        double
      </td>

      <td>
        M
      </td>

      <td>
        Amount to be transferred
      </td>
    </tr>

    <tr>
      <td>
        skipMessaging
      </td>

      <td>
        boolean
      </td>

      <td>
        M
      </td>

      <td>
        Turn off Notification of User about payment made to their account.
      </td>
    </tr>
  </tbody>
</Table>

**Request Samples**\
There are several ways in which this operation can be executed

**REST-type url with the referenceNumber and user's publicId provided.**

**1. REST-style parameterized URL with all parameters provided**

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Argument Name
      </th>

      <th>
        Money Transfer Request
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        URI:
      </td>

      <td>
        [https://mypaga.com/paga-webservices/oauth2/secure/moneyTransfer/referenceNumber/\{referenceNumber}/amount/\{amount}/skipMessaging/\{skipMessaging}](https://mypaga.com/paga-webservices/oauth2/secure/moneyTransfer/referenceNumber/\{referenceNumber}/amount/\{amount}/skipMessaging/\{skipMessaging})
      </td>
    </tr>

    <tr>
      <td>
        Headers:
      </td>

      <td>
        Authorization: Bearer `<access token>`\
        Accept: application/json
      </td>
    </tr>

    <tr>
      <td>
        Parameters:
      </td>

      <td>
        N/A
      </td>
    </tr>
  </tbody>
</Table>

**2. REST-style parameterized URL with the optional skipMessaging parameter omitted**

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Argument Name
      </th>

      <th>
        Money Transfer Request
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        URI:
      </td>

      <td>
        [https://mypaga.com/paga-webservices/oauth2/secure/moneyTransfer/referenceNumber/\{referenceNumber}/amount/\{amount}/](https://mypaga.com/paga-webservices/oauth2/secure/moneyTransfer/referenceNumber/\{referenceNumber}/amount/\{amount}/)
      </td>
    </tr>

    <tr>
      <td>
        Headers
      </td>

      <td>
        Authorization: Bearer `<access token>`\
        Accept: application/json
      </td>
    </tr>

    <tr>
      <td>
        Parameters:
      </td>

      <td>
        N/A
      </td>
    </tr>
  </tbody>
</Table>

**Response Sample**

```json JSON
{"moneyTransferResult":
     {   "errorCode":null,"errorMessage":null,"transactionId":23400,
       "amount":500.0,"fee":50.0,"currency":null,
         "exchangeRate":null,"withdrawalCode":null
     }
 }
```

## 3. User Details

This Operation allows the client to get the user's personal details. The data requested is included in the authentication and authorization request in the **data** parameter. Additionally, the **scope** parameter must contain the **USER\_DETAILS\_REQUEST** option.

* **FIRST\_NAME:** Get the user's first name
* **LAST\_NAME:** Get the user's last name
* **MOBILE\_NUMBER:** Get the user's paga mobile number
* **EMAIL:** Get the user's paga email address.
* **USERNAME:** Get the user's paga username
* **ACCOUNT\_BALANCE:** To get the user's account balance
* **PAGA\_NUBAN:** To get the user's PAGA NUBAN

**Parameters passed to the operation.**

* **publicId (optional)**\
  This public Id is passed if the request is initiated from a web redirect, e.g. from the Paga business portal. In order to verify that the request is genuine, the parameter is passed along. Normal requests won't require that parameter.

<Table align={["left","left","left","left"]}>
  <thead>
    <tr>
      <th>
        Argument Name
      </th>

      <th>
        Type
      </th>

      <th>
        Mandatory(M)/Optional(O)
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        referenceNumber
      </td>

      <td>

      </td>

      <td>

      </td>

      <td>
        This is a unique reference number provided by the client to uniquely identify the transaction and for use in retrieving the transaction records later.
      </td>
    </tr>
  </tbody>
</Table>

* **referenceNumber**\
  This is a unique reference number provided by the client to uniquely identify the transaction and for use in retrieving the transaction records later.

**Request Samples**\
There are several ways in which this operation can be executed

**REST-type url with the referenceNumber and user's publicId provided.**

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Argument Name
      </th>

      <th>
        User Details Request
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        URI:
      </td>

      <td>
        [https://mypaga.com/paga-webservices/oauth2/secure/getUserDetails/publicId/](https://mypaga.com/paga-webservices/oauth2/secure/getUserDetails/publicId/)`<publicId>`/referenceNumber/`<referenceNumber>`
      </td>
    </tr>

    <tr>
      <td>
        Headers:
      </td>

      <td>
        N/A
      </td>
    </tr>

    <tr>
      <td>
        Parameters:
      </td>

      <td>
        referenceNumber : `<referenceNumber>` (required)
      </td>
    </tr>
  </tbody>
</Table>

REST-type URL with only the referenceNumber provided

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Argument Name
      </th>

      <th>
        User Details Request
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        URI:
      </td>

      <td>
        [https://mypaga.com/paga-webservices/oauth2/secure/getUserDetails/referenceNumber/](https://mypaga.com/paga-webservices/oauth2/secure/getUserDetails/referenceNumber/)`<referenceNumber>`
      </td>
    </tr>

    <tr>
      <td>
        Headers:
      </td>

      <td>
        N/A
      </td>
    </tr>

    <tr>
      <td>
        Parameters:
      </td>

      <td>
        referenceNumber : `<referenceNumber>` (required)
      </td>
    </tr>
  </tbody>
</Table>

**Regular non-parameterized http POST URL with request parameters**

**Sample Response** <br />**User Details Response**

```json
{"detailsResult":
    {"errorCode":null,"errorMessage":null,"details":
      {"publicId":"CDAA6432-5416-44D9-894A-0349EA84575D","lastName":"Doe",
        "username":"johndoe","accountBalance":9918800.0,"firstName":"John",
          "email":"xxxxxxxx@gmail.com"
      }
    }
}
```

**Error Response**

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        User Details Response (Error)
      </th>

      <th>

      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        URI:
      </td>

      <td>
        N/A (HTTP response)
      </td>
    </tr>

    <tr>
      <td>
        Headers:
      </td>

      <td>
        N/A
      </td>
    </tr>

    <tr>
      <td>
        Parameters:
      </td>

      <td>
        errorCode=`<error code>`\
        error\_description=`<error description>`
      </td>
    </tr>
  </tbody>
</Table>

## 4. Money Transfer To Bank

This operation allows you to credit a user's bank account.

The parameters provided for this operation are:

* **externalReferenceNumber** = `<unique reference number>`\
  This is a unique reference number provided by the client to uniquely identify the transaction and for use in retrieving the transaction records later

* **amount** = `<amount>`\
  Amount to be transferred

* **destinationBankPublicId** = `<destinationBankPublicId>`\
  The Paga bank UUID identifying the bank to which the deposit will be made. In order to get the list of supported banks and bank UUIDs, execute the getBanks operation defined in this document. Bank codes will not change though additional banks may be added to the list in the future.

* **destinationBankAccountNumber** = `<destinationBankAccountNumber>`\
  The ten digit NUBAN bank account number for the account to which the deposit will be made. This number should be a valid account number for the destination bank as specified by the destinationBankCode parameter above. Executing operation will validate this number and if valid, return the account holder name as stored at the bank for this account.

* **recipientPhoneNumber** = `<recipientPhoneNumber>`\
  The mobile phone number of the recipient of the deposit to bank transaction. Either one or both of this parameter and the recipientEmail parameter must be provided. If this parameter is provided, this operation will validate that it is a valid phone number.

* **recipientFirstName** = `<recipientFirstName>`\
  The first name of the recipient.

* **recipientLastName** = `<recipientLastName>`\
  The last name of the recipient.

**Request Samples**\
**1. REST-style parameterized URL with all parameters provided**

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>

      </th>

      <th>

      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        URI:
      </td>

      <td>
        [https://mypaga.com/paga-webservices/oauth2/secure/moneyTransferToBank/amount/\{amount}/destinationBankPublicId/\{destinationBankPublicId}/destinationBankAccountNumber/\{destinationBankAccountNumber}/recipientPhoneNumber/\{recipientPhoneNumber}/recipientFirstName/\{recipientFirstName}/recipientLastName/\{recipientLastName}/recipientEmail/\{recipientEmail}/externalReferenceNumber/\{externalReferenceNumber}](https://mypaga.com/paga-webservices/oauth2/secure/moneyTransferToBank/amount/\{amount}/destinationBankPublicId/\{destinationBankPublicId}/destinationBankAccountNumber/\{destinationBankAccountNumber}/recipientPhoneNumber/\{recipientPhoneNumber}/recipientFirstName/\{recipientFirstName}/recipientLastName/\{recipientLastName}/recipientEmail/\{recipientEmail}/externalReferenceNumber/\{externalReferenceNumber})
      </td>
    </tr>

    <tr>
      <td>
        Headers
      </td>

      <td>
        Authorization: Bearer `<access token>`\
        Accept: application/json
      </td>
    </tr>

    <tr>
      <td>
        Parameters:
      </td>

      <td>
        N/A
      </td>
    </tr>
  </tbody>
</Table>

**Regular non-parameterized http POST URL with request parameters**

**Sample Response** <br />**Money Transfer to Bank Response**

```json
{
            "errorCode": null,
            "errorMessage": null,
            "transferReferenceNumber": "00000001089406",
            "transactionId": 1235522,
            "amount": 100,
            "fee": 52.5,
            "currency": "NGN",
            "exchangeRate": null,
            "accountHolderNameAtBank": "Test Customer",
            "vatFee": 0
        }
```