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.