API Reference

The Reserve and Transact API initiates a purchase and fund reservation request to payd. This API should only be used when a client requires Clickatell to do the fund reservations before a purchase request. The Reserve and Transact API will initiate a reserveFunds Request as discussed in the Bank Interfaces document before dispensing the selected product.

Reserve and Transact API

The Reserve and Transact API initiates a purchase and fund reservation request to Clickatell.

Reserve and Transact API

post

The Reserve and Transact API initiates a purchase and fund reservation request to Clickatell Signature Checksum Calculation

Authorizations
Header parameters
SignaturestringOptional

This is an "optional" hash calculated using a shared secret between Clickatell and the client

Body
accountIdentifierstring · max: 64Optional

The account that will be deducted from. Only mandatory if there is no concept of a default account for the buyer at the funding source

Example: 3745******0762
purchaseAmountinteger · max: 12Required

The value of the SKU that the customer wishes to receive, in the lowest denomination (e.g. cents or pennies), for instance, $250.00 would equate to the value 25000. This amount excludes the fee amount charged for the product

Example: 10000
authCodestring · max: 64Optional

An authentication code provided by the buyer that the bank can use to verify the buyer’s identity. Used in the reserve funds request if supplied

Example: 1234
channelIdinteger · int32 · max: 2Required

The channel is the user interface, platform or service that the buyer used to initiate a purchase from

Example: 7
channelNamestring · max: 64Required

This is the specific name of the channel

Example: USSD
channelSessionIdstring · max: 64Required

This is a unique reference to the channel-specific engagement when a purchase was initiated (for example USSD Session ID, if the purchase was over USSD)

Example: 144974973281
clientIdinteger · int32 · max: 5Required

This is your unique client ID assigned by Clickatell during the integration process

Example: 200
clientTxnRefstring · max: 64Required

Unique client reference to the transaction

Example: seo8w3-3wsf8cffdd34-f58l
productIdinteger · max: 5Required

ID of the product requested to be purchased. A list of products will be supplied by Clickatell

Example: 110
sourceIdentifierstring · max: 32Required

The unique identifier for the source, as recognized by the bank. This is typically the mobile phone number (MSISDN) but can be another unique identifier recognized by the bank.

Example: 2341234567899
targetIdentifierstring · max: 32Required

The unique identifier for the intended recipient (or target/destination) of the product being purchased. This may be the buyer (“Self”) or someone else (a so-called “3rd party purchase”)

Example: 2348012345555
timestampstring · date-time · max: 32Required

The timestamp of when an API request or response was sent, in ISO-8601 format

Example: 2017-06-29T16:39:42.735Z
feeAmountinteger · int32 · max: 12Required

A fixed transaction fee that Clickatell charges on top of the requested purchase value of a product. Please note: a zero amount needs to be specified if there is no fee applicable. If the fee amount is not correct the request validation will fail

Example: 0
currencyCodestring · max: 3Required

International currency code (ISO 4217)

Example: NGNPattern: [A-Z]*
fundingSourceIdinteger · max: 5Required

This is your unique funding source ID assigned by Clickatell during the integration process. This can be the same as client ID

Example: 200
additionalDatastring · JsonOptional

These are any additional parameters that might need to be passed through on the payload that has not been catered for in any of the other parameters. These fields will be determined by Clickatell and agreed upon with the client during the integration process.

Example: {"product":101,"fundingource":200,"client":900}
Responses
202

successful response

application/json
post
/core-reserveAndTransact/4.0
POST /apiman-gateway/PaydServices/core-reserveAndTransact/4.0 HTTP/1.1
Host: : api-uat.payd.co
Authorization: Bearer YOUR_SECRET_TOKEN
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 452

{
  "accountIdentifier": "3745******0762",
  "purchaseAmount": "10000",
  "authCode": 1234,
  "channelId": 7,
  "channelName": "USSD",
  "channelSessionId": "144974973281",
  "clientId": 200,
  "clientTxnRef": "seo8w3-3wsf8cffdd34-f58l",
  "productId": 110,
  "sourceIdentifier": "2341234567899",
  "targetIdentifier": "2348012345555",
  "timestamp": "2017-06-29T16:39:42.735Z",
  "feeAmount": 0,
  "currencyCode": "NGN",
  "fundingSourceId": 200,
  "additionalData": {
    "product": 101,
    "fundingource": 200,
    "client": 900
  }
}
{
  "responseCode": "0000",
  "responseMessage": "Processing request",
  "raasTxnRef": "12a345b6-c7de-8f90-a12b34c56de78901"
}

Last updated