products

Update entity product list

patch/crm/v1/static/entity-product-lists/{itemId}

Request

Request body

idinteger
entity_typestring
entity_idinteger
is_automatic_calculationboolean
amount_before_discount_and_taxinteger
amount_discountinteger
amount_taxinteger
amount_before_taxinteger
amount_totalinteger

Example request

{
  "entity_type": "deals",
  "entity_id": 2,
  "list_products": [
    {
      "title": "Macbook air 15 24gb",
      "price": 2000000,
      "currency": "USD",
      "quantity": 5,
      "measurement_unit_abbr": "psc",
      "discount_value": 25,
      "discount_price": 5000,
      "tax_rate": 20.5,
      "amount": 1500,
      "product": {
        "id": 1,
        "product_category_id": 1,
        "measurement_unit_id": 1,
        "title": "Some laptop",
        "article": "ART 123456789",
        "type": "goods",
        "is_active": true,
        "availability": "available",
        "quantity": 1.0001,
        "reserved_quantity": 0.0001,
        "description": "Some product description",
        "comment": "Some product comment",
        "link": "www.youtube.com/some_link",
        "created_at": 12156465,
        "updated_at": 12156465,
        "product_category": {
          "id": 2,
          "parent_id": 1,
          "name": "Main category",
          "is_active": true,
          "created_at": 12156465,
          "updated_at": 12156465
        },
        "measurement_unit": {
          "id": 1,
          "name": "Kilograms",
          "abbr": "Kg",
          "is_default": true
        },
        "prices": [
          {
            "id": 1,
            "price": 10000,
            "currency": "USD",
            "is_default": true,
            "tax": {
              "id": 1,
              "name": "NDS",
              "rate": 25.5
            }
          }
        ],
        "files": [
          "path/to/image.jpg",
          "path/to/image.png"
        ]
      }
    }
  ]
}

Response

OK

idinteger
entity_typestring
entity_idinteger
is_automatic_calculationboolean
amount_before_discount_and_taxinteger
amount_discountinteger
amount_taxinteger
amount_before_taxinteger
amount_totalinteger

Example response

{
  "entity_type": "deals",
  "entity_id": 2,
  "list_products": [
    {
      "title": "Macbook air 15 24gb",
      "price": 2000000,
      "currency": "USD",
      "quantity": 5,
      "measurement_unit_abbr": "psc",
      "discount_value": 25,
      "discount_price": 5000,
      "tax_rate": 20.5,
      "amount": 1500,
      "product": {
        "id": 1,
        "product_category_id": 1,
        "measurement_unit_id": 1,
        "title": "Some laptop",
        "article": "ART 123456789",
        "type": "goods",
        "is_active": true,
        "availability": "available",
        "quantity": 1.0001,
        "reserved_quantity": 0.0001,
        "description": "Some product description",
        "comment": "Some product comment",
        "link": "www.youtube.com/some_link",
        "created_at": 12156465,
        "updated_at": 12156465,
        "product_category": {
          "id": 2,
          "parent_id": 1,
          "name": "Main category",
          "is_active": true,
          "created_at": 12156465,
          "updated_at": 12156465
        },
        "measurement_unit": {
          "id": 1,
          "name": "Kilograms",
          "abbr": "Kg",
          "is_default": true
        },
        "prices": [
          {
            "id": 1,
            "price": 10000,
            "currency": "USD",
            "is_default": true,
            "tax": {
              "id": 1,
              "name": "NDS",
              "rate": 25.5
            }
          }
        ],
        "files": [
          "path/to/image.jpg",
          "path/to/image.png"
        ]
      }
    }
  ]
}

Changes

No recorded changes to this operation across all 2 revisions of this API.