API


1. Login

Description : Login API is used for signing to merchant portal
URL : https://sandbox.goodie.id/api-rest/authentication/create
Method : POST
Header :
No Key Value Requirement Description
1 Content-type application/json M Security Header

Body :
No Parameter Value Requirement Description
1 Device_Unique_Id String M Unique device ID
2 Username String M Login’s name user
3 Password String M Password’s name user
4 merchantCode String M Merchant’s code

JSON Format :

{
    "deviceUniqueId": "deviceId",
    "username" : "futami@goodie.id",
    "password" : "password",
    "merchantCode" : "0001"
}
                        

Response :
No Parameter Value Description
1 authToken String Authentication token
2 authDevice String Device unique ID
3 expiryTime String Expiry time of the token
4 memberId String Member’s Id. Generated by system
5 merchantId String Merchant’s Id
6 merchantName String Merchant’s name
7 userPic String User’s pic
8 firstName String Member’s first name
9 lastName String Member’s last name
10 phoneNumber String Member’s phone number
11 gender String Member’s gender
12 birthdate Date Member’s birthdate
13 status Int Member’s status
14 qrImage
15 abstractResponse
16 responseStatus String See details**
17 responMessage String See details**
18 merchantType String Merchant’s Type

JSON Format :

{
    "authToken": "32C4C3D5-0C84-4C18-85C5-A4A353418E7D",
    "authDevice": "device",
    "expiryTime": "2019-06-27_13:56:12",
    "memberId": "CE38F7D7-23C4-4F81-B7B6-AA4B97567F20",
    "merchantId": "5F773EA1-1E66-4F9E-B9C8-E1FA8156AD20",
    "merchantName": null,
    "userPic": null,
    "firstName": "fitria",
    "lastName": "utami",
    "phoneNumber": null,
    "gender": "",
    "birthDate": "",
    "status": -1,
    "qrImage": null,
    "abstractResponse": {
        "responseStatus": "AUTH000",
        "responseMessage": "Authentication success"
    },
    "merchantType": 2
}
                        

No Status Description
1 -1 Active
2 0 Inactive
3 1 Suspend
4 2 Expired
5 3 Used
6 4 Deleted