API Reference
Clients can use the Token Lookup API to look up tokens/vouchers to present back to the end-user who purchased token-related products via the Marketplace platform. This is an alternative way for the buyers to view their purchased tokens/vouchers and will mainly be used if they did not receive the original SMS containing the purchased token.
API for looking up tokens
Clients can use this API to look up tokens to present back to the end-user who purchased token-based products.
Clients can use this API to look up tokens to present back to the buyer/customer who purchased token-based products
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 (1 Point of Sale 2 Internet 3 Mobile 4 ATM 6 SMS 7 USSD 8 WhatsApp)
7Unique reference Id for the product type (classification, group or line) that was purchased, for instance 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 source Identifier will be returned.
9successful operation
No tokens found
GET /apiman-gateway/PaydServices/core-tokenLookup/1.0?sourceIdentifier=text&clientId=1&channelId=1&productTypeId=1&limit=1 HTTP/1.1
Host: api-uat.payd.co
Authorization: Bearer YOUR_SECRET_TOKEN
X-API-Key: YOUR_API_KEY
Accept: */*
{
"userTokens": [
{
"listItem": "Iflixvoucher 1 day:2018-07-20",
"targetIdentifier": "2344200000000",
"clientId": 3,
"productId": 574,
"description": "Iflix voucher 1 day",
"attributes": {
"redemptionUrl": "http://test.clickatell.co",
"validFrom": "2018-07-20",
"validTo": "2018-07-20"
},
"raasTxnRef": "y4zmnopzr2qcinljwbaizgdl",
"transactionDate": "2018-07-20",
"channelId": 7,
"productTypeId": 20,
"purchaseAmount": 15000,
"token": "IFLIX-68FE5BFE-EB7F-44"
}
]
}Last updated