Docs
開發者中心控制台esimoa.com
    • 簡介
    • 快速開始
    • 身分驗證
    • 概覽
    • 搜尋 eSIM
    • eSIM 詳情
    • 販售國家
    • OpenAPI 規格
    • 追蹤與佣金
    • 速率限制與錯誤
    • 概覽
    • Claude
    • ChatGPT
    • Gemini
    • 其他 MCP 用戶端
    • 概覽
    • 身分驗證
    • 商品搜尋
    • 商品詳情
    • 販售國家
    • 錯誤與速率限制
  1. 文件
  2. 合作夥伴 API(B2B)
  3. 商品詳情

合作夥伴 API(B2B)

商品詳情

GET /b2b/v1/products/:id — 使用搜尋結果中的 id 取得單一商品。

本頁內容
  • 請求
  • 回應
  • 錯誤

請求#

GET/b2b/v1/products/:id
curl "https://api.esimoa.com/b2b/v1/products/partner_9VKPYQ3JRYVK5797" \
  -H "X-API-Key: $ESIMOA_PARTNER_KEY"
const res = await fetch(`https://api.esimoa.com/b2b/v1/products/${encodeURIComponent(id)}`, {
  headers: { 'X-API-Key': process.env.ESIMOA_PARTNER_KEY },
});
if (res.status === 404) {
  // PRODUCT_NOT_FOUND — no longer on sale, remove it from your catalog
}
const { data: product } = await res.json();
res = requests.get(
    f"https://api.esimoa.com/b2b/v1/products/{product_id}",
    headers={"X-API-Key": os.environ["ESIMOA_PARTNER_KEY"]},
    timeout=10,
)
if res.status_code == 404:
    ...  # PRODUCT_NOT_FOUND — no longer on sale
product = res.json()["data"]

id 為商品搜尋結果中的 id(以 partner_ 開頭)。

回應#

data 為單一 PartnerProduct 物件。

200 OKjson
{
  "success": true,
  "data": { "id": "partner_9VKPYQ3JRYVK5797", "name": "Japan Unlimited 5일", "...": "..." }
}

錯誤#

id 格式錯誤、不存在或 esimoa 已不再直接販售的商品回傳 404 PRODUCT_NOT_FOUND。請將其從您儲存的目錄中移除。

404 Not Foundjson
{ "statusCode": 404, "code": "PRODUCT_NOT_FOUND", "message": "Product not found." }

最後更新: 2026年10月1日

上一頁商品搜尋下一頁販售國家

本頁內容

  • 請求
  • 回應
  • 錯誤

將 esimoa eSIM 接入您產品的 API 與 MCP

資源

  • 文件
  • API 參考
  • 合作夥伴 API(B2B)
  • MCP 伺服器
  • OpenAPI 規格

esimoa

  • 首頁
  • eSIM 方案
  • 開發者中心
  • 控制台
  • 合作夥伴入口網站

公司

  • 公司介紹
  • 合作諮詢
  • 服務條款
  • 隱私政策
  • 交付與退款政策

支援

  • support@esimoa.com
  • 客服聊天

NBase Korea Co., Ltd.

京畿道龍仁市水枝區新水路767號, A棟902室(東川洞,盆唐水枝U-TOWER)

美國總部: NBASE CORP. · Corporate Park, Irvine, CA 92606, USA

© 2026 esimoa. All rights reserved.