products

Bulk create products

Creates multiple products at once. Send an array of product objects.

post/crm/v1/static/products/bulk

Request

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

Changes

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