API endpoint fields are described in this specification as follows:
→ Request optionality
← Response optionality
O Field is optional
M Field is mandatory
C Field is conditional
NA Field does not need to be supplied. If supplied, it will be ignored.
TIP
Please note that string fields have a default maximum length of 256 characters unless specified otherwise.
Individual disbursements can be created and viewed using transactions APIs. The following paths are permitted:
| Operation | Path | Description |
|---|---|---|
| Create | POST /transactions/type/{transactiontype} | To be used for transaction creation when the provider’s API Gateway requires that the transaction type be identified in the URL. |
| View | GET /transactions/{transactionReference} | To view a transaction. |
| Update | PATCH /transactions/{transactionReference} | To update the transactionStatus of a transaction. |
For batches of disbursements, please refer to Bulk Disbursement.
Figure 2‑1 Transaction UML Class Diagram
| Transaction Object | |||||
|---|---|---|---|---|---|
| Name | Type | Description | Reference | Validation | |
| transactionReference | string | Unique reference for the transaction. This is returned in the response by API provider. | → NA ← M | ||
| requestingOrganisationTransactionReference | string | A reference provided by the requesting organisation that is to be associated with the transaction. | → O ← O | ||
| originalTransactionReference | string | For reversals and refunds, this field indicates the transaction which is the subject of the reversal. | → O ← O | ||
| creditParty | array | A series of key/value pairs that enable the credit party to be identified. Keys include MSISDN and Wallet Identifier. | → C ← C | Account Identifiers | creditParty must be supplied if debitParty is omitted. If debitParty is supplied, then creditParty is optional. |
| debitParty | array | A collection of key/value pairs that enable the debit party to be identified. Keys include MSISDN and Wallet Identifier. | → C ← C | Account Identifiers | debitParty must be supplied if creditParty is omitted. If creditParty is supplied, then debitParty is optional. |
| type | string | The harmonised Transaction Type (not required if passed in the URL) | → M ← M | Enumeration = Transaction Types | |
| subType | string | A non-harmonised sub-classification of the type of transaction. Values are not fixed, and usage will vary according to Provider. | → O ← O | ||
| transactionStatus | string | Indicates the status of the transaction as stored by the API provider. | → NA ← M | ||
| amount | string | The transaction amount. | → M ← M | Please refer to API Fundamentals document for amount validation rules. | |
| currency | string | Currency of the transaction amount. | → M ← M | Enumeration = ISO Currency Codes | |
| descriptionText | string | Free format text description of the transaction provided by the client. This can be provided as a reference for the receiver on a notification SMS and on an account statement. | → O ← O | ||
| fees | array | Allows the passing and/or returning of all fees pertaining to the transaction. | → O ← O | Fees Object | |
| geoCode | string | Indicates the geographic location from where the transaction was initiated. | → O ← O | ||
| oneTimeCode | string | A one-time code that can be supplied in the request or can be generated in the response depending upon the use case. An authorisation code can be supplied in this field for requests that have been pre-authorised. | → O ← O | ||
| requestingOrganisation | object | The originating organisation of the request. | → O ← O | Requesting Organisation Object | |
| servicingIdentity | string | The field is used to identify the servicing identity for transactions, e.g. till, POS ID, assistant ID. | → O ← O | ||
| transactionReceipt | string | Transaction receipt number as notified to the parties. This may differ from the Transaction Reference. | → NA ← O | ||
| creationDate | date-time | Date and time when the transaction was created by the API Provider | → NA ← O | ||
| modificationDate | date-time | Date and time when the transaction was modified by the API Provider | → NA ← O | ||
| requestDate | date-time | The creation date and time of the transaction as supplied by the client. | → O ← O | ||
| customData | string | A collection of key/value pairs that can be used for provider specific fields. | → O ← O | Custom Data Object | |
| metadata | array | A collection of key/value pairs. These can be used to populate additional transaction fields. | → O ← O | Metadata |
The Reversals API is used to reverse a P2P transfer. The originating transaction reference must be provided in the path to identify the payment to be reversed. For a partial reversal, the amount needs to be supplied.
For viewing reversals, the Transactions API should be used.
The supported path is POST /transactions/{originalTransactionReference}/reversals.
Figure 2‑2 Reversal UML Class Diagram
| Name | Type | Description | Reference | Validation | |
|---|---|---|---|---|---|
| transactionReference | string | Unique reference for the transaction. This is returned in the response by API provider. | → NA ← M | ||
| requesting OrganisationTransactionReference | string | A reference provided by the requesting organisation that is to be associated with the transaction. | → O ← O | ||
| originalTransactionReference | string | For reversals and refunds, this field indicates the transaction which is the subject of the reversal. | → NA ← M | ||
| creditParty | array | A series of key/value pairs that enable the credit party to be identified. Keys include MSISDN and Wallet Identifier. | → O ← O | Account Identifiers | |
| debitParty | array | A collection of key/value pairs that enable the debit party to be identified. Keys include MSISDN and Wallet Identifier. | → O ← O | Account Identifiers | |
| type | string | The harmonised Transaction Type | → M ← M | Enumeration = Transaction Types Note that only Reversals and Refunds (adjustments) are supported. | |
| subType | string | A non-harmonised sub-classification of the type of transaction. Values are not fixed, and usage will vary according to Provider. | → O ← O | ||
| transactionStatus | string | Indicates the status of the transaction as stored by the API provider. | → NA ← M | ||
| amount | string | The transaction Amount. | → O ← O | Please refer to API Fundamentals document for amount validation rules. | |
| currency | string | Currency of the transaction amount. | → O ← O | Enumeration = ISO Currency Codes | |
| descriptionText | string | Free format text description of the transaction provided by the client. This can be provided as a reference for the receiver on a notification SMS and on an account statement. | → O ← O | ||
| fees | array | Allows the passing and/or returning of all fees pertaining to the transaction. | → O ← O | Fees Object | |
| geoCode | string | Indicates the geographic location from where the transaction was initiated. | → O ← O | ||
| requestingOrganisation | object | The originating organisation of the request. | → O ← O | Requesting Organisation Object | |
| servicingIdentity | string | The field is used to identify the servicing identity for transactions, e.g. till, POS ID, assistant ID. | → O ← O | ||
| transactionReceipt | string | Transaction receipt number as notified to the parties. This may differ from the Transaction Reference. | → NA ← O | ||
| creationDate | date-time | Date and time when the transaction was created by the API Provider. | → NA ← O | ||
| modificationDate | date-time | Date and time when the transaction was modified by the API Provider. | → NA ← O | ||
| requestDate | date-time | The date and time of the transaction request as supplied by the client. | → O ← O | ||
| customData | string | A collection of key/value pairs that can be used for provider specific fields. | → O ← O | Custom Data Object | |
| metadata | array | A collection of key/value pairs. These can be used to populate additional properties that describe administrative information regarding the transaction. | → O ← O | Metadata |
The Mobile Money API allows organisations to submit, approve and view batches of disbursements. The following steps describe an end to end flow for processing batch disbursements. Two types of processing modes are supported:
The individual APIs that are referenced in the steps below are fully documented in subsequent sub-sections.
Creating a Batch
Client submits the batch for processing via POST /batchtransactions.
The client will return the requestState object indicating whether a callback will be provided or polling is required.
The API provider will parse the batch in order to determine whether the transactions are capable of being processed.
Once parsing has completed, the API provider will set the batch status in the batchTransactions object to ‘completed’.
Verifying a Batch
The client will be able to retrieve the batch transaction object by invoking GET /batchtransactions using the object reference provided by the requestState object. Alternatively, if Callback is specified, the client will receive the representation of the batchTransactions object to their nominated URL set in the X-Callback-URL header.
If errors are indicated, i.e. some of the transactions failed parsing, the client is able to retrieve the errors via GET /batchtransactions/rejections. Successfully completed transactions can be viewed via GET /batchtransactions/completions.
Creating a Batch
Client submits the batch for processing via POST /batchtransactions.
The client will return the requestState object indicating whether a callback will be provided or polling is required.
The API provider will parse the batch in order to determine whether the transactions are capable of being processed.
Once parsing has completed, the API provider will set the batch status in the batchTransactions object to ‘created’.
Verifying a Batch
The client will be able to retrieve the batch transaction object by invoking GET /batchtransactions using the object reference provided by the requestState object. Alternatively, if Callback is specified, the client will receive the representation of the batchTransactions object to their nominated URL set in the X-Callback-URL header.
If errors are indicated, i.e. some of the transactions failed parsing, the client is able to retrieve the errors via GET /batchtransactions/rejections.
Approving a Batch
A client can approve the batch for posting by issuing a PATCH /batchtransactions in order to update the status to ‘approved’.
As per step 2, a requestState object will be returned indicating whether a callback will be provided or polling is required.
The API provider will then post the transactions in the batch considering any scheduling considerations.
Once posting is completed, the API provider will set the batch status in the batchTransactions object to ‘completed’.
The client will be able to retrieve the batchTransactions object by invoking GET /batchtransactions using the object reference provided by the requestState object. Alternatively, if Callback is specified, the client will receive the representation of the batchTransactions object to their nominated URL set in the X-Callback-URL header.
The client will also be able to retrieve a list of successful transaction completions /batchtransactions/completions and transaction failures /batchtransactions/rejections.
This API enables clients to submit and approve a batch of transactions. The API allows transactions of multiple types to be included in a single batch. The following paths are permitted:
- Submit a batch: POST /batchtransactions
- Approve a batch: PATCH /bathtransactions/{batchID}. The Batch Status needs to be set to ‘approved’.
- View details regarding batch processing: GET /batchtransactions/{batchID}
Only asynchronous mode is supported for the POST and PATCH methods. For the GET method, only synchronous mode is supported.
There is a limit of 999,999 transaction records per batch.
Figure 2-3 Batch Transaction UML Class Diagram
| Batch Transaction Object | |||||
|---|---|---|---|---|---|
| Name | Type | Description | Reference | Validation | |
| batchID | string | Identifier for the Batch that is assigned by the API provider. This ID is used by the client on subsequent GET or PATCH methods. | → NA ← M | ||
| batchStatus | string | Indicates the status of the batch. | → O ← M | Enumeration = created, approved, completed | |
| Transactions | array | Collection of Transactions that are to be processed. Note that the representation of each completed transaction can be retrieved via the ‘/completions API. | → M ← NA | Transactions | |
| approvalDate | date-time | Indicates when the batch was approved as recorded by the API provider. | → NA ← M | ||
| completionDate | date-time | Indicates when the batch was completed as recorded by the API provider. | → NA ← M | ||
| batchTitle | string | Client-provided title for the batch. | → O ← O | ||
| batchDescription | string | Client-provided description of the batch. | → O ← O | ||
| processingFlag | boolean | Indicates whether the batch is currently undergoing processing by the API Provider. | → NA ← O | ||
| completedCount | integer | Indicates the number of records that have been successfully completed. | → NA ← O | ||
| parsingSuccessCount | integer | Indicates the number of records that have been parsed successfully. | → NA ← O | ||
| rejectionCount | integer | Indicates the number of records that have been rejected, either during parsing or during final processing. | → NA ← O | ||
| requestingOrganisation | object | The originating organisation of the request. | → O ← O | Requesting Organisation | |
| scheduledStartDate | date-time | If the batch has been scheduled, the expected start time is provided here. | → O ← O | ||
| creationDate | date-time | Indicates when the batch was created as recorded by the API provider. | → NA ← O | ||
| modificationDate | date-time | Indicates when the batch was modified as recorded by the API provider. | → NA ← O | ||
| requestDate | date-time | The date and time of the batch request as supplied by the client. | → O ← O | ||
| customData | string | A collection of key/value pairs that can be used for provider specific fields. | → O ← O | Custom Data Object |
This API enables clients to retrieve information on all transactions that have either failed parsing or have failed to complete. Only the GET method is supported. The path is batchtransactions/{batchID}/rejections.
To filter the number of records returned, the following query strings can be used:
| Parameter | Type | Format | Description |
|---|---|---|---|
| limit | integer | N/A | Supports pagination. If this is not supplied, then the server will apply a limit of 50 records returned for each request. |
| offset | integer | N/A | Supports pagination. This value will indicate the cursor position from where to retrieve the set of records. For example, a limit of 50 and offset of 10 will return records 11 to 60. |
| fromDateTime | string | date-time | Indicates the minimum creationDate for which records should be returned. |
| toDateTime | string | date-time | Indicates the maximum creationDate for which records should be returned. |
TIP
Note: HTTP response headers are returned with each response indicating the total number of records available (X-Records-Available-Count) and total number of records returned (X-Records-Returned-Count).
Figure 2-4 Batch Rejection UML Class Diagram
| Batch Rejection Object | |||||
|---|---|---|---|---|---|
| Name | Type | Description | Reference | Validation | |
| transactionReference | string | Transaction Reference as assigned by the API provider. | → NA ← O | ||
| requestingOrganisationTransactionReference | string | A reference provided by the requesting organisation that is to be associated with the transactions. | → NA ← O | ||
| creditParty | array | The credit party identifiers for the transaction as specific in the batch request. | → NA ← M | Account Identifiers | |
| debitParty | array | The debit party identifiers for the transaction as specific in the batch request. | → NA ← M | Account Identifiers | |
| rejectionReason | string | The reason for the transaction request as indicated by the API provider. | → NA ← M | ||
| rejectionDate | date-time | Date and time of the rejection. | → NA ← M | ||
| customData | string | A collection of key/value pairs that can be used for provider specific fields. | → O ← O | Custom Data Object |
This API lists all transactions that have successfully completed for a given batch. Only the GET method is supported. The path format is batchtransactions/{batchID}/completions.
To filter the number of records returned, the following query strings can be used:
| Parameter | Type | Format | Description |
|---|---|---|---|
| limit | integer | N/A | Supports pagination. If this is not supplied, then the server will apply a limit of 50 records returned for each request. |
| offset | integer | N/A | Supports pagination. This value will indicate the cursor position from where to retrieve the set of records. For example, a limit of 50 and offset of 10 will return records 11 to 60. |
| fromDateTime | string | date-time | Indicates the minimum creationDate for which records should be returned. |
| toDateTime | string | date-time | Indicates the maximum creationDate for which records should be returned. |
TIP
Note: HTTP response headers are returned with each response indicating the total number of records available (X-Records-Available-Count) and total number of records returned (X-Records-Returned-Count)
Figure 2-5 Batch Completion UML Class Diagram
| Batch Completion Object | |||||
|---|---|---|---|---|---|
| Name | Type | Description | Reference | Validation | |
| transactionReference | string | Transaction Reference as assigned by the API provider. | → NA ← M | ||
| requestingOrganisationTransactionReference | string | A reference provided by the requesting organisation that is to be associated with the transactions. | → NA ← O | ||
| creditParty | array | The credit party identifiers for the transaction as specific in the batch request. | → NA ← M | Account Identifiers | |
| debitParty | array | The debit party identifiers for the transaction as specific in the batch request. | → NA ← M | Account Identifiers | |
| completionDate | date-time | Date and time indicating when the transaction was completed. | → NA ← M | ||
| link | string | Provides a URL to the transaction resource. | → NA ← M | ||
| customData | string | A collection of key/value pairs that can be used for provider specific fields. | → O ← O | Custom Data Object |
Using the mobile money APIs, disbursement organisations can:
Two methods are provided for identifying a disbursement organisation account, the single identifier method, and the multiple identifiers method.
In the scenario where one identifier suffices to uniquely identify an account, the following path is to be used: /accounts/{identifierType}/{identifier}.
Where a single identifier is not sufficient to identify an account, the following path is to be used: /accounts/{accountIdentifier1}@{value1}${accountIdentifier2}@{value2}${accountIdentifier3}@{value3}.
The path uses a $ delimiter to separate each identifier, up to a limit of three account identifiers. Each key/value is delimited by @.
The list of permitted account identifiers supported by the Mobile Money API can be found in the Account Identifiers section.
A disbursement organisation should use this API to return a list of transactions against their account. One of the following paths can be used
GET /accounts/{identifierType}/{identifier}/transactions
or GET /accounts/{Account Identifiers}/transactions
To filter the number of records returned, the following query strings can be used:
| Parameter | Type | Format | Description |
|---|---|---|---|
| limit | integer | N/A | Supports pagination. If this is not supplied, then the server will apply a limit of 50 records returned for each request. |
| offset | integer | N/A | Supports pagination. This value will indicate the cursor position from where to retrieve the set of records. For example, a limit of 50 and offset of 10 will return records 11 to 60. |
| fromDateTime | string | date-time | Indicates the minimum date creationDate for which records should be returned. |
| toDateTime | string | date-time | Indicates the maximum date creationDate for which records should be returned. |
| transactionStatus | string | N/A | Indicates the status of the transactions to be returned. |
| transactionType | string | N/A | Indicates the type of the transactions to be returned. |
Note 1:
For a harmonised behavior, API Providers should make sure that the transactions are returned in descending date created order.
Note 2:
HTTP response headers are returned with each response indicating the total number of records available (X-Records-Available-Count) and total number of records returned (X-Records-Returned-Count).
Figure 2‑6 Account Transaction UML Class Diagram
Using the Account Balances API, a disbursement organisation can check their balance. Permitted paths are:
GET /accounts/{identifierType}/{identifier}/balance
or GET /accounts/{Account Identifiers}/balance
A ‘self’ version is also available where the calling API client is the organisation account holder. Path for the ‘self’ version is /accounts/balance.
Figure 2‑7 Account Balance UML Class Diagram
| Name | Type | Description | Reference | Validation | |
|---|---|---|---|---|---|
| accountStatus | string | Indicates a harmonised representation of the account state. This will be shown as ‘available’ or ‘unavailable’. A state of ‘unavailable’ means that the account is in a state that does not allow posting of transactions. Unregistered indicates that although not available, a transaction created with the account identifier(s) will result in an unregistered voucher creation. | → NA ← O | Enumeration = available, unavailable, unregistered | |
| currentBalance | string | The current outstanding balance on the account. | → NA ← O | Please refer to API Fundamentals document for amount validation rules. | |
| availableBalance | string | Indicates the balance that is able to be debited for an account. This balance is only provided on some API provider systems. | → NA ← O | Please refer to API Fundamentals document for amount validation rules. | |
| reservedBalance | string | Indicates the portion of the balance that is reserved, i.e. intended to be debited. This balance is only provided on some API provider systems. | → NA ← O | Please refer to API Fundamentals document for amount validation rules. | |
| unClearedBalance | string | Indicates the sum of uncleared funds in an account, i.e. those that are awaiting a credit confirmation. | → NA ← O | Please refer to API Fundamentals document for amount validation rules. | |
| currency | string | Currency for all returned balances. | → NA ← O | Enumeration = ISO Currency Codes |
The Account Identifier object enables one or multiple identifiers to be provided to enable the recipient system to resolve the account/party.
| Name | Type | Description | Reference | Validation | |
|---|---|---|---|---|---|
| key | string | Provides the account identifier type. | → M ← M | Enumeration = Account Identifiers | |
| value | string | Provides the account identifier type value. | → M ← M |
The metadata object allows fields to be specified to convey administrative information regarding the associated resource in the form of key/value pairs. Additional fields should only be used where no suitable defined field match can be found. The number of key/value pairs is limited to 20.
| Name | Type | Description | Reference | Validation | |
|---|---|---|---|---|---|
| key | string | Identifies the type of additional fields. | → M ← M | ||
| value | string | Identifies the value of the additional field. | → M ← M |
The custom data object allows additional fields to be specified for the associated resource in the form of key/value pairs. Additional fields should only be used where no suitable defined field match can be found. The number of key/value pairs is limited to 20.
| Name | Type | Description | Reference | Validation | |
|---|---|---|---|---|---|
| key | string | Identifies the type of additional fields. | → M ← M | ||
| value | string | Identifies the value of the additional field. | → M ← M |
An object that enables fees that are differentiated by type to be provided and/or returned.
| Name | Type | Description | Reference | Validation | |
|---|---|---|---|---|---|
| feeType | string | Defines the type of fee. | → M ← M | ||
| feeAmount | string | Defines the amount of the fee. | → M ← M | Please refer to API Fundamentals document for amount validation rules. | |
| feeCurrency | string | Defines the currency for the given fee. | → M ← M | Enumeration = ISO Currency Codes |
An object that details the originating organisation of the request.
| Name | Type | Description | Reference | Validation | |
|---|---|---|---|---|---|
| requestingOrganisationIdentifierType | string | Identifies the identifier type of the requesting organisation. | → M ← M | ‘swiftbic’, ‘lei’, ‘organisationid | |
| requestingOrganisationIdentifier | string | Contains the requesting organisation identifier. | → M ← M |
The three-character alphabetic code for currency as defined by ISO 4217 is to be used for all currency fields. The full list of codes is maintained by Swiss Interbank Clearing on behalf of the International Organisation for Standardisation. This list can be obtained via the following website - http://www.currency-iso.org/en/home/tables/table-a1.html (opens new window).
A transaction type is used to classify the nature of a transaction.
| Code | Description |
|---|---|
| disbursement | Disbursement of funds (making payments from an organisation (business, NGO, government entity) to a mobile money recipient. |
| reversal | Reversal of a prior transaction to return funds to the payer. |
The Account Identifier enumeration lists all possible means to identify a target account. Identifiers can be combined if necessary, to provide a unique identifier for the target account.
| Code | Short Description | Type | Description |
|---|---|---|---|
| accountcategory | Account Category | string | Can be used to identify the sources of funds category where there are multiple accounts (wallets) held against an account holder. |
| bankaccountno | Bank Account Number | string | Financial institution account number that is typically known by the account holder. |
| accountrank | Account Rank | string | Is used to identify the rank of the source of funds where there are multiple accounts (wallets) held against an account holder. |
| identityalias | Identity Alias | string | An alias for the identity, e.g. short code for an agent till. |
| iban | IBAN | string | Internationally agreed system of identifying bank accounts across national borders to facilitate the communication and processing of cross border transactions. Can contain up to 34 alphanumeric characters. |
| accountid | Account Holder Identity | string | Identifier for the account holder. |
| msisdn | MSISDN | string | Must contain between 6 and 15 consecutive digits First character can contain a ‘+’ or digit Can contain spaces. |
| swiftbic | SWIFTBIC | string | A bank identifier code (BIC) is a unique identifier for a specific financial institution. A BIC is composed of a 4-character bank code, a 2-character country code, a 2-character location code and an optional 3-character branch code. BICs are used by financial institutions for letters of credit, payments and securities transactions and other business messages between banks. Please refer to ISO 9362 (opens new window) for further information. |
| sortcode | Bank Sort Code | string | Sort code to identify the financial institution holding the account. |
| organisationid | Organisation Account Identifier | string | Used to identify the organisation for which a payment is to be made. |
| username | Username | string | Used to identify target account via an associated username. |
| walletid | Wallet Identifier | string | A means to identify a mobile money wallet, particularly where multiple wallets can be held against an MSISDN. typically used in conjunction with MSISDN or identity alias to identify a particular wallet. |
| linkref | Link Reference | string | A means to uniquely identify an account via an account to account link. E.g. wallet account link to bank account. |
| consumerno | Consumer Number | String | Identifies the consumer associated with the account. |
| serviceprovider | Service Provider | String | Provides a reference for a Service Provider. |
| storeid | Store ID | String | Identifies the transacting store / retail outlet. |
| bankname | Bank Name | String | Name of the bank. |
| bankaccounttitle | Bank Account Title | String | The title of the bank account. |
| emailaddress | Email Address | String | emailaddress of the party. |
| mandatereference | Debit Mandate Reference | String | A means to identify an account via a debit mandate reference. |