Skip to main content
PATCH
/
api
/
v3
/
customer
/
mobile-money
/
{customer_key}
Update a mobile money customer
curl --request PATCH \
  --url https://sandbox-api.kotanipay.io/api/v3/customer/mobile-money/{customer_key} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "network": "MPESA or MTN or AIRTEL or VODAFONE",
  "account_name": "<string>",
  "first_name": "John",
  "last_name": "Doe",
  "email": "john.doe@example.com",
  "country_code": "GH or KE",
  "date_of_birth": "1990-01-01",
  "id_number": "123456789",
  "id_type": "NATIONAL_ID",
  "image": "<string>",
  "status": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}
'
{
  "success": true,
  "message": "Bio Data has been successfully updated.",
  "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>",
    "first_name": "<string>",
    "last_name": "<string>",
    "integrator": "<string>",
    "status": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "email": "<string>"
  }
}
An integrator can use this endpoint to update the customers who will be either receiving or sending money using mobile money.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

customer_key
string
required

Body

application/json
network
enum<string>
Available options:
MTN,
AIRTEL,
VODAFONE,
TIGO,
ORANGE,
NOT_SUPPORTED,
ZAMTEL,
MPESA,
CHECKOUT,
BKTRX,
CRDTRX,
MOOV,
TMONEY,
FREE,
EXPRESSO,
HALOPESA,
VODACOM,
TNM,
WAVE
Example:

"MPESA or MTN or AIRTEL or VODAFONE"

account_name
string
first_name
string
Example:

"John"

last_name
string
Example:

"Doe"

email
string
Example:

"john.doe@example.com"

country_code
enum<string>
Available options:
GH,
NG,
KE,
ZA,
CI,
ZM,
CM,
CD,
SN,
TZ,
MW,
UG,
EG,
RW,
CD,
US
Example:

"GH or KE"

date_of_birth
string
Example:

"1990-01-01"

id_number
string
Example:

"123456789"

id_type
enum<string>
Available options:
NATIONAL_ID,
ECOWAS_ID
image
string
status
string
created_at
string<date-time>
updated_at
string<date-time>

Response

success
boolean
Example:

true

message
string
Example:

"Bio Data has been successfully updated."

data
object