---
# System prepended metadata

title: Customer Service API Reference

---

# Customer Service API Reference

## Authentication

### `POST /api/v1/authentication/Login`

**Body parameter**

| Parameter   | Description | Schema |
| ----------- | ----------- | ------ |
| Username    |             | string |
| Password    |             | string |


#### Example Response
```json
{
  "status": 200,
  "token" : ""
}

```

### `POST /api/v1/authentication/RequestAwardAccess`

**Body parameter**

| Parameter   | Description | Schema |
| ----------- | ----------- | ------ |
| Password    |             | string |


#### Example Response
```json
{
  "status": 200,
  "token" : ""
}

```


## Award
### `GET /api/v1/award/getFilter`


**Response**

| Parameter       | Description | Schema |
| --------------- | ----------- | ------ |
| sortType        |             | string |
| seasonList      |             | string |

#### Example Response
```json
{
    "data": {
        "sortType":[
            {
              "key": "Rank"
              "value": 1
            },
            {
              "key": "Submit Team"
              "value": 2
            },
        ],
        "seasonList":[2019,2020],
        "weekSeasonList":{
                "2020":[5,4,3,2,1],
                "2019":[5,4,3,2,1]
            }
        },
    "status": 200,
    "message": "string"
}

``` 
### `GET /api/v1/award/getTheWinnerOfWeek`

- ข้อมูลผู้ชนะ 200 คนแรก

**Query parameter**

| Parameter             | Description      | Schema  |
| --------------------  | ---------------- | ------- |
| Season                |                  | number  |
| Week                  |                  | number  |
| page                  |                  | number  |
| perPage *(option)*    |                  | number  |
| keyword *(option)*    |                  | string  |
| orderBy *(option)*    |                  | number  |
| isOrderASC *(option)* |                  | boolean |

**Response**

| Parameter        | Description      | Schema   |
| ---------------- | ---------------- | -------- |
| rank             |                  | number   |
| userName         |                  | string   |
| teamName         |                  | string   |
| email            |                  | string   |
| score            |                  | number   |
| cost             |                  | number   |
| prize            |                  | number   |
| teamSubmitDate   |                  | datetime |
| accountNumber    |                  | string   |
| accountBank      |                  | string   |
| lastUpdate       |                  | datetime |


#### Example Request
```json
{
    "Season" : 2019,
    "week" : 1,
    "page" : 1,
    "perPage": null,
    "keyword": null,
    "orderBy": null,
    "isOrderASC": null
}
```

#### Example Response
```json
{
    "data": {
        "count":200,
        "awarder" :[
            [
                {
                  "rank": 1,
                  "userName": "I'm Winner ",
                  "teamName": "All Star 007",
                  "email": "example@domain.com",
                  "score": 8900,
                  "cost": 8900000.00,
                  "prize": 10000000,
                  "teamSubmitDate": date(/00000000/),
                  "accountNumber": "1111-1111-11",
                  "accountBank": "Mana JaiDee",
                  "lastUpdate": date(/00000000/),
                },
                {
                  "rank": 1,
                  "userName": "I'm Loser ",
                  "teamName": "Random naja",
                  "email": "o.re.o@domain.com",
                  "score": 8500,
                  "cost": 12900000.00,
                  "prize": 100000,
                  "teamSubmitDate": date(/00000000/),
                  "accountNumber": "2568-0412-88",
                  "accountBank": "Maitee Srisuwantararat",
                  "lastUpdate": date(/00000000/),
                },
            ]
        ]
    },
  "status": 200,
  "message": "string"
}

```
### `GET /api/v1/award/getTheWinnerOfSeason`

- ข้อมูลผู้ชนะ 200 คนแรก

**Query parameter**

| Parameter             | Description      | Schema  |
| --------------------  | ---------------- | ------- |
| Season                |                  | number  |
| page                  |                  | number  |
| perPage *(option)*    |                  | number  |
| keyword *(option)*    |                  | string  |
| orderBy *(option)*    |                  | number  |
| isOrderASC *(option)* |                  | boolean |

**Response**

| Parameter        | Description      | Schema   |
| ---------------- | ---------------- | -------- |
| rank             |                  | number   |
| userName         |                  | string   |
| teamName         |                  | string   |
| email            |                  | string   |
| score            |                  | number   |
| cost             |                  | number   |
| prize            |                  | number   |
| teamSubmitDate   |                  | datetime |
| accountNumber    |                  | string   |
| accountBank      |                  | string   |
| lastUpdate       |                  | datetime |


#### Example Request
```json
{
    "Season" : 2019,
    "page" : 1,
    "perPage": null,
    "keyword": null,
    "orderBy": null,
    "isOrderASC": null
}
```

#### Example Response
```json
{
    "data": {
        "count":200,
        "awarder" :[
            [
                {
                  "rank": 1,
                  "userName": "I'm Winner ",
                  "teamName": "All Star 007",
                  "email": "example@domain.com",
                  "score": 8900,
                  "cost": 8900000.00,
                  "prize": 10000000,
                  "teamSubmitDate": date(/00000000/),
                  "accountNumber": "1111-1111-11",
                  "accountBank": "Mana JaiDee",
                  "lastUpdate": date(/00000000/),
                },
                {
                  "rank": 1,
                  "userName": "I'm Loser ",
                  "teamName": "Random naja",
                  "email": "o.re.o@domain.com",
                  "score": 8500,
                  "cost": 12900000.00,
                  "prize": 100000,
                  "teamSubmitDate": date(/00000000/),
                  "accountNumber": "2568-0412-88",
                  "accountBank": "Maitee Srisuwantararat",
                  "lastUpdate": date(/00000000/),
                },
            ]
        ]
    }

```
### `GET /api/v1/award/exportTheWinnerOfWeek`

- ข้อมูลผู้ชนะ 200 คนแรก

**Query parameter**

| Parameter          | Description      | Schema |
| -----------------  | ---------------- | ------ |
| Season             |                  | number |
| Week               |                  | number |

**Response**

| Parameter         | Description      | Schema   |
| ----------------- | ---------------- | -------- |
| file              |                  | file     |


#### Example Request
```json
{
    "Season" : 2019,
    "Week" : 1,
}
```

#### Example Response
```json
{
    "data": {
        "file": export_award_season_week_timestamp.[csv/xsl]
    },
  "status": 200,
  "message": "string"
}

```
### `GET /api/v1/award/exportTheWinnerOfSeason`

- ข้อมูลผู้ชนะ 200 คนแรก

**Query parameter**

| Parameter          | Description      | Schema |
| -----------------  | ---------------- | ------ |
| Season             |                  | number |

**Response**

| Parameter         | Description      | Schema   |
| ----------------- | ---------------- | -------- |
| file              |                  | file     |


#### Example Request
```json
{
    "Season" : 2019,
}
```

#### Example Response
```json
{
    "data": {
        "file": export_award_season_week_timestamp.[csv/xsl]
    },
  "status": 200,
  "message": "string"
}

```


## Payment

## Profile
### `GET /api/v1/profile/getExistSeason`


**Response**

| Parameter       | Description | Schema    |
| --------------- | ----------- | --------- |
| data            |             | Array int |

#### Example Response
```json
{
    "data": [
            2020,
            2019
        ],
    "status": 200,
    "message": "string"
}

``` 
### `GET /api/v1/profile/getLoginType`


**Response**

| Parameter       | Description | Schema |
| --------------- | ----------- | ------ |
| key             |             | string |
| value           |             | number |

#### Example Response
```json
{
    "data": [
            {
              "key": "Email"
              "value": 1
            },
            {
              "key": "Facebook"
              "value": 2
            },
        ],
    "status": 200,
    "message": "string"
}

``` 
### `GET /api/v1/profile/getActivityFilter`


**Response**

| Parameter       | Description | Schema |
| --------------- | ----------- | ------ |
| key             |             | string |
| value           |             | number |


#### Example Response
```json
{
    "data": [
        {
            "key":"Paymnet",
            "value": 1
        },
        {
            "key":"Gameplaye",
            "value": 2
        }
    ],
    "status": 200,
    "message": "string"
}

``` 
### `POST /api/v1/profile/getUserDataList`



**Query parameter**

| Parameter               | Description      | Schema  |
| ----------------------  | ---------------- | ------- |
| bearerToken             |                  | string  |
| page                    |                  | number  |
| perPage *(option)*      |                  | number  |
| loginType *(option)*    |                  | number  |
| keyword *(option)*      |                  | string  |


**Response**

| Parameter        | Description      | Schema   |
| ---------------- | ---------------- | -------- |
| totalUser        |                  | number   |
| userImage         |                  | string   |
| email            |                  | string   |
| fisrtName        |                  | string   |
| lastName         |                  | string   |
| tel              |                  | string   |
| userId           |                  | string   |
| loginTypeId      |                  | number   |



#### Example Request
```json
{
    "bearerToken" : "...",
    "page" : 1,
    "perPage": null,
    "keyword": null,
    "loginType": null,
}
```

#### Example Response
```json
{
    "data": {
        "totalUser":200,
        "userData" :[
            [
                {
                  "userImage": "...",
                  "email": "example@domain.com",
                  "firstName": "Mana",
                  "lastName": "JaiDee",
                  "tel": "0899999999",                  
                  "userId": "bd3ef071-f310-4295-a032-7334b1f79491",                             
                  "loginTypeId": 1


                },
                {
                  "userImage": "...",
                  "email": "exampleToo@domain.co",
                  "firstName": "Charoen",
                  "lastName": "Long",
                  "tel": "0800010002",                  
                  "userId": "ce1baaa2-c043-48f5-9318-ec86c4fd50c0",                             
                  "loginTypeId": 1
                },
            ]
        ]
    },
  "status": 200,
  "message": "string"
}

```
### `POST /api/v1/profile/getUserDetail`


**Query parameter**

| Parameter               | Description      | Schema  |
| ----------------------  | ---------------- | ------- |
| bearerToken            |                  | string  |
| userId                  |                  | string  |


**Response**

| Parameter        | Description      | Schema   |
| ---------------- | ---------------- | -------- |
| userImage         |                  | string   |
| fisrtName        |                  | string   |
| lastName         |                  | string   |
| userId           |                  | string   |
| loginTypeId      |                  | number   |
| email            |                  | string   |
| tel              |                  | string   |
| address          |                  | string   |



#### Example Request
```json
{
    "bearerToken" : "...",
    "userId": "bd3ef071-f310-4295-a032-7334b1f79491"
}
```

#### Example Response
```json
{
    "data": {
        "userImage": "...",
        "email": "example@domain.com",
        "firstName": "Mana",
        "lastName": "JaiDee",
        "tel": "0899999999",                  
        "loginTypeId": 1,
        "userId": "bd3ef071-f310-4295-a032-7334b1f79491",
        "address":"..."
        },
  "status": 200,
  "message": "string"
}

```
### `POST /api/v1/profile/getActivityList`


**Query parameter**

| Parameter               | Description      | Schema  |
| ----------------------  | ---------------- | ------- |
| bearerToken            |                  | string  |
| userId                  |                  | string  |
| keyword *(option)*      |                  | string  |
| activityType *(option)* |                  | number  |


**Response**

| Parameter            | Description      | Schema   |
| -------------------- | ---------------- | -------- |
| activityId           |                  | string   |
| activityType         |                  | number   |
| activityNameType     |                  | string   |
| activityDescription  |                  | string   |
| activityMethod:type  |                  | string   |
| activityMethod:value |                  | string   |
| activityDateTime     |                  | date     |
| activityTime         |                  | time     |



#### Example Request
```json
{
    "bearerToken" : "...",
    "userId": "bd3ef071-f310-4295-a032-7334b1f79491"
}
```

#### Example Response
```json
{
    "data": [
        {
            "activityId" : "",
            "activityType" : 2 ,
            "activityNameType" : "Payment",
            "activityDescription" : "Noramal Seat Tikcet 99",
            "activityMethod" : {
                "type":"image",
                "value":"image url link"
            },
            "activityDateTime" : date(/00000000/)
            "activityTime" : "00:00"
        },
        {
            "activityId" : "",
            "activityType" : 3 ,
            "activityNameType" : "Buy",
            "activityDescription" : " - ",
            "activityMethod" : {
                "type":"text",
                "value":"Team name"
            },
            "activityDateTime" : date(/00000000/)
            "activityTime" : "00:01"
        }
    ],
  "status": 200,
  "message": "string"
}

```
### `POST /api/v1/profile/getActivityDetail`


**Query parameter**

| Parameter               | Description      | Schema  |
| ----------------------  | ---------------- | ------- |
| bearerToken             |                  | string  |
| activityId              |                  | string  |
| activityType            |                  | number  |


**Response**

| Parameter               | Description      | Schema   |
| ------------------------ | ---------------- | -------- |
| activityId               |                  | string   |
| activityType             |                  | number   |
| activityNameType         |                  | string   |
| activityDetail:type      |                  | string   |
| activityDetail:key       |                  | string   |
| activityDetail:value     |                  | string   |
| activityDateTime         |                  | date     |



#### Example Request
```json
{
    "bearerToken" : "...",
    "activityId" : "35fa3415-2dcb-4d4e-8b2d-c9cd0dd487ad",
    "activityType" : 2 
}
```

#### Example Response
```json
{
    "data": {
            "activityId" : "35fa3415-2dcb-4d4e-8b2d-c9cd0dd487ad",
            "activityType" : 2 ,
            "activityNameType" : "Payment",
            "activityMethod" : [
                {
                    "key":"Payment Ref",
                    "value":"1095558784117",
                    "type": "key/value"
                },
                {
                    "key":"Channel",
                    "value":"Bank Transfer",
                    "type": "key/value"
                },
                {
                    "key":"Payment Log (Ref. 10123213)",
                    "value": null,
                    "type": "subject"
                },
                {
                    "key": null,
                    "value": "image url...",
                    "type": "image"
                },
            ],
            "activityDateTime" : date(/00000000/)
    },
  "status": 200,
  "message": "string"
}

```
### `POST /api/v1/profile/getTeamSeasonList`


**Query parameter**

| Parameter               | Description      | Schema  |
| ----------------------  | ---------------- | ------- |
| bearerToken             |                  | string  |
| userId                  |                  | string  |
| season                  |                  | number  |


**Response**

| Parameter   | Description      | Schema   |
| ----------- | ---------------- | -------- |
| teamId      |                  | string   |
| teamName    |                  | string   |
| teamSeason  |                  | number   |
| teamRank    |                  | number   |
| teamScore   |                  | number   |
| isPlaying   |                  | boolean  |




#### Example Request
```json
{
    "bearerToken" : "...",
    "season": 2019
    "userId": "bd3ef071-f310-4295-a032-7334b1f79491"
}
```

#### Example Response
```json
{
    "data": [
        {
            "teamId" : "...",
            "teamName" : "MA MA MA",
            "teamSeason" : 2019 ,
            "teamRank" : 12 ,
            "teamScore" : 99,
            "isPlaying" : true
        },
        {
            "teamId" : "...",
            "teamName" : "MA MA MA *2",
            "teamSeason" : 2019 ,
            "teamRank" : 512 ,
            "teamScore" : 12,
            "isPlaying" : true
        },
    ],
  "status": 200,
  "message": "string"
}

```
### `POST /api/v1/profile/getTeamWeekList`


**Query parameter**

| Parameter               | Description      | Schema  |
| ----------------------  | ---------------- | ------- |
| bearerToken             |                  | string  |
| userId                  |                  | string  |
| season                  |                  | number  |


**Response**

| Parameter   | Description      | Schema   |
| ----------- | ---------------- | -------- |
| teamId      |                  | string   |
| teamName    |                  | string   |
| teamWeek    |                  | number   |
| teamRank    |                  | number   |
| teamScore   |                  | number   |
| isPlaying   |                  | boolean  |




#### Example Request
```json
{
    "bearerToken" : "...",
    "season": 2019
    "userId": "bd3ef071-f310-4295-a032-7334b1f79491"
}
```

#### Example Response
```json
{
    "data": [
        {
            "teamId" : "...",
            "teamName" : "MA MA MA*3",
            "teamSeason" : 1 ,
            "teamWeek" : 12 ,
            "teamScore" : 99,
            "isPlaying" : true
        },
        {
            "teamId" : "...",
            "teamName" : "MA MA MA *4.5",
            "teamWeek" : 2 ,
            "teamRank" : 512 ,
            "teamScore" : 12,
            "isPlaying" : true
        },
    ],
  "status": 200,
  "message": "string"
}

```
### `POST /api/v1/profile/getTeamDetailScoreSummary`


**Query parameter**

| Parameter               | Description      | Schema  |
| ----------------------  | ---------------- | ------- |
| bearerToken             |                  | string  |
| teamId                  |                  | string  |



**Response**

| Parameter                   | Description      | Schema   |
| --------------------------- | ---------------- | -------- |
| average                     |                  | number   |
| score                       |                  | number   |
| highest                     |                  | number   |
| footballers:score           |                  | number   |
| footballers:footballerId    |                  | string   |
| footballers:footballerRole  |                  | string   |
| footballers:footballerName  |                  | string   |


#### Example Request
```json
{
    "bearerToken" : "...",
    "season": 2019
    "teamId": "bd3ef071-f310-4295-a032-7334b1f79491"
}
```

#### Example Response
```json
{
    "data": {
        "average":26,
        "score":116,
        "highest":116,
        "footballers":[
            {
                "footballerId":"...",
                "footballerRole":"DEF",
                "footballerName":"Test naja",
                "score": 5
            },
            {
                "footballerId":"...",
                "footballerRole":"FW",
                "footballerName":"Van driver",
                "score": -1
            },
        ]
    },
  "status": 200,
  "message": "string"
}

```
### `POST /api/v1/profile/getTeamDetailScoreHistory`


**Query parameter**

| Parameter               | Description      | Schema  |
| ----------------------  | ---------------- | ------- |
| bearerToken             |                  | string  |
| teamId                  |                  | string  |
| gameWeek *(option)*     |                  | number  |



**Response**

| Parameter       | Description      | Schema   |
| --------------- | ---------------- | -------- |
| date            |                  | date     |
| match           |                  | string   |
| score           |                  | number   |
| footballerId    |                  | string   |
| footballerName  |                  | string   |
| footballerImg   |                  | string   |
| minutesPlay     |                  | number   |
| penaltiesSave   |                  | number   |
| goalsScored     |                  | number   |
| penaltiesMissed |                  | number   |
| assists         |                  | number   |
| yellowCard      |                  | number   |
| cleanSheets     |                  | number   |
| redCard         |                  | number   |
| goalsConceded   |                  | number   |
| save            |                  | number   |
| ownGoals        |                  | number   |
| bonus           |                  | number   |




#### Example Request
```json
{
    "bearerToken" : "...",
    "season": 2019
    "teamId": "bd3ef071-f310-4295-a032-7334b1f79491"
}
```

#### Example Response
```json
{
    "data": [
        {
            "date" : Date(/00000000/),
            "Match" : "NOR 4-1 SOU",
            "score" : 0,
            "footballerId" : "...",
            "footballerName" : "Gibson",
            "footballerImg" : "...",
            "minutesPlay": 0,
            "penaltiesSave": 0,
            "goalsScored": 0,
            "penaltiesMissed": 0,
            "assists": 0,
            "yellowCard": 0,
            "cleanSheets": 0,
            "redCard": 0,
            "goalsConceded": 0,
            "save": 0,
            "ownGoals": 0,
            "bonus": 0,
        },
        {
            "date" : Date(/00000000/),
            "Match" : "NOR 4-1 SOU",
            "score" : 0,
            "footballerId" : "...",
            "footballerName" : "Gibson",
            "footballerImg" : "...",
            "minutesPlay": 0,
            "penaltiesSave": 0,
            "goalsScored": 0,
            "penaltiesMissed": 0,
            "assists": 0,
            "yellowCard": 0,
            "cleanSheets": 0,
            "redCard": 0,
            "goalsConceded": 0,
            "save": 0,
            "ownGoals": 0,
            "bonus": 0,
        }
    ],
  "status": 200,
  "message": "string"
}

```
## GameMaster
### `GET /api/v1/gameMaster/getBanner`


**Response**

| Parameter        | Description      | Schema   |
| ---------------- | ---------------- | -------- |
| bannerId         |                  | string   |
| bannerUrl        |                  | string   |
| bannerPiority    |                  | number   |
| bannerIsActive   |                  | boolean  |


#### Example Response
```json
{
    "data": [
        {
          "bannerId" : "a7268179-d603-4b60-9b91-3c4f05dbe176",
          "bannerUrl" : "https://storage.googleapis.com/ksn_assets/banner/banner-01.png",
          "bannerPiority" : 1 ,
          "bannerIsActive" : true
        },
        {
          "bannerId" : "587b3671-0f8d-4847-b5ed-8926a17c02bc",
          "bannerUrl" : "https://storage.googleapis.com/ksn_assets/banner/banner-02.png",
          "bannerPiority" : 2 ,
          "bannerIsActive" : true
        },
        {
          "bannerId" : "0b0260d3-f785-429f-a996-5fec9339cf79",
          "bannerUrl" : "https://storage.googleapis.com/ksn_assets/banner/banner-03.png",
          "bannerPiority" : 3 ,
          "bannerIsActive" : true
        }
    ],
  "status": 200,
  "message": "ok"
}

```
### `POST {api-image-management}/api/v1/ImageManagement/upload-banner`

**Body parameter**
| Parameter               | Description          | Schema    |
| ----------------------  | -------------------- | --------- |
| File                    |                      | IFormFile |

#### Example Request
```json
{
    "file" : file 
}
```

#### Example Response
```json
{
  "data": "url-image",
  "status": 200,
  "message": "ok"
}

```

### `POST /api/v1/gameMaster/updateBanner`

**Body parameter**

| Parameter               | Description          | Schema   |
| ----------------------  | -------------------- | -------- |
| bearerToken             |                      | string   |
| bannerItem              |                      | object   |

**BannerItem Object**

| Parameter               | Description                            | Schema   |
| ----------------------  | -------------------------------------  | -------- |
| bannerId                | Requeire when update or delete         | string   |
| bannerUrl               |                                        | string   |
| bannerPiority           | more than 0                            | number   |
| bannerIsActive          |                                        | boolean  |




#### Example Request
```json
{
    "bearerToken" : "...",
    "bannerItem" : [
        { // case delete (change isActive = false) 
          "bannerId" : "a7268179-d603-4b60-9b91-3c4f05dbe176", // requeire
          "bannerUrl" : null, // not requeire
          "bannerPiority" : null ,  // not requeire
          "bannerIsActive" : false // requeire
        },
        { // case new image  
          "bannerId" : null , // not requeire 
          "bannerUrl" : "...", // requeire
          "bannerPiority" : 1 , // requeire
          "bannerIsActive" : true // requeire
        },
        { // case change piority (position)  
          "bannerId" : "587b3671-0f8d-4847-b5ed-8926a17c02bc", // requeire
          "bannerUrl" : null, // not requeire
          "bannerPiority" : 5 , // requeire
          "bannerIsActive" : true // requeire
        }
    ]
}
```

#### Example Response
```json
{
  "data": true,
  "status": 200,
  "message": "ok"
}

```
### `GET /api/v1/gameMaster/getTicket`

**Response**

| Parameter        | Description      | Schema   |
| ---------------- | ---------------- | -------- |
| ticketName       |                  | string   |
| ticketId         |                  | number   |
| ticketPrice      |                  | number   |
| ticketIsActive   |                  | boolean  |

#### Example Response
```json
{
    "data": [
        {
          "ticketName" : "Normal Seat",
          "ticketId" : 1,
          "ticketPrice" : 99 ,
          "ticketIsActive" : true
        },
        {
          "ticketName" : "VIP Seat",
          "ticketId" : 2,
          "ticketPrice" : 1999 ,
          "ticketIsActive" : false
        }
    ],
  "status": 200,
  "message": "ok"
}

```
### `POST /api/v1/gameMaster/updateTicket`

**Body parameter**

| Parameter               | Description          | Schema   |
| ----------------------  | -------------------- | -------- |
| bearerToken             |                      | string   |
| ticketItem              |                      | object   |

**TicketItem Object**

| Parameter               | Description  | Schema   |
| ----------------------  | ------------ | -------- |
| ticketId                |              | number   |
| ticketPrice             |              | number   |
| ticketIsActive          |              | boolean  |




#### Example Request
```json
{
    "bearerToken" : "...",
    "ticketItem" : [
        {
            "ticketId" : 1,
            "ticketPrice" : 29,
            "ticketIsActive" : true
        },
        {
            "ticketId" : 2,
            "ticketPrice" : 199,
            "ticketIsActive" : false
        }
    ]
}
```

#### Example Response
```json
{
  "data": true,
  "status": 200,
  "message": "ok"
}

```

### `GET /api/v1/gameMaster/getPrizePool`

**Response**

| Parameter       | Description      | Schema   |
| --------------- | ---------------- | -------- |
| rankingStart    |                  | number   |
| rankingEnd      |                  | number   |
| rankingPrize    |                  | number   |

#### Example Response
```json
{
    "data": [
        {
          "rankingStart" : 1,
          "rankingEnd" : 1 ,
          "rankingPrize" : 100000
        },
        {
          "rankingStart" : 2,
          "rankingEnd" : 2 ,
          "rankingPrize" : 10000
        },
    ],
  "status": 200,
  "message": "ok"
}

```
### `POST /api/v1/gameMaster/updatePrizePool`

-- send new list of prize pool 

**Body parameter**

| Parameter               | Description          | Schema   |
| ----------------------  | -------------------- | -------- |
| bearerToken             |                      | string   |
| rankItem                |                      | object   |

**RankItem Object**

| Parameter       | Description  | Schema   |
| --------------- | ------------ | -------- |
| rankingStart    |              | number   |
| rankingEnd      |              | number   |
| rankingPrize    |              | number   |




#### Example Request
```json
{
    "bearerToken" : "...",
    "rankItem" : [
        {
          "rankingStart" : 1,
          "rankingEnd" : 1 ,
          "rankingPrize" : 99999
        },
        {
          "rankingStart" : 2,
          "rankingEnd" : 2 ,
          "rankingPrize" : 9999
        },
    ]
}
```

#### Example Response
```json
{
  "data": true,
  "status": 200,
  "message": "ok"
}

```
### `GET /api/v1/gameMaster/getGameWeekExisting`

**Response**

| Parameter                | Description      | Schema   |
| -----------------------  | ---------------- | -------- |
| gameWeekId               | (waiting review) | string   |
| gameWeekName             |                  | string   |
| gameWeekNumber           |                  | number   |
| gameWeekSeasonNumber     |                  | number   |
| gameWeekDeadlineDate     |                  | date     |
| gameWeekDeadlineTime     |                  | time     |
| gameWeekDeadlineTypeTime |                  | string   |

#### Example Response
```json
{
    "data": [
        {
          "gameWeekName" : "Game week 01",
          "gameWeekNumber" : 1,
          "gameWeekSeasonNumber" : 2020,
          "gameWeekDeadlineDate" : "2020/10/10",
          "gameWeekDeadlineTime" : "18:30",
        },
        {
          "gameWeekName" : "Game week 02",
          "gameWeekNumber" : 2,
          "gameWeekSeasonNumber" : 2020,
          "gameWeekDeadlineDate" : "2020/10/16",
          "gameWeekDeadlineTime" : "18:30",
        },
    ],
  "status": 200,
  "message": "ok"
}

```
### `POST /api/v1/gameMaster/updateGameWeek`

-- send only data is change  

**Body parameter**

| Parameter               | Description          | Schema   |
| ----------------------  | -------------------- | -------- |
| bearerToken             |                      | string   |
| gameWeekItem            |                      | object   |

**GameWeekItem Object**

| Parameter                | Description      | Schema   |
| -----------------------  | ---------------- | -------- |
| gameWeekId               | (waiting review) | string   |
| gameWeekNumber           |                  | number   |
| gameWeekSeasonNumber     |                  | number   |
| gameWeekDeadlineDate     |                  | date     |
| gameWeekDeadlineTime     |                  | time     |
| gameWeekDeadlineTypeTime |                  | string   |




#### Example Request
```json
{
    "bearerToken" : "...",
    "gameWeekItem" : [
        {
          "gameWeekId" : "f500e01d-8ffc-4e8b-8a0e-537471c0a559",
          "gameWeekNumber" : 1,
          "gameWeekSeasonNumber" : 2020,
          "gameWeekDeadlineDate" : "2020/10/10",
          "gameWeekDeadlineTime" : "18:00",
          "gameWeekDeadlineTypeTime" : "PM",
        },
        {
          "gameWeekId" : "aefadaa4-6477-46b9-a131-96a6d4e00bd4",
          "gameWeekName" : "Game week 02",
          "gameWeekNumber" : 2,
          "gameWeekSeasonNumber" : 2020,
          "gameWeekDeadlineDate" : "2020/10/16",
          "gameWeekDeadlineTime" : "17:30",
          "gameWeekDeadlineTypeTime" : "PM",
        },
    ]
}
```

#### Example Response
```json
{
  "data": true,
  "status": 200,
  "message": "ok"
}

```
## FootballPlayer
### `GET /api/v1/footballPlayer/getPlayerRole`


**Response**

| Parameter       | Description | Schema    |
| --------------- | ----------- | --------- |
| key             |             | string    |
| value           |             | string    |

#### Example Response
```json
{
    "data": [
        {
          "key": "Goalkeeper"
          "value": "1"
        },
        {
          "key": "Defender"
          "value": "2"
        },
    ],
    "status": 200,
    "message": "ok"
}

``` 
### `GET /api/v1/footballPlayer/getClub`


**Response**

| Parameter       | Description | Schema    |
| --------------- | ----------- | --------- |
| key             |             | string    |
| value           |             | string    |

#### Example Response
```json
{
    "data": [
        {
          "key": "99adeb97-60fa-4018-aafc-0835e7df2945",
          "value": "West Bromwich Albion"  
        },
        {
          "key": "05a32a83-7238-4b68-a465-6e7ca9faeb0c" , 
          "value": "Fulham"
        },
    ],
    "status": 200,
    "message": "ok"
}

``` 
### `POST /api/v1/footballPlayer/getPlayers`

**Body parameter**

| Parameter                   | Description                  | Schema  |
| --------------------------  | ---------------------------- | ------- |
| bearerToken                 |                              | string  |
| page                        |                              | number  |
| perPage *(option)*          |                              | number  |
| role *(option)*             | value of getPlayerRole       | string  |
| keyword *(option)*          |                              | string  |
| club *(option)*             | value of getClub             | string  |


**Response**

| Parameter        | Description      | Schema   |
| ---------------- | ---------------- | -------- |
| totalPlayer      |                  | number   |
| runningNumber    | No in design     | number   |
| footballerId     |                  | string   |
| commonName       |                  | string   |
| fisrtName        |                  | string   |
| lastName         |                  | string   |
| clubName         |                  | string   |
| roleName         |                  | string   |
| cost             |                  | number   |
| lastUpdate       |                  | datetime |



#### Example Request
```json
{
    "bearerToken" : "...",
    "page" : 1,
    "perPage": null,
    "role": null,
    "keyword": null,
    "club": null,
}
```

#### Example Response
```json
{
    "data": {
        "totalPlayer": 999,
        "players" : [
            {
              "runningNumber": 1
              "footballerId": "dab1bcc5-4bd5-4905-889d-3f17c148b5be",
              "commonName": "Salah",                  
              "firstName": "Salah",
              "lastName": "Mohamed",
              "clubName": "Liverpool",                             
              "roleName": "MD"
              "cost": 12000000,                             
              "lastUpdate": date(/00000000/)
            },
            {
              "runningNumber": 2
              "footballerId": "a582d5b0-2421-412e-aa29-2444a8cc1042",
              "commonName": "Mané",                  
              "firstName": "Mané",
              "lastName": "Sadio",
              "clubName": "Liverpool", 
              "roleName": "MD"
              "cost": 12000000,                             
              "lastUpdate": date(/00000000/)
            },
        ]
    },
  "status": 200,
  "message": "ok"
}

```
### `POST /api/v1/footballPlayer/getPlayerDetail`

**Body parameter**

| Parameter                   | Description                  | Schema  |
| --------------------------  | ---------------------------- | ------- |
| bearerToken                 |                              | string  |
| footballerId                |                              | string  |

**Response**

| Parameter        | Description      | Schema   |
| ---------------- | ---------------- | -------- |
| footballerId     |                  | string   |
| commonName       |                  | string   |
| fisrtName        |                  | string   |
| lastName         |                  | string   |
| clubId           |                  | string   |
| roleId           |                  | string   |
| cost             |                  | number   |


#### Example Request
```json
{
    "bearerToken" : "...",
    "footballerId": "dab1bcc5-4bd5-4905-889d-3f17c148b5be",
}
```

#### Example Response
```json
{
    "data": {
              "footballerId": "dab1bcc5-4bd5-4905-889d-3f17c148b5be",
              "commonName": "Salah",                  
              "firstName": "Salah",
              "lastName": "Mohamed",
              "clubId": "7479b002-c4ce-4858-a3ce-0d00134f7880",                             
              "roleId": "2"
              "cost": 12000000
        },
  "status": 200,
  "message": "ok"
}

```

### `POST /api/v1/footballPlayer/updatePlayer`

**Body parameter**

| Parameter                   | Description                  | Schema  |
| --------------------------  | ---------------------------- | ------- |
| bearerToken                 |                              | string  |
| footballerId                |                              | string  |

```json
{
    "bearerToken" : "...",
    "footballerId": "dab1bcc5-4bd5-4905-889d-3f17c148b5be",
    "commonName": "Salah",                  
    "firstName": "Salah",
    "lastName": "Mohamed",                             
    "roleId": "2"
    "cost": 12000000
}
```

#### Example Response
```json
{
  "data": null,
  "status": 200,
  "message": "ok"
}
```
### `POST /api/v1/footballPlayer/getNewPlayerTransfersNumber`

**Body parameter**

| Parameter                   | Description                  | Schema  |
| --------------------------  | ---------------------------- | ------- |
| bearerToken                 |                              | string  |

**Response**

| Parameter        | Description      | Schema   |
| ---------------- | ---------------- | -------- |
| data             |                  | number   |

#### Example Request
```json
{
    "bearerToken" : "..."
}
```
#### Example Response
```json
{
  "data": 4,
  "status": 200,
  "message": "ok"
}

```

### `POST /api/v1/footballPlayer/getNewPlayerTransfersList`

**Body parameter**

| Parameter               | Description      | Schema  |
| ----------------------- | ---------------- | ------- |
| bearerToken             |                  | string  |
| page                    |                  | number  |
| perPage *(option)*      |                  | number  |
| keyword *(option)*      |                  | string  |

**Response**

| Parameter        | Description      | Schema   |
| ---------------- | ---------------- | -------- |
| footballerRefId  |                  | string   |
| commonName       |                  | string   |
| fisrtName        |                  | string   |
| lastName         |                  | string   |
| oldClub          |                  | string   |
| newClub          |                  | string   |
| rolePLName       |                  | string   |
| rolePLId         |                  | string   |
| roleSPName       |                  | string   |
| roleSPId         |                  | string   |
| pricePl          |                  | number   |



#### Example Request
```json
{
    "bearerToken" : "..."
}
```

#### Example Response
```json
{
    "data": [
        {
          "footballerRefId": "118748",
          "commonName": "Salah",                  
          "firstName": "Salah",
          "lastName": "Mohamed",
          "oldClub": "Other Club",
          "newClub": "Liverpool",
          "rolePLName": "MD",
          "rolePLId": "2", 
          "roleSPName": "FW", 
          "roleSPId": "3", 
          "costPL": 12000000
        },
        {
          "footballerRefId": "110979",
          "commonName": "Mané",                  
          "firstName": "Mané",
          "lastName": "Sadio",
          "oldClub": "Other Club",
          "newClub": "Liverpool",
          "rolePLName": "FW",
          "rolePLId": "3", 
          "roleSPName": "DEF", 
          "roleSPId": "1", 
          "costPL": 12000000
        },
    ],
  "status": 200,
  "message": "ok"
}

```
### `POST /api/v1/footballPlayer/updateNewPlayerTransfers`

**Body parameter**

| Parameter                   | Description                  | Schema   |
| --------------------------  | ---------------------------- | -------  |
| bearerToken                 |                              | string   |
| footballerRefId             |                              | string   |
| commonName                  |                              | string   |
| roleId                      |                              | string   |
| price                       |                              | number   |


#### Example Request
```json
{
    "bearerToken" : "..."
    "players" : [
        {
            "footballerRefId" : "98365",
            "commonName" : "Wayne Rooney",
            "roleId" : "3",
            "price" : 11000000
        },
        {
            "footballerRefId" : "65484",
            "commonName" : "Zinedine Zidane",
            "roleId" : "3",
            "price" : 12000000
        },
    ]
}
```

#### Example Response
```json
{
  "data": null,
  "status": 200,
  "message": "ok"
}

```