原始 Incomm API 與 Fluz API Adapter
Base URL
- 原始 Incomm API: https://app.giftango.com
- Fluz API Adapter:
- Staging: https://api-adapter.staging.fluzapp.com/incomm
- Production: https://api-adapter.fluzapp.com/incomm
原始 Incomm
- 使用 Authorization 標頭的 Bearer Authentication —— 需先產生授權權杖。
/auth/token 端點:
Fluz API Adapter
- 使用
Authorization標頭的 Basic Authentication(與所有供應商整合同步)。
API 端點比較
請求範例
建立訂單
原始 Incomm 請求:
Fluz API Adapter 請求:
DeliverEmail 不可為 true,因為 Fluz 會在訂單回應中回傳禮品卡憑證,而不是寄送電子郵件給收件者,讓你能自行掌控交付流程。PurchaseOrderNumber 與 CustomerOrderId 保留用於與你現有請求格式相容;請使用 Fluz 回傳的識別碼來關聯訂單。
回應時間
建立訂單為同步執行,且一定執行至完成。呼叫在購買完成前不會回傳,可能需要最長 150 秒,請將用戶端的讀取逾時設定在該值以上。訂單狀態值為 Fluz 的定義,非 Incomm 的。
OrderStatus 可能為 PENDING、IN_PROGRESS、COMPLETED、FAILED 或 CANCELED。請參閱 Connector behaviour 以了解狀態值、錯誤回應、限制與請求約束。