f80578d43845

latestOpenAPI 3.1.02026-07-1414757122.7 KB
products

Create product

Creates a new product in the catalog.

post/crm/v1/static/products

Request body

idinteger
product_category_idinteger
measurement_unit_idinteger
titlestring
articlestring
type'goods' | 'service'
is_activeboolean
availability'available' | 'not_available' | 'pending'
quantitynumber
reserved_quantitynumber
descriptionstring
commentstring
linkstring
created_atinteger
updated_atinteger
filesstring[]

Example request

{
  "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

Created

idinteger
product_category_idinteger
measurement_unit_idinteger
titlestring
articlestring
type'goods' | 'service'
is_activeboolean
availability'available' | 'not_available' | 'pending'
quantitynumber
reserved_quantitynumber
descriptionstring
commentstring
linkstring
created_atinteger
updated_atinteger
filesstring[]

Example response

{
  "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"
  ]
}