API
| 메서드 | URL |
|---|---|
| POST | [http://127.0.0.1:8000/p](http://127.0.0.1:8000/user/buyer/signin/)urchases/order/ |
Request
| 필드명 | 설명 |
|---|---|
| Content-type | Content-type: application/json |
| Authorization | Token ${로그인 시 발행한 토큰 키 값} |
| 필드명 | 데이터 타입 | 설명 | 필수 여부 |
|---|---|---|---|
| product_id | String |
상품 id | O |
| quantity | int |
상품 수량 | O |
Response
| 필드명 | 데이터 타입 | 설명 | 상태코드 |
|---|---|---|---|
| order | dict |
주문 id, 주문명, 진행 상태, 배송지, 가격, 주문일 | 200 |
| item | dict |
주문 id, 상품 id, 수량, 배송 상태 | 200 |
| 필드명 | 데이터 타입 | 설명 | 상태코드 |
|---|---|---|---|
| error | String |
에러 메세지 | 400 |
| status | int |
상태코드 | 400 |
API
| 메서드 | URL |
|---|---|
| POST | [http://127.0.0.1:8000/p](http://127.0.0.1:8000/user/buyer/signin/)urchases/order/cart/ |
Request
| 필드명 | 설명 |
|---|---|
| Content-type | Content-type: application/json |
| Authorization | Token ${로그인 시 발행한 토큰 키 값} |
| 필드명 | 데이터 타입 | 설명 | 필수 여부 |
|---|---|---|---|
| cart_id | String |
장바구니 id | O |
Response
| 필드명 | 데이터 타입 | 설명 | 상태코드 |
|---|---|---|---|
| order | dict |
주문 id, 주문명, 진행 상태, 배송지, 가격, 주문일 | 200 |
| item | dict |
주문 id, 상품 id, 수량, 배송 상태 | 200 |
| 필드명 | 데이터 타입 | 설명 | 상태코드 |
|---|---|---|---|
| error | String |
에러 메세지 | 400 |
API
| 메서드 | URL |
|---|---|
| POST | [http://127.0.0.1:8000/p](http://127.0.0.1:8000/user/buyer/signin/)urchases/prepurchase/ |
Request
| 필드명 | 설명 |
|---|---|
| Content-type | Content-type: application/json |
| Authorization | Token ${로그인 시 발행한 토큰 키 값} |
| 필드명 | 데이터 타입 | 설명 | 필수 여부 |
|---|---|---|---|
| merchant_uid | String |
식별자로 사용할 수 있는 40자 이내의 문자열 | O |
| amount | int |
결제할 금액 | O |
| order_id | int |
주문 id | O |
Response
| 필드명 | 데이터 타입 | 설명 | 상태코드 |
|---|---|---|---|
| purchase | dict |
주문 id, 구매자, 사용자가 생성한 식별자, 결제 수단, 결제 진행 상태, 가격 | 200 |
| 필드명 | 데이터 타입 | 설명 | 상태코드 |
|---|---|---|---|
| error | String |
에러 메세지 | 400 |
| status | int | 상태코드 | 400 |
API
| 메서드 | URL |
|---|---|
| POST | [http://127.0.0.1:8000/p](http://127.0.0.1:8000/user/buyer/signin/)urchases/postpurchase/ |
Request
Response