# Get order API

### Gets order details (API that wraps  [Kakao Pay's Get order details API](https://developers.kakao.com/docs/restapi/kakaopay-api#%EC%A3%BC%EB%AC%B8%EB%82%B4%EC%97%AD%EC%A1%B0%ED%9A%8C)).

## Gets order details.

<mark style="color:blue;">`GET`</mark> `https://api.iamport.kr/kakao/payment/orders`

Request is similar and response is identical with Kakao Pay API.

#### Query Parameters

| Name                                                     | Type    | Description                                                                           |
| -------------------------------------------------------- | ------- | ------------------------------------------------------------------------------------- |
| payment\_request\_date<mark style="color:red;">\*</mark> | String  | <p> <mark style="color:red;"><strong>Request date</strong></mark> </p><p>YYYYMMDD</p> |
| cid                                                      | String  | <p><strong>Kakao Pay MID</strong></p><p>Default: Kakao Pay CID set in i'mport</p>     |
| page                                                     | integer | **Page number**                                                                       |

{% tabs %}
{% tab title="200: OK Success" %}

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

{% endtab %}
{% endtabs %}

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

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

{% hint style="danger" %}

### **Precaution**

The support for this API will be terminated i&#x6E;**`2H of 2022`** due to Kakao Pay's policy change.
{% 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/simple-payment-service-api/kakao-pay/get-order-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.
