주문

장바구니 상품 재고 확인

GET /api/products/cart-items

one or Array

Query Parameters

Name
Type
Description

productId*

ObjectId

Product's

[
    {
        "info": {
            "size": "163x131cm",
            "canvas": 100
        },
        "_id": "61a4debe4f5f6aa036bfec5f",
        "artist": {
            "_id": "61a4debe4f5f6aa036bfec5d",
            "name": "로키산맥"
        },
        "title": "파멸",
        "image": "/images/owner/1.jpg",
        "price": 469000,
        "inStock": true
    },
    {
        "info": {
            "size": "146x112cm",
            "canvas": 80
        },
        "_id": "61a58ed5eebb463c14eca0f9",
        "artist": {
            "_id": "61a4c82a2c1eaad2e0d0084c",
            "name": "안영희"
        },
        "title": "날갯짓",
        "image": "/images/bye/2.jpg",
        "price": 310000,
        "inStock": true
    },
    ...
]

결제 예정 총 금액 확인

GET /api/products/total-price

one or Array

Query Parameters

Name
Type
Description

productId*

ObjectId

Product's

Headers

Name
Type
Description

authorization*

String

Bearer Token

결제 전 주문 생성

POST /api/orders

Headers

Name
Type
Description

authorization*

String

Bearer Token

Content-type*

String

application/json

Request Body

Name
Type
Description

orderItems*

Array

product, image, title, artist, size, price

result*

Object

id

deliveryInfo*

Object

address, detailedAddress, receiver, contactNum

ordererInfo*

Object

name, phoneNum, email, refundTerms

shippingPrice*

Number

totalPrice*

Number

deliveryDetails

Object

receiveAt, requestedTerms

아임포트 결제 후 해당 주문서에 imp_uid 추가

PATCH /api/orders/pay

Request Body

Name
Type
Description

imp_uid*

String

해당 주문 취소 | 반품 신청

DELETE /api/orders/:id

Path Parameters

Name
Type
Description

id*

ObjectId

Order's

Headers

Name
Type
Description

authorization*

String

Bearer Token

Content-type

String

application/json

Request Body

Name
Type
Description

status

Number

해당 주문 상세 확인

GET /api/orders/:id

Path Parameters

Name
Type
Description

id*

ObjectId

Order's

Headers

Name
Type
Description

authorization*

String

Bearer Token

유저의 최근 주문 정보

GET /api/orders/latest

Headers

Name
Type
Description

authorization*

String

Bearer Token

Last updated