Mpesa KYC - Safaricom

# Introduction

This helps verify relation between phone number and ID number:

# Request Parameters

The following parameters are expected:

Field Description Type
search_type The Spincrunch Search type you want to do. MPESAKYCCHECK String
phone_number The phone number you want to verify String
identifier The identity number you want to verify against the phone number String
consent Whether user consent was provided (true or false) Boolean
consent_given_by The entity who provided consent (e.g., user, admin) String

Please find sample implementation on the left


# Response Parameters

Below is a sample response

'search_type' is MPESAKYCCHECK , identifier is the client's ID Number and phone_number is the client's Phone Number

Search details on a customer. As sample response is as follows:

{
  "code": "200.001",
  "data": {
    "responseRefID": "1744016677",
    "responseCode": "4000",
    "responseMessage": "Details match successfully",
    "status": true
  }
}