UCP

AI Agent 直接對接 goGMO

本站以 Universal Commerce Protocol(2026-04-08)對外提供機場接送報價。AI agent 可以讀取即時固定車資、建立報價,並把乘客導回官網完成付款;API 全程不接觸卡號。

探索(Discovery)

端點

MethodPath用途
GET/ucp/v1/catalog機場、車型、45 個服務區固定車資、加購價
POST/ucp/v1/booking-sessions建立報價,回傳 continue_url
GET/ucp/v1/booking-sessions/{id}讀取報價(30 分鐘內有效)
POST/ucp/v1/booking-sessions/{id}/cancel不支援(501):報價無狀態、未收款,30 分鐘後自動失效

快速開始

UCP-Agent 標頭選填,格式為 profile="https://…/.well-known/ucp"; 本站提供免驗證的公開報價。

curl -X POST https://booking.gogmo.tw/ucp/v1/booking-sessions \
  -H 'Content-Type: application/json' \
  -H 'UCP-Agent: profile="https://agent.example/.well-known/ucp"' \
  -d '{
    "service_type": "pickup",
    "airport": "TPE",
    "terminal": "T2",
    "flight_number": "BR123",
    "date": "2026-11-02",
    "time": "18:30",
    "zone_id": "taipei",
    "district": "大安區",
    "address": "台北市大安區復興南路一段390號",
    "passengers": 2,
    "luggage": 2,
    "vehicle_type": "sedan"
  }'
{
  "ucp": { "version": "2026-04-08", "capabilities": { "tw.gogmo.booking.transfer": [{ "version": "2026-04-08" }] }, "payment_handlers": {} },
  "id": "trf_eyJ...c2ln",
  "status": "requires_escalation",
  "currency": "TWD",
  "transfer": {
    "service_type": "pickup",
    "airport": { "code": "TPE", "name": "桃園國際機場", "terminal": "T2" },
    "schedule": { "date": "2026-11-02", "time": "18:30", "timezone": "Asia/Taipei" },
    "pickup": { "zone_id": "taipei", "zone_name": "台北市", "address": "台北市大安區復興南路一段390號" },
    "vehicle": { "id": "sedan", "title": "舒適轎車", "passengers_max": 3 }
  },
  "totals": [
    { "type": "subtotal", "display_text": "機場接送車資", "amount": 1100 },
    { "type": "total", "display_text": "應付總額", "amount": 1100 }
  ],
  "messages": [
    { "type": "info", "code": "payment_handoff_required", "content": "車資已確認,請開啟 continue_url 由乘客完成付款。", "severity": "requires_buyer_review" }
  ],
  "continue_url": "https://booking.gogmo.tw/booking?service=pickup&...",
  "expires_at": "2026-11-02T10:45:00.000Z"
}

邊界與限制

  • 報價有效 30 分鐘;過期後請重新建立。
  • 付款一律在官網完成(PayUni 刷卡或轉帳),API 不接受卡號或任何支付憑證。
  • 目前不支援修改報價(Update Booking Session);請取消後重建。
  • 包車、多點停靠等特殊需求請聯繫客服人工報價。
  • 尖峰或夜間加成(22:00–06:00)已計入回傳總額,不會事後加價。

需要串接協助或企業批量派單,請見 客服與聯絡方式。