API
1. Login
Description : Login API is used for signing to merchant portalURL : 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 :
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 :
| No | Status | Description | 
|---|---|---|
| 1 | -1 | Active | 
| 2 | 0 | Inactive | 
| 3 | 1 | Suspend | 
| 4 | 2 | Expired | 
| 5 | 3 | Used | 
| 6 | 4 | Deleted |