> For the complete documentation index, see [llms.txt](https://baeminchan-project.gitbook.io/project/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://baeminchan-project.gitbook.io/project/undefined-2.md).

# 주문

## 주문시 입력받는 내용

### Header

* 주문자(user)의 Token

### Body에 json 형식으로 입력할 내용

* address
* delivery\_date: 배송날짜
* total\_price: 총 결제금
* order\_item\_list: 주문할 장바구니 내역 list
  * cart\_item\_pk: 주문할 장바구니 아이템

#### 예시

```
{
	"address":"서울시 서초구 서처동 321",	
	"delivery_date": "2018-11-12",
	"total_price": 54000,	
	"order_item_list":[		
		{"cart_item_pk": 11},		
		{"cart_item_pk": 14}		
	]
}
```

### 결과 설명

* order\_pk: 주문의 pk
* user\_pk: 주문자 pk
* order\_date\_time: 주문 일시 시간 (주문을 DB에 저장할 때 자동으로 생성)
* delivery\_date: 배달 일자
* total\_price
* ​cart\_items: 주문된 아이템에 대한 list
  * cart\_item\_pk
  * user
    * user\_pk
    * username
    * first\_name
    * last\_name
    * email
    * img\_profile
  * item
    * item\_pk
    * company
    * item\_name
    * origin\_price
    * sale\_price
    * discount\_rate
    * list\_thumbnail
  * amount
