products
Get entity product list
Returns product lists attached to CRM entities (deals). Each list contains products with quantities, prices, and discounts.
get/crm/v1/static/entity-product-lists
Request
- Base URLhttps://{domain}.uspacy.ua
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Response
Successful response
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.