products
Bulk create products
Creates multiple products at once. Send an array of product objects.
post/crm/v1/static/products/bulk
Request
- Base URLhttps://{domain}.uspacy.ua
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
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.