Create Dynamic Account

Dynamic accounts are for one-time payments and can be reassigned. They expire 10 minutes after creation by default (extendable up to 48 hours).


Dynamic accounts are designed for one-time payments and can be assigned to different users. By default, they expire 10 minutes after creation (this can be extended up to a maximum of 48 hours) before being reassigned to another user. They must be used for a single payment before expiration.

Production Base URL

http://154.113.16.142:8088/appdevapi/api/

HTTP Request

POST /PiPCreateDynamicAccountNumber


Post http://154.113.16.142:8088/appdevapi/api/PiPCreateDnamicAccountNumber

Request (Auto-gen Reference)

{
  "account_name": "lemuel"
}

Request (Custom Reference)

{
  "account_name": "lemuel",
  "payment_ref": "Prov2312"
}
{
  "account_number": "9978012701",
  "account_name": "lemuel",
  "requestSuccessful": true,
  "responseMessage": "OPERATION SUCCESSFUL",
  "responseCode": "00",
  "initiationTranRef": "Prov2312"
}

Sample Implementation

curl -X POST http://154.113.16.142:8088/appdevapi/api/PiPCreateDynamicAccountNumber \
-H "Client-Id: dGVzdF9Qcm92aWR1cw==" \
-H "X-Auth-Signature: BE09BEE831CF262226B426E39BD109f2AF84DC63076D4174FAC78A2261F9A3D6E59744983B8326B69CDF2963FE314DFC89635CFA37A40596508DD6EAAB09402C7" \
-H "Content-Type: application/json" \
-d '{"account_name":"lemuel","payment_ref":"Prov2312"}'

The above command returns JSON structured like this

{
  "account_number": "9978012701",
  "account_name": "lemuel",
  "requestSuccessful": true,
  "responseMessage": "OPERATION SUCCESSFUL",
  "responseCode": "00",
  "initiationTranRef": "Prov2312"
}

Last updated