> For the complete documentation index, see [llms.txt](https://tech.x2bee.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tech.x2bee.com/api-guide/store-front-api/undefined-3/undefined-2.md).

# 결제

다양한 결제 수단을 선택하고 주문을 최종 승인하는 단계입니다.주문 상세 정보를 확인하고 배송 정보를 입력하며 주문을 진행할 수 있습니다. 장바구니에서 다른 회원에게 상품을 선물하여 주문을 진행할 수 있습니다.사용자가 선택한 상품을 장바구니에 추가하고 관리할 수 있습니다.

{% columns %}
{% column %}

<p align="center"><strong>PC</strong></p>

<figure><img src="/files/Fma0SIZxU2wQZcbMsLgR" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column %}

<p align="center"><strong>Mobile</strong></p>

<figure><img src="/files/rxSzpRcWr3w2Sepl38to" alt=""><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

***

## 결제하기 <a href="#plus" id="plus"></a>

<p align="center"><img src="https://tech.x2bee.com/download/attachments/266110671/Payment.drawio.png" alt=""></p>

### 1. 주문번호 채번 <a href="#id-1" id="id-1"></a>

결제하기 버튼 클릭 시, 가맹점 결제 직전에 호출되어 주문번호를 채번합니다.

* **주문번호 채번 (**[🔗API 확인하기 >](https://api.x2bee.com/content?msa=order\&depth=%EC%A3%BC%EB%AC%B8%EC%84%9C/getNextOrdNo))\
  주문번호를 채번합니다.

```
GET /v1/orderSheet/ordNo 
```

### 2. 사은행사 조회 <a href="#id-2" id="id-2"></a>

결제하기 버튼 클릭 시, 사은행사정보 유무를 체크하고, 관련 정보가 존재하면 결제 이전에 사은행사 팝업이 나타납니다.

* **주문서 사은행사 조회 (**[🔗API 확인하기 >](https://api.x2bee.com/content?msa=order\&depth=%EC%A3%BC%EB%AC%B8%EC%84%9C/getAeEvtList))\
  주문 상품 정보를 사용하여 사은행사를 조회합니다.

```
POST /v1/orderSheet/aeEvtList 
```

### 3. 가맹점 정보 조회 <a href="#id-3" id="id-3"></a>

결제하기 버튼을 눌렀을 때, PG 결제 금액이 발생했을 경우 관련 화면을 호출하여 나타납니다.

* **가맹점 정보 조회 (**[🔗API 확인하기 >](https://api.x2bee.com/content?msa=order\&depth=%EA%B2%B0%EC%A0%9C%EC%A0%95%EB%B3%B4/getPgMerchant))\
  연계된 결제 가맹점 정보가 상이한 경우, 다른 화면이 나타날 수 있습니다.

```
POST /v1/payment/pgMerchant 
```

### 4. 주문하기 <a href="#id-4" id="id-4"></a>

결제 인증 성공 시, 결제 승인 및 주문을 생성합니다. 비회원으로 주문 성공 시 비회원 로그인 처리를 하여 비회원 쿠키를 생성합니다.

* **주문하기 (**[🔗API 확인하기 >](https://api.x2bee.com/content?msa=order\&depth=%EC%A3%BC%EB%AC%B8%EC%84%9C/order))\
  주문을 생성합니다.

```
POST /v1/order 
```

### 5. 주문완료정보 조회 <a href="#id-5" id="id-5"></a>

주문 성공 후 완료된 주문 정보가 나타납니다. 해당 API는 회원 로그인 또는 비회원 로그인이 필수입니다.

하단의 주문 상세보기 버튼을 클릭하면 마이페이지 > 주문내역 상세 화면으로 이동합니다.

* **주문완료정보 조회 (**[🔗API 확인하기 >](https://api.x2bee.com/content?msa=order\&depth=%EC%A3%BC%EB%AC%B8%EC%84%9C/getOrderCompleteInfo))\
  주문 성공 후 주문 완료 정보를 조회합니다.

```
POST /v1/order/getOrderCompleteInfo 
```

### 6. 고객알림 목록 조회 <a href="#id-6" id="id-6"></a>

고객알림 해당 내용이 존재하는 경우, 주문완료 화면 상단 고객알림목록이 조회되어 나타납니다.

* **화면 고객알림 조회 (**[🔗API 확인하기 >](https://api.x2bee.com/content?msa=common\&depth=%EA%B3%B5%ED%86%B5\&path=getContsList))\
  고객 알림 내역을 조회합니다.

```
GET /v1/common/getContsList 
```

***

## 주문 종류에 따른 주문 완료 화면 (일반 주문 / 선물하기 주문 / 비회원 주문) <a href="#plus" id="plus"></a>

<p align="center"><img src="https://tech.x2bee.com/download/attachments/266110671/1712117117349-Payment.drawio.png" alt=""></p>

{% hint style="info" %}
**주문 종류에 따라 주문 완료 화면은 약간의 차이가 있습니다.**

* 선물하기 주문 : 주문 시 선택한 선물하기 카드 이미지와 메세지가 표시되며,\
  받는 분 정보에 이름과 휴대폰 번호만 표시됩니다.\
  주문 상세보기 클릭 시 보낸 선물함 상세 화면으로 이동합니다.
* 비회원 주문 : 적립 예정 마일리지 영역이 존재하지 않습니다.
  {% endhint %}

&#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://tech.x2bee.com/api-guide/store-front-api/undefined-3/undefined-2.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
