主页文档代码示例API 参考公告模型发行说明常见问题GitHub视频
开发者中心API 状态支持
文档
开发者中心API 状态支持

使用销售伙伴 API 管理商品信息

使用 SP-API 管理您的产品列表生命周期。

本指南描述了亚马逊上架商品的生命周期以及可用于管理该生命周期的卖家合作伙伴 API。

产品清单生命周期

在亚马逊上创建和管理清单的生命周期通常包括以下内容:

  1. 探索
    • 亚马逊的目录中已经有我想出售的商品了吗?
    • 我的商品在亚马逊的目录层次结构中处于什么位置?
    • 在亚马逊目录中创建商品需要什么?
    • 我有资格在亚马逊目录中发布商品吗?
  2. 创作
    • 我是否满足创建新商品或列出现有商品的数据要求?
    • 我提交的内容被接受了吗?
  3. 保养
    • 我的清单状态如何?它可以买吗?它能被发现吗?
    • 我的清单有任何问题吗?
    • 我的清单是否继续符合亚马逊的数据要求?

用于产品清单的销售合作伙伴 API

以下销售合作伙伴 API 可以帮助您管理产品清单:

这些 API 为商品信息创建和管理提供了以下核心功能:

  • 查询亚马逊目录 (ASIN) 中的数据。
  • 查询和遍历亚马逊目录层次结构(分类、分类节点)。
  • 按商品类型检索描述亚马逊数据要求的架构。
  • 按 ASIN 或商品类型检索商品信息资格详情。
  • 创建、查询、更新和删除商品信息 (SKU)。

此外,这些 API 还提供程序化通知,为第三方开发者和卖家实现事件驱动的工作流程。

商品类型定义 API

这个 用于产品类型定义的销售合作伙伴 API 提供对亚马逊目录中产品类型的属性和数据要求的编程访问。使用此 API,您可以请求给定市场中某一产品类型的要求并收到响应,其中包括描述所有要求、属性和要求条件的 JSON 架构。您可以使用此 JSON 架构来验证已有的负载或将其映射到您的 ERP(企业资源规划)。

以下示例使用 getDefinitionsProductType 请求的操作 LUGGAGE 北美商城中美式英语的商品类型:

GET https://sellingpartnerapi-na.amazon.com/definitions/2020-09-01/productTypes/LUGGAGE ?marketplaceIds=ATVPDKIKX0DER &locale=en_US

以下示例显示了对上述请求的响应,并提供了 LUGGAGE 商品信息的 ProductTypeDefinition

{ "metaSchema": { "link": { "resource": "https://...", "verb": "GET" }, "checksum": "QFQDmPwMARO7vwMEyLhOtw==" }, "schema": { "link": { "resource": "https://...", "verb": "GET" }, "checksum": "TBr8ubaxXrUyay9hmxUXUw==" }, "requirements": "LISTING", "requirementsEnforced": "ENFORCED", "propertyGroups": { "offer": { "title": "Offer", "description": "Product Offer", "propertyNames": [ "fulfillment_channel_availability", "purchasable_offer", "condition_type", "condition_note", "list_price", "product_tax_code", "merchant_release_date", "merchant_shipping_group", "max_order_quantity", "gift_options", "main_offer_image_locator", "other_offer_image_locator_1", "other_offer_image_locator_2", "other_offer_image_locator_3", "other_offer_image_locator_4", "other_offer_image_locator_5" ] }, "images": { "title": "Images", "description": "Physical imagess or URL's", "propertyNames": [ "main_product_image_locator", "other_product_image_locator_1", "other_product_image_locator_2", "other_product_image_locator_3", "other_product_image_locator_4", "other_product_image_locator_5", "other_product_image_locator_6", "other_product_image_locator_7", "other_product_image_locator_8", "swatch_product_image_locator" ] }, "shipping": { "title": "Shipping", "description": "Information to determine shipping and storage of your product (e.g., package dimensions, weight, volume)", "propertyNames": [ "item_dimensions", "item_package_dimensions", "item_package_weight" ] }, "variations": { "title": "Variations", "description": "Variations that product will use", "propertyNames": [ "parentage_level", "child_parent_sku_relationship", "variation_theme" ] }, "safety_and_compliance": { "title": "Safety & Compliance", "description": "Information to indicate product compliance, hazardous materials, and legal and safety warnings (e.g., lithium batteries, choking hazards, Consumer Product Safety Information Act (CPSIA))", "propertyNames": [ "country_of_origin", "warranty_description", "batteries_required", "batteries_included", "battery", "num_batteries", "number_of_lithium_metal_cells", "number_of_lithium_ion_cells", "lithium_battery", "supplier_declared_dg_hz_regulation", "hazmat", "safety_data_sheet_url", "item_weight", "ghs", "supplier_declared_material_regulation", "california_proposition_65", "pesticide_marking" ] }, "product_identity": { "title": "Product Identity", "description": "Information to uniquely identify your product (e.g., UPC, EAN, GTIN, Product Type, Brand)", "propertyNames": [ "item_name", "brand", "supplier_declared_has_product_identifier_exemption", "externally_assigned_product_identifier", "merchant_suggested_asin", "item_type_keyword", "item_type_name", "model_number", "manufacturer" ] }, "product_details": { "title": "Product Details", "description": "Information and characteristics to describe the product to support search, browse and detail page content (e.g., bullets, product features, model, style name)", "propertyNames": [ "product_description", "bullet_point", "special_feature", "style", "department", "target_gender", "age_range_description", "material", "outer", "fabric_type", "lining_description", "number_of_items", "number_of_wheels", "wheel", "model_name", "color", "size", "size_map", "part_number", "compliance_media" ] } }, "locale": "en_US", "marketplaceIds": [ "ATVPDKIKX0DER" ], "productType": "LUGGAGE", "productTypeVersion": { "version": "U8L4z4Ud95N16tZlR7rsmbQ==", "latest": true, "releaseCandidate": false } }

上传数据 JSON 架构

使用 Feeds JSON 架构 您可以批量更新个人清单。这些架构适用于 产品类型定义 API 并允许集成商使用 Listings Items API 使用的相同数据格式创建、编辑和删除亚马逊清单 (SKU)。清单数据可在 Listings Items API 和 JSON_LISTINGS_FEED Feed 类型,允许销售合作伙伴使用最适合其列表工作流程的机制或组合。

Listings Items API

这个 上架商品的卖家合作伙伴 API 提供对亚马逊上销售合作伙伴列表的编程访问权限。使用此 API,您可以逐一创建和编辑您的清单。它有四个操作:

JSON 列表信息源是一种新的上传数据类型。JSON 商品信息源与清单 API 类似,它允许您批量更新、使用产品类型定义 API 获取架构以及整理有效负载。此负载可以提交到清单项目 API,也可以批量提交到 JSON 清单源中。

以下示例使用 getListingsItem 请求的操作 Item 来自卖家的 sellerIdAXXXXXXXXXXXX 在北美市场上使用美式英语。它要求 summariesattributesissuesoffers,以及 fulfillmentAvailability 要进入 Item 在回应中:

GET https://sellingpartnerapi-na.amazon.com/listings/2021-08-01/items/AXXXXXXXXXXXX/example-sku ?marketplaceIds=ATVPDKIKX0DER &issueLocale=en_US &includedData=summaries,attributes,issues,offers,fulfillmentAvailability

对此请求的回应是 Itemsummariesattributesissuesoffers,以及 fulfillmentAvailability:

{ "sku": "example-aku", "summaries": [ { "marketplaceId": "ATVPDKIKX0DER", "asin": "XXXASINXXX", "productType": "DRINKING_CUP", "conditionType": "new_new", "status": [ "BUYABLE", "DISCOVERABLE" ], "itemName": "6 Pack Coffee Mug Set, Farielyn-X 16 Ounce Ceramic Coffee Cups, Black Large Coffee mugs, Restaurant Coffee Cups for Coffee, Tea, Cappuccino, Cocoa, Cereal, Matte Black Outside and Colorful Inside", "createdDate": "2021-07-14T19:57:02.327Z", "lastUpdatedDate": "2021-07-14T19:57:10.637Z", "mainImage": { "link": "https://m.media-amazon.com/images/I/41epVg7mZoS.jpg", "height": 500, "width": 500 } } ], "attributes": { "condition_type": [ { "value": "new_new", "marketplace_id": "ATVPDKIKX0DER" } ], "merchant_shipping_group": [ { "value": "legacy-template-id", "marketplace_id": "ATVPDKIKX0DER" } ], "merchant_suggested_asin": [ { "value": "XXXASINXXX", "marketplace_id": "ATVPDKIKX0DER" } ], "purchasable_offer": [ { "currency": "USD", "start_at": { "value": "2021-07-14T19:56:57.717Z" }, "our_price": [ { "schedule": [ { "value_with_tax": 30.0 } ] } ], "marketplace_id": "ATVPDKIKX0DER" } ], "fulfillment_availability": [ { "fulfillment_channel_code": "DEFAULT", "quantity": 1, "marketplace_id": "ATVPDKIKX0DER" } ], "main_product_image_locator": [ { "media_location": "https://media-origin-na-ssl.integ.amazon.com/images/I/xxxx1.jpg", "marketplace_id": "ATVPDKIKX0DER" } ], "other_product_image_locator_1": [ { "media_location": "https://media-origin-na-ssl.integ.amazon.com/images/I/xxxxx2.jpg", "marketplace_id": "ATVPDKIKX0DER" } ], "other_product_image_locator_2": [ { "media_location": "https://media-origin-na-ssl.integ.amazon.com/images/I/xxxxx3.jpg", "marketplace_id": "ATVPDKIKX0DER" } ] }, "issues": [ { "message": "Attributes tagged as relevant_attributes are incomplete. Provide values for the following attribute(s): item_weight, theme, item_dimensions, item_diameter", "severity": "WARNING", "attributeName": "item_diameter", "attributeNames": [ "item_diameter", "item_dimensions", "item_weight", "theme" ] }, { "message": "Attributes tagged as customer_returns are incomplete. Provide values for the following attribute(s): color, item_dimensions, item_weight", "severity": "WARNING", "attributeName": "color", "attributeNames": [ "color", "item_dimensions", "item_weight" ] } ], "offers": [ { "marketplaceId": "ATVPDKIKX0DER", "offerType": "B2C", "price": { "currency": "USD", "amount": "30.0" } } ], "fulfillmentAvailability": [ { "fulfillmentChannelCode": "DEFAULT", "quantity": 1 } ] }

Catalog Items API

The Selling Partner API for Catalog Items provides programmatic access to information about items in the Amazon catalog. In other words, you can search Amazon's catalog for products, match your products to the existing product listings on Amazon, and then make sourcing and pricing decisions for listing those products.

以下示例使用 getCatalogItem 申请带有 ASIN 的商品的操作 XXXXXXXXXX 在北美市场。它请求回复 Item 其中包含 attributesidentifiersimagesproductTypessalesRankssummariesvariations,以及 vendorDetails:

GET https://sellingpartnerapi-na.amazon.com/catalog/2022-04-01/items/XXXXXXXXXX ?marketplaceIds=ATVPDKIKX0DER &includedData=attributes,identifiers,images,productTypes,salesRanks,summaries,variations,vendorDetails

对该请求的回应包含 Item 包含所有要求的信息:

{ "asin": "XXXXXXXXXX", "attributes": { "total_hdmi_ports": [ { "value": 4, "marketplace_id": "ATVPDKIKX0DER" } ], "resolution": [ { "language_tag": "en_US", "value": "4K", "marketplace_id": "ATVPDKIKX0DER" } ], "item_weight": [ { "unit": "pounds", "value": 107.6, "marketplace_id": "ATVPDKIKX0DER" } ], "product_subcategory": [ { "value": "50400150", "marketplace_id": "ATVPDKIKX0DER" } ], "item_dimensions": [ { "width": { "unit": "inches", "value": 72.4 }, "length": { "unit": "inches", "value": 2.4 }, "height": { "unit": "inches", "value": 41.4 }, "marketplace_id": "ATVPDKIKX0DER" } ], "brand": [ { "language_tag": "en_US", "value": "Samsung Electronics", "marketplace_id": "ATVPDKIKX0DER" } ], "control_method": [ { "value": "voice", "marketplace_id": "ATVPDKIKX0DER" } ], "item_package_dimensions": [ { "length": { "unit": "centimeters", "value": ### }, "width": { "unit": "centimeters", "value": ### }, "height": { "unit": "centimeters", "value": ### }, "marketplace_id": "ATVPDKIKX0DER" } ], "image_aspect_ratio": [ { "language_tag": "en_US", "value": "##:#", "marketplace_id": "ATVPDKIKX0DER" } ], "part_number": [ { "value": "XXX", "marketplace_id": "ATVPDKIKX0DER" } ], "includes_remote": [ { "value": true, "marketplace_id": "ATVPDKIKX0DER" } ], "item_type_name": [ { "language_tag": "en_US", "value": "TV", "marketplace_id": "ATVPDKIKX0DER" } ], "battery": [ { "cell_composition": [ { "value": "XXX" } ], "marketplace_id": "ATVPDKIKX0DER" } ], "manufacturer": [ { "language_tag": "en_US", "value": "XXX", "marketplace_id": "ATVPDKIKX0DER" } ], "number_of_boxes": [ { "value": #, "marketplace_id": "ATVPDKIKX0DER" } ], "total_usb_ports": [ { "value": #, "marketplace_id": "ATVPDKIKX0DER" } ], "model_number": [ { "value": "XXX", "marketplace_id": "ATVPDKIKX0DER" } ], "supplier_declared_dg_hz_regulation": [ { "value": "not_applicable", "marketplace_id": "ATVPDKIKX0DER" } ], "num_batteries": [ { "quantity": 2, "type": "aaa", "marketplace_id": "ATVPDKIKX0DER" } ], "california_proposition_65": [ { "compliance_type": "on_product_combined_cancer_reproductive", "marketplace_id": "ATVPDKIKX0DER" }, { "compliance_type": "chemical", "chemical_names": [ "xxx" ], "marketplace_id": "ATVPDKIKX0DER" } ], "display": [ { "resolution_maximum": [ { "unit": "pixels", "language_tag": "en_US", "value": "XX x XX" } ], "size": [ { "unit": "inches", "value":## } ], "type": [ { "language_tag": "en_US", "value": "****" } ], "marketplace_id": "ATVPDKIKX0DER" } ], "item_name": [ { "language_tag": "en_US", "value": "XXX", "marketplace_id": "ATVPDKIKX0DER" } ], "list_price": [ { "currency": "USD", "value": $$$, "marketplace_id": "ATVPDKIKX0DER" } ], "batteries_required": [ { "value": false, "marketplace_id": "ATVPDKIKX0DER" } ], "includes_rechargable_battery": [ { "value": false, "marketplace_id": "ATVPDKIKX0DER" } ], "product_site_launch_date": [ { "value": "2019-03-11T08:00:01.000Z", "marketplace_id": "ATVPDKIKX0DER" } ], "product_category": [ { "value": "50400100", "marketplace_id": "ATVPDKIKX0DER" } ], "batteries_included": [ { "value": false, "marketplace_id": "ATVPDKIKX0DER" } ], "connectivity_technology": [ { "language_tag": "en_US", "value": "Bluetooth", "marketplace_id": "ATVPDKIKX0DER" }, { "language_tag": "en_US", "value": "USB", "marketplace_id": "ATVPDKIKX0DER" }, { "language_tag": "en_US", "value": "Wireless", "marketplace_id": "ATVPDKIKX0DER" }, { "language_tag": "en_US", "value": "HDMI", "marketplace_id": "ATVPDKIKX0DER" } ], "included_components": [ { "language_tag": "en_US", "value": "XXX", "marketplace_id": "ATVPDKIKX0DER" }, { "language_tag": "en_US", "value": "XXX", "marketplace_id": "ATVPDKIKX0DER" }, { "language_tag": "en_US", "value": "XXX", "marketplace_id": "ATVPDKIKX0DER" }, { "language_tag": "en_US", "value": "XXX", "marketplace_id": "ATVPDKIKX0DER" } ], "specification_met": [ { "language_tag": "en_US", "value": "", "marketplace_id": "ATVPDKIKX0DER" } ], "cpsia_cautionary_statement": [ { "value": "XXX", "marketplace_id": "ATVPDKIKX0DER" } ], "item_type_keyword": [ { "value": "XXX", "marketplace_id": "ATVPDKIKX0DER" } ], "number_of_items": [ { "value": 1, "marketplace_id": "ATVPDKIKX0DER" } ], "warranty_description": [ { "language_tag": "en_US", "value": "1 year manufacturer", "marketplace_id": "ATVPDKIKX0DER" } ], "max_resolution": [ { "unit": "pixels", "value": 8.3, "marketplace_id": "ATVPDKIKX0DER" } ], "item_package_weight": [ { "unit": "kilograms", "value": 62.142, "marketplace_id": "ATVPDKIKX0DER" } ], "supported_internet_services": [ { "language_tag": "en_US", "value": "Amazon Instant Video", "marketplace_id": "ATVPDKIKX0DER" }, { "language_tag": "en_US", "value": "YouTube", "marketplace_id": "ATVPDKIKX0DER" }, { "language_tag": "en_US", "value": "Netflix", "marketplace_id": "ATVPDKIKX0DER" }, { "language_tag": "en_US", "value": "Hulu", "marketplace_id": "ATVPDKIKX0DER" }, { "language_tag": "en_US", "value": "Browser", "marketplace_id": "ATVPDKIKX0DER" } ], "tuner_technology": [ { "language_tag": "en_US", "value": "Analog Tuner", "marketplace_id": "ATVPDKIKX0DER" } ], "wireless_communication_technology": [ { "language_tag": "en_US", "value": "Wi-Fi::Wi-Fi Direct::Bluetooth", "marketplace_id": "ATVPDKIKX0DER" } ], "model_year": [ { "value": 2019, "marketplace_id": "ATVPDKIKX0DER" } ], "power_source_type": [ { "language_tag": "en_US", "value": "Corded Electric", "marketplace_id": "ATVPDKIKX0DER" } ], "street_date": [ { "value": "2019-03-21T00:00:01Z", "marketplace_id": "ATVPDKIKX0DER" } ], "refresh_rate": [ { "unit": "hertz", "language_tag": "en_US", "value": "120", "marketplace_id": "ATVPDKIKX0DER" } ] }, "identifiers": [ { "marketplaceId": "ATVPDKIKX0DER", "identifiers": [ { "identifier": "0887276302195", "identifierType": "EAN" }, { "identifier": "00887276302195", "identifierType": "GTIN" }, { "identifier": "887276302195", "identifierType": "UPC" } ] } ], "images": [ { "marketplaceId": "ATVPDKIKX0DER", "images": [ { "variant": "MAIN", "link": "https://m.media-amazon.com/images/I/51DZzp3w3vL.jpg", "height": 333, "width": 500 } ] } ], "productTypes": [ { "marketplaceId": "ATVPDKIKX0DER", "productType": "TELEVISION" } ], "ranks": [ { "marketplaceId": "ATVPDKIKX0DER", "ranks": [ { "title": "Electronics", "link": "http://www.amazon.com/gp/bestsellers/electronics", "value": 61667 }, { "title": "QLED TVs", "link": "http://www.amazon.com/gp/bestsellers/electronics/21489946011", "value": 84 } ] } ], "summaries": [ { "marketplaceId": "ATVPDKIKX0DER", "brandName": "Samsung Electronics", "colorName": "Black", "itemName": "Samsung QN82Q60RAFXZA Flat 82-Inch QLED 4K Q60 Series (2019) Ultra HD Smart TV with HDR and Alexa Compatibility", "manufacturer": "Samsung", "modelNumber": "QN82Q60RAFXZA", "sizeName": "82-Inch", "styleName": "TV only" } ], "variations": [ { "marketplaceId": "ATVPDKIKX0DER", "asins": [ "B08J7TQ9FL" ], "variationType": "CHILD" } ], "vendorDetails": [ { "marketplaceId": "ATVPDKIKX0DER", "brandCode": "SAMF9", "categoryCode": "50400100", "manufacturerCode": "SAMF9", "manufacturerCodeParent": "SAMF9", "productGroup": "Home Entertainment", "replenishmentCategory": "OBSOLETE", "subcategoryCode": "50400150" } ] }

Notifications API

这个 用于通知的销售合作伙伴 API 允许您订阅与销售合作伙伴业务相关的各种通知。以下通知为上架商品提供了有用的信息:

  • ITEM_PRODUCT_TYPE_CHANGE:当销售合作伙伴与之有品牌关系的任何商品的商品类型发生变化时发送。
  • LISTINGS_ITEM_STATUS_CHANGE:当卖家合作伙伴的清单商品状态发生变化时发送。此通知将在创建、删除清单商品或其可购买性发生变化时发布。
  • LISTINGS_ITEM_ISSUES_CHANGE:当与卖家合作伙伴拥有的清单商品相关的问题发生变化时发送。问题表明,该商品存在问题,导致商品不可售、搜索被抑制或其他质量问题。
  • PRODUCT_TYPE_DEFINITIONS_CHANGE:当有新的产品类型或产品类型版本时发送。

有关订阅通知的更多信息,请参阅 通知用例指南 还有 createSubscription 操作。


此页面对您有帮助吗?