嗨,需要協助嗎?

嗨,需要協助嗎?

ERP 接合服務 API 詳細資料|總部系統

iCHEF ERP 接合服務 是提供發票明細 API 讓 iCHEF 用戶所使用的 ERP 系統主動查詢,讓營運資料分析更完整,ERP 需求更輕量。詳細服務內容如下:

服務內容

接合方式

  • 接合說明:須由 ERP 系統依據日期、時段區間或發票號碼,透過發票明細 API 主動篩選查詢。
  • 支援格式:JSON
  • 查詢方式:API
    • Authentication:Provisioned Token
    • Note::When query with no argument, API will return oldest 25 issued/cancelled invoices.
  • 查詢所須的設定資訊:
    • API Endpoint
    • Access Token API

免責聲明

  • 須由 ERP 系統主動透過發票明細 API 查詢,並於查詢當下進行資料擷取。
  • 處理時間依資料量將有所不同,因此服務啟動和實際收到資料的時間會有差距。
  • 以下幾種情況可能導致資料擷取不完整,恕無法自動補傳或更新:
    • 店內無對外網路,資料無法完整上傳至 iCHEF 雲端。
    • 店家在資料完整上傳至 iCHEF 雲端前,關閉 iCHEF POS App。
    • 店內資料在上傳至 iCHEF 雲端時已經有錯誤。

API 更新紀錄

更新日期版本更動內容
2025-12-30v1.2.2– 更新 Python 版本至 3.11
– 修正 original_price 的計算欄位,確保即使透過雲餐付款也可以拿到「單個商品」的價格
2024-07-29v1.2.11因 Global Payments 美國運通卡只傳末三碼,會導致 Xero 無法顯示,因此將credit_card_last_four_digits 中包含的 * 字元去除
2024-02-12v1.2.11因台灣稅局要求,若台灣 buyer_tax_info_tax_id 為 null 時,buyer_tax_info_tax_id 改為輸出 0000000000
2021-12-23v1.2.10若 paymane.type 為 credit_card 且 credit_card_type 為 null 時,credit_card_type 改為輸出 `other`。

Issued Invoice API

版本:v1.2.2

查詢參數

URI / GETimplArgumentExampleRequiredDescriptionDescription
* Production URI:
https://api.ichefpos.com/invoice-v1/{store_id}/issued

* Stage URI:
https://api.ichefpos.com/invoice-v1-stage/{store_id}/issued
invoice_numbers* invoice_number format supported for each region:
TW: AB12345678, AB12345679
SG/MY: AAAA12345678, AAAA12345679
Receipt: #-12345678, #-12345679 (# should be encoded as %23 when submit request)

* query example:
https://api.ichefpost.com/invoice_v1/issued?invoice_numbers=AB12345678, AB12345679, AB12345680, AB12345681
OptionalIf both invoice_number and (invoice_issued_dtime_from / invoice_issued_dtime_to) are specified, API will return "intersection" of both conditions.如果 invoice_number 以及 invoice_issued_dtime_from / invoice_issued_dtime_to 都有進行指定,則 API 將會回傳這兩個條件的交集。
invoice_issued_dtime_fromyyyymmdd-hhmmss

* example: 20170512-162900 -> 20170512-162900.000 (System will append 000millisecond)
Optional* For example, for getting info of all issued invoices in 2018/08/21, please set them as `invoice_issued_dtime_from=20180821-000000&invoice_issued_dtime_to=20180821-235959` (from 00:00:00, Aug. 21 to 23:59:59, Aug. 21), and the invoices issued in the last second will be also included.

* If user only specify invoice_issued_dtime_to without invoice_issued_dtime_from, invoice_issued_dtime_from will be automatically set to the datetime of the oldest issued invoice in this store.
* 例:如需取用 2018/8/21 當日所有開立發票
請將時間參數設為 `invoice_issued_dtime_from=20180821-000000&invoice_issued_dtime_to=20180821-235959`( 2018年8月21日 0時0分0秒 至 2018年8月21日 23時59分59秒 )
系統會自動將那最後 1 秒內的發票也包含進去。

* 若僅設定 invoice_issued_dtime_to 而未設定 invoice_issued_dtime_from,則 invoice_issued_dtime_from 會被自動設定為該店家最早開立之發票的時間。
invoice_issued_dtime_toyyyymmdd-hhmmss

* example: 20170512-162900 -> 20170512-162900.000 (System will append 000millisecond)
Optional
timezone+8
(+ should be encoded as %2B when submit request)
Optional (default +0)UTCUTC
begin_invoice_numberTW: AB-12345678, AB-12345679
SG/MY: AAAA12345678, AAAA12345679
Receipt: #-12345678, #-12345679
Optional (default: the invoice number of newest invoice)API supports two ways to specify pagenation information but they are mutual exclusive. Error message will be returned when both arguments are populated.
1. begin_invoice_number
2. page
API 支援兩種互斥的條件來進行分頁設定,所以當兩個條件都被設定時,將會回傳錯誤代碼。
1. begin_invoice_number
2. page
page_index2Optional (default 0)First page is page_index 0 (zero-based)第一頁的 page_index 為 0。
limit25Optional (default 25) (hard limit 500)User specify limit > hard-limit, or zero/negative/float limit number, API will return 400 bad parameter當指定的 limit 超過 500,或為 0、負數、或帶有小數時,將會回傳 400 bad parameter。

匯出資訊

Object / Dictionary KeyData TypeExample ValueDescription (English)Description (Chinese)
Responsestore_idStringmazendoiCHEF store idiCHEF store id
pagingDictionary
invoicesArray of "invoice" dictionaryQualified invoices sorted in ascending order of time合格的發票依照時間順序排列。
pagingbegin_invoice_numberNumber or NULLThe first invoice number in the invoices array
NULL when page_index type of pagenation is used
陣列中第一張發票的號碼。
當分頁設定使用 page_index 時,會是空值。
next_begin_invoice_numberString/Id or NULLThe invoice number of the first invoice in the next page
NULL when page_index type of pagenation is used
次頁陣列中第一張發票的號碼。
當分頁設定使用 page_index 時,會是空值。
previous_begin_invoice_numberString/Id or NULLThe invoice number of the first invoice in the previous page
NULL when page_index type of pagenation is used
前頁陣列中第一張發票的號碼。
當分頁設定使用 page_index 時,會是空值。
page_indexNumber or NULL2Current page index (First page is page_index 0)(zero-based)
NULL when begin_invoice_number type of pagenation is used
目前的頁碼 (第一頁為 0)。
當分頁設定使用 begin_invoice_number 時,會是空值。
limitNumber25Limit specified in request回傳的發票數量限制
total_countNumberTotoal qualified invoice number based on query argument指定條件中合格的發票總數。
invoicevinvoice_numberStringTW: "AB12345678"
SG/MY: "AAAA12345678"
Receipt: "#-12345678"
Invoice / Receipt number發票/收據號碼
vinvoice_statusString"issued", "cancelled"Invoice / receipt's current issued status: issued or cancelled發票/收據目前的開立狀態:開立 / 作廢
vinvoice_issued_dateDate (unix timestamp)Date time of Invoice issued發票開立時間
vinvoice_cancelled_dateDate or NULL (unix timestamp)Date time of Invoice cancelled: this field will be NULL if invoice status is issued發票作廢時間 (若發票/收據的開立狀態是開立,此欄位則為空)
vcustomer_countNumber4Customer count for this invoice / receipt來客數
vserve_ typeString"takeout", "dine-in"Whether customer is dine-in or take-out用餐類型
vsales_amount_include_taxNumber110Sales amount including tax and after rounding含稅總價(小數點價格調整後)
vsales_amount_exclude_taxNumberSales amount excluding tax (no rounding)不含稅總價(無小數點價格調整)
vtax_amountNumberTax amount (no rounding); In SG/MY, this field refers to GST tax amount稅額(無小數點價格調整); SG/MY: GST稅額
vtax_rateNumber0.05, 0.08Tax rate; Taiwan is 0.05, SG is 0.08 (Will be changed with government regulations)稅率 (例如:台灣0.05, 新加坡0.08,會隨政府規定變更)
vservice_chargeNumberService charge (no rounding)服務費(無小數點價格調整)
vroundingNumber+0.01 , +0.03Rounding amount小數點價格調整
vbuyer_tax_info_tax_idString or NULLTaiwan: Buyer's tax id; SG/MY: Buyer's GST Registration Number台灣: 買方統編 (因台灣稅局要求,台灣買方統編為 null 時,輸出 0000000000 ); SG/MY: Buyer's GST Registration Number
vbuyer_tax_info_company_nameString or NULLmazendoBuyer's company name買方公司名稱
buyer_tax_info_company_addressString or NULL231 Sunshine Street, Taipei, TaiwanBuyer's company address買方公司地址
vbuyer_tax_info_customer_nameString or NULLMattBuyer's customer name買方客戶名稱
vbuyer_tax_info_customer_addressString or NULL231 Sunshine Street, Taipei, TaiwanBuyer's customer address買方客戶地址
vdiscountsArray of "discount" dictionaryDiscounts being applied此發票/收據套用的折扣 (0~多個)
vpaymentsArray of "payment" dictionaryPayment method customer used此發票/收據使用的支付方式 (1~多個)
vorder_itemsArray of "order_item" dictionaryItems customer ordered此發票/收據銷售的品項 (1~多個)
vmember_infoDictionaryThe snapshot of member information while generating this invoice / receipt開立此張發票/收據當下的會員資訊
(因為Facebook Rewards的集點模式有可能是先發點數,再讓消費者建立會員,
所以有可能出現member_point_events裡有給點的紀錄,但是member_info為null的情形)
vmember_point_eventsArray of "member_point_event" dictionaryPoint events being applied此發票/收據套用的點數集點/兑點事件 (0~多個)
is_mixed_payment_onbooleanTurn on/off mixed payment開啟/關閉混合支付模式
table_nameString“A5","takeout","indoor"Invoice / receipt's table at checkout此發票/收據結帳時的桌位
discountvidString/IdDiscount module id折扣模組id
vnameStringDiscount module name (user editable)折扣模組名稱
vamountNumberDiscount amount折扣額
paymentvidString/IdPayment module id支付模組id
vnameString"Cash", "Credit Card", "Food Panda"Payment module name (user editable)支付模組名稱
vtypeString"cash", "credit_card", "custom"Payment module type支付模組類型
amountNumericPayment amount支付結帳金額
vnoteString or NULL"Gomaji serial number"Payment module text note支付模組註記
vcash_changeNumber or NULL23, 5.6Change amount when user paid with cash現金付款的找零 (若用非現金的支付模組,此欄位則為空)
customer_pair_amountNumericCustomer pay amount客戶付款金額
changa_amountNumericCustomer chang amount客戶找零金額
vcredit_card_typeString or NULL"visa", "master", "jcb", "china_union",
"nets", "ae", "diners_club", "discover", "other"
Credit card type when user paid with credit card信用卡別,如果支付模組類型為"credit_card"時,此欄位儲存支付的信用卡別
(若用非信用卡的支付模組,此欄位則為空)
vcredit_card_last_four_digitsString or NULL3412Last four digit of credit card number when user paid with credit card
Any * within last four digit will be trimmed. (Ex: *412 will have 412 returned)
Note: Currently, only AE card have last four digit contain *
付款信用卡的末四碼 (若用非信用卡的支付模組,此欄位則為空)
任何在末四碼的 * 字元會被移除 (Ex: *412 會得到 412)
Note: 目前只有 AE (美國運通) 末 4 碼會包含 *
order_itemvcombosArray of "combo" dictionaryCombos customer ordered銷售的套餐 (0~多個)
vitemsArray of "item" dictionaryItems customer ordered銷售的單品 (0~多個)
member_infovnameString or NULLSteveName of the member會員的姓名 (選填)
vmobileString0912345678*#Mobile number of the member會員的手機號碼
vtelString or NULL021234567*#Telephone number of the member會員的室內電話號碼 (選填)
vgenderString or NULLMale, Female, OtherGender of the member會員的性別 (選填)
vbirth_yearString or NULL2019Birth year of the member會員的出生年份 (選填)
vbirth_dateString or NULL01/01Birth date of the member會員的出生日期 (選填)
vaddressString or NULLNo. 12, Ln. 145, Dunhua N. Rd., Songshan Dist., Taipei City 105, Taiwan (R.O.C.)Address of the member會員的地址 (選填)
vemailString or NULLtest@ichef.com.twEmail address of the member會員的email (選填)
vnoteString or NULLNon-spicy food onlyNote of the member會員的註記 (選填)
vipad_created_atDate (unix timestamp)Created time of the member record會員資料被建立的時間
vipad_updated_atDate (unix timestamp)Last modify time of the member record最近一次會員資料被更新的時間
member_point_eventvactual_discount_valueNumber0, 10Actual discount value after user used his member points (Sales amount might be less than the expected discount value when user used his member points)此次消費使用點數後,實際的折扣金額 (消費金額有可能比使用點數時可折抵的金額小)
vexpected_discount_valueNumber0, 10Expected discount value when user used his member points此次消費使用點數時,預計的折扣金額
vadded_pointsNumber0, 100Added member points during this transaction此次消費中增加的點數量
vdeducted_pointsNumber0, 100Deducted member points during this transaction此次消費中減少的點數量
combovidString/IdCombo id套餐id
vexternal_idString or NULLCombo's external id when checkout 套餐結帳時App中套餐所設定的外部接合代碼
vsetting_external_idString or NULLCombo's external id in the setting when export套餐匯出時系統中套餐所設定的外部接合代碼
vnameStringBeef Noodle ComboCombo name套餐名稱
vcategory_idString/IdCategory id combo belongs to套餐所屬類別id
vcategory_nameStringNoodle categoryCategory name combo belongs to套餐所屬類別名稱
vquantityNumber1Quantity of combo being ordered此套餐被點的數量
voriginal_priceNumber120Combo's original price套餐原價
vsales_priceNumber100Combo's sales price (price after price adjustment and discount)套餐售價(已乘上數量):價格經註記加減價,套餐特定選項加價,折扣後金額
vordered_timeDate (unix timestamp)Date time of combo ordered此套餐被點的時間
vtagsArray of "tag" dictionaryTags applied to the combo套餐的註記
vcombo_itemsArray of "combo_item" dictionaryItems in the combo此套餐中的單品 (0~多個)
itemvidString/IdItem's id品項id
vexternal_idString or NULLItem's external id when checkout 品項結帳時App中套餐所設定的外部接合代碼
vsetting_external_idString or NULLItem's external id in the setting when export品項匯出時系統中套餐所設定的外部接合代碼
vnameStringFried RiceItem name品項名稱
vcategory_idString/IdCategory id item belongs to品項所屬類別id
vcategory_nameStringRice categoryCategory name item belongs to品項所屬類別名稱
vquantityNumber1Quantity of item being ordered品項數量
voriginal_priceNumber120Item's original price品項原價
vsales_priceNumber100Item's sales price (price after price adjustment and discount)品項售價(已乘上數量):價格經註記加減價,套餐特定選項加價,折扣後金額
vordered_timeDate (unix timestamp)Date time of item ordered此品項被點的時間
vtagsArray of tagTags applied to the item品項所套用註記 (0~多個)
combo_itemvidString/IdCombo item's id品項id
vexternal_idString or NULLCombo item's external id when checkout 品項結帳時App中套餐所設定的外部接合代碼
vsetting_external_idString or NULLCombo item's external id in the setting when export品項匯出時系統中套餐所設定的外部接合代碼
vnameStringBeef NoodleCombo item name品項名稱
vcategory_idString/IdCategory id combo item belongs to品項所屬類別id
vcategory_nameStringNoodle categoryCategory name combo item belongs to品項所屬類別名稱
vquantityNumber1Quantity of combo item being ordered品項數量
voriginal_priceNumber120Combo item's original price品項原價 (套餐品項在商品庫的原價)
vcourse_nameStringAppetizer, Main course, Side-dish, DesertCourse name of combo item套餐品項所屬的套餐類型, Ex. 前菜,主餐,附餐,甜點
vprice_adjustmentNumber0, 50, -20Price adjustment amount when specific combo item is selected (exclude price adjustment incurred by tags)選擇此套餐品項所需加價或減價的金額, Ex. 主餐選豬肉不加價,選牛肉加50,選雞肉少20 (不包含註記的價格調整)
vtagsArray of tagTags applied to the combo item品項所套用註記 (0~多個)
tagvidString/IdTag's id品項所套用註記id
vexternal_idString or NULLTag's external id when checkout 註記結帳時App中套餐所設定的外部接合代碼
vsetting_external_idString or NULLTag's external id in the setting when export註記匯出時系統中套餐所設定的外部接合代碼
vnameStringExtra noodle, Extra spicyTag name品項所套用註記名稱
vprice_adjustmentNumber20, -20Price adjustment amount when specific tag is selected品項所套用註記的變價額 正值代表加價,負值代表減價

錯誤訊息

Error Code Error MessageExample
400: bad requestbad parametersfrom timestamp > to timestamp
missing required field
401: missing credentialsecurity token revoked
invoke without token
404: not found using mazendo’s security token to ask boogoo’s invoice (github style)
405: method not allowapi only accept GET method
500: internal server error

Cancelled Invoice API

版本:v1.2.11

查詢參數

URI / GETimplArgumentExampleRequiredDescriptionDescription
* Production URI:
https://api.ichefpos.com/invoice_v1/{store_id}/cancelled

* Stage URI:
https://api.ichefpos.com/invoice_v1_stage/{store_id}/cancelled

* Dev URI:
https://api.ichefpos.com/invoice_v1_dev/{store_id}/cancelled
invoice_numbers* invoice_number format supported for each region:
TW: AB12345678, AB12345679
SG/MY: AAAA12345678, AAAA12345679
Receipt: #-12345678, #-12345679 (# should be encoded as %23 when submit request)

* query example:
https://api.ichefpost.com/invoice_v1/cancelled?invoice_numbers=AB12345678, AB12345679, AB12345680, AB12345681
ArrayIf both invoice_number and (invoice_cancelled_dtime_from / invoice_cancelled_dtime_to) are specified, API will return "intersection" of both conditions.如果 invoice_number 以及 invoice_cancelled_dtime_from / invoice_cancelled_dtime_to 都有進行指定,則 API 將會回傳這兩個條件的交集。
invoice_cancelled_dtime_fromyyyymmdd-hhmmss

* example: 20170512-162900 -> 20170512-162900.000 (System will append 000millisecond)
Optional* For example, for getting info of all cancelled invoices in 2018/08/21, please set them as `invoice_cancelled_dtime_from=20180821-000000&invoice_cancelled_dtime_to=20180821-235959` (from 00:00:00, Aug. 21 to 23:59:59, Aug. 21), and the invoices cancelled in the last second will be also included.

* If user only specify invoice_cancelled_dtime_to without invoice_cancelled_dtime_from, invoice_cancelled_dtime_from will be automatically set to the datetime of the oldest cancelled invoice in this store.
* 例:如需取用 2018/8/21 當日所有作廢發票
請將時間參數設為 `invoice_cancelled_dtime_from=20180821-000000&invoice_cancelled_dtime_to=20180821-235959`( 2018年8月21日 0時0分0秒 至 2018年8月21日 23時59分59秒 )
系統會自動將那最後 1 秒內作廢的發票也包含進去。

* 若僅設定 invoice_cancelled_dtime_to 而未設定 invoice_cancelled_dtime_from,則 invoice_cancelled_dtime_from 會被自動設定為該店家最早作廢之發票的時間。
invoice_cancelled_dtime_toyyyymmdd-hhmmss

* example: 20170512-162900 -> 20170512-162900.000 (System will append 000millisecond)
Optional
timezone+8
(+ should be encoded as %2B when submit request)
Optional (default +0)UTCUTC
begin_invoice_numberTW: AB-12345678, AB-12345679
SG/MY: AAAA12345678, AAAA12345679
Receipt: #-12345678, #-12345679
Optional (default: the invoice number of newest invoice)API supports two ways to specify pagenation information but they are mutual exclusive. Error message will be returned when both arguments are populated.
1. begin_invoice_number
2. page
API 支援兩種互斥的條件來進行分頁設定,所以當兩個條件都被設定時,將會回傳錯誤代碼。
1. begin_invoice_number
2. page
page_index2Optional (default 0)First page is page_index 0 (zero-based)第一頁的 page_index 為 0。
limit25Optional (default 25) (hard limit 500)User specify limit > hard-limit, or zero/negative/float limit number, API will return 400 bad parameter當指定的 limit 超過 500,或為 0、負數、或帶有小數時,將會回傳 400 bad parameter。

匯出資訊

Object / DictionaryKeyData TypeExample ValueDescription (English)Description (Chinese)
Responsestore_idStringmazendoiCHEF store idiCHEF store id
pagingDictionary
invoicesArray of "invoice" dictionaryQualified invoices sorted in ascending order of time合格的發票依照時間順序排列。
pagingbegin_invoice_numberNumber or NULLThe first invoice number in the invoices array
NULL when page_index type of pagenation is used
陣列中第一張發票的號碼。
當分頁設定使用 page_index 時,會是空值。
next_begin_invoice_numberString/Id or NULLThe invoice number of the first invoice in the next page
NULL when page_index type of pagenation is used
次頁陣列中第一張發票的號碼。
當分頁設定使用 page_index 時,會是空值。
previous_begin_invoice_numberString/Id or NULLThe invoice number of the first invoice in the previous page
NULL when page_index type of pagenation is used
前頁陣列中第一張發票的號碼。
當分頁設定使用 page_index 時,會是空值。
page_indexNumber or NULL2Current page index (First page is page_index 0)(zero-based)
NULL when begin_invoice_number type of pagenation is used
目前的頁碼 (第一頁為 0)。
當分頁設定使用 begin_invoice_number 時,會是空值。
limitNumber25Limit specified in request回傳的發票數量限制
total_countNumberTotoal qualified invoice number based on query argument指定條件中合格的發票總數。
invoicevinvoice_numberStringTW: "AB12345678"
SG/MY: "AAAA12345678"
Receipt: "#-12345678"
Invoice / Receipt number發票/收據號碼
vinvoice_statusString"issued", "cancelled"Invoice / receipt's current issued status: issued or cancelled發票/收據目前的開立狀態:開立 / 作廢
vinvoice_issued_dateDate (unix timestamp)Date time of Invoice issued發票開立時間
vinvoice_cancelled_dateDate or NULL (unix timestamp)Date time of Invoice cancelled: this field will be NULL if invoice status is issued發票作廢時間 (若發票/收據的開立狀態是開立,此欄位則為空)
vcustomer_countNumber4Customer count for this invoice / receipt來客數
vserve_typeString"takeout", "dine-in"Whether customer is dine-in or take-out用餐類型
vsales_amount_include_taxNumber110Sales amount including tax and after rounding含稅總價(小數點價格調整後)
vsales_amount_exclude_taxNumberSales amount excluding tax (no rounding)不含稅總價(無小數點價格調整)
vtax_amountNumberTax amount (no rounding); In SG/MY, this field refers to GST tax amount稅額(無小數點價格調整); SG/MY: GST稅額
vtax_rateNumber0.05, 0.07Tax rate; Taiwan is 0.05, SG is 0.07稅率 (台灣0.05, 新加坡0.07)
vservice_chargeNumberService charge (no rounding)服務費(無小數點價格調整)
vroundingNumber+0.01 , +0.03Rounding amount小數點價格調整
vbuyer_tax_info_tax_idString or NULLTaiwan: Buyer's tax id; SG/MY: Buyer's GST Registration Number台灣: 買方統編 (因台灣稅局要求,無買方統編時為 0000000000 ); SG/MY: Buyer's GST Registration Number
vbuyer_tax_info_company_nameString or NULLmazendoBuyer's company name買方公司名稱
buyer_tax_info_company_addressString or NULL231 Sunshine Street, Taipei, TaiwanBuyer's company address買方公司地址
vbuyer_tax_info_customer_nameString or NULLMattBuyer's customer name買方客戶名稱
vbuyer_tax_info_customer_addressString or NULL231 Sunshine Street, Taipei, TaiwanBuyer's customer address買方客戶地址
vdiscountsArray of "discount" dictionaryDiscounts being applied此發票/收據套用的折扣 (0~多個)
vpaymentsArray of "payment" dictionaryPayment method customer used此發票/收據使用的支付方式 (1~多個)
vorder_itemsArray of "order_item" dictionaryItems customer ordered此發票/收據銷售的品項 (1~多個)
vmember_infoDictionaryThe snapshot of member information while generating this invoice / receipt開立此張發票/收據當下的會員資訊
(因為Facebook Rewards的集點模式有可能是先發點數,再讓消費者建立會員,
所以有可能出現member_point_events裡有給點的紀錄,但是member_info為null的情形)
vmember_point_eventsArray of "member_point_event" dictionaryPoint events being applied此發票/收據套用的點數集點/兑點事件 (0~多個)
is_mixed_payment_onbooleanTurn on/off mixed payment開啟/關閉混合支付模式
table_nameString“A5","takeout","indoor"Invoice / receipt's table at checkout此發票/收據結帳時的桌位
discountvidString/IdDiscount module id折扣模組id
vnameStringDiscount module name折扣模組名稱
vamountNumberDiscount amount折扣額
paymentvidString/IdPayment module id支付模組id
vnameStringPayment module name支付模組名稱
vtypeString"cash", "credit_card"Payment module type支付模組類型
vnoteString or NULL"Gomaji serial number"Payment module text note支付模組註記
vcash_changeNumber or NULL23, 5.6Change amount when user paid with cash現金付款的找零 (若用非現金的支付模組,此欄位則為空)
customer_pair_amountNumericCustomer pay amount客戶付款金額
changa_amountNumericCustomer chang amount客戶找零金額
vcredit_card_typeString or NULL"visa", "master", "jcb", "china_union",
"nets", "ae", "diners_club", "discover", "other"
Credit card type when user paid with credit card信用卡別,如果支付模組類型為"credit_card"時,此欄位儲存支付的信用卡別 (若用非信用卡的支付模組,此欄位則為空)
vcredit_card_last_four_digitsString or NULL3412Last four digit of credit card number when user paid with credit card付款信用卡的末四碼 (若用非信用卡的支付模組,此欄位則為空)
order_itemvcombosArray of "combo" dictionaryCombos customer ordered銷售的套餐 (0~多個)
vitemsArray of "item" dictionaryItems customer ordered銷售的單品 (0~多個)
member_infovnameString or NULLSteveName of the member會員的姓名 (選填)
vmobileString0912345678*#Mobile number of the member會員的手機號碼
vtelString or NULL021234567*#Telephone number of the member會員的室內電話號碼 (選填)
vgenderString or NULLMale, Female, OtherGender of the member會員的性別 (選填)
vbirth_yearString or NULL2019Birth year of the member會員的出生年份 (選填)
vbirth_dateString or NULL01/01Birth date of the member會員的出生日期 (選填)
vaddressString or NULLNo. 12, Ln. 145, Dunhua N. Rd., Songshan Dist., Taipei City 105, Taiwan (R.O.C.)Address of the member會員的地址 (選填)
vemailString or NULLtest@ichef.com.twEmail address of the member會員的email (選填)
vnoteString or NULLNon-spicy food onlyNote of the member會員的註記 (選填)
vipad_created_atDate (unix timestamp)Created time of the member record會員資料被建立的時間
vipad_updated_atDate (unix timestamp)Last modify time of the member record最近一次會員資料被更新的時間
member_point_eventvactual_discount_valueNumber0, 10Actual discount value after user used his member points (Sales amount might be less than the expected discount value when user used his member points)此次消費使用點數後,實際的折扣金額 (消費金額有可能比使用點數時可折抵的金額小)
vexpected_discount_valueNumber0, 10Expected discount value when user used his member points此次消費使用點數時,預計的折扣金額
vadded_pointsNumber0, 100Added member points during this transaction此次消費中增加的點數量
vdeducted_pointsNumber0, 100Deducted member points during this transaction此次消費中減少的點數量
combovidString/IdCombo id套餐id
vexternal_idString or NULLCombo's external id when checkout 套餐結帳時App中套餐所設定的外部接合代碼
vsetting_external_idString or NULLCombo's external id in the setting when export套餐匯出時系統中套餐所設定的外部接合代碼
vnameStringBeef Noodle ComboCombo name套餐名稱
vcategory_idString/IdCategory id combo belongs to套餐所屬類別
vcategory_nameStringNoodle categoryCategory name combo belongs to套餐所屬類別名稱
vquantityNumber1Quantity of combo being ordered此套餐被點的數量
voriginal_priceNumber120Combo's original price套餐原價
vsales_priceNumber100Combo's sales price (price after price adjustment and discount)套餐售價:價格經註記加減價,套餐特定選項加價,折扣後金額
vordered_timeDate (unix timestamp)Date time of combo ordered此套餐被點的時間
vtagsArray of "tag" dictionaryTags applied to the combo套餐的註記
vcombo_itemsArray of "combo_item" dictionaryItems in the combo此套餐中的單品 (0~多個)
itemvidString/IdItem's id品項id
vexternal_idString or NULLItem's external id when checkout 品項結帳時App中套餐所設定的外部接合代碼
vsetting_external_idString or NULLItem's external id in the setting when export品項匯出時系統中套餐所設定的外部接合代碼
vnameStringFried RiceItem name品項名稱
vcategory_idString/IdCategory id item belongs to品項所屬類別id
vcategory_nameStringRice categoryCategory name item belongs to品項所屬類別名稱
vquantityNumber1Quantity of item being ordered品項數量
voriginal_priceNumber120Item's original price品項原價
vsales_priceNumber100Item's sales price (price after price adjustment and discount)品項售價
vordered_timeDate (unix timestamp)Date time of item ordered此品項被點的時間
vtagsArray of tagTags applied to the item品項所套用註記 (0~多個)
combo_itemvidString/IdCombo item's id品項id
vexternal_idString or NULLCombo item's external id when checkout 品項結帳時App中套餐所設定的外部接合代碼
vsetting_external_idString or NULLCombo item's external id in the setting when export品項匯出時系統中套餐所設定的外部接合代碼
vnameStringBeef NoodleCombo item name品項名稱
vcategory_idString/IdCategory id combo item belongs to品項所屬類別id
vcategory_nameStringNoodle categoryCategory name combo item belongs to品項所屬類別名稱
vquantityNumber1Quantity of combo item being ordered品項數量
voriginal_priceNumber120Combo item's original price品項原價 (套餐品項在商品庫的原價)
vcourse_nameStringAppetizer, Main course, Side-dish, DesertCourse name of combo item套餐品項所屬的套餐類型, Ex. 前菜,主餐,附餐,甜點
vprice_adjustmentNumber0, 50, -20Price adjustment amount when specific combo item is selected (exclude price adjustment incurred by tags)選擇此套餐品項所需加價或減價的金額, Ex. 主餐選豬肉不加價,選牛肉加50,選雞肉少20 (不包含註記的價格調整)
vtagsArray of tagTags applied to the combo item品項所套用註記 (0~多個)
tagvidString/IdTag's id品項所套用註記id
vexternal_idString or NULLTag's external id when checkout 註記結帳時App中套餐所設定的外部接合代碼
vsetting_external_idString or NULLTag's external id in the setting when export註記匯出時系統中套餐所設定的外部接合代碼
vnameStringExtra noodle, Extra spicyTag name品項所套用註記名稱
vprice_adjustmentNumber20, -20Price adjustment amount when specific tag is selected品項所套用註記的變價額 正值代表加價,負值代表減價

錯誤訊息

Error CodeError MessageExample
400: bad requestbad parametersfrom timestamp > to timestamp
missing required field
401: missing credentialsecurity token revoked
invoke without token
404: not found using mazendo’s security token to ask boogoo’s invoice (github style)
405: method not allowapi only accept GET method
500: internal server error

這篇文章容易理解嗎?

點擊星星進行評分!

哪一個段落不容易理解呢?

幫助我們改善文章內容

   
© Copyright 2022-2026 iCHEF Limited.