POST api/product/edit/uniquefixed/{product_id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
token

Токен авторизации

string

Required

product_id

integer

Required

Body Parameters

UniqueFixedProduct
NameDescriptionTypeAdditional information
content_type

Тип содержимого товара. Доступные значения: Text | File | Url | DigisellerCode | Form

string

Required

categories

Категории

Collection of ProductCategory

Required

name

Наименование продукта с локализацией

Collection of LocalizationViewModel

Required

description

Описание товара с локализацией

Collection of LocalizationViewModel

Required

add_info

Дополнительная информация с локализацией

Collection of LocalizationViewModel

None.

price

Цена

ProductPrice

Required

comission_partner

Партнерская комиссия

decimal number

None.

bonus

Бонус

ProductBonus

None.

guarantee

Гарантия

ProductGuarantee

None.

address_required

Перед оплатой покупатель должен указать адрес доставки

boolean

None.

instruction

Инструкция по использованию товара

ProductInstruction

None.

verify_code

Проверка кода (только для товаров с типом "DigisellerCode")

ProductVerifyCode

None.

enabled

Товар выставлен на продажу. По умолчанию: true

boolean

None.

preorder

Предзаказ

Preorder

None.

present_product_id

Товар-подарок покупателю

integer

None.

sales_limit

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "content_type": "sample string 1",
  "categories": [
    {
      "owner": 1,
      "category_id": 1
    },
    {
      "owner": 1,
      "category_id": 1
    }
  ],
  "name": [
    {
      "locale": "sample string 1",
      "value": "sample string 2"
    },
    {
      "locale": "sample string 1",
      "value": "sample string 2"
    }
  ],
  "description": [
    {
      "locale": "sample string 1",
      "value": "sample string 2"
    },
    {
      "locale": "sample string 1",
      "value": "sample string 2"
    }
  ],
  "add_info": [
    {
      "locale": "sample string 1",
      "value": "sample string 2"
    },
    {
      "locale": "sample string 1",
      "value": "sample string 2"
    }
  ],
  "price": {
    "price": 1.0,
    "currency": "sample string 1"
  },
  "comission_partner": 1.0,
  "bonus": {
    "enabled": true,
    "percent": 1
  },
  "guarantee": {
    "enabled": true,
    "value": 1
  },
  "address_required": true,
  "instruction": {
    "type": "sample string 1",
    "locales": [
      {
        "locale": "sample string 1",
        "value": "sample string 2"
      },
      {
        "locale": "sample string 1",
        "value": "sample string 2"
      }
    ]
  },
  "verify_code": {
    "parameters": [
      "sample string 1",
      "sample string 2"
    ],
    "redirect_to": "sample string 2",
    "auto_verify": true,
    "verify_url": "sample string 1"
  },
  "enabled": true,
  "preorder": {
    "enabled": true,
    "delivery_date": "sample string 1"
  },
  "present_product_id": 1,
  "sales_limit": 1
}

application/x-www-form-urlencoded

Sample:

Sample not available.

application/xml, text/xml

Sample:
<unique_fixed>
  <content_type>sample string 1</content_type>
  <categories>
    <owner>1</owner>
    <category_id>1</category_id>
  </categories>
  <categories>
    <owner>1</owner>
    <category_id>1</category_id>
  </categories>
  <name>
    <locale>sample string 1</locale>
    <value>sample string 2</value>
  </name>
  <name>
    <locale>sample string 1</locale>
    <value>sample string 2</value>
  </name>
  <description>
    <locale>sample string 1</locale>
    <value>sample string 2</value>
  </description>
  <description>
    <locale>sample string 1</locale>
    <value>sample string 2</value>
  </description>
  <add_info>
    <locale>sample string 1</locale>
    <value>sample string 2</value>
  </add_info>
  <add_info>
    <locale>sample string 1</locale>
    <value>sample string 2</value>
  </add_info>
  <price>
    <price>1</price>
    <currency>sample string 1</currency>
  </price>
  <comission_partner>1</comission_partner>
  <bonus>
    <enabled>true</enabled>
    <percent>1</percent>
  </bonus>
  <guarantee>
    <enabled>true</enabled>
    <value>1</value>
  </guarantee>
  <address_required>true</address_required>
  <instruction>
    <type>sample string 1</type>
    <locales>
      <locale>sample string 1</locale>
      <value>sample string 2</value>
    </locales>
    <locales>
      <locale>sample string 1</locale>
      <value>sample string 2</value>
    </locales>
  </instruction>
  <enabled>true</enabled>
  <present_product_id>1</present_product_id>
  <sales_limit>1</sales_limit>
  <verify_code>
    <auto_verify>true</auto_verify>
    <verify_url>sample string 1</verify_url>
    <parameters>sample string 1</parameters>
    <parameters>sample string 2</parameters>
    <redirect_To>sample string 2</redirect_To>
  </verify_code>
  <preorder>
    <enabled>true</enabled>
    <delivery_date>sample string 1</delivery_date>
  </preorder>
</unique_fixed>

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.