Customer Registration
You can submit the Customer Registration once the data has been verified and finalized. This ensures that the system only stores the accurate and complete registration information you provide.
Create a new user
POST /customer
Add new customer
Headers
Authorization
Bearer <token>
Body
client_code
string
client_identifier
barcode
string
barcode - Depends on mandatory settings
card_type
number
Required, Integer, Exist on Card Type Master Data
id_card_type
string
Depends on mandatory settings, Integer, Must Exist on ID Card Master Data
id_card_number
string
Depends on mandatory settings, Numeric, KTP 16 Digits, Passport 8 Digits, SIM 12-14 Digits
name
string
name of customer
level
string
Depends on mandatory settings, integer, Exist on Master Data Level
gender
string
gender of customers. Depends on mandatory settings, Value: M, F ,Others
marital_status
string
Marital Status Depends on mandatory settings, Value: Single, Married, Others
birth_place
string
Birth Place of Customers. Depends on mandatory settings
birth_date
string
BOD of customer. Depends on mandatory settings. Format : yyyy-mm-dd
religion
string
Depends on mandatory settings, Value: Buddhism, Christian, Catholic, Islam, Hinduism, Others
nationality
string
Depends on mandatory settings, Integer, Exist on ID Master Data Nationality
occupation
string
Depends on mandatory settings, Integer, Exist on Master Data Occupation
blood_type
string
Depends on mandatory settings, Value: Group A, Group B ,Group AB, Group O, Others
interests[]
string
Depends on mandatory settings, Integer, Exist on Master Data Interest
address
string
Customer Address - Depends on mandatory settings
country
string
Country - Depends on mandatory settings, Integer, Exist on Master Data Country
province
string
Province Depends on mandatory settings, Integer, Exist On Master Data Province
city
string
Depends on mandatory settings, Integer, Exist on master Data City
zip_code
string
Zip Code Depends on mandatory settings, Numeric
preferred_contact
string
Depends on mandatory settings, Value : email, phone, both
email
string
Email of customer
Depends on mandatory settings
mobile_phone
string
Mobile Number of customer Depends on mandatory settings
referral_code
string
A unique code provided by an existing member to refer new users.
Response
{
"status": "success",
"status_code": 200,
"message": "Register success.",
"data": {
"id": 109915,
"code": "0000000012",
"barcode": "9501010021",
"name": "Girein",
"id_number": "1234567890123457",
"profile_picture": null,
"active": true,
"expired_at": "2052-02-29 16:10:10",
"total_expense": 0,
"point": {
"redeem": 0,
"lucky_draw": 0
},
"referral_code": "GIRQSA4J",
"birth_place": "Jakarta",
"birth_date": "1995-08-09",
"gender": "M",
"marital_status": "Single",
"religion": "Catholic",
"blood": "Others",
"crypto_address": null,
"ig_username": null,
"preferred_contact": "Both",
"phone": {
"mobile": "6285298983785",
"home": null,
"business": null
},
"facsimile": null,
"email": "[email protected]",
"id_type": {
"id": 360,
"code": "001",
"name": "KTP"
},
"card_type": {
"id": 202,
"name": "REGULAR CARD",
"target_amount": 0,
"minimum_expense": 0,
"multiplier_point": 1,
"expired_period": 9999,
"level_up_evaluation_days": 365,
"level_down_evaluation_days": 365,
"default": true,
"active": true,
"image": null,
"benefits": []
},
"nationality": {
"id": 1112,
"code": "999",
"name": "Others"
},
"occupation": {
"id": 1799,
"code": "999",
"name": "Others"
},
"address": {
"id": 93294,
"address": "Gunung Sahari",
"zip_code": "10610",
"default": true
}
}
}{
"status": "error",
"status_code": 422,
"message": "The selected id card type is invalid.",
"errors": [
"The selected id card type is invalid."
]
}Last updated