Docs
ศูนย์นักพัฒนาแดชบอร์ดesimoa.com
    • บทนำ
    • เริ่มต้นใช้งานด่วน
    • การยืนยันตัวตน
    • Overview
    • แสดงรายการ eSIM
    • รับ eSIM
    • ประเทศ
    • OpenAPI
    • การติดตามและค่าคอมมิชชัน
    • ขีดจำกัดอัตราคำขอและข้อผิดพลาด
    • Overview
    • Claude
    • ChatGPT
    • Gemini
    • ไคลเอนต์ MCP อื่นๆ
    • Overview
    • การยืนยันตัวตน
    • สินค้า
    • รายละเอียดสินค้า
    • ประเทศ
    • Errors & rate limits
  1. Docs
  2. API สำหรับพาร์ตเนอร์ (B2B)
  3. รายละเอียดสินค้า

API สำหรับพาร์ตเนอร์ (B2B)

รายละเอียดสินค้า

GET /b2b/v1/products/:id — get one product by the id from search results.

On this page
  • Request
  • การตอบกลับ
  • Errors

Request#

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일", "...": "..." }
}

Errors#

id ที่รูปแบบไม่ถูกต้อง id ที่ไม่รู้จัก หรือสินค้าที่ esimoa ไม่ได้ขายโดยตรงแล้ว จะได้รับ 404 PRODUCT_NOT_FOUND ให้นำออกจากแคตตาล็อกที่บันทึกไว้

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

อัปเดตล่าสุด: 1 ตุลาคม 2569

Previousสินค้าถัดไปประเทศ

On this page

  • Request
  • การตอบกลับ
  • Errors

APIs and MCP for bringing esimoa eSIMs to your product

Resources

  • Docs
  • API reference
  • API สำหรับพาร์ตเนอร์ (B2B)
  • MCP server
  • OpenAPI spec

esimoa

  • หน้าหลัก
  • eSIM แพ็กเกจ
  • ศูนย์นักพัฒนา
  • แดชบอร์ด
  • พอร์ทัลพาร์ตเนอร์

Company

  • เกี่ยวกับเรา
  • พาร์ตเนอร์
  • เงื่อนไขการใช้บริการ
  • นโยบายความเป็นส่วนตัว
  • นโยบายจัดส่งและคืนเงิน

ช่วยเหลือ

  • support@esimoa.com
  • แชตช่วยเหลือ

NBase Korea Co., Ltd.

902, Bldg A, 767 Sinsu-ro, Suji-gu, Yongin-si, Gyeonggi-do (Dongcheon-dong, Bundang Suji U-TOWER)

สำนักงานใหญ่ในสหรัฐฯ: NBASE CORP. · Corporate Park, Irvine, CA 92606, USA

© 2026 esimoa สงวนลิขสิทธิ์