Pesaway Pesamoni API Documentation

Default

transactionsPost

Below are parameters and their respective expected responses.


/transactions

Usage and SDK Samples

NB: Use only required query parameters for intended purpose for example Accepting mobile payments
curl -v -H 'Content-Type: application/json' -H 'Accept: application/json' -X POST https://pesamoni.com/api/live/v1/transactions -d "{\"apiusername\":\"your api username\",\"apipassword\":\"your api password\", \"amount\":\"the amount\", \"reference\":\"your reference\", \"method\":\"acreceive\", \"mobile\":\"the mobile subscribers number in format starting with 256 for Uganda and 254 for Kenya\", \"genericmsg\":\"your generic message\", \"token\":\"your token\" }"
							
NB: Use only required query parameters for intended purpose
import pesamoni.*;
import pesamoni.auth.*;
import pesamoni.model.*;
import pesamoni.api.DefaultApi;

import java.io.File;
import java.util.*;

public class DefaultApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apipassword
        ApiKeyAuth apipassword = (ApiKeyAuth) defaultClient.getAuthentication("apipassword");
        apipassword.setApiKey("YOUR API PASSWORD");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apipassword.setApiKeyPrefix("Token");

        // Configure API key authorization: apiusername
        ApiKeyAuth apiusername = (ApiKeyAuth) defaultClient.getAuthentication("apiusername");
        apiusername.setApiKey("YOUR API USERNAME");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apiusername.setApiKeyPrefix("Token");

        DefaultApi apiInstance = new DefaultApi();
        String method = method_example; // String | Enter a request method. To check for request methods click here
        String amount = amount_example; // String | Enter the amount you would like to request for. 

This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept

String mobile = mobile_example; // String | Enter the mobile number you would like to execute the above method in format 256.... or 254...

This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, senderid, sendsms, sendairtime

String holdername = holdername_example; // String | Enter name of payer for Visa/MasterCard transactions

This method applies for request method cardaccept

String cardnumber = cardnumber_example; // String | Enter the Visa/MasterCard cardnumber

This method applies for request method cardaccept

String cvv = cvv_example; // String | Enter the Visa/MasterCard cvv

This method applies for request method cardaccept

String exp = exp_example; // String | Enter the Visa/MasterCard expiry date in the format MM/YYYY e.g 07/2030

This method applies for request method cardaccept

String currency = currency_example; // String | Enter the currency you intend to make the transaction for Visa/MasterCard based transactions

This method applies for request method cardaccept

String account = account_example; // String | Enter the Pesamoni account you would like to use for this transaction

This method applies for request method paybills

String reference = reference_example; // String | Enter your user generated transaction reference

This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, sendsms, transactionstatus, sendairtime, pesab2c, sendsms, cardaccept

String genericmsg = genericmsg_example; // String | Enter your user generated generic message for the requested transaction

This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept

String token = token_example; // String | Enter your user generated token for the above mentioned method

This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept

String bouquet = bouquet_example; // String | Enter the bouquet or package you would like to pay for

This method applies for request methods paybills

String payoption = payoption_example; // String | Enter your prefered payment option

This method applies for request methods paybills

String meternumber = meternumber_example; // String | Enter the meter number for the intended payment

This method applies for request methods paybills

try { inline_response_200 result = apiInstance.transactionsPost(method, amount, mobile, holdername, cardnumber, cvv, exp, currency, account, reference, genericmsg, token, bouquet, payoption, meternumber); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling DefaultApi#transactionsPost"); e.printStackTrace(); } } }
NB: Use only required query parameters for intended purpose
import pesamoni.api.DefaultApi;

public class DefaultApiExample {

    public static void main(String[] args) {
        DefaultApi apiInstance = new DefaultApi();
        String apiusername = apiusername_example; // String | Enter your Pesamoni Api username
        String apipassword = apipassword_example; // String | Enter your PEsamoni Api password
        String method = method_example; // String | Enter a request method. To check for request methods click here
        String amount = amount_example; // String | Enter the amount you would like to request for. 

This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept

String mobile = mobile_example; // String | Enter the mobile number you would like to execute the above method in format 256.... or 254...

This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, senderid, sendsms, sendairtime

String holdername = holdername_example; // String | Enter name of payer for Visa/MasterCard transactions

This method applies for request method cardaccept

String cardnumber = cardnumber_example; // String | Enter the Visa/MasterCard cardnumber

This method applies for request method cardaccept

String cvv = cvv_example; // String | Enter the Visa/MasterCard cvv

This method applies for request method cardaccept

String exp = exp_example; // String | Enter the Visa/MasterCard expiry date in the format MM/YYYY e.g 07/2030

This method applies for request method cardaccept

String currency = currency_example; // String | Enter the currency you intend to make the transaction for Visa/MasterCard based transactions

This method applies for request method cardaccept

String account = account_example; // String | Enter the Pesamoni account you would like to use for this transaction

This method applies for request method paybills

String reference = reference_example; // String | Enter your user generated transaction reference

This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, sendsms, transactionstatus, sendairtime, pesab2c, sendsms, cardaccept

String genericmsg = genericmsg_example; // String | Enter your user generated generic message for the requested transaction

This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept

String token = token_example; // String | Enter your user generated token for the above mentioned method

This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept

String bouquet = bouquet_example; // String | Enter the bouquet or package you would like to pay for

This method applies for request methods paybills

String payoption = payoption_example; // String | Enter your prefered payment option

This method applies for request methods paybills

String meternumber = meternumber_example; // String | Enter the meter number for the intended payment

This method applies for request methods paybills

try { inline_response_200 result = apiInstance.transactionsPost(apiusername, apipassword, method, amount, mobile, holdername, cardnumber, cvv, exp, currency, account, reference, genericmsg, token, bouquet, payoption, meternumber); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling DefaultApi#transactionsPost"); e.printStackTrace(); } } }
NB: Use only required query parameters for intended purpose
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apipassword)
[apiConfig setApiKey:@"YOUR_API_PASSWORD" forApiKeyIdentifier:@"apipassword"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apipassword"];

// Configure API key authorization: (authentication scheme: apiusername)
[apiConfig setApiKey:@"YOUR_API_USERNAME" forApiKeyIdentifier:@"apiusername"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apiusername"];

String *method = method_example; // Enter a request method. To check for request methods click here
String *amount = amount_example; // Enter the amount you would like to request for. 

This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept

String *mobile = mobile_example; // Enter the mobile number you would like to execute the above method in format 256.... or 254...

This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, senderid, sendsms, sendairtime

(optional) String *holdername = holdername_example; // Enter name of payer for Visa/MasterCard transactions

This method applies for request method cardaccept

(optional) String *cardnumber = cardnumber_example; // Enter the Visa/MasterCard cardnumber

This method applies for request method cardaccept

(optional) String *cvv = cvv_example; // Enter the Visa/MasterCard cvv

This method applies for request method cardaccept

(optional) String *exp = exp_example; // Enter the Visa/MasterCard expiry date in the format MM/YYYY e.g 07/2030

This method applies for request method cardaccept

(optional) String *currency = currency_example; // Enter the currency you intend to make the transaction for Visa/MasterCard based transactions

This method applies for request method cardaccept

(optional) String *account = account_example; // Enter the Pesamoni account you would like to use for this transaction

This method applies for request method paybills

(optional) String *reference = reference_example; // Enter your user generated transaction reference

This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, sendsms, transactionstatus, sendairtime, pesab2c, sendsms, cardaccept

(optional) String *genericmsg = genericmsg_example; // Enter your user generated generic message for the requested transaction

This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept

(optional) String *token = token_example; // Enter your user generated token for the above mentioned method

This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept

(optional) String *bouquet = bouquet_example; // Enter the bouquet or package you would like to pay for

This method applies for request methods paybills

(optional) String *payoption = payoption_example; // Enter your prefered payment option

This method applies for request methods paybills

(optional) String *meternumber = meternumber_example; // Enter the meter number for the intended payment

This method applies for request methods paybills

(optional) DefaultApi *apiInstance = [[DefaultApi alloc] init]; [apiInstance transactionsPostWith:method amount:amount mobile:mobile holdername:holdername cardnumber:cardnumber cvv:cvv exp:exp currency:currency account:account reference:reference genericmsg:genericmsg token:token bouquet:bouquet payoption:payoption meternumber:meternumber completionHandler: ^(inline_response_200 output, NSError* error) { if (output) { NSLog(@"%@", output); } if (error) { NSLog(@"Error: %@", error); } }];
NB: Use only required query parameters for intended purpose
var PesawayPesamoniApiDocumentation = require('pesaway_pesamoni_api_documentation');
var defaultClient = PesawayPesamoniApiDocumentation.ApiClient.instance;

// Configure API key authorization: apipassword
var apipassword = defaultClient.authentications['apipassword'];
apipassword.apiKey = "YOUR API PASSWORD"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apipassword.apiKeyPrefix['apipassword'] = "Token"

// Configure API key authorization: apiusername
var apiusername = defaultClient.authentications['apiusername'];
apiusername.apiKey = "YOUR API USERNAME"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiusername.apiKeyPrefix['apiusername'] = "Token"

var api = new PesawayPesamoniApiDocumentation.DefaultApi()

var method = method_example; // {String} Enter a request method. To check for request methods click here

var amount = amount_example; // {String} Enter the amount you would like to request for. 

This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept

var opts = { 'mobile': mobile_example, // {String} Enter the mobile number you would like to execute the above method in format 256.... or 254...

This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, senderid, sendsms, sendairtime

'holdername': holdername_example, // {String} Enter name of payer for Visa/MasterCard transactions

This method applies for request method cardaccept

'cardnumber': cardnumber_example, // {String} Enter the Visa/MasterCard cardnumber

This method applies for request method cardaccept

'cvv': cvv_example, // {String} Enter the Visa/MasterCard cvv

This method applies for request method cardaccept

'exp': exp_example, // {String} Enter the Visa/MasterCard expiry date in the format MM/YYYY e.g 07/2030

This method applies for request method cardaccept

'currency': currency_example, // {String} Enter the currency you intend to make the transaction for Visa/MasterCard based transactions

This method applies for request method cardaccept

'account': account_example, // {String} Enter the Pesamoni account you would like to use for this transaction

This method applies for request method paybills

'reference': reference_example, // {String} Enter your user generated transaction reference

This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, sendsms, transactionstatus, sendairtime, pesab2c, sendsms, cardaccept

'genericmsg': genericmsg_example, // {String} Enter your user generated generic message for the requested transaction

This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept

'token': token_example, // {String} Enter your user generated token for the above mentioned method

This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept

'bouquet': bouquet_example, // {String} Enter the bouquet or package you would like to pay for

This method applies for request methods paybills

'payoption': payoption_example, // {String} Enter your prefered payment option

This method applies for request methods paybills

'meternumber': meternumber_example // {String} Enter the meter number for the intended payment

This method applies for request methods paybills

}; var callback = function(error, data, response) { if (error) { console.error(error); } else { console.log('API called successfully. Returned data: ' + data); } }; api.transactionsPost(method, amount, opts, callback);
NB: Use only required query parameters for intended purpose
using System;
using System.Diagnostics;
using pesamoni.Api;
using pesamoni.Client;
using pesamoni.Model;

namespace Example
{
    public class transactionsPostExample
    {
        public void main()
        {
            
            // Configure API key authorization: apipassword
            Configuration.Default.ApiKey.Add("apipassword", "YOUR_API_PASSWORD");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apipassword", "Bearer");
            // Configure API key authorization: apiusername
            Configuration.Default.ApiKey.Add("apiusername", "YOUR_API_USERNAME");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apiusername", "Bearer");

            var apiInstance = new DefaultApi();
            var method = method_example;  // String | Enter a request method. To check for request methods click here
            var amount = amount_example;  // String | Enter the amount you would like to request for. 

This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept

var mobile = mobile_example; // String | Enter the mobile number you would like to execute the above method in format 256.... or 254...

This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, senderid, sendsms, sendairtime

(optional) var holdername = holdername_example; // String | Enter name of payer for Visa/MasterCard transactions

This method applies for request method cardaccept

(optional) var cardnumber = cardnumber_example; // String | Enter the Visa/MasterCard cardnumber

This method applies for request method cardaccept

(optional) var cvv = cvv_example; // String | Enter the Visa/MasterCard cvv

This method applies for request method cardaccept

(optional) var exp = exp_example; // String | Enter the Visa/MasterCard expiry date in the format MM/YYYY e.g 07/2030

This method applies for request method cardaccept

(optional) var currency = currency_example; // String | Enter the currency you intend to make the transaction for Visa/MasterCard based transactions

This method applies for request method cardaccept

(optional) var account = account_example; // String | Enter the Pesamoni account you would like to use for this transaction

This method applies for request method paybills

(optional) var reference = reference_example; // String | Enter your user generated transaction reference

This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, sendsms, transactionstatus, sendairtime, pesab2c, sendsms, cardaccept

(optional) var genericmsg = genericmsg_example; // String | Enter your user generated generic message for the requested transaction

This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept

(optional) var token = token_example; // String | Enter your user generated token for the above mentioned method

This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept

(optional) var bouquet = bouquet_example; // String | Enter the bouquet or package you would like to pay for

This method applies for request methods paybills

(optional) var payoption = payoption_example; // String | Enter your prefered payment option

This method applies for request methods paybills

(optional) var meternumber = meternumber_example; // String | Enter the meter number for the intended payment

This method applies for request methods paybills

(optional) try { inline_response_200 result = apiInstance.transactionsPost(method, amount, mobile, holdername, cardnumber, cvv, exp, currency, account, reference, genericmsg, token, bouquet, payoption, meternumber); Debug.WriteLine(result); } catch (Exception e) { Debug.Print("Exception when calling DefaultApi.transactionsPost: " + e.Message ); } } } }
NB: Use only required query parameters for intended purpose
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apipassword
pesamoni\Configuration::getDefaultConfiguration()->setApiKey('apipassword', 'YOUR_API_PASSWORD');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// pesamoni\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apipassword', 'Bearer');
// Configure API key authorization: apiusername
pesamoni\Configuration::getDefaultConfiguration()->setApiKey('apiusername', 'YOUR_API_USERNAME');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// pesamoni\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apiusername', 'Bearer');

$api_instance = new Pesamoni\Client\Api\DefaultApi();

$method = method_example; // String | Enter a request method. To check for request methods click here
$amount = amount_example; // String | Enter the amount you would like to request for. 

This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept

$mobile = mobile_example; // String | Enter the mobile number you would like to execute the above method in format 256.... or 254...

This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, senderid, sendsms, sendairtime

$holdername = holdername_example; // String | Enter name of payer for Visa/MasterCard transactions

This method applies for request method cardaccept

$cardnumber = cardnumber_example; // String | Enter the Visa/MasterCard cardnumber

This method applies for request method cardaccept

$cvv = cvv_example; // String | Enter the Visa/MasterCard cvv

This method applies for request method cardaccept

$exp = exp_example; // String | Enter the Visa/MasterCard expiry date in the format MM/YYYY e.g 07/2030

This method applies for request method cardaccept

$currency = currency_example; // String | Enter the currency you intend to make the transaction for Visa/MasterCard based transactions

This method applies for request method cardaccept

$account = account_example; // String | Enter the Pesamoni account you would like to use for this transaction

This method applies for request method paybills

$reference = reference_example; // String | Enter your user generated transaction reference

This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, sendsms, transactionstatus, sendairtime, pesab2c, sendsms, cardaccept

$genericmsg = genericmsg_example; // String | Enter your user generated generic message for the requested transaction

This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept

$token = token_example; // String | Enter your user generated token for the above mentioned method

This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept

$bouquet = bouquet_example; // String | Enter the bouquet or package you would like to pay for

This method applies for request methods paybills

$payoption = payoption_example; // String | Enter your prefered payment option

This method applies for request methods paybills

$meternumber = meternumber_example; // String | Enter the meter number for the intended payment

This method applies for request methods paybills

try { $result = $api_instance->transactionsPost($method, $amount, $mobile, $holdername, $cardnumber, $cvv, $exp, $currency, $account, $reference, $genericmsg, $token, $bouquet, $payoption, $meternumber); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->transactionsPost: ', $e->getMessage(), PHP_EOL; } ?>
NB: Use only required query parameters for intended purpose
use Data::Dumper;
use pesamoni::Configuration;
use pesamoni::DefaultApi;

# Configure API key authorization: apipassword
$pesamoni::Configuration::api_key->{'apipassword'} = 'YOUR_API_PASSWORD';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$pesamoni::Configuration::api_key_prefix->{'apipassword'} = "Bearer";
# Configure API key authorization: apiusername
$pesamoni::Configuration::api_key->{'apiusername'} = 'YOUR_API_USERNAME';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$pesamoni::Configuration::api_key_prefix->{'apiusername'} = "Bearer";

my $api_instance = pesamoni::DefaultApi->new();
my $method = method_example; # String | Enter a request method. To check for request methods click here
my $amount = amount_example; # String | Enter the amount you would like to request for. 

This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept

my $mobile = mobile_example; # String | Enter the mobile number you would like to execute the above method in format 256.... or 254...

This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, senderid, sendsms, sendairtime

my $holdername = holdername_example; # String | Enter name of payer for Visa/MasterCard transactions

This method applies for request method cardaccept

my $cardnumber = cardnumber_example; # String | Enter the Visa/MasterCard cardnumber

This method applies for request method cardaccept

my $cvv = cvv_example; # String | Enter the Visa/MasterCard cvv

This method applies for request method cardaccept

my $exp = exp_example; # String | Enter the Visa/MasterCard expiry date in the format MM/YYYY e.g 07/2030

This method applies for request method cardaccept

my $currency = currency_example; # String | Enter the currency you intend to make the transaction for Visa/MasterCard based transactions

This method applies for request method cardaccept

my $account = account_example; # String | Enter the Pesamoni account you would like to use for this transaction

This method applies for request method paybills

my $reference = reference_example; # String | Enter your user generated transaction reference

This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, sendsms, transactionstatus, sendairtime, pesab2c, sendsms, cardaccept

my $genericmsg = genericmsg_example; # String | Enter your user generated generic message for the requested transaction

This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept

my $token = token_example; # String | Enter your user generated token for the above mentioned method

This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept

my $bouquet = bouquet_example; # String | Enter the bouquet or package you would like to pay for

This method applies for request methods paybills

my $payoption = payoption_example; # String | Enter your prefered payment option

This method applies for request methods paybills

my $meternumber = meternumber_example; # String | Enter the meter number for the intended payment

This method applies for request methods paybills

eval { my $result = $api_instance->transactionsPost(method => $method, amount => $amount, mobile => $mobile, holdername => $holdername, cardnumber => $cardnumber, cvv => $cvv, exp => $exp, currency => $currency, account => $account, reference => $reference, genericmsg => $genericmsg, token => $token, bouquet => $bouquet, payoption => $payoption, meternumber => $meternumber); print Dumper($result); }; if ($@) { warn "Exception when calling DefaultApi->transactionsPost: $@\n"; }
NB: Use only required query parameters for intended purpose
from __future__ import print_statement
import time
import pesamoni
from pesamoni.rest import ApiException
from pprint import pprint

# Configure API key authorization: apipassword
pesamoni.configuration.api_key['apipassword'] = 'YOUR_API_PASSWORD'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# pesamoni.configuration.api_key_prefix['apipassword'] = 'Bearer'
# Configure API key authorization: apiusername
pesamoni.configuration.api_key['apiusername'] = 'YOUR_API_USERNAME'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# pesamoni.configuration.api_key_prefix['apiusername'] = 'Bearer'

# create an instance of the API class
api_instance = pesamoni.DefaultApi()
method = method_example # String | Enter a request method. To check for request methods click here
amount = amount_example # String | Enter the amount you would like to request for. 

This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept

mobile = mobile_example # String | Enter the mobile number you would like to execute the above method in format 256.... or 254...

This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, senderid, sendsms, sendairtime

(optional) holdername = holdername_example # String | Enter name of payer for Visa/MasterCard transactions

This method applies for request method cardaccept

(optional) cardnumber = cardnumber_example # String | Enter the Visa/MasterCard cardnumber

This method applies for request method cardaccept

(optional) cvv = cvv_example # String | Enter the Visa/MasterCard cvv

This method applies for request method cardaccept

(optional) exp = exp_example # String | Enter the Visa/MasterCard expiry date in the format MM/YYYY e.g 07/2030

This method applies for request method cardaccept

(optional) currency = currency_example # String | Enter the currency you intend to make the transaction for Visa/MasterCard based transactions

This method applies for request method cardaccept

(optional) account = account_example # String | Enter the Pesamoni account you would like to use for this transaction

This method applies for request method paybills

(optional) reference = reference_example # String | Enter your user generated transaction reference

This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, sendsms, transactionstatus, sendairtime, pesab2c, sendsms, cardaccept

(optional) genericmsg = genericmsg_example # String | Enter your user generated generic message for the requested transaction

This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept

(optional) token = token_example # String | Enter your user generated token for the above mentioned method

This method applies for request methods acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept

(optional) bouquet = bouquet_example # String | Enter the bouquet or package you would like to pay for

This method applies for request methods paybills

(optional) payoption = payoption_example # String | Enter your prefered payment option

This method applies for request methods paybills

(optional) meternumber = meternumber_example # String | Enter the meter number for the intended payment

This method applies for request methods paybills

(optional) try: api_response = api_instance.transactions_post(method, amount, mobile=mobile, holdername=holdername, cardnumber=cardnumber, cvv=cvv, exp=exp, currency=currency, account=account, reference=reference, genericmsg=genericmsg, token=token, bouquet=bouquet, payoption=payoption, meternumber=meternumber) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->transactionsPost: %s\n" % e)

Parameters

Query parameters
Name Description
method*
String
Enter a request method. To check for request methods <a href=''>click here</a>
Required
amount*
String
Enter the amount you would like to request for. <p style="color:red">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, acsendbank, pesab2c, sendairtime, cardaccept</b></p>
Required
mobile
String
Enter the mobile number you would like to execute the above method in format 256.... or 254...<p style="color:red">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, senderid, sendsms, sendairtime</b></p>
holdername
String
Enter name of payer for Visa/MasterCard transactions<p style="color:red">This method applies for request method <b>cardaccept</b></p>
cardnumber
String
Enter the Visa/MasterCard cardnumber<p style="color:red">This method applies for request method <b>cardaccept</b></p>
cvv
String
Enter the Visa/MasterCard cvv<p style="color:red">This method applies for request method <b>cardaccept</b></p>
exp
String
Enter the Visa/MasterCard expiry date in the format MM/YYYY e.g 07/2030<p style="color:red">This method applies for request method <b>cardaccept</b></p>
currency
String
Enter the currency you intend to make the transaction for Visa/MasterCard based transactions<p style="color:red">This method applies for request method <b>cardaccept</b></p>
account
String
Enter the Pesamoni account you would like to use for this transaction<p style="color:red">This method applies for request method <b>paybills</b></p>
reference
String
Enter your user generated transaction reference<p style="color:red">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, transactionstatus, sendairtime, pesab2c, sendsms, cardaccept</b></p>
genericmsg
String
Enter your user generated generic message for the requested transaction<p style="color:red">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept</b></p>
token
String
Enter your user generated token for the above mentioned method<p style="color:red">This method applies for request methods <b>acreceive, acreceivekeac, acsend, acsendkeac, sendsms, sendairtime, pesab2c, sendsms, cardaccept</b></p>
bouquet
String
Enter the bouquet or package you would like to pay for<p style="color:red">This method applies for request methods <b>paybills</b></p>
payoption
String
Enter your prefered payment option<p style="color:red">This method applies for request methods <b>paybills</b></p>
meternumber
String
Enter the meter number for the intended payment<p style="color:red">This method applies for request methods <b>paybills</b></p>

Responses

Status: 200 - OK