Request

  • tenant - (mandatory) - to which tenant/system to connect, e.g. "zegoal"
  • catalog_position_id - (mandatory)
  • update_position_attributes
    • name - (optional) - cannot be updated to empty string " " )
    • code - (optional)
    • category - (optional)
    • type - (optional) - cannot be updated to empty string " " ) or a value that is not in the dictionary ("Services", "Goods")
    • external_code - (optional)
    • description - (optional)
    • default_parameters
      • unit - (optional) - cannot be updated to empty string " " ) or a value that is not in the dictionary ("шт")
      • default_quantity - (optional) - value can be updated to a number type only
      • price - (optional) - value can be updated to a number type only
    • is_actual - (optional)


Response parameters (JSON):

  • UpdateCatalogPosition
    • response
      • (request parameters)
    • request - (request parameters) as is; only those parameters that were sent in input


Запрос

{
	    "tenant": "order0",
         "catalog_position_id": 4,
         "update_position_attributes":          
         {
            "type": "Goods",
            "name": "name",
            "is_actual": false,
            "external_code": "net",
            "description": "de",
            "default_parameters":             
            {
               "price": 5,
               "default_quantity": 20
            }
         }
}
CODE


Ответ

{
   "processing_result":    {
      "text": "Catalog positions are updated.",
      "status": "ok",
      "ctx_id": "G8N7JGJq-nh",
      "code": 0
   },
   "processing_date": "2020-11-05 00:47:58",
   "UpdateCatalogPosition":    {
      "response":       {
         "type": "Goods",
         "name": "name",
         "is_actual": false,
         "external_code": "net",
         "description": "de",
         "default_parameters.price": 5,
         "default_parameters.default_quantity": 20
      },
      "request":       {
         "update_position_attributes":          {
            "type": "Goods",
            "name": "name",
            "is_actual": false,
            "external_code": "net",
            "description": "de",
            "default_parameters":             {
               "price": 5,
               "default_quantity": 20
            }
         },
         "tenant": "order0",
         "catalog_position_id": 4
      },
      "extra_logic": "",
      "enriched_request":       {
         "update_position_attributes":          {
            "type": "Goods",
            "name": "name",
            "is_actual": false,
            "external_code": "net",
            "description": "de",
            "default_parameters":             {
               "price": 5,
               "default_quantity": 20
            }
         },
         "tenant": "order0",
         "catalog_position_id": 4
      }
   }
}
CODE