API Reference
This describes how clients can look up the most recently purchased products by the buyer/user from their historic transactions.
Returns user transactions
The User Transaction Lookup API’s primary function is to identify if the new transaction is similar to a recent transaction. The response details can then be used to pre-emptively complete the current transaction details, that the user would be required to provide to complete the new purchase and can be narrowed down using optional parameters.
The User Transaction Lookup API’s primary function is to identify if the new transaction similar to a recent transactions. The response details can then be used to pre-emptively complete the current transaction details, that the user would be required to provide to complete the new purchaseand can be narrowed down using a number of optional parameters
The unique identifier for the buyer, as recognized by the bank and used to look up the buyer’s bank account from where the payment must be made. This is typically the buyer’s mobile phone number (MSISDN) but can be another unique identifier recognized by both Clickatell and the bank
2341122333311This is your unique client ID assigned by Clickatell during the integration process
909The channel is the user interface, platform or service that the buyer used to initiate a purchase from. The following IDs are reserved (1 Point of Sale 2 Internet 3 Mobile 4 ATM 6 SMS 7 USSD 8 WhatsApp)
7Unique reference to the product that was purchased
100Unique reference ID for the product type (classification, group or line) that was purchased, e.g. pre-purchased airtime or data.
3This is a restriction that can be used to limit the number of records returned. If not specified, only the latest transaction for the user Identifier will be returned.
9successful operation
parameter missing
no transactions found
GET /apiman-gateway/PaydServices/core-userTransactions/1.0?userIdentifier=text&clientId=1 HTTP/1.1
Host: api-uat.payd.co
Authorization: Bearer YOUR_SECRET_TOKEN
X-API-Key: YOUR_API_KEY
Accept: */*
[
{
"channelId": 7,
"clientId": 101,
"raasTxnRef": "6e5doyu7pykhva7zcdtl7bfx",
"transactionDate": "2018-09-05T08:39:20.258Z",
"productId": 570,
"description": "DSTV Premium",
"purchaseAmount": 159800,
"targetIdentifier": "2341234567891"
}
]Last updated