# Get points API

### Gets Benepia points using user's Benepia account ID and password through KCP.

## Gets Benepia points using user's Benepia account ID and password through KCP.

<mark style="color:green;">`POST`</mark> `https://api.iamport.kr/benepia/point`

Requires KCP site code.

#### Request Body

| Name                                                | Type   | Description                                                                                                                                                                            |
| --------------------------------------------------- | ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| benepia\_user<mark style="color:red;">\*</mark>     | String | <mark style="color:red;">**Benepia account ID**</mark>                                                                                                                                 |
| benepia\_password<mark style="color:red;">\*</mark> | String | <mark style="color:red;">**Benepia account password**</mark>                                                                                                                           |
| pg                                                  | String | <p><strong>PG code</strong></p><p>If there are multiple KCP PG settings, specify as <strong>kcp.{KCP site code}</strong>. If omitted, the KCP pg setting in Admin console is used.</p> |

{% tabs %}
{% tab title="200: OK Success" %}
{% tabs %}
{% tab title="BenepiaPointResponse" %}
**`code`** <mark style="color:red;">**\***</mark>**&#x20;**<mark style="color:purple;">**integer**</mark>

**Response code**

0: success, Not 0: check the message

**`message`** <mark style="color:red;">**\***</mark>**&#x20;**<mark style="color:green;">**string**</mark>

**Response message**

A non-zero code includes a message like 'Invalid payment info'.

**`response`` `**<mark style="color:red;">**`(BenepiaPointAnnotation, optional)`**</mark>
{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="BenepiaPointAnnotation" %}
**`point`**<mark style="color:red;">**`*`**</mark><mark style="color:orange;">**`integer`**</mark>

**`Benepia points`**
{% endtab %}
{% endtabs %}
{% endtab %}

{% tab title="401: Unauthorized Missing or invalid access token" %}

```javascript
{
    // Response
}
```

{% endtab %}

{% tab title="500: Internal Server Error Request failed" %}

```javascript
{
    // Response
}
```

{% endtab %}
{% endtabs %}

<details>

<summary>Response Model Schema</summary>

```
{
  "code": 0,
  "message": "string",
  "response": {
    "point": 0
  }
}
```

</details>

{% hint style="success" %}
**Swagger Test Link**

[**https://api.iamport.kr/#!/benepia/queryBenepiaPoint**](https://api.iamport.kr/#!/benepia/queryBenepiaPoint)
{% endhint %}
