주문접수

Request

NameTypeDescription
storeIdString매장 ID
orderIdInteger주문번호
preparationTimeInteger준비시간

PreparationTime List

Value
5, 10, 15, 20, 25, 30

POST /v2/order/preparing
Content-Type: application/json
Host: 작성예정

{
  "storeId" : "A01370000002",
  "orderId" : 156,
  "preparationTime" : 30
}

Response

NameTypeDescription
successBoolean성공 여부
status_codeIntegerHTTP 상태값
messageString결과 메시지
errorObject에러 내용
result.orderIdInteger주문 ID
result.orderStatusString주문상태

success

{
  "success" : true,
  "status_code" : 200,
  "message" : "성공",
  "error" : null,
  "result" : {
	"orderId" : 156, 
	"orderStatus" : "StorePreparing" 
}

failed :

{
  "success" : false,
  "status_code" : 200,
  "message" : "실패",
  "error" : null,
  "result" : {
  	"orderId" : 156,
    "orderStatus" : "payComplted" 
  }
}

좋은 웹페이지 즐겨찾기