cURL
curl --request GET \ --url https://sandbox-api.kotanipay.io/api/v3/customer/mobile-money/phone/{phone_number} \ --header 'Authorization: Bearer <token>'
{ "success": true, "message": "Customer fetched successfully.", "data": { "phone_number": "<string>", "country_code": "GHA or KE", "id": "<string>", "network": "MPESA or MTN or AIRTEL or VODAFONE", "customer_key": "<string>", "account_name": "<string>", "integrator": "<string>" } }
An integrator can use this endpoint to get the customer who will be either receiving or sending money using mobile money by passing phone number.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
true
"Customer fetched successfully."
Show child attributes