php - 我应该在哪里获取 jet_browse_node_id 以用于 jet.com 市场文件上传 API 的以下 JSON 请求?

标签 php json jet.com-apis

我应该在哪里获取要在 jet.com 市场文件上传 API 的以下 JSON 请求中使用的 jet_browse_node_id

{
  "{merchant_sku}": {
    "product_title": "Huggies Snug and Dry Diapers, Size 4, Economy Plus Pack, 192 Count",
    "jet_browse_node_id": 2000039,
    "standard_product_codes": [
      {
        "standard_product_code": "036000365474",
        "standard_product_code_type": "UPC"
      }
    ],
    "ASIN": "B00BCXF7MU",
    "multipack_quantity": 1,
    "brand": "Huggies",
    "manufacturer": "Kimberly Clark",
    "product_description": "HUGGIES Snug & Dry Diapers with SureFit design and stretchy waistband bring your baby the dryness and comfort they deserve. The design adds protection around their thighs and waist, a more flexible absorbent pad, and a softer outer diaper cover, so your baby can spend up to 12 hours playing with complete leak protection.",
    "bullets": [
      "Fits babies from 22 to 37 lbs",
      "Only Huggies Snug & Dry Diapers have all new SureFit* Design for up to 12 hours of leakage protection for your baby",
      "Now more conforming, gap-free fit for all-around protection for your baby",
      "Trusted Leak Lock System with quick-absorbing layers and long-lasting core to lock in wetness",
      "SnugFit* Waistband on our Size 4 diapers have a more flexible absorbent diaper pad to move with your baby?s twists and turns and softer outer diaper cover with adorable Mickey & Friends Disney designs"
    ],
    "number_units_for_price_per_unit": 1,
    "type_of_unit_for_price_per_unit": "each",
    "shipping_weight_pounds": 13.6,
    "package_length_inches": 9.2,
    "package_width_inches": 18,
    "package_height_inches": 14.4,
    "display_length_inches": 9.2,
    "display_width_inches": 18,
    "display_height_inches": 14.4,
    "prop_65": false,
    "legal_disclaimer_description": "Actual product packaging and materials may contain more and different information than what is shown on our website. We recommend that you do not rely solely on the information presented and that you always read labels, warnings, and directions before using or consuming a product. Please see our full disclaimer below.",
    "country_of_origin": "USA",
    "safety_warning": "Caution: Keep away from any source of flame.",
    "map_price": 12.1,
    "map_implementation": "type1",
    "product_tax_code": "Disposable Infant Diapers",
    "exclude_from_fee_adjustments": false,
    "ships_alone": false,
    "attributes_node_specific": [
      {
        "attribute_id": 95,
        "attribute_value": "192",
        "attribute_value_unit": "count"
      },
      {
        "attribute_id": 81,
        "attribute_value": "Size 4"
      },
      {
        "attribute_id": 125,
        "attribute_value": "Size 4"
      }
    ]
  }
}

以下是我获取请求的文档部分的 URL click here .

最佳答案

jet_browse_node_id 只是匹配 Jet 分类类别id,后者的节点。您的问题 2000039 中给出的值已分配给一次性尿布

其他相关产品属性中的分类 ID 可以通过 Jet Taxonomy API 获得。后者是 REST API,允许通过行走分类树来发现匹配的产品类别。例如,可以响应于

获取id 2000039的详细信息
https://merchant-api.jet.com/api/taxonomy/nodes/2000039

取回以下 Json 负载

{
  "jet_node_id": 2000039,
  "jet_node_name": "Disposable Diapers",
  "jet_node_path": "Baby/Diapering/Disposable Diapers",
  "amazon_node_ids": [
    166772011
  ],
  "parent_id": 2000031,
  "jet_level": 2,
  "suggested_tax_code": "Disposable Infant Diapers"
}

或者,可以从您的 Jet 合作伙伴团队代表处以 Excel 文件的形式获取完整的 Jet 分类法的当前快照。

关于php - 我应该在哪里获取 jet_browse_node_id 以用于 jet.com 市场文件上传 API 的以下 JSON 请求?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32836282/

相关文章:

php - 有没有办法在 PHP 中验证 SSH 公钥?

php - 插入之前检查一个键是否唯一,如果不唯一则创建另一个键

python - flask wtforms填充下拉列表

json - AlamoFire 4.0 + SwiftyJSON 展开深度嵌套的 JSON

javascript - 从 Canvas 中排除元素以保存到 json (fabric.js)

php - 为什么MAMP不更改php版本

php - 如何在 laravel 5.5 中使用 html 模板登录并存储在 mysql 数据库中