API


2. Register

Description : Register API is used when customer want to create an account in merchant portal.
URL : https://sandbox.goodie.id/api-rest/member/profile/registration/
Method : POST
Header :
No Key Value Requirement Description
1 Content-type application/json M Security Header

Body :
No Parameter Value Requirement Description
1 userName String M Member’s username
2 merchantId String M Id of the merchant
3 phoneNumber String M Member’s phone number
4 Password String M Member’s password
5 firstName String M Member’s first name
6 lastName String M Member’s last name
7 deviceUniqueId String M Unique device id
8 Birthdate date M Member’s birthdate Format: YYYY-DD-MM
9 referralCode String O Referral code for new member from other member

JSON Format :

{
    "username" : "futami@goodie.id",
    "merchantId" : "5F773EA1-1E66-4F9E-B9C8-E1FA8156AD20",
    "phoneNumber" : "081155667721",
    "password" : "password",
    "firstName" : "Fitria",
    "lastName" : "Utami",
    "deviceUniqueId" : "device",
    "birthDate" : "12-02-1997",
    "referralCode" : ""
}
                        

Response :
No Parameter Value Description
1 memberId String Member’s Id
2 referralPoint Int Point for new member
3 abstractResponse
4 responseStatus String see details**
5 responseMessage String see details **

JSON Format :

{
    "memberId": "CE38F7D7-23C4-4F81-B7B6-AA4B97567F20",
    "referralPoint": 0,
    "abstractResponse": {
        "responseStatus": "MEM000",
        "responseMessage": "Register member success"
    }
}