cURL
curl --request GET \ --url https://sandbox-api.kotanipay.com/api/v3/customer/mobile-money/{customer_key} \ --header 'Authorization: Bearer <token>'
{ "success": true, "message": "Customer fetched successfully.", "data": { "phone_number": "<string>", "country_code": "GH, KE, NG (or ISO-3: GHA, KEN, NGA)", "id": "<string>", "network": "MPESA or MTN or AIRTEL or VODAFONE", "customer_key": "<string>", "account_name": "<string>", "integrator": "<string>", "first_name": "John", "last_name": "Doe", "date_of_birth": "1990-01-01", "id_number": "123456789", "id_type": "NATIONAL_ID", "image": "<string>", "email": "[email protected]" } }
An integrator can use this endpoint to get the customer who will be either receiving or sending money using mobile money by passing customer key.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
true
"Customer fetched successfully."
Show child attributes