POST api/product/edit/prices?token={token}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
token

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

string

Required

Body Parameters

Collection of UpdateProductsPriceRequest
NameDescriptionTypeAdditional information
ProductId

integer

None.

product_id

integer

None.

price

decimal number

None.

variants

Collection of UpdateProductPriceVariantRequest

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "ProductId": 1,
    "product_id": 1,
    "price": 1.0,
    "variants": [
      {
        "variant_id": 1,
        "rate": 2.0,
        "type": 0
      },
      {
        "variant_id": 1,
        "rate": 2.0,
        "type": 0
      }
    ]
  },
  {
    "ProductId": 1,
    "product_id": 1,
    "price": 1.0,
    "variants": [
      {
        "variant_id": 1,
        "rate": 2.0,
        "type": 0
      },
      {
        "variant_id": 1,
        "rate": 2.0,
        "type": 0
      }
    ]
  }
]

application/x-www-form-urlencoded

Sample:

Sample not available.

application/xml, text/xml

Sample:
<ArrayOfUpdateProductsPriceRequest>
  <UpdateProductsPriceRequest>
    <ProductIdCamelCase>1</ProductIdCamelCase>
    <ProductSnakeCase>1</ProductSnakeCase>
    <Price>1</Price>
    <Variants>
      <UpdateProductPriceVariantRequest>
        <VariantId>1</VariantId>
        <Rate>2</Rate>
        <Type>PercentPlus</Type>
      </UpdateProductPriceVariantRequest>
      <UpdateProductPriceVariantRequest>
        <VariantId>1</VariantId>
        <Rate>2</Rate>
        <Type>PercentPlus</Type>
      </UpdateProductPriceVariantRequest>
    </Variants>
  </UpdateProductsPriceRequest>
  <UpdateProductsPriceRequest>
    <ProductIdCamelCase>1</ProductIdCamelCase>
    <ProductSnakeCase>1</ProductSnakeCase>
    <Price>1</Price>
    <Variants>
      <UpdateProductPriceVariantRequest>
        <VariantId>1</VariantId>
        <Rate>2</Rate>
        <Type>PercentPlus</Type>
      </UpdateProductPriceVariantRequest>
      <UpdateProductPriceVariantRequest>
        <VariantId>1</VariantId>
        <Rate>2</Rate>
        <Type>PercentPlus</Type>
      </UpdateProductPriceVariantRequest>
    </Variants>
  </UpdateProductsPriceRequest>
</ArrayOfUpdateProductsPriceRequest>

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.