# 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://portone.gitbook.io/docs-en/api/miscellaneous-api/benepia-point/get-points-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
