Skip to content

WiXtar Call Number System

Description

此文件描述如何與 WiXtar 取餐號系統進行串接。 主要是透過產生一個帶有 base64 編碼資料的 URL,並將其用於 QR Code。

API URL

  • 正式環境: https://callnum.wixtar.com/customer/authentication
  • 測試環境: https://callnum-dev.wixtar.com/customer/authentication

Query Parameters

Name Type Description
data string Base64 編碼過的 JSON 字串。詳細說明請參考 Data Parameter Details

Data Parameter Details

data 參數是一個 Base64 編碼過的 JSON 字串,其原始 JSON 物件結構如下:

{
  "authkey": "string",
  "store_id": "string",
  "order_id": "string"
}
- authkey: 公司金鑰 - store_id: 門市編號 - order_id: 訂單編號

範例

以正式環境 義美吉盛×北榮生活廣場 為例: - authkey: "6cuvmxtqtkh8d51s1u4m5r8hsykgavwd" - store_id: "0154" - order_id: "015425091700022"

原始 JSON 資料:

{
  "authkey": "6cuvmxtqtkh8d51s1u4m5r8hsykgavwd",
  "store_id": "0154",
  "order_id": "015425091700022"
}

Base64 編碼後: ewogICJhdXRoa2V5IjogIjZjdXZteHRxdGtoOGQ1MXMxdTRtNXI4aHN5a2dhdndkIiwKICAic3RvcmVfaWQiOiAiMDE1NCIsCiAgIm9yZGVyX2lkIjogIjAxNTQyNTA5MTcwMDAyMiIgCn0=

Request Example

https://callnum.wixtar.com/customer/authentication?data=ewogICJhdXRoa2V5IjogIjZjdXZteHRxdGtoOGQ1MXMxdTRtNXI4aHN5a2dhdndkIiwKICAic3RvcmVfaWQiOiAiMDE1NCIsCiAgIm9yZGVyX2lkIjogIjAxNTQyNTA5MTcwMDAyMiIgCn0=