API תנועות מלאי
באמצעות ממשק זה ניתן לקבל את תנועות המלאי של המוצרים המקושרים למנה המבוקשת.
Method: GET
Url for production: https://api.restigo.co.il/api/thirdParty/productItemInventories
Url for development: https://staging.restigo.co.il/api/thirdParty/productItemInventories
Request
חובה לפנות עם אחד מהפרמטרים product_id ,או product_code
key | Location | type | שם השדה בעברית |
RESTIGO-API-KEY | Headers | Required | המפתח מקושר לסניף ספציפי וניתן פרטנית |
date (תאריך) | Params | Required | date | תאריך מבוקש |
product_id | Params | Optional | integer | מזהה מנה ברסטיגו |
count_type | Params | Required | 'package' | 'unit' | 'weight' | צורת ספירת מלאי מבוקשת |
product_code | Params | Optional | integer | מזהה מנה מהקופה |
Request example
https://api.restigo.co.il/api/thirdParty/productItemInventories?date=2026-02-01&product_id=17951&count_type=package
Response
key | type | שם השדה בעברית |
date | string | תאריך מבוקש |
branch_id | number | מזהה סניף |
worth_without_VAT | number | עלות מנה ללא מע״מ |
worth_with_VAT | number | עלות מנה כולל מע״מ |
count_type | 'package' | 'unit' | 'weight' | צורת ספירת מלאי מבוקשת |
base_items | array | מערך מוצרים מקושרים למנה |
name | string | שם מוצר מקושר למנה |
part_number | string | מק״ט מוצר מקושר |
supplier_name | string | ספק מוצר מקושר |
price | number | מחיר מוצר מקושר |
inventories | array | מערך תנועות מלאי של המוצר |
new_inventory_id | number | מזהה תנועת מלאי |
inventory_type | number | סוג תנועת מלאי |
date | string | תאריך תנועת מלאי |
amount | number | כמות תנועת מלאי |
worth | number | שווי תנועת מלאי |
creator | string | מבצע תנועת מלאי |
product_code | string | מזהה מנה מהקופה |
product_id | number | מזהה מנה ברסטיגו |
Success Response
Status Code: 200 OK
{
"date": "2026-02-01",
"branch_id": 1234,
"worth_without_VAT": 7.6,
"worth_with_VAT": 8.97,
"count_type": "package",
"base_items": [
{
"name": "צ'יפס",
"part_number": "1234",
"supplier_name": "תפוחי אדמה לוהטים",
"price": 173.81,
"inventories": [
{
"new_inventory_id": 979899,
"inventory_type": "מכירות",
"date": "2026-02-01",
"amount": 0.1,
"worth": 13.381,
"creator": "מנהל מערכת"
}
]
}
],
"product_id": "37364"
Error Response
Status Code: 401
{
"message": "Unauthorized"
}