m2pfintech

Update customer (entity) profile information

Updates the profile fields of an existing customer entity. Supports updating name, gender, marital status, employment details, contact info, email, and address. The controller is in credit-customer-service (RegistrationController).

POST
/Yappay/business-entity-manager/updateentity

Header Parameters

TENANT*string

Tenant identifier for multi-tenancy routing

Request Body

application/json

entityId*string

Unique entity ID of the customer to update

title?string

Title/salutation of the customer

Value in"Mr" | "Ms" | "Mrs" | "Sr" | "Jr" | "Dr"
firstName?string

First name (max 100 characters)

Lengthlength <= 100
middleName?string

Middle name (max 100 characters)

Lengthlength <= 100
lastName?string

Last name (max 100 characters)

Lengthlength <= 100
gender?string

Gender of the customer

Value in"MALE" | "FEMALE" | "OTHER" | "M" | "F" | "T" | "O"
maritalStatus?string

Marital status of the customer

Value in"SINGLE" | "MARRIED" | "OTHER" | "DIVORCED" | "WIDOWED" | "NA"
employmentIndustry?string

Industry sector of employment

Value in"AGRICULTURE_FOOD_NATURAL_RESOURCES" | "ARCHITECTURE_AND_CONSTRUCTION" | "ARTS_AUDIO_OR_VIDEO_TECHNOLOGY_AND_COMMUNICATIONS" | "BUSINESS_MANAGEMENT_AND_ADMINISTRATION" | "EDUCATION_AND_TRAINING" | "FINANCE" | "GOVERNMENT_AND_PUBLIC_ADMINISTRATION" | "HEALTH_SCIENCE" | "HOSPITALITY_AND_TOURISM" | "HUMAN_SERVICES" | "INFORMATION_TECHNOLOGY" | "LAW_PUBLIC_SAFETY_CORRECTIONS_AND_SECURITY" | "MANUFACTURING" | "MARKETING_SALES_AND_SERVICE" | "SCIENCE_TECHNOLOGY_ENGINEERING_AND_MATHEMATICS" | "TRANSPORTATION_DISTRIBUTION_AND_LOGISTICS"
employmentType?string

Type of employment

Value in"EMPLOYED" | "UNEMPLOYED" | "ENTREPRENEUR" | "PUBLIC_SECTOR_EMPLOYEE" | "FREELANCER" | "HOUSEWORK" | "APPRENTICE" | "RETIRED" | "STUDENT" | "SELF_EMPLOYED" | "MILITARY_OR_COMMUNITY_SERVICE" | "SALARIED" | "HOUSEWIFE"
contactNo?string

Primary contact number of the customer

emailAddress?string

Email address of the customer

Formatemail
externalEntityId?string

External reference entity ID

fatherName?string

Father's name

motherName?string

Mother's name

spouseName?string

Spouse's name

nationality?string

Nationality of the customer

employeeId?string

Employee ID if applicable

addressDto?

Address update DTO

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://uat-m2p-ccms.m2pfintech.com/Yappay/business-entity-manager/updateentity" \  -H "TENANT: string" \  -H "Content-Type: application/json" \  -d '{    "entityId": "CUST123456"  }'
{
  "status": 200,
  "result": true,
  "message": "Success"
}
{
  "status": 400,
  "message": "Invalid request parameters",
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "status": 400,
  "message": "Invalid request parameters",
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "status": 400,
  "message": "Invalid request parameters",
  "timestamp": "2019-08-24T14:15:22Z"
}