P
P
Petr Yelagin2021-12-29 19:52:06
Classmates
Petr Yelagin, 2021-12-29 19:52:06

An example of successfully adding a product market.add?

https://apiok.ru/dev/methods/rest/market/market.add

is an example of successfully adding a product.

what I'm not doing is writing an error: PARAM : Invalid parameter attachment value.

The request itself:

{
  "gid": 60954139885710,
  "type": "GROUP_PRODUCT",
  "catalog_ids": [
    "154336518359950",
    "154336519539598"
  ],
  "attachment": {
    "media": [
      {
        "type": "text",
        "text": "Трусы женские цвет Коричневый ,  размер  106"
      },
      {
        "type": "text",
        "text": "<p>Трусы-слип, с высокой линией талии и хорошо закрывающие ягодицы.</p>"
      },
      {
        "type": "product",
        "price": 576,
        "lifetime": 30
      }
    ]
  }
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question