Token Request to generate a new token.type: This is the validation type either 1-mobile or 2-banksystemTraceAuditNumber: This is a unique number that is generated by the consumerprimaryAccountNumber: Account number that needs to be validated.institutionCode: This is the code for a particular institution, either mobile mccmnc or bank codecallBackUrl: This is the webhook endpoint to receive notifications.callBackFormat: This is the format in which the notifications should be in either JSON or XML.ccy: The currency in which the account is set as.countryCode: The country in which the account is allowed to transact in especially important for bank accounts| Field Name | Data Type | Options |
|---|---|---|
type | int | Mandatory |
systemTraceAuditNumber | string | Mandatory |
primaryAccountNumber | string | Mandatory |
institutionCode | string | Mandatory |
callBackUrl | string | Mandatory |
callBackFormat | string | Mandatory |
ccy | string | Optional |
countryCode | string | Optional |
{
"systemTraceAuditNumber": "325ac159-a4fe-472d-954d-7a6293dc1a84",
"message":"Request Accepted. Kindly await processing"
}
{
"systemTraceAuditNumber": "325ac159-a4fe-472d-954d-7a6293dc1a84",
"errorMessage":"Something went wrong"
}
{
"errors": {
"AccountNumber": [
"The AccountNumber field is required."
]
},
"type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
"title": "One or more validation errors occurred.",
"status": 400,
"traceId": "00-03529608f740804d9e7bf8210d6e1cb9-df15d6e73e04804c-00"
}
{
"validationType": 1,
"validationTypeDesc": "Mobile",
"accountNumber": "+254714653433",
"accountNumberCCY": "KES",// currency in which the account number transacts
"institutionCode": "63902", // institution number, either mobile mccmnc or bank code
"countryCode": "KE",
"callbackURL": "https://eo2j2658kmohqiy.m.pipedream.net",
"status": 4,
"statusDesc": "Completed",
"systemTraceAuditNumber": "f9445f06-2a9a-456e-98a0-5f9db5d3a202",
"conversationID": "AG_20230720_2010431240a6879fd40b",//unique Id from Mobile Provider
"responseCode": "0",
"responseDesc": "Accept the service request successfully.",
"resultCode": "0",
"resultDesc": "The service request is processed successfully.",
"transactionID": "RGK71AERRN",
"transactionCreditParty": "254702900800 - JOHN DOE",//Contains the details for the validated primary account number
"createdDate": "2023-08-03T06:01:21.15"
}
curl --location --request POST 'https://auth.zamupay.com/v1/account/validate' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"type": 0,
"systemTraceAuditNumber": "string",
"primaryAccountNumber": "string",
"institutionCode": "string",
"callBackUrl": "http://example.com",
"callbackFormat": 0,
"ccy": "string",
"countryCode": "string"
}'{}