# Get cash receipt amount API

### Gets Naver Pay amount subject to issuance of a cash receipt.

## Gets Naver Pay amount subject to issuance of a cash receipt.

<mark style="color:blue;">`GET`</mark> `https://api.iamport.kr/payments/{imp_uid}/naver/cash-amount`

#### Path Parameters

| Name                                       | Type   | Description                                                |
| ------------------------------------------ | ------ | ---------------------------------------------------------- |
| imp\_uid<mark style="color:red;">\*</mark> | String | <mark style="color:red;">**i'mport transaction ID**</mark> |

{% tabs %}
{% tab title="200: OK Success" %}
{% tabs %}
{% tab title="NaverCashAmountResponse" %}
**`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;">**`(NaverCashAmountAnnotation, optional)`**</mark>
{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="NaverCashAmountAnnotation" %}
**`amount_total`` `**<mark style="color:purple;">**`integer`**</mark>

**`Total amount subject to cash receipt issuance`**&#x20;

&#x20;

**`amount_by_npoint`** <mark style="color:purple;">**`integer`**</mark>&#x20;

**`Npoint amount out of the amount_total`**

**`amount_by_primary`** <mark style="color:purple;">**`integer`**</mark>

**`Amount charged with the main payment method (credit card, account transfer etc.) out of the amount_total`**

**`amount_supply`** <mark style="color:purple;">**`integer`**</mark>

**`List price amount out of the amount_total`**

**`amount_vat`** <mark style="color:purple;">**`integer`**</mark>

**`VAT out of the amount_total`**
{% endtab %}
{% endtabs %}
{% endtab %}

{% tab title="400: Bad Request Invalid request - non-Naver Pay transaction specified" %}

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

{% endtab %}

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

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

{% endtab %}

{% tab title="500: Internal Server Error Invalid response" %}

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

{% endtab %}
{% endtabs %}

<details>

<summary>Response Model Schema</summary>

```
{
  "code": 0,
  "message": "string",
  "response": {
    "amount_total": 0,
    "amount_by_npoint": 0,
    "amount_by_primary": 0,
    "amount_supply": 0,
    "amount_vat": 0
  }
}
```

</details>

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

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