将产品添加到目录并更改有关它们的信息

方法适用于模式:FBY, FBS, Express 和 DBS.

如果您使用API-Key令牌,调用该方法时需要具备列表中可用权限之一

将产品添加到目录并传输:

  • 他们的叶子类别 关于市场和分类特征;
  • 主要特点;
  • 商品在橱柜的价格。

它还结合卡上的产品,编辑和删除有关已添加产品的信息,包括机柜和产品类别中的价格。

您可以使用请求获取市场类别列表。 POST v2/categories/tree,以及按类别使用的产品特性 POST v2/category/{categoryId}/parameters.

添加新产品

使用以前从未在文件夹中使用过的新ID传输它。

请务必指定参数: offerId, name, marketCategoryId, pictures, vendor, description.

尝试一次传达尽可能多的信息 — 市场将需要它来选择合适的卡或创建一个新的。

如果您知道市场上的哪张卡对应的产品,您可以立即指定此卡的ID(SKU 在市场上)在现场 marketSKU.

对于Yandex Go市场的卖家:

将产品添加到目录时,请指定参数值 namedescription 用俄语。 要在展柜上以不同的语言显示它们,请再次提出请求。 POST v2/businesses/{businessId}/offer-mappings/update 在哪里指定:

  • 参数中的语言 language;
  • 参数值 namedescription 在指定的语言。

不需要重新传输剩余的产品特性。

更改产品信息

通过指定in发送新数据 offerId SKU 产品在您的系统中。

可以省略任何更改的字段。

删除以前传输的产品参数

deleteParameters 指定要删除的参数的值。 您可以一次传递多个值。

对于具有类型的参数 string 您也可以传递空值。

参数 offerId (SKU 系统中的产品)必须是 独特的 对于您转移的所有产品。

使用规则 SKU

  • 对于每个产品 SKU 一定有一个。

  • 已经设置 SKU 它不能被释放并重新用于另一个产品。 每个产品都应该收到一个以前从未在目录中使用过的新标识符。

SKU 产品可以在市场上的卖方帐户中更改。 阅读有关如何做到这一点。 在市场对卖家的帮助.

目录中的数据不会立即更新

最多需要几分钟。

⚙️ 限制: 每分钟10,000个产品,每个请求不超过100个产品

Request

POST

https://api.partner.market.yandex.ru/v2/businesses/{businessId}/offer-mappings/update

Path parameters

Name

Description

businessId

Type: integer

内阁ID。 要找到答案,请使用请求 GET v2/campaigns.

ℹ️ 什么是市场上的橱柜和商店?

Min value: 1

Query parameters

Name

Description

language

Type: string

接受和返回参数中的值的语言 namedescription.

默认值: RU.

语言:

  • RU — 俄语。
  • UZ — 乌兹别克。

Enum: RU, UZ

Body

application/json
{
  "offerMappings": [
    {
      "offer": {
        "offerId": "example",
        "name": "Ударная дрель Makita HP1630, 710 Вт",
        "marketCategoryId": 0,
        "category": "example",
        "pictures": [
          null
        ],
        "videos": [
          null
        ],
        "manuals": [
          null
        ],
        "vendor": "LEVENHUK",
        "barcodes": [
          null
        ],
        "description": "example",
        "manufacturerCountries": [
          null
        ],
        "weightDimensions": {},
        "vendorCode": "VNDR-0005A",
        "tags": [
          null
        ],
        "shelfLife": {},
        "lifeTime": {},
        "guaranteePeriod": {},
        "customsCommodityCode": "8517610008",
        "commodityCodes": [
          null
        ],
        "certificates": [
          null
        ],
        "boxCount": 1,
        "condition": {},
        "type": "DEFAULT",
        "downloadable": true,
        "adult": true,
        "age": {},
        "params": [
          null
        ],
        "parameterValues": [
          null
        ],
        "basicPrice": {},
        "purchasePrice": {},
        "additionalExpenses": {},
        "firstVideoAsCover": true,
        "deleteParameters": [
          null
        ]
      },
      "mapping": {
        "marketSku": 1
      }
    }
  ],
  "onlyPartnerMediaContent": true
}

Name

Description

offerMappings

Type: object[]

offer

Type: object

All of 2 types
  • Type: object

    offerId

    Type: string

    你的 SKU — 系统中的产品ID。

    使用规则 SKU:

    • 对于每个产品 SKU 一定有一个。

    • 已经设置 SKU 它不能被释放并重新用于另一个产品。 每个产品都应该收到一个以前从未在目录中使用过的新标识符。

    SKU 产品可以在市场上的卖方帐户中更改。 阅读如何做到这一点。 在市场对卖家的帮助.

    重要

    值开头和结尾的空格会自动删除。 例如, " SKU123 ""SKU123" 它们将被视为相同的值。

    什么是 SKU 以及如何分配它

    Min length: 1

    Max length: 255

    Pattern: ^(?=.*\S.*)[^\x00-\x08\x0A-\x1f\x7f]{1,255}$

    Example: example

    adult

    Type: boolean

    该参数包括产品的18+标签。 仅将其设置为与满足性需求相关的产品。

    age

    Type: object

    ageUnit

    Type: string

    年龄测量单位:

    • YEAR — 年。
    • MONTH — 月份。

    Enum: YEAR, MONTH

    value

    Type: number

    意义。

    Min value: 0

    年龄在指定的测量单位。

    Example
    {
      "value": 0,
      "ageUnit": "YEAR"
    }
    

    barcodes

    Type: string[] | null

    条形码。

    将其指定为数字序列。 密码可以 EAN-13, EAN-8, UPC-A, UPC-E 或 Code 128. 对于书籍 — ISBN.

    对于产品 某些类别和品牌 条形码必须是有效的代码。 GTIN. 请注意:内部条码以2或02开头,以及格式代码 Code 128 他们不是 GTIN.

    【是什么 GTIN](*gtin)

    Min items: 1

    Unique items: true

    Example
    [
      "46012300000000"
    ]
    

    boxCount

    Type: integer

    货位的数量。

    如果产品由多个盒子、包装等组成,则使用此参数。 例如,空调占用两个座位 — 外部和内部单元在两个盒子里。

    对于占据一个位置的产品,不要传递此参数。

    Min value: 1

    category

    Type: string

    相反,使用 marketCategoryId.

    您商店中的产品类别。

    Example: example

    certificates

    Type: string[] | null

    产品文件的编号:证书、符合性声明等.

    你只可将文件编号传送至商户的办公室,而文件编号的扫描资料则由 指示说明.

    Min items: 1

    Max items: 6

    Unique items: true

    Example
    [
      "example"
    ]
    

    commodityCodes

    Type: object[]

    code

    Type: string

    产品代码。

    Example: example

    type

    Type: string

    产品代码类型:

    • CUSTOMS_COMMODITY_CODE — 对外经济活动统一商品命名法(HS)中的产品代码 — 没有空格的10或14位数字。
    • IKPU_CODE — 乌兹别克斯坦产品和服务的识别码为17位数字,无空格。

    不要发送相同类型的多个代码。

    Enum: CUSTOMS_COMMODITY_CODE, IKPU_CODE

    产品代码。

    Min items: 1

    Example
    [
      {
        "code": "example",
        "type": "CUSTOMS_COMMODITY_CODE"
      }
    ]
    

    condition

    Type: object

    quality

    Type: string

    产品外观:

    • PERFECT — 理想。
    • EXCELLENT — 善乎哉!.
    • GOOD — 好。
    • NOT_SPECIFIED — 未被选中。

    Enum: PERFECT, EXCELLENT, GOOD, NOT_SPECIFIED

    reason

    Type: string

    产品说明。 详细描述缺陷,它们的明显程度以及在哪里寻找它们。

    Example: example

    type

    Type: string

    标记类型:

    • PREOWNED — 曾经属于另一个人的二手货。
    • SHOWCASESAMPLE — 展示样品。
    • REFURBISHED — 产品的再销售。
    • REDUCTION — 产品有缺陷。
    • RENOVATED — 的还原产物。
    • NOT_SPECIFIED — 未被选中。

    REFURBISHED — 对服装、鞋和配件的特殊意义. 它仅用于此类别的折扣产品。 不使用服装、鞋子和配件的其他值。

    Enum: PREOWNED, SHOWCASESAMPLE, REFURBISHED, REDUCTION, RENOVATED, NOT_SPECIFIED

    折扣产品的状况。

    Example
    {
      "type": "PREOWNED",
      "quality": "PERFECT",
      "reason": "example"
    }
    

    customsCommodityCode

    Type: string

    相反,使用 commodityCodes 与类型 CUSTOMS_COMMODITY_CODE.

    对外经济活动统一商品命名法(HS)中的产品代码 — 没有空格的10或14位数字。

    一定要指出是否有一个。

    Example: 8517610008

    description

    Type: string

    详细的产品说明:例如,它的优点和特点。

    说明中不提供安装和装配说明。 不要使用"折扣","销售","便宜","礼品"(礼品类别除外),"免费","特价","特价","新奇","新","模拟","订单","点击"等字样。 不要提供任何联系信息或链接。

    您可以使用HTML标记来格式化文本:

    • <h>,<h1>,<h2>等等 — 新闻标题;
    • <br>和<p> — 对于换行符;
    • <ol> — 对于编号列表;
    • <ul> — 对于项目符号列表。
    • <李> — 创建列表项(必须在<ol>或<ul>内);
    • <div> — 支持,但不影响文本显示。

    最佳长度 — 400-600个字符。

    建议和规则

    Max length: 6000

    Example: example

    downloadable

    Type: boolean

    数字产品的标志。 指定 true 如果产品是通过电子邮件交付的。

    如何使用数字商品

    guaranteePeriod

    Type: object

    timePeriod

    Type: integer

    指定单位的持续时间。

    timeUnit

    Type: string

    时间测量单元:

    • HOUR — 小时。
    • DAY — 一天。
    • WEEK — 一个星期。
    • MONTH — 月份。
    • YEAR — 年。

    Enum: HOUR, DAY, WEEK, MONTH, YEAR

    comment

    Type: string

    评论。

    Max length: 500

    Example: example

    带有注释的时间段。 注释内容的要求取决于参数用法的上下文,并在包含它的字段的描述中指定。

    Example
    {
      "timePeriod": 0,
      "timeUnit": "HOUR",
      "comment": "example"
    }
    

    lifeTime

    Type: object

    timePeriod

    Type: integer

    指定单位的持续时间。

    timeUnit

    Type: string

    时间测量单元:

    • HOUR — 小时。
    • DAY — 一天。
    • WEEK — 一个星期。
    • MONTH — 月份。
    • YEAR — 年。

    Enum: HOUR, DAY, WEEK, MONTH, YEAR

    comment

    Type: string

    评论。

    Max length: 500

    Example: example

    带有注释的时间段。 注释内容的要求取决于参数用法的上下文,并在包含它的字段的描述中指定。

    Example
    {
      "timePeriod": 0,
      "timeUnit": "HOUR",
      "comment": "example"
    }
    

    manuals

    Type: object[]

    url

    Type: string

    Min length: 1

    Max length: 2000

    Example: example

    title

    Type: string

    将显示在产品卡上的指令的名称。

    Max length: 500

    Example: example

    使用产品的说明列表。

    Min items: 1

    Max items: 6

    Example
    [
      {
        "url": "example",
        "title": "example"
      }
    ]
    

    manufacturerCountries

    Type: string[] | null

    产品生产的国家。

    写下这些国家的名字,因为它们是写在 名单.

    Min items: 1

    Unique items: true

    Example
    [
      "Россия"
    ]
    

    marketCategoryId

    Type: integer

    您将产品归因于市场上类别的ID。

    传输时始终指示 parameterValues

    如果,在改变特征时,通过 parameterValues 并且不指定 marketCategoryId,特征将被更新,但您将在响应中收到警告(参数 warnings).

    如果您不传递这两个参数,则将使用来自过时参数的信息。 paramscategory,而 marketCategoryId 它将被自动检测到。

    更改类别时,请确保参数中的产品特性及其值 parameterValues 您正在提交一个新的类别.

    您可以使用请求获取市场类别列表。 POST v2/categories/tree.

    Min value: 0

    Exclusive min: true

    name

    Type: string

    根据方案组成名称:类型+品牌或制造商+型号+功能,如果有(例如,颜色,尺寸或重量)和数量在包装中。

    不包括情感特征("命中","超级"等。)以销售条款的名义(例如,"折扣","免费送货"等。). 不要用大写字母写单词 — 除了成熟的品牌名称和型号。

    最佳长度 — 50-60个字符。

    建议和规则

    Max length: 256

    Example: Ударная дрель Makita HP1630, 710 Вт

    params

    Type: object[]

    name

    Type: string

    特性的名称。

    它必须与市场上的功能名称相匹配。 您可以从类别的Excel模板或通过查询找到它。 POST v2/category/{categoryId}/parameters.

    Max length: 200

    Example: Wi-Fi

    value

    Type: string

    意义。

    Example: есть

    传输特性时,使用 parameterValues.

    只有特定类别的产品才具有的特性。 — 例如,自行车车轮的直径或鞋底的材料。

    Min items: 1

    Example
    [
      {
        "name": "Wi-Fi",
        "value": "есть"
      }
    ]
    

    pictures

    Type: string[] | null

    产品图片的链接。 第一个链接上的图像被认为是主要的,其他的是额外的。

    连结要求

    • 指定整个链接,包括http或https协议。
    • 俄文字母 URL 阿美。
    • 您可以使用直接链接到图像和Yandex的。磁盘。 Yandex上的链接。必须使用函数共享复制磁盘。 与其他云存储的相对链接和链接 — 它们不起作用。

    https://example-shop.ru/images/sku12345.jpg

    https://yadi.sk/i/NaBoRsimVOLov

    /images/sku12345.jpg

    https://www.dropbox.com/s/818f/tovar.jpg

    与图像的链接必须是永久性的。 不能使用从上载更改为上载的动态链接。

    如果您需要替换图像,请通过新链接上传新图像,并删除到旧图像的链接。 如果您只是使用旧链接替换图像,它将不会更新。

    图像要求

    Min items: 1

    Max items: 30

    Example
    [
      "example"
    ]
    

    shelfLife

    Type: object

    timePeriod

    Type: integer

    指定单位的持续时间。

    timeUnit

    Type: string

    时间测量单元:

    • HOUR — 小时。
    • DAY — 一天。
    • WEEK — 一个星期。
    • MONTH — 月份。
    • YEAR — 年。

    Enum: HOUR, DAY, WEEK, MONTH, YEAR

    comment

    Type: string

    评论。

    Max length: 500

    Example: example

    带有注释的时间段。 注释内容的要求取决于参数用法的上下文,并在包含它的字段的描述中指定。

    Example
    {
      "timePeriod": 0,
      "timeUnit": "HOUR",
      "comment": "example"
    }
    

    tags

    Type: string[] | null

    商店使用的产品标签。 标签对客户不可见。 您可以按标签对目录中的不同产品进行分组和过滤。 — 例如,同一系列、系列或系列的产品。

    最大标签长度 — 20个字符。 一个产品最多可以有10个标签.

    Min items: 1

    Max items: 50

    Unique items: true

    Example
    [
      "до 500 рублей"
    ]
    

    type

    Type: string

    特殊类型的产品:

    • DEFAULT — 产品,你以前提供了一个特殊的类型,并希望将其删除。
    • MEDICINE — 药品。
    • BOOK — 纸质和电子书。
    • AUDIOBOOK — 有声读物。
    • ARTIST_TITLE — 音乐和视频制作。
    • ON_DEMAND — 定制产品。
    • ALCOHOL — 酒精。

    如果您的产品是 — 书

    在产品规格中指定发布年份。 有关参数的更多信息

    Enum: DEFAULT, MEDICINE, BOOK, AUDIOBOOK, ARTIST_TITLE, ON_DEMAND, ALCOHOL

    vendor

    Type: string

    品牌或制造商的名称。 它应该按照品牌本身的方式来写。

    Example: LEVENHUK

    vendorCode

    Type: string

    从制造商的产品的文章。

    Example: VNDR-0005A

    videos

    Type: string[] | null

    连结(URL)上的产品视频。

    连结要求

    • 指定整个链接,包括http或https协议。
    • 俄文字母 URL 阿美。
    • 您可以使用视频和Yandex的直接链接。磁盘。 Yandex上的链接。必须使用函数共享复制磁盘。 与其他云存储的相对链接和链接 — 它们不起作用。

    https://example-shop.ru/video/sku12345.avi

    https://yadi.sk/i/NaBoRsimVOLov

    /video/sku12345.avi

    https://www.dropbox.com/s/818f/super-tovar.avi

    视频链接必须是永久性的。 不能使用从上载更改为上载的动态链接。

    如果您需要更换视频,请通过新链接上传新视频,并删除旧视频的链接。 如果您只是使用旧链接替换视频,它将不会更新。

    视频要求

    Min items: 1

    Max items: 6

    Example
    [
      "example"
    ]
    

    weightDimensions

    Type: object

    height

    Type: number

    包装高度以厘米为单位。

    Min value: 0

    length

    Type: number

    包装长度以厘米为单位。

    Min value: 0

    weight

    Type: number

    以公斤为单位的产品重量,包括包装(毛)。

    Min value: 0

    width

    Type: number

    包装宽度以厘米为单位。

    Min value: 0

    包装的尺寸和产品的重量。

    如果产品占用几个盒子,在测量尺寸之前将它们紧凑地折叠起来。

    多座位货物测量方案

    Example
    {
      "length": 65.55,
      "width": 50.7,
      "height": 20,
      "weight": 1.001
    }
    

    产品的主要参数。

    Example
    {
      "offerId": "example",
      "name": "Ударная дрель Makita HP1630, 710 Вт",
      "marketCategoryId": 0,
      "category": "example",
      "pictures": [
        "example"
      ],
      "videos": [
        "example"
      ],
      "manuals": [
        {
          "url": "example",
          "title": "example"
        }
      ],
      "vendor": "LEVENHUK",
      "barcodes": [
        "46012300000000"
      ],
      "description": "example",
      "manufacturerCountries": [
        "Россия"
      ],
      "weightDimensions": {
        "length": 65.55,
        "width": 50.7,
        "height": 20,
        "weight": 1.001
      },
      "vendorCode": "VNDR-0005A",
      "tags": [
        "до 500 рублей"
      ],
      "shelfLife": {
        "timePeriod": 0,
        "timeUnit": "HOUR",
        "comment": "example"
      },
      "lifeTime": {
        "timePeriod": 0,
        "timeUnit": "HOUR",
        "comment": "example"
      },
      "guaranteePeriod": {
        "timePeriod": 0,
        "timeUnit": "HOUR",
        "comment": "example"
      },
      "customsCommodityCode": "8517610008",
      "commodityCodes": [
        {
          "code": "example",
          "type": "CUSTOMS_COMMODITY_CODE"
        }
      ],
      "certificates": [
        "example"
      ],
      "boxCount": 1,
      "condition": {
        "type": "PREOWNED",
        "quality": "PERFECT",
        "reason": "example"
      },
      "type": "DEFAULT",
      "downloadable": true,
      "adult": true,
      "age": {
        "value": 0,
        "ageUnit": "YEAR"
      },
      "params": [
        {
          "name": "Wi-Fi",
          "value": "есть"
        }
      ]
    }
    
  • Type: object

    additionalExpenses

    Type: object

    currencyId

    Type: string

    货币代码:

    • RUR — 俄罗斯卢布。
    • UAH — 乌克兰格里夫纳。
    • BYR — 白俄罗斯卢布。
    • KZT — 哈萨克斯坦坚戈。
    • UZS — 乌兹别克总和。

    Enum: RUR, USD, EUR, UAH, AUD, GBP, BYR, BYN, DKK, ISK, KZT, CAD, CNY, NOK, XDR, SGD, TRY, SEK, CHF, JPY, AZN, ALL, DZD, AOA, ARS, AMD, AFN, BHD, BGN, BOB, BWP, BND, BRL, BIF, HUF, VEF, KPW, VND, GMD, GHS, GNF, HKD, GEL, AED, EGP, ZMK, ILS, INR, IDR, JOD, IQD, IRR, YER, QAR, KES, KGS, COP, CDF, CRC, KWD, CUP, LAK, LVL, SLL, LBP, LYD, SZL, LTL, MUR, MRO, MKD, MWK, MGA, MYR, MAD, MXN, MZN, MDL, MNT, NPR, NGN, NIO, NZD, OMR, PKR, PYG, PEN, PLN, KHR, SAR, RON, SCR, SYP, SKK, SOS, SDG, SRD, TJS, THB, TWD, BDT, TZS, TND, TMM, UGX, UZS, UYU, PHP, DJF, XAF, XOF, HRK, CZK, CLP, LKR, EEK, ETB, RSD, ZAR, KRW, NAD, TL, UE

    value

    Type: number

    品的价格。

    Min value: 0

    Exclusive min: true

    品的价格。

    Example
    {
      "value": 0,
      "currencyId": "RUR"
    }
    

    basicPrice

    Type: object

    All of 2 types
    • Type: object

      currencyId

      Type: string

      货币代码:

      • RUR — 俄罗斯卢布。
      • UAH — 乌克兰格里夫纳。
      • BYR — 白俄罗斯卢布。
      • KZT — 哈萨克斯坦坚戈。
      • UZS — 乌兹别克总和。

      Enum: RUR, USD, EUR, UAH, AUD, GBP, BYR, BYN, DKK, ISK, KZT, CAD, CNY, NOK, XDR, SGD, TRY, SEK, CHF, JPY, AZN, ALL, DZD, AOA, ARS, AMD, AFN, BHD, BGN, BOB, BWP, BND, BRL, BIF, HUF, VEF, KPW, VND, GMD, GHS, GNF, HKD, GEL, AED, EGP, ZMK, ILS, INR, IDR, JOD, IQD, IRR, YER, QAR, KES, KGS, COP, CDF, CRC, KWD, CUP, LAK, LVL, SLL, LBP, LYD, SZL, LTL, MUR, MRO, MKD, MWK, MGA, MYR, MAD, MXN, MZN, MDL, MNT, NPR, NGN, NIO, NZD, OMR, PKR, PYG, PEN, PLN, KHR, SAR, RON, SCR, SYP, SKK, SOS, SDG, SRD, TJS, THB, TWD, BDT, TZS, TND, TMM, UGX, UZS, UYU, PHP, DJF, XAF, XOF, HRK, CZK, CLP, LKR, EEK, ETB, RSD, ZAR, KRW, NAD, TL, UE

      value

      Type: number

      品的价格。

      Min value: 0

      Exclusive min: true

      品的价格。

      Example
      {
        "value": 0,
        "currencyId": "RUR"
      }
      
    • Type: object

      discountBase

      Type: number

      划掉的价格。

      数字必须是整数。 您可以指定折扣从5到99%的价格。

      如果您提供产品折扣,则在每次更新价格时传递此参数。

      Min value: 0

      Exclusive min: true

      Example
      {
        "discountBase": 0
      }
      

    价格与折扣指示.

    Example
    {
      "value": 0,
      "currencyId": "RUR",
      "discountBase": 0
    }
    

    deleteParameters

    Type: string[] | null

    您之前传递给的参数 UpdateOfferDTO,现在你想删除它。

    如果您发送 adult, downloadablefirstVideoAsCover 它们不会被删除 — 它们的值将变为 false.

    您可以一次传递多个值。

    不要与相应的参数一起使用 UpdateOfferDTO. 这将导致错误。 400.

    Min items: 1

    Unique items: true

    Example
    [
      "ADDITIONAL_EXPENSES"
    ]
    

    firstVideoAsCover

    Type: boolean

    使用卡中的第一个视频作为视频背景。

    传下去 true 为第一视频作为视频背景,或 false 使视频背景不显示在产品配置文件中。

    parameterValues

    Type: object[]

    parameterId

    Type: integer

    特性的标识符。

    Min value: 1

    unitId

    Type: integer

    测量单位的ID。 如果没有传递参数 unitId,使用默认的测量单位。

    value

    Type: string

    意义。

    对于类型特征 ENUM 发送:

    • valueId,如果从目录取值;
    • 没有 valueId,如果值是它自己的。

    Example: example

    valueId

    Type: integer

    值的ID。

    • 如果要从从市场接收的可接受值列表中传输值,请务必指定标识符。
    • 不要指定您自己的值。
    • 仅针对类型特征 ENUM.

    具有其值的特征列表。

    始终与 marketCategoryId

    如果你不通过它 marketCategoryId 当特征发生变化时,它们将被更新,但在响应中会收到警告(参数 warnings).

    如果您不传递这两个参数,则将使用来自过时参数的信息。 paramscategory,而 marketCategoryId 它将被自动检测到。

    改变特性时,仅传送其值需要更新的那些。 如果在 marketCategoryId 您正在更改类别,新旧类别的共同特征的值将保留,并且您不需要转移它们。

    阅读更多 "特性值的传递".

    Min items: 1

    Max items: 300

    Example
    [
      {
        "parameterId": 1,
        "unitId": 0,
        "valueId": 0,
        "value": "example"
      }
    ]
    

    purchasePrice

    Type: object

    currencyId

    Type: string

    货币代码:

    • RUR — 俄罗斯卢布。
    • UAH — 乌克兰格里夫纳。
    • BYR — 白俄罗斯卢布。
    • KZT — 哈萨克斯坦坚戈。
    • UZS — 乌兹别克总和。

    Enum: RUR, USD, EUR, UAH, AUD, GBP, BYR, BYN, DKK, ISK, KZT, CAD, CNY, NOK, XDR, SGD, TRY, SEK, CHF, JPY, AZN, ALL, DZD, AOA, ARS, AMD, AFN, BHD, BGN, BOB, BWP, BND, BRL, BIF, HUF, VEF, KPW, VND, GMD, GHS, GNF, HKD, GEL, AED, EGP, ZMK, ILS, INR, IDR, JOD, IQD, IRR, YER, QAR, KES, KGS, COP, CDF, CRC, KWD, CUP, LAK, LVL, SLL, LBP, LYD, SZL, LTL, MUR, MRO, MKD, MWK, MGA, MYR, MAD, MXN, MZN, MDL, MNT, NPR, NGN, NIO, NZD, OMR, PKR, PYG, PEN, PLN, KHR, SAR, RON, SCR, SYP, SKK, SOS, SDG, SRD, TJS, THB, TWD, BDT, TZS, TND, TMM, UGX, UZS, UYU, PHP, DJF, XAF, XOF, HRK, CZK, CLP, LKR, EEK, ETB, RSD, ZAR, KRW, NAD, TL, UE

    value

    Type: number

    品的价格。

    Min value: 0

    Exclusive min: true

    品的价格。

    Example
    {
      "value": 0,
      "currencyId": "RUR"
    }
    
    Example
    {
      "parameterValues": [
        {
          "parameterId": 1,
          "unitId": 0,
          "valueId": 0,
          "value": "example"
        }
      ],
      "basicPrice": {
        "value": 0,
        "currencyId": "RUR",
        "discountBase": 0
      },
      "purchasePrice": {
        "value": 0,
        "currencyId": "RUR"
      },
      "additionalExpenses": {
        "value": 0,
        "currencyId": "RUR"
      },
      "firstVideoAsCover": true,
      "deleteParameters": [
        "ADDITIONAL_EXPENSES"
      ]
    }
    

产品参数。

Example
{
  "offerId": "example",
  "name": "Ударная дрель Makita HP1630, 710 Вт",
  "marketCategoryId": 0,
  "category": "example",
  "pictures": [
    "example"
  ],
  "videos": [
    "example"
  ],
  "manuals": [
    {
      "url": "example",
      "title": "example"
    }
  ],
  "vendor": "LEVENHUK",
  "barcodes": [
    "46012300000000"
  ],
  "description": "example",
  "manufacturerCountries": [
    "Россия"
  ],
  "weightDimensions": {
    "length": 65.55,
    "width": 50.7,
    "height": 20,
    "weight": 1.001
  },
  "vendorCode": "VNDR-0005A",
  "tags": [
    "до 500 рублей"
  ],
  "shelfLife": {
    "timePeriod": 0,
    "timeUnit": "HOUR",
    "comment": "example"
  },
  "lifeTime": {
    "timePeriod": 0,
    "timeUnit": "HOUR",
    "comment": "example"
  },
  "guaranteePeriod": {
    "timePeriod": 0,
    "timeUnit": "HOUR",
    "comment": "example"
  },
  "customsCommodityCode": "8517610008",
  "commodityCodes": [
    {
      "code": "example",
      "type": "CUSTOMS_COMMODITY_CODE"
    }
  ],
  "certificates": [
    "example"
  ],
  "boxCount": 1,
  "condition": {
    "type": "PREOWNED",
    "quality": "PERFECT",
    "reason": "example"
  },
  "type": "DEFAULT",
  "downloadable": true,
  "adult": true,
  "age": {
    "value": 0,
    "ageUnit": "YEAR"
  },
  "params": [
    {
      "name": "Wi-Fi",
      "value": "есть"
    }
  ],
  "parameterValues": [
    {
      "parameterId": 1,
      "unitId": 0,
      "valueId": 0,
      "value": "example"
    }
  ],
  "basicPrice": {
    "value": 0,
    "currencyId": "RUR",
    "discountBase": 0
  },
  "purchasePrice": {
    "value": 0,
    "currencyId": "RUR"
  },
  "additionalExpenses": {
    "value": 0,
    "currencyId": "RUR"
  },
  "firstVideoAsCover": true,
  "deleteParameters": [
    "ADDITIONAL_EXPENSES"
  ]
}

mapping

Type: object

marketSku

Type: integer

市场上的产品卡的ID。

Min value: 1

从您的角度来看,市场上适合产品的卡片。 要确定相应卡的ID,请使用机柜中的搜索(产品中心目录上传产品).

根据验证结果,市场可以将产品链接到更合适的卡。

Example
{
  "marketSku": 1
}

需要添加或更新的产品列表。

我们将很快减少每个请求的最大产品数量.

现在不要发送超过100。

Min items: 1

Max items: 500

Example
[
  {
    "offer": {
      "offerId": "example",
      "name": "Ударная дрель Makita HP1630, 710 Вт",
      "marketCategoryId": 0,
      "category": "example",
      "pictures": [
        "example"
      ],
      "videos": [
        "example"
      ],
      "manuals": [
        {}
      ],
      "vendor": "LEVENHUK",
      "barcodes": [
        "46012300000000"
      ],
      "description": "example",
      "manufacturerCountries": [
        "Россия"
      ],
      "weightDimensions": {
        "length": 65.55,
        "width": 50.7,
        "height": 20,
        "weight": 1.001
      },
      "vendorCode": "VNDR-0005A",
      "tags": [
        "до 500 рублей"
      ],
      "shelfLife": {
        "timePeriod": 0,
        "timeUnit": "HOUR",
        "comment": "example"
      },
      "lifeTime": {
        "timePeriod": 0,
        "timeUnit": "HOUR",
        "comment": "example"
      },
      "guaranteePeriod": {
        "timePeriod": 0,
        "timeUnit": "HOUR",
        "comment": "example"
      },
      "customsCommodityCode": "8517610008",
      "commodityCodes": [
        {}
      ],
      "certificates": [
        "example"
      ],
      "boxCount": 1,
      "condition": {
        "type": "PREOWNED",
        "quality": "PERFECT",
        "reason": "example"
      },
      "type": "DEFAULT",
      "downloadable": true,
      "adult": true,
      "age": {
        "value": 0,
        "ageUnit": "YEAR"
      },
      "params": [
        {}
      ],
      "parameterValues": [
        {}
      ],
      "basicPrice": {},
      "purchasePrice": {
        "value": 0,
        "currencyId": "RUR"
      },
      "additionalExpenses": {
        "value": 0,
        "currencyId": "RUR"
      },
      "firstVideoAsCover": true,
      "deleteParameters": [
        "ADDITIONAL_EXPENSES"
      ]
    },
    "mapping": {
      "marketSku": 1
    }
  }
]

onlyPartnerMediaContent

Type: boolean

是否只会使用您提供的产品数据。

默认值: false. 要删除市场添加的数据,请传递值 true.

Responses

200 OK

请求已正确执行,并且数据已被处理。

回答 200 就其本身而言,它并不意味着传递的值是正确的。

请务必查看响应的详细信息。: status,以及错误列表(results.errors)和评论(results.warnings),如果有的话。

  • 如果至少有一个产品返回错误(results.errors),场 status = ERROR. 不会应用对所有转移项目的更改。
  • 如果没有错误,但至少有一个产品返回了注释(results.warnings),场 status = OK,并将应用更改。

Body

application/json
{
  "status": "OK",
  "results": [
    {
      "offerId": "example",
      "errors": [
        {}
      ],
      "warnings": [
        {}
      ]
    }
  ]
}

Type: object

All of 2 types
  • Type: object

    status

    Type: string

    响应的类型。 可能的值:

    • OK — 没有错误。
    • ERROR — 处理请求时出错。

    Enum: OK, ERROR

    服务器响应的标准包装器。

    Example
    {
      "status": "OK"
    }
    
  • Type: object

    results

    Type: object[]

    offerId

    Type: string

    你的 SKU — 系统中的产品ID。

    使用规则 SKU:

    • 对于每个产品 SKU 一定有一个。

    • 已经设置 SKU 它不能被释放并重新用于另一个产品。 每个产品都应该收到一个以前从未在目录中使用过的新标识符。

    SKU 产品可以在市场上的卖方帐户中更改。 阅读如何做到这一点。 在市场对卖家的帮助.

    重要

    值开头和结尾的空格会自动删除。 例如, " SKU123 ""SKU123" 它们将被视为相同的值。

    什么是 SKU 以及如何分配它

    Min length: 1

    Max length: 255

    Pattern: ^(?=.*\S.*)[^\x00-\x08\x0A-\x1f\x7f]{1,255}$

    Example: example

    errors

    Type: object[]

    message

    Type: string

    错误或警告的文本。

    Example: example

    type

    Type: string

    错误和警告的类型:

    • UNKNOWN_CATEGORY — 指定了未知类别。
    • INVALID_CATEGORY — 指定了非叶类别。 指定没有子类别的类别。
    • EMPTY_MARKET_CATEGORY — 在传送类别特征时不指定市场类别。
    • UNKNOWN_PARAMETER — 已经传输了不属于该类别特征的特征。
    • UNEXPECTED_BOOLEAN_VALUE — 传递其他内容而不是布尔值。
    • NUMBER_FORMAT — 传递的字符串不代表数字,而不是数字。
    • INVALID_UNIT_ID — 特性不可接受的测量单位已经通过。
    • INVALID_GROUP_ID_LENGTH — 名称中超出允许的字符值 — 255.
    • INVALID_GROUP_ID_CHARACTERS — 通过无效字符.
    • INVALID_PICKER_URL — 已传输到缩略图图像的链接,该链接不包括在传输到产品图像的链接中。
    • LOCKED_DIMENSIONS — 包装的尺寸已转移,无法更改。
    • INVALID_COMMODITY_CODE — 传送了不正确的产品代码。

    您可以检查哪些类别特征可用于给定类别,并使用请求获取其设置。 POST v2/category/{categoryId}/parameters.

    Enum: UNKNOWN_CATEGORY, INVALID_CATEGORY, EMPTY_MARKET_CATEGORY, UNKNOWN_PARAMETER, UNEXPECTED_BOOLEAN_VALUE, NUMBER_FORMAT, INVALID_UNIT_ID, INVALID_GROUP_ID_LENGTH, INVALID_GROUP_ID_CHARACTERS, INVALID_PICKER_URL, LOCKED_DIMENSIONS, INVALID_COMMODITY_CODE

    parameterId

    Type: integer

    与错误或警告相关联的功能的ID。

    错误。

    如果至少有一个产品出现错误,目录中的信息将不会更新所有传输的产品。

    Min items: 1

    Example
    [
      {
        "type": "UNKNOWN_CATEGORY",
        "parameterId": 0,
        "message": "example"
      }
    ]
    

    warnings

    Type: object[]

    message

    Type: string

    错误或警告的文本。

    Example: example

    type

    Type: string

    错误和警告的类型:

    • UNKNOWN_CATEGORY — 指定了未知类别。
    • INVALID_CATEGORY — 指定了非叶类别。 指定没有子类别的类别。
    • EMPTY_MARKET_CATEGORY — 在传送类别特征时不指定市场类别。
    • UNKNOWN_PARAMETER — 已经传输了不属于该类别特征的特征。
    • UNEXPECTED_BOOLEAN_VALUE — 传递其他内容而不是布尔值。
    • NUMBER_FORMAT — 传递的字符串不代表数字,而不是数字。
    • INVALID_UNIT_ID — 特性不可接受的测量单位已经通过。
    • INVALID_GROUP_ID_LENGTH — 名称中超出允许的字符值 — 255.
    • INVALID_GROUP_ID_CHARACTERS — 通过无效字符.
    • INVALID_PICKER_URL — 已传输到缩略图图像的链接,该链接不包括在传输到产品图像的链接中。
    • LOCKED_DIMENSIONS — 包装的尺寸已转移,无法更改。
    • INVALID_COMMODITY_CODE — 传送了不正确的产品代码。

    您可以检查哪些类别特征可用于给定类别,并使用请求获取其设置。 POST v2/category/{categoryId}/parameters.

    Enum: UNKNOWN_CATEGORY, INVALID_CATEGORY, EMPTY_MARKET_CATEGORY, UNKNOWN_PARAMETER, UNEXPECTED_BOOLEAN_VALUE, NUMBER_FORMAT, INVALID_UNIT_ID, INVALID_GROUP_ID_LENGTH, INVALID_GROUP_ID_CHARACTERS, INVALID_PICKER_URL, LOCKED_DIMENSIONS, INVALID_COMMODITY_CODE

    parameterId

    Type: integer

    与错误或警告相关联的功能的ID。

    警告。

    目录中的信息将被更新。

    Min items: 1

    Example
    [
      {
        "type": "UNKNOWN_CATEGORY",
        "parameterId": 0,
        "message": "example"
      }
    ]
    

    处理特征列表时出现的错误和警告。 列表中的每个项目对应一个产品。

    如果没有错误或警告,则不传递该字段。

    Min items: 1

    Example
    [
      {
        "offerId": "example",
        "errors": [
          {
            "type": "UNKNOWN_CATEGORY",
            "parameterId": 0,
            "message": "example"
          }
        ],
        "warnings": [
          {
            "type": "UNKNOWN_CATEGORY",
            "parameterId": 0,
            "message": "example"
          }
        ]
      }
    ]
    
    Example
    {
      "results": [
        {
          "offerId": "example",
          "errors": [
            {
              "type": "UNKNOWN_CATEGORY",
              "parameterId": 0,
              "message": "example"
            }
          ],
          "warnings": [
            {
              "type": "UNKNOWN_CATEGORY",
              "parameterId": 0,
              "message": "example"
            }
          ]
        }
      ]
    }
    

400 Bad Request

⚠️ 即使问题仅与请求中的一个产品相关,也不会发送到目录。

请求包含不正确的数据。 详细了解使用产品时出现的错误关于处理价格时的错误

Body

application/json
{
  "status": "OK",
  "errors": [
    {
      "code": "example",
      "message": "example"
    }
  ]
}

Type: object

All of 1 type
  • Type: object

    All of 2 types
    • Type: object

      status

      Type: string

      响应的类型。 可能的值:

      • OK — 没有错误。
      • ERROR — 处理请求时出错。

      Enum: OK, ERROR

      服务器响应的标准包装器。

      Example
      {
        "status": "OK"
      }
      
    • Type: object

      errors

      Type: object[]

      code

      Type: string

      的错误代码。

      Example: example

      message

      Type: string

      错误的描述。

      Example: example

      错误列表。

      Min items: 1

      Example
      [
        {
          "code": "example",
          "message": "example"
        }
      ]
      
      Example
      {
        "errors": [
          {
            "code": "example",
            "message": "example"
          }
        ]
      }
      

    服务器错误的标准包装器。

    Example
    {
      "status": "OK",
      "errors": [
        {
          "code": "example",
          "message": "example"
        }
      ]
    }
    

401 Unauthorized

请求中未指定授权数据。 有关错误的更多信息

Body

application/json
{
  "status": "OK",
  "errors": [
    {
      "code": "example",
      "message": "example"
    }
  ]
}

Type: object

All of 1 type
  • Type: object

    All of 2 types
    • Type: object

      status

      Type: string

      响应的类型。 可能的值:

      • OK — 没有错误。
      • ERROR — 处理请求时出错。

      Enum: OK, ERROR

      服务器响应的标准包装器。

      Example
      {
        "status": "OK"
      }
      
    • Type: object

      errors

      Type: object[]

      code

      Type: string

      的错误代码。

      Example: example

      message

      Type: string

      错误的描述。

      Example: example

      错误列表。

      Min items: 1

      Example
      [
        {
          "code": "example",
          "message": "example"
        }
      ]
      
      Example
      {
        "errors": [
          {
            "code": "example",
            "message": "example"
          }
        ]
      }
      

    服务器错误的标准包装器。

    Example
    {
      "status": "OK",
      "errors": [
        {
          "code": "example",
          "message": "example"
        }
      ]
    }
    

403 Forbidden

授权数据不正确或禁止访问资源。 有关错误的更多信息

Body

application/json
{
  "status": "OK",
  "errors": [
    {
      "code": "example",
      "message": "example"
    }
  ]
}

Type: object

All of 1 type
  • Type: object

    All of 2 types
    • Type: object

      status

      Type: string

      响应的类型。 可能的值:

      • OK — 没有错误。
      • ERROR — 处理请求时出错。

      Enum: OK, ERROR

      服务器响应的标准包装器。

      Example
      {
        "status": "OK"
      }
      
    • Type: object

      errors

      Type: object[]

      code

      Type: string

      的错误代码。

      Example: example

      message

      Type: string

      错误的描述。

      Example: example

      错误列表。

      Min items: 1

      Example
      [
        {
          "code": "example",
          "message": "example"
        }
      ]
      
      Example
      {
        "errors": [
          {
            "code": "example",
            "message": "example"
          }
        ]
      }
      

    服务器错误的标准包装器。

    Example
    {
      "status": "OK",
      "errors": [
        {
          "code": "example",
          "message": "example"
        }
      ]
    }
    

404 Not Found

找不到请求的资源。 有关错误的更多信息

Body

application/json
{
  "status": "OK",
  "errors": [
    {
      "code": "example",
      "message": "example"
    }
  ]
}

Type: object

All of 1 type
  • Type: object

    All of 2 types
    • Type: object

      status

      Type: string

      响应的类型。 可能的值:

      • OK — 没有错误。
      • ERROR — 处理请求时出错。

      Enum: OK, ERROR

      服务器响应的标准包装器。

      Example
      {
        "status": "OK"
      }
      
    • Type: object

      errors

      Type: object[]

      code

      Type: string

      的错误代码。

      Example: example

      message

      Type: string

      错误的描述。

      Example: example

      错误列表。

      Min items: 1

      Example
      [
        {
          "code": "example",
          "message": "example"
        }
      ]
      
      Example
      {
        "errors": [
          {
            "code": "example",
            "message": "example"
          }
        ]
      }
      

    服务器错误的标准包装器。

    Example
    {
      "status": "OK",
      "errors": [
        {
          "code": "example",
          "message": "example"
        }
      ]
    }
    

420 Method Failure

已超出资源访问限制。 有关错误的更多信息

Body

application/json
{
  "status": "OK",
  "errors": [
    {
      "code": "example",
      "message": "example"
    }
  ]
}

Type: object

All of 1 type
  • Type: object

    All of 2 types
    • Type: object

      status

      Type: string

      响应的类型。 可能的值:

      • OK — 没有错误。
      • ERROR — 处理请求时出错。

      Enum: OK, ERROR

      服务器响应的标准包装器。

      Example
      {
        "status": "OK"
      }
      
    • Type: object

      errors

      Type: object[]

      code

      Type: string

      的错误代码。

      Example: example

      message

      Type: string

      错误的描述。

      Example: example

      错误列表。

      Min items: 1

      Example
      [
        {
          "code": "example",
          "message": "example"
        }
      ]
      
      Example
      {
        "errors": [
          {
            "code": "example",
            "message": "example"
          }
        ]
      }
      

    服务器错误的标准包装器。

    Example
    {
      "status": "OK",
      "errors": [
        {
          "code": "example",
          "message": "example"
        }
      ]
    }
    

423 Locked

指定的方法不能应用于资源。 有关错误的更多信息

Body

application/json
{
  "status": "OK",
  "errors": [
    {
      "code": "example",
      "message": "example"
    }
  ]
}

Type: object

All of 1 type
  • Type: object

    All of 2 types
    • Type: object

      status

      Type: string

      响应的类型。 可能的值:

      • OK — 没有错误。
      • ERROR — 处理请求时出错。

      Enum: OK, ERROR

      服务器响应的标准包装器。

      Example
      {
        "status": "OK"
      }
      
    • Type: object

      errors

      Type: object[]

      code

      Type: string

      的错误代码。

      Example: example

      message

      Type: string

      错误的描述。

      Example: example

      错误列表。

      Min items: 1

      Example
      [
        {
          "code": "example",
          "message": "example"
        }
      ]
      
      Example
      {
        "errors": [
          {
            "code": "example",
            "message": "example"
          }
        ]
      }
      

    服务器错误的标准包装器。

    Example
    {
      "status": "OK",
      "errors": [
        {
          "code": "example",
          "message": "example"
        }
      ]
    }
    

500 Internal Server Error

Yandex中的内部错误。 市场。 有关错误的更多信息

Body

application/json
{
  "status": "OK",
  "errors": [
    {
      "code": "example",
      "message": "example"
    }
  ]
}

Type: object

All of 1 type
  • Type: object

    All of 2 types
    • Type: object

      status

      Type: string

      响应的类型。 可能的值:

      • OK — 没有错误。
      • ERROR — 处理请求时出错。

      Enum: OK, ERROR

      服务器响应的标准包装器。

      Example
      {
        "status": "OK"
      }
      
    • Type: object

      errors

      Type: object[]

      code

      Type: string

      的错误代码。

      Example: example

      message

      Type: string

      错误的描述。

      Example: example

      错误列表。

      Min items: 1

      Example
      [
        {
          "code": "example",
          "message": "example"
        }
      ]
      
      Example
      {
        "errors": [
          {
            "code": "example",
            "message": "example"
          }
        ]
      }
      

    服务器错误的标准包装器。

    Example
    {
      "status": "OK",
      "errors": [
        {
          "code": "example",
          "message": "example"
        }
      ]
    }
    

No longer supported, please use an alternative and newer version.

什么是GTIN?
[医]GTIN — 这是在单个国际数据库中分配给产品的唯一编号。 GS1. 此编号生成EAN、UPC或ISBN条形码。

如何确保产品在数据库中
你可以在 验证页面 在GS1协会的网站上。 如果未找到产品,请向供应商索取GTIN代码。

如何为您的产品获取GTIN
要接收GTIN代码,制造商需要加入GS1协会并注册产品。

ASCII字符0到31(9除外)和127被禁止。 从表.

没有孩子的类别。