注文明細更新
PATCH /orders/{order_id}/items/{order_item_id}
PATCH
/orders/{order_id}/items/{order_item_id}
注文明細を更新します。
数量の更新が同数の場合は、REQUEST BODY の orderPrints.kitchenTicket または orderPrints.orderSlip が true でも各伝票は印刷されません。
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” order_id
required
string
注文ID
order_item_id
required
string
注文明細ID
Request Body
Section titled “Request Body ” One of:
Quantity
注文明細更新API(数量変更)のリクエストスキーマ
object
quantity
required
数量(現状の注文数以下の数量を設定してください)
integer
orderPrints
OrderPrints
印刷する伝票を指定できます。
印刷共通仕様
object
kitchenTicket
キッチン伝票(チビ伝票)を印刷するかどうかを指定できます
true
: 印刷するfalse
: 印刷しない
boolean
orderSlip
注文伝票を印刷するかどうかを指定できます
true
: 印刷するfalse
: 印刷しない
boolean
Status
object
status
required
ステータス
waiting
:提供待ち (注文済)provided
:提供済み (配膳済)
string
Examples
{ "quantity": 2, "orderPrints": { "kitchenTicket": true, "orderSlip": false }}
{ "status": "waiting"}
Responses
Section titled “ Responses ”OK
GetOrderItem
注文アイテムモデル
object
id
注文明細ID (明細ID)
string
name
注文内容
string
status
ステータス
waiting
: 提供待ち (注文済)provided
: 提供済み (配膳済)canceled
: キャンセル済み
string
memo
メモ
string
menuId
メニューID
string
quantity
数量
integer
menuType
注文時のメニュー取扱種別
normal
:単品plan
:プランinPlan
:プラン内メニューcourse
:コース
string
customContentId
お好みオーダー内容ID
string
customContentName
お好みオーダー内容
string
categoryId
カテゴリーID
string
sellingPrice
NewOrderItemPrice
販売価格
object
taxRate
required
税率の割合(税率10%の場合、10
。非課税のメニューの場合、指定がなければ標準の税率になります。)
number
taxType
required
税種別
normal
:標準reduced
:軽減none
:非課税
string
amount
required
金額
string
tax
required
金額の税情報
included
: 税込excluded
: 税抜none
: 非課税
string
discount
One of:
RateCoupon
注文メニューの値引、割引設定
object
rateCoupon
クーポン割引率
string
amount
値引金額
string
AmountCoupon
注文メニューの値引、割引設定
object
amountCoupon
クーポン値引額
string
amount
値引金額
string
FreeCoupon
注文メニューの値引、割引設定
object
freeCoupon
無料クーポン
boolean
amount
値引金額
string
Rate
注文メニューの値引、割引設定
object
rate
割引率
string
amount
値引金額
string
Amount
注文メニューの値引、割引設定
object
amount
値引額
string
toppings
メニューのトッピング
Array<object>
object
id
注文明細ID (明細ID)
string
toppingId
トッピングID
string
name
トッピング名
string
quantity
integer
categoryId
カテゴリーID
string
sellingPrice
NewOrderItemPrice
販売価格
object
taxRate
required
税率の割合(税率10%の場合、10
。非課税のメニューの場合、指定がなければ標準の税率になります。)
number
taxType
required
税種別
normal
:標準reduced
:軽減none
:非課税
string
amount
required
金額
string
tax
required
金額の税情報
included
: 税込excluded
: 税抜none
: 非課税
string
courseItems
コース内容
Array<object>
object
id
注文明細ID (明細ID)
string
menuId
メニューID
string
name
メニュー名
string
quantity
integer
categoryId
カテゴリーID
string
sellingPrice
NewOrderItemPrice
追加料金
object
taxRate
required
税率の割合(税率10%の場合、10
。非課税のメニューの場合、指定がなければ標準の税率になります。)
number
taxType
required
税種別
normal
:標準reduced
:軽減none
:非課税
string
amount
required
金額
string
tax
required
金額の税情報
included
: 税込excluded
: 税抜none
: 非課税
string
status
ステータス
waiting
: 提供待ち (注文済)provided
: 提供済み (配膳済)canceled
: キャンセル済み
string
Examples
{ "id": "50001", "name": "コーヒー", "status": "waiting", "memo": "", "menuId": "124", "quantity": 2, "menuType": "normal", "customContentId": "8", "customContentName": "微糖", "categoryId": "156", "sellingPrice": { "taxRate": 10, "taxType": "normal", "amount": "330", "tax": "included" }, "discount": { "rateCoupon": "10", "amount": "33" }, "toppings": [], "courseItems": []}
入力チェックエラーの場合
object
title
required
string
type
required
string
status
integer
detail
string
指定したデータが存在しない場合
object
title
required
string
type
required
string
status
integer
detail
string