{
  "item": [
    {
      "name": "Company",
      "description": "מי המפתח ומה מותר לו - פרטי החברה, סוג העוסק, ההרשאה והמודולים הפעילים / Who the key works for and what it may do.",
      "item": [
        {
          "id": "f87d2302-b60b-4af2-978a-f2429b421bcf",
          "name": "פרטי החברה וההרשאה / Company and key info",
          "request": {
            "name": "פרטי החברה וההרשאה / Company and key info",
            "description": {
              "content": "מי המפתח ומה מותר לו - קריאה ראשונה מומלצת לכל לקוח API או עוזר AI. קריאה בלבד, כל מפתח.\n\n- שם החברה, ח.פ. (`business_number`) ומספר העוסק (`vat_number`) כמו בכרטיס החברה.\n- `dealer_type`: `exempt` (עוסק פטור - בלי חשבונית מס, בלי דוח מכירות ובלי גיול חובות) או `licensed` (עוסק מורשה).\n  `company_type`: `individual` (עוסק יחיד), `company` (חברה), `partnership` (שותפות), `nonprofit` (מלכ\"ר).\n  `vat_report_period`: `monthly` / `bimonthly` - תדירות דוח המע\"מ.\n- `key_scope`: `read_only` (כל פעולת כתיבה מחזירה 403), `read_write`, או `read_write_send` (גם `document_send`);\n  `can_send_to_customers` = true רק ב-`read_write_send`.\n- `user_can_view_reports`: למשתמש שיצר את המפתח יש \"צפייה בדוחות\" (בלי - כל `report_*` מחזיר 403).\n- `is_sandbox`: חברת בדיקות (נתוני ניסיון בלבד).\n- `modules`: האזורים הפעילים במנוי - `crm` (לידים ומשימות), `expenses` (ספקים והוצאות), `stock` (מלאי, מחסנים,\n  רכש לפי פריט), `payment_pages`, `credit_card_clearing`, `price_lists`, `projects`, `service_calls`, `cash_register`.\n\nWho the key works for and what it may do - the recommended first call of an API client or AI assistant. Read only,\nany key: company name and numbers, dealer type (an exempt dealer has no tax invoice, sales report or debt aging), VAT\nreport period, the key's scope, whether the key's user may see reports, sandbox, and the modules that are on.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "company_info"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "96baecf5-0622-4ce7-b0d2-56875099d4ae",
              "name": "Envelope; `data` = the company and key info.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "company_info"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"OK\",\n  \"data\": {\n    \"company_name\": \"קפה השכונה בע\\\"מ\",\n    \"business_number\": \"515123456\",\n    \"vat_number\": \"515123456\",\n    \"dealer_type\": \"licensed\",\n    \"dealer_type_name\": \"עוסק מורשה\",\n    \"company_type\": \"company\",\n    \"vat_report_period\": \"bimonthly\",\n    \"key_scope\": \"read_write\",\n    \"key_scope_name\": \"קריאה וכתיבה\",\n    \"can_send_to_customers\": false,\n    \"user_can_view_reports\": true,\n    \"is_sandbox\": false,\n    \"modules\": {\n      \"crm\": true,\n      \"expenses\": true,\n      \"stock\": true,\n      \"payment_pages\": false,\n      \"credit_card_clearing\": true,\n      \"price_lists\": false,\n      \"projects\": false,\n      \"service_calls\": false,\n      \"cash_register\": false\n    }\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "e01bc78e-5704-4f7a-a562-2ba427a05f60",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "company_info"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        }
      ]
    },
    {
      "name": "Documents",
      "description": "הפקה, טיוטות, שליפה, רשימה וביטול של מסמכי מכירה וקבלות / Issue, draft, read, list and cancel sales documents and receipts.",
      "item": [
        {
          "id": "7b1615a4-375d-47c0-a869-1baed64aba1f",
          "name": "הפקת מסמך חדש / Issue a new document",
          "request": {
            "name": "הפקת מסמך חדש / Issue a new document",
            "description": {
              "content": "מפיק מסמך סופי (לא טיוטה): הצעת מחיר, הזמנה, תעודת משלוח, חשבונית עסקה, חשבונית מס,\nחשבונית זיכוי, חשבונית מס קבלה או קבלה.\n\n- **הלקוח:** `company_id` = כרטיס לקוח קיים ופעיל. בלי `company_id` חובה `company_name`, ואז\n  `create_customer` קובע: 0 = לקוח מזדמן (בלי כרטיס), 1 = פתיחת כרטיס לקוח חדש,\n  2 = חיפוש כרטיס לקוח פעיל לפי ח.פ., אחר כך לפי נייד, אחר כך לפי טלפון; אם נמצא - המסמך\n  נרשם עליו (רק השדות הריקים בכרטיס מתמלאים), ואם לא - נפתח כרטיס חדש. כשנמצאו כמה כרטיסים\n  נבחר החדש ביותר, ו-`customer_match_note` מסביר זאת.\n- **שורות ותשלומים:** כל סוג מלבד קבלה (400) חייב `items`. קבלה (400) וחשבונית מס קבלה (320)\n  חייבות `payments`. לסוגים אחרים אסור לשלוח `payments`, ולקבלה אסור לשלוח `items`.\n- **מניעת כפילות:** `request_reference` ייחודי בחברה. בקשה חוזרת עם אותו מזהה נדחית, כך שאפשר\n  לשלוח שוב בבטחה אחרי תקלת רשת.\n- **503** = המערכת עסוקה בהפקת מסמך אחר מאותו סוג (או בקשה אחרת עם אותו `request_reference`\n  עדיין נשמרת). לא נשמר דבר - יש לשלוח שוב בעוד רגע.\n- **מספר הקצאה:** בחשבוניות מס, כשנדרש, המערכת מבקשת מספר הקצאה מרשות המסים מיד לאחר ההפקה\n  (`allocation_number` / `allocation_status`).\n- **שליחה במייל:** `send_mail` 1 שולח את המסמך ל-`email_to`. `sent_status` 1 = שרת הדואר קיבל את\n  ההודעה. כשל בשליחה לא הופך את התשובה לשגיאה: המסמך כבר הופק.\n- שגיאה שמקורה בכללי השמירה של המסמך או של כרטיס הלקוח (אותם כללים כמו באפליקציה) חוזרת\n  ב-400 עם הקידומת \"שגיאה: \". ההודעות הנפוצות מופיעות ב-`x-result-messages`.\n\nIssues a final document. Without `company_id`, `company_name` is required and `create_customer`\ndecides: 0 casual customer, 1 new card, 2 find an active card by business number / mobile / phone\nor open a new one. `request_reference` is unique per company (safe retries). 503 = numbering busy,\nnothing was saved, send again.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "document_new"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"document_type\": 320,\n  \"request_reference\": \"WEB-ORDER-10045\",\n  \"company_name\": \"לקוח לדוגמה\",\n  \"company_hp\": \"000000018\",\n  \"contact_name\": \"ישראל ישראלי\",\n  \"cel\": \"050-0000000\",\n  \"email\": \"customer@example.com\",\n  \"address\": \"רחוב הדוגמה 1\",\n  \"city\": \"תל אביב\",\n  \"create_customer\": 2,\n  \"document_vat_type\": 2,\n  \"content\": \"הזמנה מהאתר מס' 10045\",\n  \"items\": [\n    {\n      \"catalog_number\": \"SKU-100\",\n      \"description\": \"מוצר לדוגמה\",\n      \"quantity\": 2,\n      \"price_unit_nis\": 117\n    }\n  ],\n  \"payments\": [\n    {\n      \"payment_type\": 3,\n      \"amount_nis\": 234,\n      \"due_date\": \"2026-10-26\",\n      \"credit_card_code\": 2,\n      \"credit_card_number\": \"4580\"\n    }\n  ],\n  \"send_mail\": 1,\n  \"email_to\": \"customer@example.com\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "d553ddab-6167-48ec-bfee-5fd48ce35614",
              "name": "המסמך הופק",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "document_new"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"document_type\": 320,\n  \"request_reference\": \"WEB-ORDER-10045\",\n  \"company_name\": \"לקוח לדוגמה\",\n  \"company_hp\": \"000000018\",\n  \"contact_name\": \"ישראל ישראלי\",\n  \"cel\": \"050-0000000\",\n  \"email\": \"customer@example.com\",\n  \"address\": \"רחוב הדוגמה 1\",\n  \"city\": \"תל אביב\",\n  \"create_customer\": 2,\n  \"document_vat_type\": 2,\n  \"content\": \"הזמנה מהאתר מס' 10045\",\n  \"items\": [\n    {\n      \"catalog_number\": \"SKU-100\",\n      \"description\": \"מוצר לדוגמה\",\n      \"quantity\": 2,\n      \"price_unit_nis\": 117\n    }\n  ],\n  \"payments\": [\n    {\n      \"payment_type\": 3,\n      \"amount_nis\": 234,\n      \"due_date\": \"2026-10-26\",\n      \"credit_card_code\": 2,\n      \"credit_card_number\": \"4580\"\n    }\n  ],\n  \"send_mail\": 1,\n  \"email_to\": \"customer@example.com\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"OK\",\n  \"data\": {\n    \"document_type\": 320,\n    \"document_number\": 10045,\n    \"customer_id\": 5608,\n    \"sent_status\": 1,\n    \"document_link\": \"https://www.bigboss.co.il/bigbossweb?vpid=SIGNED_VIEW_TOKEN\",\n    \"allocation_number\": \"\",\n    \"allocation_status\": 0,\n    \"customer_status\": 2\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "e051f74c-4819-43e2-b433-792ebde7e67f",
              "name": "request_reference כבר נשלח",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "document_new"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"document_type\": 320,\n  \"request_reference\": \"WEB-ORDER-10045\",\n  \"company_name\": \"לקוח לדוגמה\",\n  \"company_hp\": \"000000018\",\n  \"contact_name\": \"ישראל ישראלי\",\n  \"cel\": \"050-0000000\",\n  \"email\": \"customer@example.com\",\n  \"address\": \"רחוב הדוגמה 1\",\n  \"city\": \"תל אביב\",\n  \"create_customer\": 2,\n  \"document_vat_type\": 2,\n  \"content\": \"הזמנה מהאתר מס' 10045\",\n  \"items\": [\n    {\n      \"catalog_number\": \"SKU-100\",\n      \"description\": \"מוצר לדוגמה\",\n      \"quantity\": 2,\n      \"price_unit_nis\": 117\n    }\n  ],\n  \"payments\": [\n    {\n      \"payment_type\": 3,\n      \"amount_nis\": 234,\n      \"due_date\": \"2026-10-26\",\n      \"credit_card_code\": 2,\n      \"credit_card_number\": \"4580\"\n    }\n  ],\n  \"send_mail\": 1,\n  \"email_to\": \"customer@example.com\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 400,\n  \"result_message\": \"נמצא מסמך בעל אותו מזהה - request_reference\",\n  \"data\": null\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "a85e6795-1998-4021-9ad0-e2b79f4a0ee6",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "document_new"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"document_type\": 320,\n  \"request_reference\": \"WEB-ORDER-10045\",\n  \"company_name\": \"לקוח לדוגמה\",\n  \"company_hp\": \"000000018\",\n  \"contact_name\": \"ישראל ישראלי\",\n  \"cel\": \"050-0000000\",\n  \"email\": \"customer@example.com\",\n  \"address\": \"רחוב הדוגמה 1\",\n  \"city\": \"תל אביב\",\n  \"create_customer\": 2,\n  \"document_vat_type\": 2,\n  \"content\": \"הזמנה מהאתר מס' 10045\",\n  \"items\": [\n    {\n      \"catalog_number\": \"SKU-100\",\n      \"description\": \"מוצר לדוגמה\",\n      \"quantity\": 2,\n      \"price_unit_nis\": 117\n    }\n  ],\n  \"payments\": [\n    {\n      \"payment_type\": 3,\n      \"amount_nis\": 234,\n      \"due_date\": \"2026-10-26\",\n      \"credit_card_code\": 2,\n      \"credit_card_number\": \"4580\"\n    }\n  ],\n  \"send_mail\": 1,\n  \"email_to\": \"customer@example.com\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "11b12a89-4057-4486-8fd8-8cac7ef42cad",
          "name": "שליפת מסמך / Get one document",
          "request": {
            "name": "שליפת מסמך / Get one document",
            "description": {
              "content": "מחזיר מסמך סופי אחד של החברה, עם שורות החיוב, התשלומים וקישור לצפייה.\nמזהים את המסמך ב-`document_id`, או ב-`document_type` + `document_number` (אם נשלח `document_id`\nהוא קובע). אפשר לשלוף את הסוגים ש-`document_new` מפיק, וגם תעודת החזרה (210) והחזר תקבול (40)\nשנוצרים בביטול. מסמך שלא נמצא (או טיוטה) = 204.\n\nReturns one final document of the company with its lines, payments and view link, by\n`document_id` or by `document_type` + `document_number`.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "document_get"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"document_type\": 320,\n  \"document_number\": 10045\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "36ff189b-b4df-482c-baec-ea07d9c23046",
              "name": "המסמך נמצא",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "document_get"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"document_type\": 320,\n  \"document_number\": 10045\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"OK\",\n  \"data\": {\n    \"document_id\": 88231,\n    \"document_type\": 320,\n    \"document_type_name\": \"חשבונית מס קבלה\",\n    \"document_number\": 10045,\n    \"document_date\": \"2026-10-26T00:00:00\",\n    \"due_date\": \"2026-10-26T00:00:00\",\n    \"customer_id\": 5608,\n    \"company_name\": \"לקוח לדוגמה\",\n    \"company_hp\": \"000000018\",\n    \"email\": \"customer@example.com\",\n    \"document_vat_type\": 2,\n    \"amount_before_vat\": 198.31,\n    \"vat_amount\": 35.69,\n    \"total_amount\": 234,\n    \"amount_open\": 0,\n    \"is_cancelled\": 0,\n    \"allocation_number\": \"\",\n    \"allocation_status\": 0,\n    \"request_reference\": \"WEB-ORDER-10045\",\n    \"content\": \"הזמנה מהאתר מס' 10045\",\n    \"comments\": \"\",\n    \"document_link\": \"https://www.bigboss.co.il/bigbossweb?vpid=SIGNED_VIEW_TOKEN\",\n    \"items\": [\n      {\n        \"line_number\": 1,\n        \"catalog_number\": \"SKU-100\",\n        \"description\": \"מוצר לדוגמה\",\n        \"quantity\": 2,\n        \"price_unit_nis\": 117,\n        \"discount_percentage\": 0,\n        \"line_total_nis\": 234\n      }\n    ],\n    \"payments\": [\n      {\n        \"line_number\": 1,\n        \"payment_type\": 3,\n        \"amount_nis\": 234,\n        \"due_date\": \"2026-10-26T00:00:00\",\n        \"bank_code\": null,\n        \"branch_number\": null,\n        \"bank_account_number\": null,\n        \"cheque_number\": null,\n        \"credit_card_code\": 2,\n        \"credit_card_number\": \"4580\",\n        \"bank_account_id\": null\n      }\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "1a81f48e-629f-499d-81b8-166cd88f66cd",
              "name": "לא נמצא",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "document_get"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"document_type\": 320,\n  \"document_number\": 10045\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 204,\n  \"result_message\": \"מסמך לא נמצא\",\n  \"data\": null\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "7927c64a-b5fe-44b8-8afa-0de2e772cb01",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "document_get"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"document_type\": 320,\n  \"document_number\": 10045\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "ea8b3b6b-9a89-4f71-bfeb-5468c7bf7b75",
          "name": "רשימת מסמכים / List documents",
          "request": {
            "name": "רשימת מסמכים / List documents",
            "description": {
              "content": "רשימת המסמכים הסופיים של החברה בטווח תאריכים, בדפים. מהחדש לישן (תאריך מסמך, ואז מספר פנימי).\n\n- `date_to` ברירת מחדל היום; `date_from` ברירת מחדל 30 יום לפני `date_to`. טווח מקסימלי 366 ימים; שנה בין 1900 ל-9998.\n- `page` מתחיל ב-1 (ברירת מחדל 1). `page_size` בין 1 ל-500 (ברירת מחדל 100).\n- `total_count` = מספר כל המסמכים שמתאימים לסינון (בכל הדפים).\n- `makat` = רק מסמכים עם שורה של הפריט (מק\"ט מדויק). לכמה נמכר מפריט וממי - `report_sales_by_item` /\n  `report_sales_by_item_customer`, בלי לפתוח מסמכים.\n- ברשימה אין שורות, תשלומים וקישור (`items`, `payments`, `document_link` חוזרים null) - לשם כך\n  `document_get`.\n- כשאין מסמכים: `result_code` 204 עם `data` מלא (`total_count` 0 ו-`documents` ריק).\n\nFinal documents of the company in a date range, paged, newest first. `total_count` counts all\npages. Lines, payments and link are null in the list - use `document_get`. No documents = 204\nwith `data` still filled (`total_count` 0, empty `documents`).\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "document_list"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"date_from\": \"2026-10-01\",\n  \"date_to\": \"2026-10-26\",\n  \"document_type\": 320,\n  \"page\": 1,\n  \"page_size\": 100\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "7c799b1b-7a0e-4fe8-b351-ffc311ebc9cc",
              "name": "דף ראשון",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "document_list"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"date_from\": \"2026-10-01\",\n  \"date_to\": \"2026-10-26\",\n  \"document_type\": 320,\n  \"page\": 1,\n  \"page_size\": 100\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"OK\",\n  \"data\": {\n    \"page\": 1,\n    \"page_size\": 100,\n    \"total_count\": 1,\n    \"documents\": [\n      {\n        \"document_id\": 88231,\n        \"document_type\": 320,\n        \"document_type_name\": \"חשבונית מס קבלה\",\n        \"document_number\": 10045,\n        \"document_date\": \"2026-10-26T00:00:00\",\n        \"due_date\": \"2026-10-26T00:00:00\",\n        \"customer_id\": 5608,\n        \"company_name\": \"לקוח לדוגמה\",\n        \"company_hp\": \"000000018\",\n        \"email\": \"customer@example.com\",\n        \"document_vat_type\": 2,\n        \"amount_before_vat\": 198.31,\n        \"vat_amount\": 35.69,\n        \"total_amount\": 234,\n        \"amount_open\": 0,\n        \"is_cancelled\": 0,\n        \"allocation_number\": \"\",\n        \"allocation_status\": 0,\n        \"request_reference\": \"WEB-ORDER-10045\",\n        \"content\": \"הזמנה מהאתר מס' 10045\",\n        \"comments\": \"\",\n        \"document_link\": null,\n        \"items\": null,\n        \"payments\": null\n      }\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "fc6f4aca-4d1a-448a-bb71-64ff1bad1273",
              "name": "אין מסמכים בטווח",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "document_list"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"date_from\": \"2026-10-01\",\n  \"date_to\": \"2026-10-26\",\n  \"document_type\": 320,\n  \"page\": 1,\n  \"page_size\": 100\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 204,\n  \"result_message\": \"לא נמצאו מסמכים\",\n  \"data\": {\n    \"page\": 1,\n    \"page_size\": 100,\n    \"total_count\": 0,\n    \"documents\": []\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "8a60dec9-489e-4ea3-9bed-955ef63c37d6",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "document_list"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"date_from\": \"2026-10-01\",\n  \"date_to\": \"2026-10-26\",\n  \"document_type\": 320,\n  \"page\": 1,\n  \"page_size\": 100\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "9dd90cf6-9024-4463-bca5-c7b36d32d99e",
          "name": "ביטול מסמך / Cancel a document",
          "request": {
            "name": "ביטול מסמך / Cancel a document",
            "description": {
              "content": "מבטל מסמך סופי, באותם כללים כמו ביטול באפליקציה. מזהים את המסמך כמו ב-`document_get`.\nלפי סוג המסמך הביטול מפיק מסמכי ביטול (למשל חשבונית זיכוי או החזר תקבול), שחוזרים\nב-`cancel_documents`; סוג שמתבטל בלי מסמך (למשל הצעת מחיר) מחזיר רשימה ריקה.\n\n- מסמך שכבר בוטל: `result_code` 409 \"המסמך כבר מבוטל\", ו-`data` מחזיר את מסמכי הביטול שנוצרו\n  בפעם הראשונה - כך שקריאה חוזרת בטוחה.\n- מסמך שמקושר למסמכים אחרים לא מתבטל דרך ה-API: התשובה (400) מפרטת את המסמכים המקושרים ומסבירה\n  לבטל את הקישור באפליקציה ולשלוח שוב.\n- 503 = המערכת עסוקה. לא נשמר דבר - יש לשלוח שוב בעוד רגע.\n\nCancels a final document with the app's own rules and returns the cancel documents it created.\nAlready cancelled = 409 with the earlier cancel documents (safe retry). A document linked to other\ndocuments is refused (400) - release the links in the app first.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "document_cancel"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"document_type\": 320,\n  \"document_number\": 10045,\n  \"cancel_reason\": \"ההזמנה בוטלה באתר\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "2f59cf99-3e1e-4f3d-8f99-3b2611e05db9",
              "name": "המסמך בוטל",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "document_cancel"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"document_type\": 320,\n  \"document_number\": 10045,\n  \"cancel_reason\": \"ההזמנה בוטלה באתר\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"OK\",\n  \"data\": {\n    \"document_type\": 320,\n    \"document_number\": 10045,\n    \"is_cancelled\": 1,\n    \"cancel_documents\": [\n      {\n        \"document_type\": 330,\n        \"document_number\": 2051,\n        \"customer_id\": 5608,\n        \"sent_status\": 0,\n        \"document_link\": \"https://www.bigboss.co.il/bigbossweb?vpid=SIGNED_VIEW_TOKEN\",\n        \"allocation_number\": \"\",\n        \"allocation_status\": 0\n      },\n      {\n        \"document_type\": 40,\n        \"document_number\": 311,\n        \"customer_id\": 5608,\n        \"sent_status\": 0,\n        \"document_link\": \"https://www.bigboss.co.il/bigbossweb?vpid=SIGNED_VIEW_TOKEN\",\n        \"allocation_number\": \"\",\n        \"allocation_status\": 0\n      }\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "84a373b5-8c2a-4ac7-bbda-42916180082b",
              "name": "כבר בוטל (קריאה חוזרת)",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "document_cancel"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"document_type\": 320,\n  \"document_number\": 10045,\n  \"cancel_reason\": \"ההזמנה בוטלה באתר\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 409,\n  \"result_message\": \"המסמך כבר מבוטל\",\n  \"data\": {\n    \"document_type\": 320,\n    \"document_number\": 10045,\n    \"is_cancelled\": 1,\n    \"cancel_documents\": [\n      {\n        \"document_type\": 330,\n        \"document_number\": 2051,\n        \"customer_id\": 5608,\n        \"sent_status\": 0,\n        \"document_link\": \"https://www.bigboss.co.il/bigbossweb?vpid=SIGNED_VIEW_TOKEN\",\n        \"allocation_number\": \"\",\n        \"allocation_status\": 0\n      }\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "344c61f1-bad0-4a49-a5f3-a3ce27904856",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "document_cancel"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"document_type\": 320,\n  \"document_number\": 10045,\n  \"cancel_reason\": \"ההזמנה בוטלה באתר\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "20fdc89e-2c1e-4cdd-ac90-ff5b13d671f1",
          "name": "שליחת מסמך ללקוח במייל / E-mail a document to its customer",
          "request": {
            "name": "שליחת מסמך ללקוח במייל / E-mail a document to its customer",
            "description": {
              "content": "שולח מסמך שכבר הופק ללקוח שלו במייל - אותו מייל שהאפליקציה שולחת: קישור לצפייה במסמך, ובחשבונית מס שלא שולמה\nגם כפתור \"לתשלום בכרטיס אשראי\" (כשלעסק יש דפי תשלום וסליקה). רק מפתח עם ההרשאה \"קריאה, כתיבה ושליחה ללקוחות\".\n\n- **שני שלבים:** קריאה בלי `confirmation_code` לא שולחת כלום - היא מחזירה `status` \"needs_confirmation\" עם המסמך,\n  הלקוח, כתובת המייל שבכרטיס ו-`confirmation_code` (תקף 15 דקות). רק קריאה שנייה עם אותו `document_id`, אותו\n  `message` וה-`confirmation_code` שולחת. קוד שלא תואם (מסמך אחר, טקסט אחר, כתובת שהשתנתה בכרטיס) נדחה.\n- **כל `confirmation_code` שולח פעם אחת.** קריאה חוזרת עם קוד שכבר שלח (גם אחרי שגיאת זמן או ניתוק) לא שולחת שוב\n  ומחזירה 409 עם הכתובת והשעה של השליחה. תקלה ברורה (הקובץ לא נוצר, שרת המייל סירב) משאירה את הקוד לניסיון נוסף;\n  תקלה באמצע השליחה מבטלת אותו. כדי לשלוח שוב - קריאה חדשה בלי `confirmation_code` ואישור חדש של המשתמש.\n- המייל נשלח **רק לכתובת שבכרטיס הלקוח** - אין שדה לכתובת אחרת. מסמך של לקוח מזדמן, כרטיס בלי מייל או מייל לא תקין\n  נדחים (400). מסמך מבוטל נדחה. ההעתקים הנסתרים של העסק / רואה החשבון כמו בשליחה מהאפליקציה.\n- `message` (לא חובה, עד 1000 תווים): טקסט רגיל בגוף המייל במקום \"קיבלת {סוג} {מספר}\" - למשל תזכורת תשלום.\n- עד 20 שליחות ביום לחברה (`sent_today` / `daily_limit`); מעבר לזה 403. בסביבת בדיקה המייל נשלח רק ליוצר הסביבה\n  (`sandbox_sent_to`).\n\nSends an issued document to its customer by e-mail - the app's own mail, with the view link and, for an open tax\ninvoice, the card payment button. Only a key with the \"read, write and send to customers\" permission. Two calls:\nwithout `confirmation_code` nothing is sent and the answer is a preview with a `confirmation_code` (15 minutes); the\nsecond call with the same `document_id`, the same `message` and that code sends. Each code sends once: a repeated\ncall with a code that already sent (also after a timeout) sends nothing and answers 409 with the address and time;\na clear failure (no file, mail server refused) keeps the code for a retry, a failure mid-send uses it up. To send\nagain, call without `confirmation_code` and get a new confirmation. Only to the e-mail on the customer card; up to\n20 sends a day per company.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "document_send"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"document_id\": 88241,\n  \"message\": \"שלום, תזכורת ידידותית לתשלום חשבונית 40143 על סך 236 ש\\\"ח. תודה!\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "1d20817a-6d49-4081-bc9e-1ac5e8851329",
              "name": "תצוגה מקדימה (שלב 1, לא נשלח)",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "document_send"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"document_id\": 88241,\n  \"message\": \"שלום, תזכורת ידידותית לתשלום חשבונית 40143 על סך 236 ש\\\"ח. תודה!\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"OK\",\n  \"data\": {\n    \"status\": \"needs_confirmation\",\n    \"document_id\": 88241,\n    \"document_type\": 305,\n    \"document_type_name\": \"חשבונית מס\",\n    \"document_number\": 40143,\n    \"document_date\": \"2026-10-20T00:00:00\",\n    \"total_amount\": 236,\n    \"amount_open\": 236,\n    \"customer_id\": 5608,\n    \"customer_name\": \"לקוח לדוגמה\",\n    \"card_email\": \"customer@example.com\",\n    \"message\": \"שלום, תזכורת ידידותית לתשלום חשבונית 40143 על סך 236 ש\\\"ח. תודה!\",\n    \"payment_button\": true,\n    \"confirmation_code\": \"1793815200.CONFIRMATION_SIGNATURE\",\n    \"expires_minutes\": 15,\n    \"sent_today\": 2,\n    \"daily_limit\": 20,\n    \"next_step\": \"המסמך עוד לא נשלח. יש להציג למשתמש את המסמך, שם הלקוח, כתובת המייל שבכרטיס ואת הטקסט (אם יש), ולשאול אם לשלוח...\"\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "0f496225-a5f0-4bfa-bc80-12e85ee5946a",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "document_send"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"document_id\": 88241,\n  \"message\": \"שלום, תזכורת ידידותית לתשלום חשבונית 40143 על סך 236 ש\\\"ח. תודה!\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "dca86668-435e-4946-b038-9a8d55dba71e",
          "name": "יצירת טיוטה / Create a draft document",
          "request": {
            "name": "יצירת טיוטה / Create a draft document",
            "description": {
              "content": "יוצר **טיוטה** של מסמך - בדיוק באותו גוף ובאותן בדיקות של `document_new` (לקוח, שורות, מחירים, מע\"מ, תשלומים).\nטיוטה לא מקבלת מספר, לא מזיזה מלאי, לא נשלחת לרשות המסים ולא נשלחת במייל. היא מופיעה באפליקציה ברשימת\nהטיוטות של סוג המסמך, ושם אפשר לפתוח, לתקן ולהפיק אותה. הפקה דרך ה-API: `document_draft_issue`.\n\n- `request_reference`: אותו מזהה שוב מחזיר את אותה טיוטה - קריאה חוזרת בטוחה. אם המסמך כבר הופק\n  או נמחק, התשובה כמו ב-`document_new` (400 \"נמצא מסמך בעל אותו מזהה\"). טיוטה שנדחתה בשמירה משחררת את המזהה.\n  המזהים משותפים לכל המסמכים של החברה (`document_new`, טיוטות, העברות וספירות).\n- `send_mail` / `email_to` נשמרים לא בשימוש: המייל נשלח רק בהפקה, לפי מה שנשלח ל-`document_draft_issue`.\n- התשובה היא הטיוטה המלאה כמו ב-`document_get`, עם `status` \"draft\" ו-`document_number` שלילי (מספר טיוטה).\n- **טיוטה ממסמכי מקור** - `source_document_ids` (רשימת `document_id`, עד 20): הטיוטה נבנית מהצעות מחיר (3), הזמנות (100)\n  ותעודות משלוח (200) פתוחות של לקוח אחד, כמו \"הפקת מסמך\" באפליקציה - השורות, הלקוח, סוג המע\"מ וההערות נלקחים\n  מהמקור, והקישור למקור נשמר בטיוטה: כשאדם מפיק אותה, מסמכי המקור נסגרים כמו באפליקציה. `document_type` יכול להיות\n  100, 200, 300, 305 או 320, ורק סוג שמסמך היעד מקבל ממנו. אין לשלוח `items` / `payments` (400); שאר השדות\n  (לקוח, מע\"מ, תוכן) לא בשימוש. מסמך מקור סגור, מבוטל, של לקוח אחר או של לקוח מזדמן נדחה (400); מסמך מקור שלא\n  נמצא = 204. אותו מזהה `request_reference` עובד כאן כמו בטיוטה רגילה.\n\nCreates a **draft**: the same body and checks as `document_new`, but no number, no stock movement, no Tax\nAuthority request and no mail. It shows in the app's drafts list of its type, where a person can open, fix and\nissue it; `document_draft_issue` issues it through the API. The same `request_reference` again returns the same\ndraft. The answer is the full draft as `document_get`, `status` \"draft\", negative `document_number`.\nWith `source_document_ids` (up to 20 open quotes / orders / delivery notes of one customer) the draft is made from\nthem like the app's \"create from document\": lines, customer, VAT type and remarks come from the sources and the\nlink is kept, so issuing the draft in the app closes them; `items` / `payments` are refused.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "document_draft_new"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"document_type\": 305,\n  \"request_reference\": \"WEB-QUOTE-77\",\n  \"company_id\": 5608,\n  \"document_vat_type\": 2,\n  \"items\": [\n    {\n      \"catalog_number\": \"SKU-100\",\n      \"description\": \"מוצר לדוגמה\",\n      \"quantity\": 2,\n      \"price_unit_nis\": 117\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "c0e58870-c1aa-4b9d-b5da-51ca7beaa220",
              "name": "נוצרה טיוטה",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "document_draft_new"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"document_type\": 305,\n  \"request_reference\": \"WEB-QUOTE-77\",\n  \"company_id\": 5608,\n  \"document_vat_type\": 2,\n  \"items\": [\n    {\n      \"catalog_number\": \"SKU-100\",\n      \"description\": \"מוצר לדוגמה\",\n      \"quantity\": 2,\n      \"price_unit_nis\": 117\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"OK\",\n  \"data\": {\n    \"document_id\": 88240,\n    \"document_type\": 305,\n    \"document_type_name\": \"חשבונית מס\",\n    \"document_number\": -12,\n    \"document_date\": \"2026-10-26T00:00:00\",\n    \"due_date\": \"2026-10-26T00:00:00\",\n    \"customer_id\": 5608,\n    \"company_name\": \"לקוח לדוגמה\",\n    \"company_hp\": \"000000018\",\n    \"email\": \"customer@example.com\",\n    \"document_vat_type\": 2,\n    \"amount_before_vat\": 234,\n    \"vat_amount\": 42.12,\n    \"total_amount\": 276.12,\n    \"amount_open\": 276.12,\n    \"is_cancelled\": 0,\n    \"allocation_number\": \"\",\n    \"allocation_status\": 0,\n    \"request_reference\": \"WEB-QUOTE-77\",\n    \"status\": \"draft\",\n    \"content\": \"\",\n    \"comments\": \"\",\n    \"document_link\": \"https://www.bigboss.co.il/bigbossweb?vpid=SIGNED_VIEW_TOKEN\",\n    \"items\": [\n      {\n        \"line_number\": 1,\n        \"catalog_number\": \"SKU-100\",\n        \"description\": \"מוצר לדוגמה\",\n        \"quantity\": 2,\n        \"price_unit_nis\": 117,\n        \"discount_percentage\": 0,\n        \"line_total_nis\": 234\n      }\n    ],\n    \"payments\": []\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "a318173e-88bc-46d5-8a13-0afcbd180005",
              "name": "חשבונית מס מהצעת מחיר",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "document_draft_new"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"document_type\": 305,\n  \"source_document_ids\": [\n    88190\n  ],\n  \"request_reference\": \"QUOTE-88190-INVOICE\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"OK\",\n  \"data\": {\n    \"document_id\": 88240,\n    \"document_type\": 305,\n    \"document_type_name\": \"חשבונית מס\",\n    \"document_number\": -12,\n    \"document_date\": \"2026-10-26T00:00:00\",\n    \"due_date\": \"2026-10-26T00:00:00\",\n    \"customer_id\": 5608,\n    \"company_name\": \"לקוח לדוגמה\",\n    \"company_hp\": \"000000018\",\n    \"email\": \"customer@example.com\",\n    \"document_vat_type\": 2,\n    \"amount_before_vat\": 234,\n    \"vat_amount\": 42.12,\n    \"total_amount\": 276.12,\n    \"amount_open\": 276.12,\n    \"is_cancelled\": 0,\n    \"allocation_number\": \"\",\n    \"allocation_status\": 0,\n    \"request_reference\": \"WEB-QUOTE-77\",\n    \"status\": \"draft\",\n    \"content\": \"\",\n    \"comments\": \"\",\n    \"document_link\": \"https://www.bigboss.co.il/bigbossweb?vpid=SIGNED_VIEW_TOKEN\",\n    \"items\": [\n      {\n        \"line_number\": 1,\n        \"catalog_number\": \"SKU-100\",\n        \"description\": \"מוצר לדוגמה\",\n        \"quantity\": 2,\n        \"price_unit_nis\": 117,\n        \"discount_percentage\": 0,\n        \"line_total_nis\": 234\n      }\n    ],\n    \"payments\": []\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "0c634908-6c72-4559-a536-3e3082173f15",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "document_draft_new"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"document_type\": 305,\n  \"request_reference\": \"WEB-QUOTE-77\",\n  \"company_id\": 5608,\n  \"document_vat_type\": 2,\n  \"items\": [\n    {\n      \"catalog_number\": \"SKU-100\",\n      \"description\": \"מוצר לדוגמה\",\n      \"quantity\": 2,\n      \"price_unit_nis\": 117\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "7bacdcda-3d7c-4350-b37f-9ef50020b7f6",
          "name": "שליפת טיוטה / Get a draft",
          "request": {
            "name": "שליפת טיוטה / Get a draft",
            "description": {
              "content": "מחזיר טיוטה לפי `document_id`, במבנה של `document_get`. אחרי שהטיוטה הופקה (דרך ה-API או באפליקציה) התשובה\nהיא המסמך הסופי עם `status` \"final\" ומספר המסמך - כך אפשר לבדוק אם הטיוטה כבר אושרה. טיוטה שנמחקה = 204.\n\nReturns a draft by `document_id` in `document_get`'s shape. Once issued (through the API or in the app) it is the\nfinal document with `status` \"final\" and its number - a way to check whether the draft was approved. Deleted = 204.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "document_draft_get"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"document_id\": 88240\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "be9f6428-8f18-4431-b495-2fc91381cca9",
              "name": "Envelope; `data` = the draft or the issued document, or null.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "document_draft_get"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"document_id\": 88240\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 204,\n  \"result_message\": \"טיוטה לא נמצאה\",\n  \"data\": null\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "d86cb2e6-489c-4901-a451-f99308f8b93b",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "document_draft_get"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"document_id\": 88240\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "c9003f43-529e-4793-885a-15a1ae31598e",
          "name": "הפקת טיוטה / Issue a draft",
          "request": {
            "name": "הפקת טיוטה / Issue a draft",
            "description": {
              "content": "מפיק את הטיוטה - כמו לחיצה על \"הפק\" באפליקציה: מספור, בדיקות המסך, מלאי, בקשת מספר הקצאה ו-Webhook.\nהתשובה כמו של `document_new` (מספר המסמך, קישור, מספר הקצאה, `sent_status`).\n\n- `send_mail` 1: המסמך נשלח במייל ל-`email_to`, ואם לא נשלח - לכתובת שבמסמך.\n- טיוטה שכבר הופקה (כאן או באפליקציה): 409 \"המסמך כבר הופק\", ו-`data` הוא המסמך שהופק - קריאה חוזרת בטוחה.\n- טיוטה שנמצאת בהפקה בבקשה אחרת ברגע זה: 409 - לנסות שוב בעוד רגע.\n- 503 = המערכת עסוקה. לא נשמר דבר - יש לשלוח שוב בעוד רגע.\n\nIssues the draft as the app's \"Issue\" button does (numbering, the screen's checks, stock, allocation number, webhooks); the\nanswer is `document_new`'s. Already issued = 409 with the issued document (safe retry).\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "document_draft_issue"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"document_id\": 88240,\n  \"send_mail\": 1,\n  \"email_to\": \"customer@example.com\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "f9c137e3-e68b-451a-b61c-c80a0e6ee2c8",
              "name": "Envelope; `data` = the issued document, or null.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "document_draft_issue"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"document_id\": 88240,\n  \"send_mail\": 1,\n  \"email_to\": \"customer@example.com\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"OK\",\n  \"data\": {\n    \"document_type\": 305,\n    \"document_number\": 10046,\n    \"customer_id\": 5608,\n    \"sent_status\": 1,\n    \"document_link\": \"https://www.bigboss.co.il/bigbossweb?vpid=SIGNED_VIEW_TOKEN\",\n    \"allocation_number\": \"\",\n    \"allocation_status\": 0\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "aeaeae5d-0a43-4097-be5f-823ff58dddac",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "document_draft_issue"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"document_id\": 88240,\n  \"send_mail\": 1,\n  \"email_to\": \"customer@example.com\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "13a9fb1b-d856-4e6a-a15a-0be1bf247cb1",
          "name": "מחיקת טיוטה / Delete a draft",
          "request": {
            "name": "מחיקת טיוטה / Delete a draft",
            "description": {
              "content": "מוחק טיוטה (כמו מחיקת טיוטה באפליקציה). מחיקה חוזרת של טיוטה שכבר נמחקה מחזירה 200. מסמך שכבר הופק לא נמחק\n(409) - לביטולו `document_cancel`.\n\nDeletes a draft as the app does; deleting it again answers 200. An issued document is refused (409) - cancel it\nwith `document_cancel`.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "document_draft_delete"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"document_id\": 88240\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "2b054f7a-7442-4226-b237-749203a7196a",
              "name": "Envelope; `data` = `{document_id, status}`, or null.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "document_draft_delete"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"document_id\": 88240\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"OK\",\n  \"data\": {\n    \"document_id\": 88240,\n    \"status\": \"deleted\"\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "bd4b5b93-c58b-4883-a5e1-7c7bb7e4fcea",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "document_draft_delete"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"document_id\": 88240\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        }
      ]
    },
    {
      "name": "Customers",
      "description": "כרטיסי לקוחות, יתרה, כרטסת ומסמכים פתוחים / Customer cards, balance, ledger and open documents.",
      "item": [
        {
          "id": "6de14043-8033-411d-aa8c-e161bbe65a5e",
          "name": "הוספת כרטיס לקוח / Create a customer card",
          "request": {
            "name": "הוספת כרטיס לקוח / Create a customer card",
            "description": {
              "content": "פותח כרטיס לקוח חדש. `company_name` חובה. אין לשלוח `customer_id`.\nאם נשלח `company_hp` וכבר קיים כרטיס לקוח עם אותו ח.פ. - התשובה 409 והכרטיס לא נפתח.\nשגיאה של כללי השמירה של הכרטיס (אותם כללים כמו באפליקציה) חוזרת ב-400 כפי שהיא.\n\nOpens a new customer card (`company_name` required, no `customer_id`). An existing customer with\nthe same `company_hp` = 409.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "customer_new"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"company_name\": \"לקוח לדוגמה\",\n  \"company_hp\": \"000000018\",\n  \"contact_name\": \"ישראל ישראלי\",\n  \"address\": \"רחוב הדוגמה 1\",\n  \"city\": \"תל אביב\",\n  \"zip\": \"6100000\",\n  \"tel\": \"03-0000000\",\n  \"cel\": \"050-0000000\",\n  \"email\": \"customer@example.com\",\n  \"account_code\": \"20001\",\n  \"vat_exemption\": 0,\n  \"request_reference\": \"CRM-7781\",\n  \"comments\": \"נפתח מהאתר\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "8ea37f1d-93f6-4ef2-a0da-984fb1de1597",
              "name": "הכרטיס נפתח",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "customer_new"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"company_name\": \"לקוח לדוגמה\",\n  \"company_hp\": \"000000018\",\n  \"contact_name\": \"ישראל ישראלי\",\n  \"address\": \"רחוב הדוגמה 1\",\n  \"city\": \"תל אביב\",\n  \"zip\": \"6100000\",\n  \"tel\": \"03-0000000\",\n  \"cel\": \"050-0000000\",\n  \"email\": \"customer@example.com\",\n  \"account_code\": \"20001\",\n  \"vat_exemption\": 0,\n  \"request_reference\": \"CRM-7781\",\n  \"comments\": \"נפתח מהאתר\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"הלקוח נוסף\",\n  \"data\": {\n    \"customer_id\": 5608\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "ae9877c2-2605-4c6e-b98a-25943c029e64",
              "name": "ח.פ. כבר קיים",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "customer_new"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"company_name\": \"לקוח לדוגמה\",\n  \"company_hp\": \"000000018\",\n  \"contact_name\": \"ישראל ישראלי\",\n  \"address\": \"רחוב הדוגמה 1\",\n  \"city\": \"תל אביב\",\n  \"zip\": \"6100000\",\n  \"tel\": \"03-0000000\",\n  \"cel\": \"050-0000000\",\n  \"email\": \"customer@example.com\",\n  \"account_code\": \"20001\",\n  \"vat_exemption\": 0,\n  \"request_reference\": \"CRM-7781\",\n  \"comments\": \"נפתח מהאתר\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 409,\n  \"result_message\": \"לא ניתן להוסיף לקוח חדש: לקוח עם ח.פ. זה כבר קיים\",\n  \"data\": null\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "3046f96e-3dbe-43c6-a9e7-b7550cbf6846",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "customer_new"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"company_name\": \"לקוח לדוגמה\",\n  \"company_hp\": \"000000018\",\n  \"contact_name\": \"ישראל ישראלי\",\n  \"address\": \"רחוב הדוגמה 1\",\n  \"city\": \"תל אביב\",\n  \"zip\": \"6100000\",\n  \"tel\": \"03-0000000\",\n  \"cel\": \"050-0000000\",\n  \"email\": \"customer@example.com\",\n  \"account_code\": \"20001\",\n  \"vat_exemption\": 0,\n  \"request_reference\": \"CRM-7781\",\n  \"comments\": \"נפתח מהאתר\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "80eb0042-5b25-48f8-9b60-fcceec853cc8",
          "name": "עדכון כרטיס לקוח / Update a customer card",
          "request": {
            "name": "עדכון כרטיס לקוח / Update a customer card",
            "description": {
              "content": "מעדכן כרטיס לקוח פעיל. `customer_id` חובה. רק שדות שנשלחו משתנים; שדה שלא נשלח (או `null`)\nנשאר כמו שהוא. מחרוזת ריקה מוחקת את הערך (מלבד `company_name`, שלא יכול להיות ריק).\nכשלא השתנה דבר התשובה עדיין \"הלקוח עודכן\" עם אותו `customer_id`.\n\nUpdates an active customer card; only the fields sent change (`null` / missing = unchanged).\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "customer_update"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"customer_id\": 5608,\n  \"cel\": \"052-0000000\",\n  \"email\": \"new@example.com\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "c12346a0-e7b2-4b50-8da5-6e3ddfd20c5f",
              "name": "הכרטיס עודכן",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "customer_update"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"customer_id\": 5608,\n  \"cel\": \"052-0000000\",\n  \"email\": \"new@example.com\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"הלקוח עודכן\",\n  \"data\": {\n    \"customer_id\": 5608\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "7978933c-4370-4255-ac77-0a598c5984d1",
              "name": "כרטיס לא נמצא",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "customer_update"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"customer_id\": 5608,\n  \"cel\": \"052-0000000\",\n  \"email\": \"new@example.com\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 404,\n  \"result_message\": \"הלקוח לא נמצא\",\n  \"data\": null\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "36058810-f3c5-4a53-9048-1338cbaeb356",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "customer_update"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"customer_id\": 5608,\n  \"cel\": \"052-0000000\",\n  \"email\": \"new@example.com\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "ac80e3de-30a0-4356-ac9e-032bd75298f4",
          "name": "שליפת כרטיס לקוח / Get a customer card",
          "request": {
            "name": "שליפת כרטיס לקוח / Get a customer card",
            "description": {
              "content": "מחזיר כרטיס לקוח פעיל לפי `customer_id`. כרטיס שאינו כרטיס לקוח, או לקוח לא פעיל, = 204.\n\nReturns an active customer card by `customer_id`; not found / not a customer / inactive = 204.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "customer_get"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"customer_id\": 5608\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "58e31627-e163-4492-a7f5-ec8eb27482f4",
              "name": "הכרטיס נמצא",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "customer_get"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"customer_id\": 5608\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"OK\",\n  \"data\": {\n    \"customer_id\": 5608,\n    \"company_hp\": \"000000018\",\n    \"company_name\": \"לקוח לדוגמה\",\n    \"contact_name\": \"ישראל ישראלי\",\n    \"address\": \"רחוב הדוגמה 1\",\n    \"city\": \"תל אביב\",\n    \"zip\": \"6100000\",\n    \"tel\": \"03-0000000\",\n    \"cel\": \"050-0000000\",\n    \"email\": \"customer@example.com\",\n    \"comments\": \"נפתח מהאתר\",\n    \"account_code\": \"20001\",\n    \"vat_exemption\": 0,\n    \"request_reference\": \"CRM-7781\"\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "c74ed8a0-f436-4a20-906b-67c4a7982d82",
              "name": "לא נמצא",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "customer_get"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"customer_id\": 5608\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 204,\n  \"result_message\": \"כרטיס לא נמצא\",\n  \"data\": null\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "ea9d605c-b1d3-4fa6-b468-3f24d7c1ae44",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "customer_get"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"customer_id\": 5608\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "e4c80218-e79e-4d3a-b19e-36d80fc467ef",
          "name": "יתרת לקוח / Customer balance",
          "request": {
            "name": "יתרת לקוח / Customer balance",
            "description": {
              "content": "מחזיר את יתרת כרטיס הלקוח בש\"ח, כפי שהיא מוצגת בכרטיס הלקוח באפליקציה.\nעובד על כרטיסי לקוחות בלבד (גם לקוח לא פעיל). כרטיס שלא נמצא או שאינו לקוח = 204.\n- עסק שמגדיר \"לכלול חשבונית עסקה ביתרה\": `balance` כולל את חשבוניות העסקה הפתוחות (`open_transaction_invoices`).\n  חשבונית עסקה אינה מסמך הנהלת חשבונות ואינה בכרטסת, לכן `accounting_balance` (יתרת הכרטסת) =\n  `balance` + `open_transaction_invoices`. עסק שלא מגדיר: `open_transaction_invoices` = 0 ושתי היתרות שוות.\n\nReturns the customer card's balance in NIS, as computed for the card in the app. Customer cards\nonly (inactive ones too); not found / not a customer = 204. When the business counts open transaction\ninvoices (not an accounting document, never a ledger row) in the balance, `balance` includes\n`open_transaction_invoices` and `accounting_balance` (the ledger's balance) = `balance` + `open_transaction_invoices`.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "customer_balance"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"customer_id\": 5608\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "3198e2d3-770d-4e11-8e73-ffafa5d640ae",
              "name": "יתרה",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "customer_balance"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"customer_id\": 5608\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"OK\",\n  \"data\": {\n    \"balance\": 1250.5,\n    \"accounting_balance\": 1250.5,\n    \"open_transaction_invoices\": 0\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "4a270aa2-2134-4249-ad62-19c442145543",
              "name": "לא נמצא",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "customer_balance"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"customer_id\": 5608\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 204,\n  \"result_message\": \"לקוח לא נמצא או שאין נתוני יתרה\",\n  \"data\": null\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "f2f606d2-f8c5-4f6c-9bc8-43bf68510975",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "customer_balance"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"customer_id\": 5608\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "c5c6a84e-3d45-498a-b3ad-f3955fff3729",
          "name": "כרטסת לקוח / Customer ledger",
          "request": {
            "name": "כרטסת לקוח / Customer ledger",
            "description": {
              "content": "כרטסת הנהלת החשבונות של כרטיס לקוח - כמו המסך \"כרטסת\" באפליקציה: יתרת פתיחה לתחילת הטווח, כל התנועות בטווח\n(מסמכים, שורות תשלום וסגירות) ויתרה מצטברת אחרי כל תנועה.\n\n- `date_to` ברירת מחדל היום; `date_from` ברירת מחדל 1 בינואר של שנת `date_to`. טווח מקסימלי 366 ימים; שנה בין 1900 ל-9998.\n- סימנים כמו ב-`customer_balance`: יתרה = זכות פחות חובה. יתרה שלילית = הלקוח חייב.\n  כש-`date_to` הוא היום, `closing_balance` שווה ל-`accounting_balance` של `customer_balance`.\n- חשבונית עסקה אינה מסמך הנהלת חשבונות ואינה תנועה בכרטסת. עסק שמגדיר \"לכלול חשבונית עסקה ביתרה\":\n  `open_transaction_invoices` = חשבוניות העסקה הפתוחות שהופקו עד `date_to`, ו-`balance_with_transaction_invoices` =\n  `closing_balance` פחות הן (כש-`date_to` הוא היום - שווה ל-`balance` של `customer_balance`).\n- כרטיסי לקוחות בלבד (גם לא פעילים), לא הלקוח המזדמן. כרטיס שלא נמצא = 204.\n\nThe customer card's ledger as the app's ledger screen: the opening balance at the start of the range, every\nmovement in it and the running balance. `date_to` defaults to today, `date_from` to 1 January of `date_to`'s\nyear; at most 366 days. Signs as `customer_balance` (credit minus debit; negative = the customer owes).\nTransaction invoices are never ledger rows: when the business counts them in the balance,\n`open_transaction_invoices` holds the open ones and `balance_with_transaction_invoices` = `closing_balance` minus them.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "customer_ledger"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"customer_id\": 5608,\n  \"date_from\": \"2026-01-01\",\n  \"date_to\": \"2026-10-26\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "4f16661c-945f-48de-a7de-e7e1115c851a",
              "name": "Envelope; `data` = the ledger, or null.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "customer_ledger"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"customer_id\": 5608,\n  \"date_from\": \"2026-01-01\",\n  \"date_to\": \"2026-10-26\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"OK\",\n  \"data\": {\n    \"customer_id\": 5608,\n    \"company_name\": \"לקוח לדוגמה\",\n    \"date_from\": \"2026-01-01T00:00:00\",\n    \"date_to\": \"2026-10-26T00:00:00\",\n    \"opening_balance\": -500,\n    \"total_debit\": 1170,\n    \"total_credit\": 1000,\n    \"closing_balance\": -670,\n    \"open_transaction_invoices\": 0,\n    \"balance_with_transaction_invoices\": -670,\n    \"movements\": [\n      {\n        \"date\": \"2026-03-02T00:00:00\",\n        \"value_date\": \"2026-04-01T00:00:00\",\n        \"document_id\": 88101,\n        \"document_type\": 305,\n        \"document_number\": \"10012\",\n        \"reference\": \"\",\n        \"description\": \"חשבונית מס 10012\",\n        \"debit\": 1170,\n        \"credit\": 0,\n        \"balance\": -1670\n      },\n      {\n        \"date\": \"2026-03-20T00:00:00\",\n        \"value_date\": \"2026-03-20T00:00:00\",\n        \"document_id\": 88140,\n        \"document_type\": 400,\n        \"document_number\": \"3051\",\n        \"reference\": \"\",\n        \"description\": \"העברה בנקאית \",\n        \"debit\": 0,\n        \"credit\": 1000,\n        \"balance\": -670\n      }\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "fb35bcb9-a751-4175-ac6a-5ad790c37fb7",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "customer_ledger"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"customer_id\": 5608,\n  \"date_from\": \"2026-01-01\",\n  \"date_to\": \"2026-10-26\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "9ffb0884-472b-4c60-b9b4-a3704447bfe2",
          "name": "מסמכים פתוחים של לקוח / Customer open documents",
          "request": {
            "name": "מסמכים פתוחים של לקוח / Customer open documents",
            "description": {
              "content": "מה שעדיין פתוח בכרטיס הלקוח - כמו \"פתוחים בלבד\" בכרטסת באפליקציה: מסמכים שנשאר בהם סכום לתשלום (`open_debit`)\nותשלומים שעוד לא שויכו למסמך (`open_credit`). בלי טווח תאריכים - כל מה שפתוח. אין מה שפתוח = 204 עם רשימה ריקה.\n`open_balance` = זכות פתוחה פחות חובה פתוחה (שלילי = הלקוח חייב).\nחשבונית עסקה אינה ברשימה (אינה מסמך הנהלת חשבונות); עסק שמגדיר \"לכלול חשבונית עסקה ביתרה\" מקבל את סכומן הפתוח\nב-`open_transaction_invoices`.\n\nWhat is still open on the customer card, as the ledger's \"open only\" view: documents with an amount left to pay\n(`open_debit`) and payments not yet matched to a document (`open_credit`). Nothing open = 204 with an empty list.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "customer_open_documents"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"customer_id\": 5608\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "0b12659a-e235-431b-b11e-5df75c2ffb47",
              "name": "Envelope; `data` = the open documents, or null.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "customer_open_documents"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"customer_id\": 5608\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"OK\",\n  \"data\": {\n    \"customer_id\": 5608,\n    \"company_name\": \"לקוח לדוגמה\",\n    \"total_open_debit\": 670,\n    \"total_open_credit\": 0,\n    \"open_balance\": -670,\n    \"open_transaction_invoices\": 0,\n    \"documents\": [\n      {\n        \"document_id\": 88101,\n        \"document_type\": 305,\n        \"document_number\": \"10012\",\n        \"document_date\": \"2026-03-02T00:00:00\",\n        \"due_date\": \"2026-04-01T00:00:00\",\n        \"reference\": \"\",\n        \"description\": \"חשבונית מס 10012\",\n        \"open_debit\": 670,\n        \"open_credit\": 0\n      }\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "681c129d-4488-47b1-9ed2-e8d614bbea7f",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "customer_open_documents"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"customer_id\": 5608\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "f8977502-f8fd-4d02-82fc-76b7d651a981",
          "name": "רשימת לקוחות / List customers",
          "request": {
            "name": "רשימת לקוחות / List customers",
            "description": {
              "content": "מחזיר את כרטיסי הלקוחות הפעילים של החברה. אין לקוחות מתאימים = 204.\n\n- **בלי אף שדה אופציונלי** - כל הרשימה במערך אחד, כמו תמיד (`data` = מערך, או `null` ב-204).\n- **`page`** (מ-1) ו-`page_size` (ברירת מחדל 100, עד 500) - התשובה היא עמוד:\n  `data = {page, page_size, total_count, customers}`, ממוין לפי מספר כרטיס. גם ב-204 `data` הוא העמוד עם `total_count` 0.\n- **`updated_since`** - רק כרטיסים שנוספו או השתנו מאז (כולל הזמן עצמו). שעון ישראל; זמן עם `Z` או `+02:00` מומר.\n  כרטיס שנמחק לא יופיע. הזמן נספר בשניות שלמות. לסנכרון: שולחים בקריאה הבאה את זמן הקריאה הקודמת פחות דקה\n  (שעון המחשב שלכם יכול להיות מוקדם או מאוחר משעון השרת), ומדלגים על כרטיס שכבר קיבלתם לפי מספר הכרטיס.\n- **`search`** (2-100 תווים) - שם החברה או איש הקשר מכילים את הטקסט. טקסט שהוא מספר (ספרות, מקפים, רווחים) נחפש גם\n  בח.פ. ובטלפונים, לפי הספרות בלבד (3 ספרות ומעלה; מקפים ורווחים לא נחשבים).\n- בלי `page`, הסינונים מחזירים את כל התוצאות במערך, כמו הרשימה המלאה.\n\nReturns the company's active customer cards. None matching = 204.\n- **No optional field** - the full list in one array, as always (`data` = array, or `null` with 204).\n- **`page`** (from 1) + `page_size` (default 100, max 500) - a page: `data = {page, page_size, total_count, customers}`,\n  ordered by customer id. With 204 `data` is still the page object with `total_count` 0.\n- **`updated_since`** - only cards added or changed at or after that time (Israel time; a `Z` / offset is converted).\n  Deleted cards never appear. Whole seconds are compared. To sync: next time send the time of your previous call minus\n  one minute (your clock may differ from the server's) and skip cards you already have, by customer id.\n- **`search`** (2-100 chars) - company / contact name contains the text; a number-like text (digits, dashes, spaces)\n  is also looked for in the business number and phones by its digits (3+ digits; dashes and spaces ignored).\n- Without `page` the filters return every match in one array, like the full list.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "customer_list"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "031fa1b8-7bd9-458f-a789-369bb841901f",
              "name": "רשימה",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "customer_list"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"OK\",\n  \"data\": [\n    {\n      \"customer_id\": 5608,\n      \"company_hp\": \"000000018\",\n      \"company_name\": \"לקוח לדוגמה\",\n      \"contact_name\": \"ישראל ישראלי\",\n      \"address\": \"רחוב הדוגמה 1\",\n      \"city\": \"תל אביב\",\n      \"zip\": \"6100000\",\n      \"tel\": \"03-0000000\",\n      \"cel\": \"050-0000000\",\n      \"email\": \"customer@example.com\",\n      \"comments\": \"\",\n      \"account_code\": \"20001\",\n      \"vat_exemption\": 0,\n      \"request_reference\": \"CRM-7781\"\n    }\n  ]\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "177496ec-e78a-4963-857c-9ef270877248",
              "name": "עמוד / A page",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "customer_list"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"updated_since\": \"2026-10-26T08:00:00\",\n  \"page\": 1,\n  \"page_size\": 100\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"OK\",\n  \"data\": {\n    \"page\": 1,\n    \"page_size\": 100,\n    \"total_count\": 1,\n    \"customers\": [\n      {\n        \"customer_id\": 5608,\n        \"company_hp\": \"000000018\",\n        \"company_name\": \"לקוח לדוגמה\",\n        \"contact_name\": \"ישראל ישראלי\",\n        \"address\": \"רחוב הדוגמה 1\",\n        \"city\": \"תל אביב\",\n        \"zip\": \"6100000\",\n        \"tel\": \"03-0000000\",\n        \"cel\": \"050-0000000\",\n        \"email\": \"customer@example.com\",\n        \"comments\": \"\",\n        \"account_code\": \"20001\",\n        \"vat_exemption\": 0,\n        \"request_reference\": \"CRM-7781\"\n      }\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "4c52992e-1d84-48f7-82ec-a7d57d7faaca",
              "name": "אין לקוחות",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "customer_list"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 204,\n  \"result_message\": \"לא נמצאו לקוחות\",\n  \"data\": null\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "9df4923b-2441-4868-bc88-0f0bc2bce429",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "customer_list"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        }
      ]
    },
    {
      "name": "Suppliers",
      "description": "כרטיסי ספקים, יתרה, כרטסת ומסמכים פתוחים (תוסף מעקב הוצאות) / Supplier cards, balance, ledger and open documents (expenses add-on).",
      "item": [
        {
          "id": "2a738948-9e00-47ed-a473-945297bd29d7",
          "name": "הוספת ספק / Create a supplier",
          "request": {
            "name": "הוספת ספק / Create a supplier",
            "description": {
              "content": "פותח כרטיס ספק, דרך אותה שמירה של מסך \"ספקים\" באפליקציה (אותן בדיקות, אותו יומן פעולות, והודעת Webhook\n`provider_added`). דורש את תוסף \"מעקב הוצאות\". ח.פ. שכבר קיים בכרטיס ספק אחר = 409 (גם כרטיס ישן שהח.פ. שלו נשמר\nב-8 ספרות או עם מקפים).\n\nCreates a supplier card through the app's own supplier save (same checks, action log and `provider_added` webhook).\nNeeds the expense tracking add-on. A business number already on another supplier = 409 (also an old card that stores it\nwith 8 digits or with dashes).\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "supplier_new"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"company_name\": \"ספק לדוגמה בע\\\"מ\",\n  \"company_hp\": \"514000000\",\n  \"contact_name\": \"דנה כהן\",\n  \"email\": \"billing@supplier.example\",\n  \"withholding_tax_percent\": 5,\n  \"withholding_tax_valid_until\": \"2026-12-31\",\n  \"payment_terms\": 2,\n  \"payment_days\": 30\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "60cb5567-f9b9-429d-b6ec-9c7101877630",
              "name": "Envelope; `data` = `{supplier_id}`, or null.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "supplier_new"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"company_name\": \"ספק לדוגמה בע\\\"מ\",\n  \"company_hp\": \"514000000\",\n  \"contact_name\": \"דנה כהן\",\n  \"email\": \"billing@supplier.example\",\n  \"withholding_tax_percent\": 5,\n  \"withholding_tax_valid_until\": \"2026-12-31\",\n  \"payment_terms\": 2,\n  \"payment_days\": 30\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"הספק נוסף\",\n  \"data\": {\n    \"supplier_id\": 49293\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "83d64f30-8199-4251-bbad-472d61e87b30",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "supplier_new"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"company_name\": \"ספק לדוגמה בע\\\"מ\",\n  \"company_hp\": \"514000000\",\n  \"contact_name\": \"דנה כהן\",\n  \"email\": \"billing@supplier.example\",\n  \"withholding_tax_percent\": 5,\n  \"withholding_tax_valid_until\": \"2026-12-31\",\n  \"payment_terms\": 2,\n  \"payment_days\": 30\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "e8a64e0c-592a-4d74-9725-bb10bc03984f",
          "name": "עדכון ספק / Update a supplier",
          "request": {
            "name": "עדכון ספק / Update a supplier",
            "description": {
              "content": "מעדכן כרטיס ספק פעיל. רק השדות שנשלחו משתנים. בלי שינוי - תשובה 200 עם אותו `supplier_id`. הודעת Webhook `provider_updated`.\n\nUpdates an active supplier card; only the fields sent change. No change = 200 with the same `supplier_id`.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "supplier_update"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"supplier_id\": 49293,\n  \"city\": \"חיפה\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "fc2d9275-35d3-4a4a-90b6-c0bc273932d0",
              "name": "Envelope; `data` = `{supplier_id}`, or null.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "supplier_update"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"supplier_id\": 49293,\n  \"city\": \"חיפה\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 409,\n  \"result_message\": null,\n  \"data\": {\n    \"supplier_id\": 86310983\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "3c151238-d005-4025-a248-22af810071f5",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "supplier_update"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"supplier_id\": 49293,\n  \"city\": \"חיפה\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "847fe7b8-1791-4f19-be7f-07ad729e342f",
          "name": "שליפת כרטיס ספק / Get a supplier card",
          "request": {
            "name": "שליפת כרטיס ספק / Get a supplier card",
            "description": {
              "content": "מחזיר כרטיס ספק פעיל לפי `supplier_id`. לא נמצא / אינו ספק / לא פעיל = 204.\n\nReturns an active supplier card; not found / not a supplier / inactive = 204.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "supplier_get"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"supplier_id\": 49293\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "516c304d-6c6c-4647-8174-84e359a28201",
              "name": "Envelope; `data` = the supplier card, or null.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "supplier_get"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"supplier_id\": 49293\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"OK\",\n  \"data\": {\n    \"supplier_id\": 49293,\n    \"company_hp\": \"514000000\",\n    \"company_name\": \"ספק לדוגמה בע\\\"מ\",\n    \"contact_name\": \"דנה כהן\",\n    \"address\": \"\",\n    \"city\": \"חיפה\",\n    \"zip\": \"\",\n    \"tel\": \"03-0000000\",\n    \"cel\": \"\",\n    \"email\": \"billing@supplier.example\",\n    \"comments\": \"\",\n    \"account_code\": \"800005\",\n    \"vat_exemption\": 0,\n    \"request_reference\": \"ERP-551\",\n    \"withholding_tax_percent\": 5,\n    \"withholding_tax_valid_until\": \"2026-12-31T00:00:00\",\n    \"payment_terms\": 2,\n    \"payment_days\": 30,\n    \"expense_account_id\": 10658\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "5841a303-acfe-432a-90ea-c46f5aa4da49",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "supplier_get"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"supplier_id\": 49293\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "eafe9a53-89fe-40ab-a83c-d85276b5e7f6",
          "name": "רשימת ספקים / List suppliers",
          "request": {
            "name": "רשימת ספקים / List suppliers",
            "description": {
              "content": "כרטיסי הספקים הפעילים, תמיד בעמודים: `data = {page, page_size, total_count, suppliers}`, ממוין לפי מספר כרטיס.\nבלי `page` - עמוד 1 של 100. אפשר לסנן ב-`updated_since` וב-`search` (שם / איש קשר / מייל, או ספרות של ח.פ. / טלפון).\nאין תוצאות = 204 עם עמוד ריק.\n\nActive supplier cards, always paged (`data = {page, page_size, total_count, suppliers}`, by card number); no `page` =\npage 1 of 100. Optional `updated_since` and `search` (name / contact / e-mail, or the digits of a business number / phone).\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "supplier_list"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"page\": 1,\n  \"page_size\": 100,\n  \"search\": \"514000000\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "9003850e-3c19-4257-8609-f9f5a468e3de",
              "name": "Envelope; `data` = the page.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "supplier_list"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"page\": 1,\n  \"page_size\": 100,\n  \"search\": \"514000000\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 429,\n  \"result_message\": \"aliqua dolore ex\",\n  \"data\": {\n    \"page\": 32312296,\n    \"page_size\": -27249821,\n    \"total_count\": 43975752,\n    \"suppliers\": [\n      {\n        \"supplier_id\": -42139659,\n        \"company_hp\": \"sit occaecat Lorem\",\n        \"company_name\": null,\n        \"contact_name\": null,\n        \"address\": \"enim deser\",\n        \"city\": null,\n        \"zip\": null,\n        \"tel\": \"et fugiat magna\",\n        \"cel\": null,\n        \"email\": \"officia aliqua mollit ut\",\n        \"comments\": null,\n        \"account_code\": \"dolor fugiat esse\",\n        \"vat_exemption\": 0,\n        \"request_reference\": null,\n        \"withholding_tax_percent\": null,\n        \"withholding_tax_valid_until\": \"1950-07-11\",\n        \"payment_terms\": 1,\n        \"payment_days\": null,\n        \"expense_account_id\": 35792220\n      },\n      {\n        \"supplier_id\": -85942367,\n        \"company_hp\": \"nisi\",\n        \"company_name\": \"proident ipsum deserunt\",\n        \"contact_name\": \"in sint\",\n        \"address\": \"esse laboris in\",\n        \"city\": null,\n        \"zip\": null,\n        \"tel\": \"consequat dolore\",\n        \"cel\": null,\n        \"email\": \"do eu\",\n        \"comments\": null,\n        \"account_code\": null,\n        \"vat_exemption\": null,\n        \"request_reference\": \"minim\",\n        \"withholding_tax_percent\": 26.962922803133328,\n        \"withholding_tax_valid_until\": null,\n        \"payment_terms\": null,\n        \"payment_days\": null,\n        \"expense_account_id\": null\n      }\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "41a3183a-db96-429d-9531-543182eeda99",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "supplier_list"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"page\": 1,\n  \"page_size\": 100,\n  \"search\": \"514000000\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "3881d9a6-82b1-4b76-802f-77ed365e8216",
          "name": "יתרת ספק / Supplier balance",
          "request": {
            "name": "יתרת ספק / Supplier balance",
            "description": {
              "content": "יתרת כרטיס הספק בש\"ח, כמו בכרטיס הספק באפליקציה. יתרה חיובית = העסק חייב לספק. גם ספק לא פעיל.\n\nThe supplier card's balance in NIS as in the app; positive = the business owes the supplier. Inactive cards too.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "supplier_balance"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"supplier_id\": 49094\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "e127a203-48a3-4c44-8ba9-fb5d0b9dd9d6",
              "name": "Envelope; `data` = `{supplier_id, balance}`, or null.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "supplier_balance"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"supplier_id\": 49094\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"OK\",\n  \"data\": {\n    \"supplier_id\": 49094,\n    \"balance\": 1623\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "e9da3b2f-9b6f-4358-92a7-53efbcaaf8fe",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "supplier_balance"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"supplier_id\": 49094\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "1b5cdb56-79df-42a9-b915-86c08223f932",
          "name": "כרטסת ספק / Supplier ledger",
          "request": {
            "name": "כרטסת ספק / Supplier ledger",
            "description": {
              "content": "כרטסת כרטיס הספק, כמו המסך \"כרטסת\" באפליקציה: יתרת פתיחה, כל התנועות בטווח (הוצאות, חשבוניות רכש, תשלומים) ויתרה מצטברת.\n`date_to` ברירת מחדל היום, `date_from` ברירת מחדל 1 בינואר; עד 366 ימים; שנה בין 1900 ל-9998. יתרה = זכות פחות חובה (חיובי = העסק חייב לספק).\n\nThe supplier card's ledger as the app's ledger screen: opening balance, every movement in the range and the running balance.\nDefaults and the 366-day limit as `customer_ledger`; balance = credit minus debit (positive = the business owes).\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "supplier_ledger"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"supplier_id\": 49094,\n  \"date_from\": \"2026-01-01\",\n  \"date_to\": \"2026-10-27\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "fe3f97d0-91a1-47cc-bd95-139f33788a95",
              "name": "Envelope; `data` = the ledger, or null.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "supplier_ledger"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"supplier_id\": 49094,\n  \"date_from\": \"2026-01-01\",\n  \"date_to\": \"2026-10-27\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 401,\n  \"result_message\": null,\n  \"data\": {\n    \"supplier_id\": 87270164,\n    \"company_name\": \"magna velit\",\n    \"date_from\": \"dolor Ut adipisicing sit consectetur\",\n    \"date_to\": \"velit culpa pariatur in\",\n    \"opening_balance\": -52714555.10126988,\n    \"total_debit\": 10282556.09406881,\n    \"total_credit\": -38443056.436266065,\n    \"closing_balance\": 36320743.470496714,\n    \"movements\": [\n      {\n        \"date\": \"elit ut\",\n        \"value_date\": \"ipsum\",\n        \"document_id\": -95926324,\n        \"document_type\": 40886430,\n        \"document_number\": \"elit ad\",\n        \"reference\": \"aute nisi enim ipsum cupidatat\",\n        \"description\": \"ad qui m\",\n        \"debit\": -72482707.6893628,\n        \"credit\": -26531138.22355479,\n        \"balance\": -33107661.010988943\n      },\n      {\n        \"date\": \"ullamco ea in\",\n        \"value_date\": \"ullamco nisi cillum enim\",\n        \"document_id\": -27788525,\n        \"document_type\": 89660542,\n        \"document_number\": \"esse incididunt voluptate\",\n        \"reference\": \"eiusmod eu\",\n        \"description\": \"magna eiusmod veniam\",\n        \"debit\": -67463132.35921547,\n        \"credit\": -420291.9612468481,\n        \"balance\": -34962584.559979185\n      }\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "ef09004e-8cd3-436c-b076-724f1bb60d33",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "supplier_ledger"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"supplier_id\": 49094,\n  \"date_from\": \"2026-01-01\",\n  \"date_to\": \"2026-10-27\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "3db6f650-e043-4e52-926b-a0f05f561f3b",
          "name": "מסמכים פתוחים של ספק / Supplier open documents",
          "request": {
            "name": "מסמכים פתוחים של ספק / Supplier open documents",
            "description": {
              "content": "מה שעדיין פתוח בכרטיס הספק (\"פתוחים בלבד\"): הוצאות וחשבוניות שעוד לא שולמו (`open_credit`) ותשלומים שעוד לא שויכו\n(`open_debit`). אין מה שפתוח = 204 עם רשימה ריקה.\n\nWhat is still open on the supplier card: unpaid expenses / invoices (`open_credit`) and payments not yet matched\n(`open_debit`). Nothing open = 204 with an empty list.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "supplier_open_documents"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"supplier_id\": 49094\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "0a552abd-fe3f-4852-a8e5-4e516ea6c9c6",
              "name": "Envelope; `data` = the open documents, or null.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "supplier_open_documents"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"supplier_id\": 49094\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"OK\",\n  \"data\": {\n    \"supplier_id\": 49094,\n    \"company_name\": \"ספק לדוגמה\",\n    \"total_open_debit\": 0,\n    \"total_open_credit\": 236,\n    \"open_balance\": 236,\n    \"documents\": [\n      {\n        \"document_id\": 72604,\n        \"document_type\": 1502,\n        \"document_number\": \"B443-1\",\n        \"document_date\": \"2026-10-21T00:00:00\",\n        \"due_date\": \"2026-10-21T00:00:00\",\n        \"reference\": \"\",\n        \"description\": \"חשבונית מס הוצאה B443-1\",\n        \"open_debit\": 0,\n        \"open_credit\": 236\n      }\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "666cbd8c-1ace-4a89-bc32-2fddb44c4f2f",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "supplier_open_documents"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"supplier_id\": 49094\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        }
      ]
    },
    {
      "name": "Expenses",
      "description": "הוצאות, קריאת חשבונית מקובץ ותשלומים לספקים (תוסף מעקב הוצאות) / Expenses, invoice reading and supplier payments (expenses add-on).",
      "item": [
        {
          "id": "32d73c7f-5687-47e2-97de-723cf5e65188",
          "name": "רישום הוצאה / Record an expense",
          "request": {
            "name": "רישום הוצאה / Record an expense",
            "description": {
              "content": "רושם חשבונית מס הוצאה (1502, ברירת מחדל) או זיכוי הוצאה (5000), דרך אותה שמירה של מסך ההוצאה באפליקציה. דורש את\nתוסף \"מעקב הוצאות\".\n\n- **ספק:** `supplier_id`, או `supplier` עם `company_hp` - ספק עם ח.פ. זה נמצא אוטומטית (ח.פ. קצר מ-9 ספרות מושלם\n  באפסים מובילים; גם כרטיס ישן שהח.פ. שלו נשמר ב-8 ספרות או עם מקפים). לא נמצא - נפתח ספק חדש, ולשם כך חובה\n  `supplier.company_name`. בלי ח.פ. (או ח.פ. של אפסים / ספרה חוזרת) - נרשם על כרטיס הספק הפעיל ששמו זהה בדיוק\n  ל-`supplier.company_name`, והתשובה מציינת זאת ב-`data.warnings`; כמה כרטיסים פעילים באותו שם, או כרטיס לא פעיל\n  בלבד - 400. אין כרטיס בשם הזה - נפתח ספק חדש. ח.פ. שאינו מספר תקין (אותיות, יותר מ-9 ספרות, פחות מ-5) - 400;\n  ח.פ. שרק כרטיס לא פעיל נושא - 400. הוצאה שנדחתה בגלל חודש שיוך מוקדם מחודש המסמך, סעיף הוצאה / סוג זיכוי מע\"מ שלא\n  קיימים או חודש דיווח סגור (הוצאה סופית) - לא פותחת ספק חדש (ולא נשלחת הודעת `provider_added`).\n- **סכום:** `amount_total` כולל מע\"מ. המע\"מ מחושב כמו במסך: לפי תאריך המסמך, ובלי מע\"מ לספק פטור או לסעיף פטור.\n  אם נשלח `vat_amount` והוא שונה מהמחושב ביותר מ-5 אגורות - 400 (מגן מטעויות בקריאת חשבונית).\n- **סעיף הוצאה:** `expense_account_id` (רשימה ב-`expense_lists`); ברירת מחדל - הסעיף של הספק או של החברה.\n  `vat_reclaim_id` - כמה מהמע\"מ מקוזז (ברירת מחדל - לפי הסעיף).\n- **קובץ:** `file` - החשבונית עצמה (pdf / jpg / png, עד 3MB, ב-base64). נשמר כקובץ המצורף להוצאה, כמו במסך.\n- **כפילות (409, עם `data.duplicate_of` = המסמך הקיים):** אותו `request_reference`; אותו ספק ואותה אסמכתא (`reference`)\n  באותה שנה; או - בלי אסמכתא - אותו ספק, אותו יום ואותו סכום, אלא אם נשלח `allow_duplicate: true`. גם חשבונית רכש\n  של אותו ספק נחשבת כפילות: אז `duplicate_of.document_type` הוא 700 (חשבונית רכש) או 710 (זיכוי רכש), ו-`expense_get`\n  על המספר שלה עונה \"לא נמצא\".\n- `draft: true` - נשמרת טיוטה, שאפשר לבדוק ולהשלים במסך.\n- `data.warnings` - הערות שלא עצרו את הרישום, למשל הוצאה בסכום שמחייב מס' הקצאה בלי `allocation_number`.\n- הודעת Webhook `expense_added` נשלחת כשהוצאה נרשמת - גם כשהיא נרשמת במסך באפליקציה. הוצאה מה-API - אחרי צירוף\n  הקובץ, עם `request_reference`.\n\nRecords an expense invoice (1502, default) or an expense credit (5000) through the app's own expense save. Needs the\nexpenses add-on. Supplier by `supplier_id`, or `supplier.company_hp` (found automatically, also an old card stored with\n8 digits or dashes; not found = a new supplier, `supplier.company_name` required). Without a business number: the one\nactive supplier whose name is exactly `supplier.company_name` (noted in `data.warnings`); several active ones, or only\nan inactive one = 400; none = a new supplier. A business number that is not a valid number (letters, more than 9 or\nfewer than 5 digits), or one only an inactive card carries = 400. An expense refused for a reference month before the\ndocument's month, an expense account / VAT-reclaim type that does not exist or a closed reporting month (final expense)\nopens no new supplier (no `provider_added`). `amount_total` includes VAT; VAT is computed as on the screen; a `vat_amount` more than\n5 agorot off = 400. Optional invoice `file` (pdf / jpg / png, up to 3 MB, base64) is attached. Duplicates = 409 with\n`data.duplicate_of`: same `request_reference`; same supplier + `reference` in the same year; or, without a reference, same\nsupplier + day + total unless `allow_duplicate: true`. A purchase invoice of the supplier counts too: then\n`duplicate_of.document_type` is 700 (purchase invoice) or 710 (purchase credit), and `expense_get` on its id answers 204 (not found). `draft: true` saves a draft. `data.warnings` lists non-blocking\nnotes. The `expense_added` webhook fires for every recorded expense, the app's included (an API expense: after its file\nis attached, with `request_reference`).\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "expense_new"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"supplier\": {\n    \"company_hp\": \"514000000\",\n    \"company_name\": \"ספק לדוגמה בע\\\"מ\"\n  },\n  \"document_date\": \"2026-10-20\",\n  \"reference\": \"INV-4471\",\n  \"amount_total\": 117,\n  \"vat_amount\": 17.85,\n  \"description\": \"שירותי מחשוב אוקטובר\",\n  \"request_reference\": \"ERP-EXP-9001\",\n  \"file\": {\n    \"file_name\": \"INV-4471.pdf\",\n    \"content_base64\": \"JVBERi0xLjQK...\"\n  }\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "8de13fa4-2c6f-4188-8b52-5f2ef8097c50",
              "name": "נרשמה",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "expense_new"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"supplier\": {\n    \"company_hp\": \"514000000\",\n    \"company_name\": \"ספק לדוגמה בע\\\"מ\"\n  },\n  \"document_date\": \"2026-10-20\",\n  \"reference\": \"INV-4471\",\n  \"amount_total\": 117,\n  \"vat_amount\": 17.85,\n  \"description\": \"שירותי מחשוב אוקטובר\",\n  \"request_reference\": \"ERP-EXP-9001\",\n  \"file\": {\n    \"file_name\": \"INV-4471.pdf\",\n    \"content_base64\": \"JVBERi0xLjQK...\"\n  }\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"ההוצאה נרשמה\",\n  \"data\": {\n    \"expense_id\": 73507,\n    \"document_type\": 1502,\n    \"document_number\": 11,\n    \"status\": \"final\",\n    \"supplier_id\": 49294,\n    \"supplier_name\": \"ספק לדוגמה בע\\\"מ\",\n    \"supplier_hp\": \"514000000\",\n    \"document_date\": \"2026-10-20T00:00:00\",\n    \"reference_month\": \"2026-10-20T00:00:00\",\n    \"due_date\": \"2026-11-30T00:00:00\",\n    \"reference\": \"INV-4471\",\n    \"description\": \"שירותי מחשוב אוקטובר\",\n    \"expense_account_id\": 10658,\n    \"expense_account_name\": \"אחזקת מחשב\",\n    \"vat_reclaim_id\": 2,\n    \"vat_rate\": 18,\n    \"amount_before_vat\": 99.15,\n    \"vat_amount\": 17.85,\n    \"vat_reclaimed\": 17.85,\n    \"amount_total\": 117,\n    \"amount_open\": 117,\n    \"allocation_number\": \"\",\n    \"has_attachment\": true,\n    \"request_reference\": \"ERP-EXP-9001\",\n    \"created_at\": \"2026-10-27T09:30:53\",\n    \"warnings\": []\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "e262fe07-ad8d-4f27-bcbf-3117b3bd814b",
              "name": "כבר נרשמה",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "expense_new"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"supplier\": {\n    \"company_hp\": \"514000000\",\n    \"company_name\": \"ספק לדוגמה בע\\\"מ\"\n  },\n  \"document_date\": \"2026-10-20\",\n  \"reference\": \"INV-4471\",\n  \"amount_total\": 117,\n  \"vat_amount\": 17.85,\n  \"description\": \"שירותי מחשוב אוקטובר\",\n  \"request_reference\": \"ERP-EXP-9001\",\n  \"file\": {\n    \"file_name\": \"INV-4471.pdf\",\n    \"content_base64\": \"JVBERi0xLjQK...\"\n  }\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 409,\n  \"result_message\": \"מס' אסמכתא INV-4471 כבר נרשם השנה לספק זה\",\n  \"data\": {\n    \"reason\": \"reference\",\n    \"duplicate_of\": {\n      \"expense_id\": 73507,\n      \"status\": \"final\"\n    }\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "59fb4f5b-c7ff-42cd-99f3-bda6cc67c19d",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "expense_new"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"supplier\": {\n    \"company_hp\": \"514000000\",\n    \"company_name\": \"ספק לדוגמה בע\\\"מ\"\n  },\n  \"document_date\": \"2026-10-20\",\n  \"reference\": \"INV-4471\",\n  \"amount_total\": 117,\n  \"vat_amount\": 17.85,\n  \"description\": \"שירותי מחשוב אוקטובר\",\n  \"request_reference\": \"ERP-EXP-9001\",\n  \"file\": {\n    \"file_name\": \"INV-4471.pdf\",\n    \"content_base64\": \"JVBERi0xLjQK...\"\n  }\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "b9d385e5-8c65-4b0c-a79c-9a266e76c764",
          "name": "שליפת הוצאה / Get an expense",
          "request": {
            "name": "שליפת הוצאה / Get an expense",
            "description": {
              "content": "הוצאה לפי `expense_id` (גם טיוטה או הוצאה מבוטלת, עם `status`). לא נמצאה = 204.\n\nAn expense by `expense_id` (drafts and cancelled ones too, with `status`). Not found = 204.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "expense_get"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"expense_id\": 73507\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "44c4592c-419f-4d2b-8dd5-cd51dec8f7c2",
              "name": "Envelope; `data` = the expense, or null.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "expense_get"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"expense_id\": 73507\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 503,\n  \"result_message\": null,\n  \"data\": {\n    \"expense_id\": 36331543,\n    \"document_type\": -51224156,\n    \"document_number\": 10196329,\n    \"status\": \"final\",\n    \"supplier_id\": 59353371,\n    \"supplier_name\": \"Lorem ea sunt\",\n    \"supplier_hp\": \"Lorem\",\n    \"document_date\": \"fugiat nulla ullamco\",\n    \"reference_month\": \"velit fugiat sit\",\n    \"due_date\": \"ipsum in quis\",\n    \"reference\": \"nulla non pariatur\",\n    \"description\": \"ad id\",\n    \"expense_account_id\": -44625531,\n    \"expense_account_name\": \"elit ea cupidatat Duis occaecat\",\n    \"vat_reclaim_id\": 16102295,\n    \"vat_rate\": 62572795.875398666,\n    \"amount_before_vat\": -1657231.633635223,\n    \"vat_amount\": -44202135.206828095,\n    \"vat_reclaimed\": 70164279.28956413,\n    \"amount_total\": 23849651.57781738,\n    \"amount_open\": -67162186.90816122,\n    \"allocation_number\": \"magna in non Excepteur ea\",\n    \"has_attachment\": true,\n    \"request_reference\": \"aute proident Duis cupidatat\",\n    \"created_at\": \"nostrud voluptate labore\",\n    \"warnings\": [\n      \"Lorem ullamco minim\",\n      \"ullamco eiusmod et aliquip laboris\"\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "737f8a0f-3954-430e-8a15-08a25e720a9f",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "expense_get"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"expense_id\": 73507\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "a819c7ea-176d-4014-99e2-9f72d1baab92",
          "name": "רשימת הוצאות / List expenses",
          "request": {
            "name": "רשימת הוצאות / List expenses",
            "description": {
              "content": "הוצאות לפי תאריך המסמך (ברירת מחדל - מתחילת השנה עד היום, עד 366 ימים, שנה בין 1900 ל-9998), מהחדשה לישנה, תמיד בעמודים (בלי `page` -\nעמוד 1 של 100). סינון אופציונלי: `supplier_id`, `open_only` (שעוד לא שולמו במלואן), `upload_link_id` (רק מה שהועלה\nבקישור של `expense_upload_link` - בלי סינון תאריכים). אין = 204 עם עמוד ריק.\n\nExpenses by document date (default: this year, up to 366 days), newest first, always paged (no `page` = page 1 of 100).\nOptional `supplier_id`, `open_only` (not fully paid) and `upload_link_id` (only what was uploaded through an\n`expense_upload_link` link, whatever its date). None = 204 with an empty page.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "expense_list"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"date_from\": \"2026-10-01\",\n  \"open_only\": true\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "5de3bfb0-d1a5-43bc-a747-79191441d3d5",
              "name": "Envelope; `data` = the page.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "expense_list"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"date_from\": \"2026-10-01\",\n  \"open_only\": true\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 401,\n  \"result_message\": \"id officia aliqua dolore consectetur\",\n  \"data\": {\n    \"page\": -60831624,\n    \"page_size\": -37526037,\n    \"total_count\": 28774061,\n    \"expenses\": [\n      {\n        \"expense_id\": 99140128,\n        \"document_type\": 45882900,\n        \"document_number\": -50630670,\n        \"status\": \"final\",\n        \"supplier_id\": -93903629,\n        \"supplier_name\": \"ipsum laboris\",\n        \"supplier_hp\": \"aute dolor quis\",\n        \"document_date\": \"qui commodo laborum\",\n        \"reference_month\": \"incididunt tempor cupidatat eiusmod\",\n        \"due_date\": \"enim tempor ad eiusmod eu\",\n        \"reference\": \"magna proident nostrud\",\n        \"description\": \"aute qui\",\n        \"expense_account_id\": 55218064,\n        \"expense_account_name\": \"in reprehenderit de\",\n        \"vat_reclaim_id\": 73754352,\n        \"vat_rate\": 62456926.64584726,\n        \"amount_before_vat\": 9540633.923824355,\n        \"vat_amount\": 76976588.33721417,\n        \"vat_reclaimed\": 79026465.91738823,\n        \"amount_total\": -85398309.95075615,\n        \"amount_open\": -82177437.00442842,\n        \"allocation_number\": \"minim Duis occaecat\",\n        \"has_attachment\": false,\n        \"request_reference\": \"aliquip et Duis in irure\",\n        \"created_at\": \"consequat et laborum adipisicing\",\n        \"warnings\": [\n          \"non com\",\n          \"laboris exercitation aliquip\"\n        ]\n      },\n      {\n        \"expense_id\": -76255959,\n        \"document_type\": -16919651,\n        \"document_number\": -13896320,\n        \"status\": \"cancelled\",\n        \"supplier_id\": 33984484,\n        \"supplier_name\": \"tempor\",\n        \"supplier_hp\": \"eu tempor anim elit\",\n        \"document_date\": \"velit aute sunt dolor\",\n        \"reference_month\": \"reprehenderit\",\n        \"due_date\": \"sint non\",\n        \"reference\": \"quis sed dolor officia\",\n        \"description\": \"eiusmod occaecat\",\n        \"expense_account_id\": -18008526,\n        \"expense_account_name\": \"sint incididunt consectetur\",\n        \"vat_reclaim_id\": -52498862,\n        \"vat_rate\": 12882170.194749728,\n        \"amount_before_vat\": 21109306.012826696,\n        \"vat_amount\": -90844793.74378327,\n        \"vat_reclaimed\": -56244730.78815484,\n        \"amount_total\": 93727483.37623492,\n        \"amount_open\": -24279844.889539987,\n        \"allocation_number\": \"dolor dolore nu\",\n        \"has_attachment\": false,\n        \"request_reference\": \"minim exercitation aliqua laboris\",\n        \"created_at\": \"aliquip incididunt sunt\",\n        \"warnings\": [\n          \"tempor nulla\",\n          \"officia reprehenderit id\"\n        ]\n      }\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "7ab0853a-ceb2-4009-98bd-497b3985bd29",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "expense_list"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"date_from\": \"2026-10-01\",\n  \"open_only\": true\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "98eaa613-37ab-407a-ab64-93b15a1462f3",
          "name": "ביטול הוצאה / Cancel an expense",
          "request": {
            "name": "ביטול הוצאה / Cancel an expense",
            "description": {
              "content": "מבטל הוצאה (או טיוטה) כמו הביטול במסך, עם אותם כללים: הוצאה שקושרה לתשלום יש לנתק קודם באפליקציה. כבר מבוטלת = 409.\n\nCancels an expense (or a draft) as the app's cancel does, with its rules (an expense linked to a payment must be\nreleased in the app first). Already cancelled = 409.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "expense_cancel"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"expense_id\": 73507,\n  \"cancel_reason\": \"נרשמה בטעות\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "2ce80b5d-e681-4589-adaf-f978ddc0fe60",
              "name": "Envelope; `data` = the expense (`status` cancelled), or null.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "expense_cancel"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"expense_id\": 73507,\n  \"cancel_reason\": \"נרשמה בטעות\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 503,\n  \"result_message\": null,\n  \"data\": {\n    \"expense_id\": 36331543,\n    \"document_type\": -51224156,\n    \"document_number\": 10196329,\n    \"status\": \"final\",\n    \"supplier_id\": 59353371,\n    \"supplier_name\": \"Lorem ea sunt\",\n    \"supplier_hp\": \"Lorem\",\n    \"document_date\": \"fugiat nulla ullamco\",\n    \"reference_month\": \"velit fugiat sit\",\n    \"due_date\": \"ipsum in quis\",\n    \"reference\": \"nulla non pariatur\",\n    \"description\": \"ad id\",\n    \"expense_account_id\": -44625531,\n    \"expense_account_name\": \"elit ea cupidatat Duis occaecat\",\n    \"vat_reclaim_id\": 16102295,\n    \"vat_rate\": 62572795.875398666,\n    \"amount_before_vat\": -1657231.633635223,\n    \"vat_amount\": -44202135.206828095,\n    \"vat_reclaimed\": 70164279.28956413,\n    \"amount_total\": 23849651.57781738,\n    \"amount_open\": -67162186.90816122,\n    \"allocation_number\": \"magna in non Excepteur ea\",\n    \"has_attachment\": true,\n    \"request_reference\": \"aute proident Duis cupidatat\",\n    \"created_at\": \"nostrud voluptate labore\",\n    \"warnings\": [\n      \"Lorem ullamco minim\",\n      \"ullamco eiusmod et aliquip laboris\"\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "586d45d0-ac70-48ed-8ada-d24249a61e48",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "expense_cancel"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"expense_id\": 73507,\n  \"cancel_reason\": \"נרשמה בטעות\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "1725e207-934a-4634-9c30-a31e489d9281",
          "name": "רשימות עזר להוצאות / Expense lookups",
          "request": {
            "name": "רשימות עזר להוצאות / Expense lookups",
            "description": {
              "content": "סעיפי ההוצאה הפעילים, סוגי זיכוי המע\"מ וחשבונות הבנק של החברה - המספרים ש-`expense_new` ו-`supplier_payment_new` מקבלים.\n\nThe active expense accounts, the VAT reclaim types and the bank accounts - the ids `expense_new` and\n`supplier_payment_new` take.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "expense_lists"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "d7eef1c3-b293-48ce-b866-9b963be0d964",
              "name": "Envelope; `data` = the lists.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "expense_lists"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"OK\",\n  \"data\": {\n    \"expense_accounts\": [\n      {\n        \"expense_account_id\": 10658,\n        \"name\": \"אחזקת מחשב\",\n        \"account_code\": \"7300\",\n        \"vat_reclaim_id\": 2,\n        \"vat_exempt\": false,\n        \"is_default\": false\n      }\n    ],\n    \"vat_reclaim_types\": [\n      {\n        \"vat_reclaim_id\": 1,\n        \"name\": \"ללא זיכוי\",\n        \"reclaimed_share\": 0\n      },\n      {\n        \"vat_reclaim_id\": 2,\n        \"name\": \"זיכוי מלא\",\n        \"reclaimed_share\": 1\n      }\n    ],\n    \"bank_accounts\": [\n      {\n        \"bank_account_id\": 48224,\n        \"name\": \"החשבון שלי\",\n        \"account_code\": \"1300\"\n      }\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "5ac18ad9-5968-4db9-9c97-7f7e0dc9229c",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "expense_lists"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "dbe8b249-3e77-4d84-b043-876f62432ae3",
          "name": "קריאת חשבונית מקובץ / Read an invoice file",
          "request": {
            "name": "קריאת חשבונית מקובץ / Read an invoice file",
            "description": {
              "content": "קורא חשבונית / קבלה של ספק מקובץ (pdf / jpg / png, עד 3MB, ב-base64) ומחזיר את הפרטים **באותה קריאה** - בלי Webhook\nובלי להמתין. כלול בתוסף. דורש מפתח \"קריאה וכתיבה\".\n\n- `data.document` - מה שנקרא: ספק, ח.פ., מספר החשבונית, תאריך, סכום לפני מע\"מ, מע\"מ, סה\"כ, מטבע, מס' הקצאה, תיאור,\n  **שורות הפירוט**, ו-`confidence` (high / medium / low) לכל שדה מרכזי.\n- `data.checks` - בדיקות מול הספרים: ח.פ. עם ספרת ביקורת שגויה, חשבונית שלא על שם העסק, מע\"מ שאינו 18% מהסכום,\n  סכומים שלא מסתכמים, קבלה בלי חשבונית מס, מטבע זר, חסר מס' הקצאה בסכום שמחייב אותו, חשבונית שכבר נרשמה, חשבונית מס\n  בלי מע\"מ (`vat_missing` - ההוצאה נרשמת בלי מע\"מ, כפי שנקראה) או בלי שום נתון מע\"מ (`vat_not_found` - נרשמת עם המע\"מ\n  הרגיל); שתיהן לא כשהעסק, כרטיס הספק או סעיף ההוצאה כבר פטורים ממע\"מ. תאריך שנקרא עם שנה לא אפשרית (לפני 1900, למשל\n  0001) נחשב \"לא נמצא תאריך המסמך\" (`date_missing`): ההוצאה נשמרת כטיוטה עם תאריך היום, ולא נדחית.\n- `data.supplier` - הספק שנמצא לפי הח.פ. (או `supplier_id` null - אין לו כרטיס). טיוטה של ספק בלי כרטיס נשמרת על\n  כרטיס \"ספק מזדמן\" עם השם והח.פ. שנקראו (`expense.supplier_id` = הכרטיס הכללי), וכרטיס הספק נפתח רק כשההוצאה מאושרת\n  באפליקציה; הוצאה סופית (`create: final` בלי בדיקה חוסמת) פותחת את הכרטיס מיד - אלא אם ההוצאה נדחית (סעיף הוצאה\n  שלא קיים, חודש דיווח סגור): אז הכרטיס לא נפתח וההודעה אומרת \"ההוצאה לא נרשמה\".\n- `data.suggested_expense_account` - הסעיף שבו נרשמה ההוצאה הקודמת מאותו ספק (או סעיף ברירת המחדל שלו).\n- `data.duplicate_of` - ההוצאה, או חשבונית הרכש (`document_type` 700 / 710), שכבר נרשמה עם אותה אסמכתא לאותו ספק.\n- **`create`**: `none` (ברירת מחדל) - רק קריאה; `draft` - נשמרת טיוטת הוצאה עם הקובץ; `final` - נרשמת הוצאה סופית עם\n  הקובץ, ואם יש בדיקה שמחייבת עין אנושית (`blocks_final`) - נשמרת טיוטה במקום, עם הסיבה ב-`expense.warnings`.\n  הרישום עובר את אותה שמירה של `expense_new`.\n- קובץ שלא ניתן לקרוא, או קריאה שאינה זמינה, חוזרים 200 עם `reading_status` (`failed` / `not_available` / `not_an_invoice`),\n  כדי שהמערכת שלכם תעבור למילוי ידני. שום דבר לא נדחה.\n\nReads a supplier invoice / receipt file (pdf / jpg / png, up to 3 MB, base64) and answers **in the same call** - no\nwebhook, no waiting. Included in the add-on; needs a read-and-write key. `document` = the read fields with line items and\na confidence word per key field; `checks` = book checks (business-number check digit, addressed to this business, VAT\narithmetic, receipt-only, foreign currency, missing allocation number, already recorded); `supplier` matched by business\nnumber (a supplier with no card: a draft is kept on the general supplier card with the read name and number, and the card\nis opened when the expense is approved in the app; a final expense opens it at once, unless the expense is refused -\nan unknown expense account, a closed reporting month - then no card is opened); `suggested_expense_account` =\nwhere this supplier's last expense was booked; `duplicate_of` = the expense, or the purchase invoice (`document_type`\n700 / 710), already recorded with the same reference for the supplier. `create`:\n`none` (default), `draft`, or `final` (saved as a draft instead when a check needs a person, the reason in\n`expense.warnings`). A read date whose year is impossible (before 1900, e.g. 0001) counts as \"date not found\"\n(`date_missing`): the expense is saved as a draft dated today, not refused. Unreadable / unavailable = 200 with\n`reading_status`, so the caller falls back to manual entry.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "expense_file_read"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"file\": {\n    \"file_name\": \"INV-4471.pdf\",\n    \"content_base64\": \"JVBERi0xLjQK...\"\n  },\n  \"create\": \"final\",\n  \"request_reference\": \"MAILBOX-88213\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "422900bf-8f93-410a-a8d6-f64a54bfd201",
              "name": "Envelope; `data` = the reading.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "expense_file_read"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"file\": {\n    \"file_name\": \"INV-4471.pdf\",\n    \"content_base64\": \"JVBERi0xLjQK...\"\n  },\n  \"create\": \"final\",\n  \"request_reference\": \"MAILBOX-88213\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"החשבונית נקראה וההוצאה נרשמה\",\n  \"data\": {\n    \"reading_status\": \"ok\",\n    \"message\": \"החשבונית נקראה וההוצאה נרשמה\",\n    \"document\": {\n      \"is_invoice\": true,\n      \"document_kind\": \"tax_invoice\",\n      \"supplier_name\": \"מחשוב ענן לדוגמה בע\\\"מ\",\n      \"supplier_hp\": \"515771236\",\n      \"customer_hp\": null,\n      \"reference\": \"4471\",\n      \"document_date\": \"2026-10-20\",\n      \"currency\": \"ILS\",\n      \"amount_before_vat\": 1000,\n      \"vat_amount\": 180,\n      \"vat_rate\": 18,\n      \"amount_total\": 1180,\n      \"allocation_number\": \"204736518\",\n      \"description\": \"שירותי ענן ותמיכה טכנית\",\n      \"lines\": [\n        {\n          \"description\": \"שירותי ענן - אוקטובר\",\n          \"quantity\": 1,\n          \"unit_price\": 800,\n          \"total\": 800,\n          \"supplier_item_code\": null,\n          \"barcode\": null,\n          \"discount_percent\": null\n        }\n      ],\n      \"lines_include_vat\": false,\n      \"confidence\": {\n        \"supplier_name\": \"high\",\n        \"supplier_hp\": \"high\",\n        \"reference\": \"high\",\n        \"document_date\": \"high\",\n        \"amount_total\": \"high\",\n        \"vat_amount\": \"high\",\n        \"allocation_number\": \"high\"\n      }\n    },\n    \"checks\": [],\n    \"supplier\": {\n      \"supplier_id\": 49293,\n      \"company_name\": \"מחשוב ענן לדוגמה בע\\\"מ\",\n      \"matched_by\": \"company_hp\"\n    },\n    \"suggested_expense_account\": {\n      \"expense_account_id\": 10658,\n      \"name\": \"אחזקת מחשב\",\n      \"reason\": \"הסעיף של ההוצאה הקודמת מספק זה\"\n    },\n    \"duplicate_of\": null,\n    \"expense\": {\n      \"expense_id\": 73600,\n      \"status\": \"final\",\n      \"has_attachment\": true\n    }\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "ff9317fa-b8df-4c37-9336-c4e0a4b3392a",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "expense_file_read"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"file\": {\n    \"file_name\": \"INV-4471.pdf\",\n    \"content_base64\": \"JVBERi0xLjQK...\"\n  },\n  \"create\": \"final\",\n  \"request_reference\": \"MAILBOX-88213\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "994e4d48-31a1-498a-be82-4a426ca37f57",
          "name": "קישור חד-פעמי להעלאת חשבוניות / One-time invoice upload link",
          "request": {
            "name": "קישור חד-פעמי להעלאת חשבוניות / One-time invoice upload link",
            "description": {
              "content": "מחזיר קישור לדף העלאה של BigBoss, בשביל מערכת (למשל עוזר AI בצ'אט) שלא יכולה להעביר את הקובץ עצמו: המשתמש פותח את\nהקישור (גם בטלפון), מצלם או בוחר עד 10 חשבוניות ספק / קבלות, וכל קובץ נקרא כמו ב-`expense_file_read` ונשמר **כטיוטת\nהוצאה בלבד** עם הקובץ - אדם מאשר באפליקציה (\"הוצאות\" → \"חשבוניות שנקלטו\"). הקישור בתוקף שעה ומקבל עד 10 קבצים בסך\nהכול; הוא מפסיק לעבוד גם כשהמפתח כובה או הוגדר לקריאה בלבד. `link_id` - כדי לראות מה הועלה: `expense_list` עם\n`upload_link_id`. כלול בתוסף. דורש מפתח \"קריאה וכתיבה\".\n\nReturns a link to a BigBoss upload page, for a system (e.g. an AI assistant in a chat) that cannot pass the file itself:\nthe user opens it (a phone too), takes or picks up to 10 supplier invoices / receipts, and each file is read as by\n`expense_file_read` and kept **as an expense draft only** with its file - a person approves in the app. Good for one\nhour and up to 10 files in all; it also stops when the key is switched off or made read-only. `link_id`: see what was\nuploaded with `expense_list` + `upload_link_id`. Included in the add-on; needs a read-and-write key.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "expense_upload_link"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "fa3b6061-3b10-430e-8d50-23ece784f285",
              "name": "Envelope; `data` = the link.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "expense_upload_link"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"OK\",\n  \"data\": {\n    \"url\": \"https://www.bigboss.co.il/bigbossweb/?xupid=MTIzfDQ1Nnw...\",\n    \"link_id\": \"6f1d2c9e-8a4b-4c1e-9d2f-1b7a3e5c0d84\",\n    \"expires_at\": \"2026-11-04T15:30:00\",\n    \"minutes\": 60,\n    \"max_files\": 10,\n    \"approve_note\": \"הקבצים נשמרים כטיוטות הוצאה בלבד. כדי לאשר: בביג בוס, \\\"הוצאות\\\" → \\\"חשבוניות שנקלטו\\\"...\"\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "91e76fc2-d29f-4beb-858f-7205fa116b41",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "expense_upload_link"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "5c1d6d5c-e828-44fd-bbec-31708af201d8",
          "name": "תשלום לספק / Record a supplier payment",
          "request": {
            "name": "תשלום לספק / Record a supplier payment",
            "description": {
              "content": "רושם תעודת תשלום לספק (1500) - שורות תשלום (1 מזומן, 2 שיק, 3 כרטיס אשראי, 4 העברה בנקאית), ניכוי במקור, והמסמכים\nשהתשלום סוגר (`closes` - מספרי הוצאות / חשבוניות רכש פתוחות של הספק, לפי הסדר; אותו קישור כמו \"קישור מסמכים\" במסך).\nמסמך שאינו פתוח אצל הספק לא נסגר ומופיע ב-`data.warnings`. אותו `request_reference` שוב = 409 עם התשלום שכבר נרשם.\nשיק דורש מס' סניף ומס' חשבון בכרטיס חשבון הבנק באפליקציה. הודעת Webhook `supplier_payment_added` - אחרי סגירת\nהחשבוניות, עם `closed`.\n\nRecords a payment to a supplier (1500): payment rows (1 cash, 2 cheque, 3 credit card, 4 bank transfer), withholding\ntax, and the open expenses / purchase invoices it pays (`closes`, in order - the screen's own linking). A document that\nis not open for the supplier is skipped and named in `data.warnings`. Same `request_reference` again = 409 with the\npayment already recorded. Webhook `supplier_payment_added`, sent after the invoices are closed\n(with `closed`).\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "supplier_payment_new"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"supplier_id\": 49296,\n  \"payments\": [\n    {\n      \"payment_type\": 4,\n      \"amount\": 300,\n      \"bank_account_id\": 48224,\n      \"reference\": \"TR-55120\"\n    }\n  ],\n  \"withholding_tax_amount\": 53,\n  \"closes\": [\n    73520,\n    73521\n  ],\n  \"request_reference\": \"ERP-PAY-311\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "4ab8cd50-b987-4ce7-be2e-693b4f79a6fb",
              "name": "Envelope; `data` = the payment and what it closed, or null.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "supplier_payment_new"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"supplier_id\": 49296,\n  \"payments\": [\n    {\n      \"payment_type\": 4,\n      \"amount\": 300,\n      \"bank_account_id\": 48224,\n      \"reference\": \"TR-55120\"\n    }\n  ],\n  \"withholding_tax_amount\": 53,\n  \"closes\": [\n    73520,\n    73521\n  ],\n  \"request_reference\": \"ERP-PAY-311\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"התשלום נרשם\",\n  \"data\": {\n    \"payment_id\": 73522,\n    \"document_number\": 1,\n    \"supplier_id\": 49296,\n    \"document_date\": \"2026-10-27T00:00:00\",\n    \"amount_total\": 353,\n    \"amount_open\": 0,\n    \"closed\": [\n      {\n        \"document_id\": 73520,\n        \"document_type\": 1502,\n        \"reference\": \"P1\",\n        \"amount_open_after\": 0\n      },\n      {\n        \"document_id\": 73521,\n        \"document_type\": 1502,\n        \"reference\": \"P2\",\n        \"amount_open_after\": 0\n      }\n    ],\n    \"warnings\": []\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "d96f593d-74b9-40d3-8262-f675b3ee49db",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "supplier_payment_new"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"supplier_id\": 49296,\n  \"payments\": [\n    {\n      \"payment_type\": 4,\n      \"amount\": 300,\n      \"bank_account_id\": 48224,\n      \"reference\": \"TR-55120\"\n    }\n  ],\n  \"withholding_tax_amount\": 53,\n  \"closes\": [\n    73520,\n    73521\n  ],\n  \"request_reference\": \"ERP-PAY-311\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        }
      ]
    },
    {
      "name": "Leads and CRM",
      "description": "לידים מטפסים ומודעות (בלי כפילויות, עם מקור ושלב), הפיכה ללקוח, ומשימות CRM (תוסף CRM) / Leads from forms and ads (no duplicates, with source and stage), conversion, CRM tasks (CRM add-on).",
      "item": [
        {
          "id": "af7b8d34-5064-4c4b-8e23-a4b3ffc9fba1",
          "name": "ליד חדש (טופס באתר) / New Lead (Web Form)",
          "request": {
            "name": "ליד חדש (טופס באתר) / New Lead (Web Form)",
            "description": {
              "content": "מקבל פנייה - למשל מטופס באתר או ממודעה - ופותח ליד, דרך אותה שמירה של כרטיס הליד באפליקציה. דורש את תוסף CRM.\n\n- חובה: שם (`company_name` או `contact_name`) ודרך יצירת קשר (`cel`, `tel` או `email`).\n- **בלי כפילויות:** טלפון (לפי 9 הספרות האחרונות, גם `+972`) או מייל שכבר קיימים -\n  - **בליד** - לא נפתח ליד שני: הליד הקיים חוזר (`result` merged), שדות ריקים בו מתמלאים, הוא חוזר להיות פעיל, ו-`inquiry_count` עולה.\n  - **בכרטיס לקוח** - לא נפתח ליד: הפנייה נרשמת אצל הלקוח (`result` existing_customer, `customer_id`).\n- **אותו שם, טלפון ומייל אחרים:** נפתח ליד נוסף, ולשם הליד (`company_name`) נוסף הטלפון שנשלח - למשל \"יוסי לוי (052-2222222)\" - ואם אין טלפון, המייל (ואם עדיין תפוס, מספר רץ \"(2)\"). שם איש הקשר נשאר כמו שנשלח, והשם המלא חוזר ב-`lead`.\n- הפנייה (`message`) נרשמת כפעילות CRM פתוחה מסוג \"מעקב\" בכרטיס (`task_id`), לעובד `employee_id` או למשתמש של המפתח.\n- **מקור:** `source`, `utm_*`, `gclid`, `fbclid`, `landing_page`, `referrer` ו-`marketing_consent` נשמרים בליד (המקור הראשון נשמר).\n- `stage` / `lost_reason` כמו ב-`lead_update` (סיבה רק לליד בשלב `lost`).\n- הודעות Webhook: `lead_added` / `lead_updated`.\n\nTakes an inquiry (a web form, an ad) and opens a lead through the app's own lead save. Needs the CRM add-on. Name and a\ncontact way are required. **No duplicates:** a phone (last 9 digits, `+972` too) or e-mail already on a lead merges into\nit (empty fields filled, reactivated, `inquiry_count` + 1); on a customer card the inquiry is recorded there and no lead\nis made. A name another lead already has (with another phone / e-mail) opens another lead whose `company_name` gets the\nphone sent (else the e-mail, then \"(2)\"...) - the real name is in `lead`. `message` becomes an open follow-up CRM activity. Source / UTM / click ids / landing page / referrer / consent\nare stored (first touch kept).\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "lead_new"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"contact_name\": \"דנה כהן\",\n  \"cel\": \"054-1234567\",\n  \"email\": \"dana@example.com\",\n  \"message\": \"מבקשת הצעת מחיר לבניית אתר\",\n  \"source\": \"website\",\n  \"utm_source\": \"google\",\n  \"utm_medium\": \"cpc\",\n  \"utm_campaign\": \"fall-sale\",\n  \"gclid\": \"Cj0KCQ...\",\n  \"landing_page\": \"https://example.co.il/landing\",\n  \"marketing_consent\": true\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "0c5db817-fd0c-44f6-bfbb-8abda9dc09c0",
              "name": "Envelope; `data` = what happened to the inquiry.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "lead_new"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"contact_name\": \"דנה כהן\",\n  \"cel\": \"054-1234567\",\n  \"email\": \"dana@example.com\",\n  \"message\": \"מבקשת הצעת מחיר לבניית אתר\",\n  \"source\": \"website\",\n  \"utm_source\": \"google\",\n  \"utm_medium\": \"cpc\",\n  \"utm_campaign\": \"fall-sale\",\n  \"gclid\": \"Cj0KCQ...\",\n  \"landing_page\": \"https://example.co.il/landing\",\n  \"marketing_consent\": true\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"הליד כבר קיים - הפנייה נוספה אליו\",\n  \"data\": {\n    \"result\": \"merged\",\n    \"lead_id\": 49312,\n    \"customer_id\": null,\n    \"matched_by\": \"phone\",\n    \"task_id\": 9921,\n    \"lead\": {\n      \"lead_id\": 49312,\n      \"contact_name\": \"דנה כהן\",\n      \"stage\": \"new\",\n      \"inquiry_count\": 2\n    }\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "38301383-dff5-49f5-8cbd-3c3f125340ca",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "lead_new"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"contact_name\": \"דנה כהן\",\n  \"cel\": \"054-1234567\",\n  \"email\": \"dana@example.com\",\n  \"message\": \"מבקשת הצעת מחיר לבניית אתר\",\n  \"source\": \"website\",\n  \"utm_source\": \"google\",\n  \"utm_medium\": \"cpc\",\n  \"utm_campaign\": \"fall-sale\",\n  \"gclid\": \"Cj0KCQ...\",\n  \"landing_page\": \"https://example.co.il/landing\",\n  \"marketing_consent\": true\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "27073c3d-f9dd-4fbd-ad57-a07db12333ce",
          "name": "שליפת ליד / Get a lead",
          "request": {
            "name": "שליפת ליד / Get a lead",
            "description": {
              "content": "ליד לפי `lead_id`, עם השלב, המקור ומספר הפניות. ליד שהפך ללקוח חוזר עם `stage` won. לא נמצא = 204.\n\nA lead with its stage, source and inquiry count; a converted lead answers `stage` won. Not found = 204.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "lead_get"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"lead_id\": 49312\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "16a9e397-51cb-4206-b08a-de464366b64f",
              "name": "Envelope; `data` = the lead, or null.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "lead_get"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"lead_id\": 49312\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 403,\n  \"result_message\": null,\n  \"data\": {\n    \"lead_id\": -29143482,\n    \"company_name\": \"Ut dolore incididunt enim\",\n    \"contact_name\": \"enim sit dolor sunt\",\n    \"tel\": \"sit ut Lorem\",\n    \"cel\": \"commodo minim Duis eu\",\n    \"email\": \"ipsum\",\n    \"address\": \"consectetur\",\n    \"city\": \"consectetur exercitation mollit nulla\",\n    \"is_active\": false,\n    \"stage\": \"quoted\",\n    \"stage_name\": \"ipsum in officia voluptate\",\n    \"stage_changed_at\": null,\n    \"lost_reason\": null,\n    \"source\": null,\n    \"utm_source\": \"laboris\",\n    \"utm_medium\": \"irure\",\n    \"utm_campaign\": null,\n    \"utm_term\": null,\n    \"utm_content\": \"irure dolor sit\",\n    \"gclid\": null,\n    \"fbclid\": null,\n    \"landing_page\": null,\n    \"referrer\": null,\n    \"marketing_consent\": false,\n    \"inquiry_count\": 54561379,\n    \"last_inquiry_at\": null,\n    \"created_at\": \"do velit\",\n    \"updated_at\": \"est anim esse et magna\"\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "61e8117a-49f4-4b49-ad01-c27577bbd171",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "lead_get"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"lead_id\": 49312\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "e25ca3dc-90fb-44a7-973f-b45384bdb35f",
          "name": "רשימת לידים / List leads",
          "request": {
            "name": "רשימת לידים / List leads",
            "description": {
              "content": "הלידים הפעילים (`include_inactive` - כולם), לפי מספר, תמיד בעמודים. סינון: `stage`, `updated_since`, `search` (שם, או\nספרות של טלפון). אין = 204 עם עמוד ריק.\n\nActive leads (`include_inactive`: all), by id, always paged; optional `stage`, `updated_since`, `search`.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "lead_list"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"stage\": \"new\",\n  \"page\": 1\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "d4e15213-8b08-49f9-bd68-c13360c38437",
              "name": "Envelope; `data` = the page.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "lead_list"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"stage\": \"new\",\n  \"page\": 1\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 409,\n  \"result_message\": \"ut sit consectetur\",\n  \"data\": {\n    \"page\": -62793004,\n    \"page_size\": -81649176,\n    \"total_count\": -32891703,\n    \"leads\": [\n      {\n        \"lead_id\": 39473059,\n        \"company_name\": \"enim\",\n        \"contact_name\": \"ipsum\",\n        \"tel\": \"la\",\n        \"cel\": \"Excepteur in laboris Ut\",\n        \"email\": \"deserunt dolor ullamco\",\n        \"address\": \"quis pariatur\",\n        \"city\": \"aliqua in\",\n        \"is_active\": true,\n        \"stage\": \"new\",\n        \"stage_name\": \"sit dolor minim et\",\n        \"stage_changed_at\": null,\n        \"lost_reason\": null,\n        \"source\": \"proident\",\n        \"utm_source\": null,\n        \"utm_medium\": \"ut irure in\",\n        \"utm_campaign\": null,\n        \"utm_term\": null,\n        \"utm_content\": \"labore irure proident\",\n        \"gclid\": \"ex ut eiusmod aute\",\n        \"fbclid\": \"mollit\",\n        \"landing_page\": null,\n        \"referrer\": null,\n        \"marketing_consent\": true,\n        \"inquiry_count\": -92749322,\n        \"last_inquiry_at\": \"consectetur reprehenderit magna\",\n        \"created_at\": \"adipisicing sint\",\n        \"updated_at\": \"dolore Ut magna\"\n      },\n      {\n        \"lead_id\": 11528108,\n        \"company_name\": \"exercitation id\",\n        \"contact_name\": \"Excepteur ipsum\",\n        \"tel\": \"dolor incididunt ad\",\n        \"cel\": \"adipisicing ut\",\n        \"email\": \"et est aliqua elit\",\n        \"address\": \"do eiusmod sunt in\",\n        \"city\": \"ea Duis cupidatat anim\",\n        \"is_active\": false,\n        \"stage\": \"lost\",\n        \"stage_name\": \"magna sint\",\n        \"stage_changed_at\": \"in consectetur\",\n        \"lost_reason\": null,\n        \"source\": \"eiusmod ullamco Lorem\",\n        \"utm_source\": null,\n        \"utm_medium\": \"id\",\n        \"utm_campaign\": null,\n        \"utm_term\": \"officia dolor pariatur anim magna\",\n        \"utm_content\": \"et veniam deserunt tempor\",\n        \"gclid\": \"in voluptate ut consectetur quis\",\n        \"fbclid\": null,\n        \"landing_page\": null,\n        \"referrer\": \"dolor nisi ut quis\",\n        \"marketing_consent\": null,\n        \"inquiry_count\": -11795274,\n        \"last_inquiry_at\": \"magna ullamco in laborum enim\",\n        \"created_at\": \"ea id consequat anim\",\n        \"updated_at\": \"tempor Lorem proident enim ea\"\n      }\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "ac8e0e87-421f-45e9-8815-c4f3d55395a5",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "lead_list"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"stage\": \"new\",\n  \"page\": 1\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "e9334587-a3ad-41e0-b234-a1ff4c37e295",
          "name": "עדכון ליד ושלב / Update a lead and its stage",
          "request": {
            "name": "עדכון ליד ושלב / Update a lead and its stage",
            "description": {
              "content": "מעדכן פרטי ליד ו/או את השלב שלו (`stage`; `lost` עם `lost_reason`). רק השדות שנשלחו משתנים. שינוי שלב שולח Webhook\n`lead_stage_changed` - גם כשהשלב משתנה במסך באפליקציה. ליד שהפך ללקוח = 409.\n`lost_reason`: בלי השדה - הסיבה השמורה נשארת; \"\" - נמחקת; ליד שכבר `lost` מקבל סיבה גם בלי `stage` (בלי Webhook,\nכי השלב לא השתנה). סיבה לליד שאינו `lost` (ולא הופך ל-`lost` באותה קריאה) = 400.\n\nUpdates a lead and / or its stage (`lost` with `lost_reason`); only the fields sent change. A stage change sends the\n`lead_stage_changed` webhook (the app's screen too). A converted lead = 409. `lost_reason`: not sent = the stored reason\nstays, \"\" = cleared; a lead already `lost` takes a reason without `stage` (no webhook - the stage did not change); a\nreason for a lead that is not `lost` and is not made `lost` by the same call = 400.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "lead_update"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"lead_id\": 49312,\n  \"stage\": \"lost\",\n  \"lost_reason\": \"המחיר גבוה מדי\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "e1a0cb27-fadb-4e66-912e-37189dc76d27",
              "name": "Envelope; `data` = the lead, or null.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "lead_update"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"lead_id\": 49312,\n  \"stage\": \"lost\",\n  \"lost_reason\": \"המחיר גבוה מדי\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 403,\n  \"result_message\": null,\n  \"data\": {\n    \"lead_id\": -29143482,\n    \"company_name\": \"Ut dolore incididunt enim\",\n    \"contact_name\": \"enim sit dolor sunt\",\n    \"tel\": \"sit ut Lorem\",\n    \"cel\": \"commodo minim Duis eu\",\n    \"email\": \"ipsum\",\n    \"address\": \"consectetur\",\n    \"city\": \"consectetur exercitation mollit nulla\",\n    \"is_active\": false,\n    \"stage\": \"quoted\",\n    \"stage_name\": \"ipsum in officia voluptate\",\n    \"stage_changed_at\": null,\n    \"lost_reason\": null,\n    \"source\": null,\n    \"utm_source\": \"laboris\",\n    \"utm_medium\": \"irure\",\n    \"utm_campaign\": null,\n    \"utm_term\": null,\n    \"utm_content\": \"irure dolor sit\",\n    \"gclid\": null,\n    \"fbclid\": null,\n    \"landing_page\": null,\n    \"referrer\": null,\n    \"marketing_consent\": false,\n    \"inquiry_count\": 54561379,\n    \"last_inquiry_at\": null,\n    \"created_at\": \"do velit\",\n    \"updated_at\": \"est anim esse et magna\"\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "19514377-647d-4578-a763-6c84ea453e62",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "lead_update"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"lead_id\": 49312,\n  \"stage\": \"lost\",\n  \"lost_reason\": \"המחיר גבוה מדי\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "ff7b23b3-cc42-4f6e-9472-5574a0a14bb2",
          "name": "הפיכת ליד ללקוח / Convert a lead to a customer",
          "request": {
            "name": "הפיכת ליד ללקוח / Convert a lead to a customer",
            "description": {
              "content": "\"הפוך ללקוח\" של כרטיס הליד: אותו כרטיס הופך לכרטיס לקוח (ה-`customer_id` שווה ל-`lead_id`), השלב הופך ל-won, ונשלחות\nהודעות Webhook `lead_converted` ו-`customer_added`. כבר לקוח = 409.\n\nThe lead card's \"convert to customer\": the same card becomes a customer (`customer_id` = `lead_id`), the stage becomes won,\nwebhooks `lead_converted` and `customer_added`. Already a customer = 409.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "lead_convert"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"lead_id\": 49312\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "64aa9cd8-6137-4b51-b68f-af293f0a0f68",
              "name": "Envelope; `data` = `{lead_id, customer_id}`.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "lead_convert"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"lead_id\": 49312\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 400,\n  \"result_message\": null,\n  \"data\": {\n    \"lead_id\": -94205734,\n    \"customer_id\": 77605230\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "5096c37f-decb-4dad-b3c9-0007ba8ec8ea",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "lead_convert"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"lead_id\": 49312\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "f81d0ca6-b04d-4aca-9c4c-f3accdfe82c4",
          "name": "משימה / פעילות CRM חדשה / New CRM task",
          "request": {
            "name": "משימה / פעילות CRM חדשה / New CRM task",
            "description": {
              "content": "פותח פעילות CRM (שיחה, פגישה, מעקב, מייל, משימה, גבייה) בכרטיס לקוח, ליד או ספק, דרך אותה שמירה של מסך הפעילויות\n(תזכורות, יומן). ברירות מחדל: `type` task, `due_at` עכשיו, `priority` normal, העובד - המשתמש של המפתח. Webhook `task_created`.\n\nOpens a CRM activity on a customer, lead or supplier card through the activity screen's own save. Defaults: type task,\ndue now, priority normal, the key's user. Webhook `task_created`.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "crm_task_new"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"contact_id\": 49312,\n  \"type\": \"call\",\n  \"description\": \"להתקשר ולתאם פגישה\",\n  \"due_at\": \"2026-11-03T10:00:00\",\n  \"priority\": \"high\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "6eba20d1-beee-4250-9964-4407d2bc13a1",
              "name": "Envelope; `data` = the task.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "crm_task_new"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"contact_id\": 49312,\n  \"type\": \"call\",\n  \"description\": \"להתקשר ולתאם פגישה\",\n  \"due_at\": \"2026-11-03T10:00:00\",\n  \"priority\": \"high\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"veniam in in laborum\",\n  \"data\": {\n    \"task_id\": 96566220,\n    \"type\": \"reprehenderit irure fugiat laboris\",\n    \"status\": \"waiting_for_client\",\n    \"description\": \"dolor in ad qui cillum\",\n    \"due_at\": \"Lorem esse in\",\n    \"priority\": \"sunt nostrud officia ut\",\n    \"contact_id\": null,\n    \"contact_type\": \"lead\",\n    \"contact_name\": \"tempor officia\",\n    \"employee_id\": 6012387,\n    \"employee_name\": \"consequat ipsum commodo exercitation\",\n    \"show_in_calendar\": true,\n    \"completed_at\": \"mollit et\",\n    \"updated_at\": \"consequat esse veniam proident ad\"\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "eae281ce-d0db-4327-8f31-b91fc08c3c12",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "crm_task_new"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"contact_id\": 49312,\n  \"type\": \"call\",\n  \"description\": \"להתקשר ולתאם פגישה\",\n  \"due_at\": \"2026-11-03T10:00:00\",\n  \"priority\": \"high\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "a6dd626f-db7c-49e0-8a2a-3e9a694b458b",
          "name": "עדכון משימה / Update a CRM task",
          "request": {
            "name": "עדכון משימה / Update a CRM task",
            "description": {
              "content": "מעדכן משימה פתוחה: תיאור, מועד, סוג, עדיפות, עובד, או `status` (open / in_progress / waiting_for_client). לסגירה -\n`crm_task_complete`. משימה שבוצעה = 409. Webhook `task_updated`.\n\nUpdates an open task (status open / in_progress / waiting_for_client; to close: `crm_task_complete`). Done = 409.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "crm_task_update"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"task_id\": 9921,\n  \"status\": \"in_progress\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "3be5e55c-f524-448e-93ae-179766b35164",
              "name": "Envelope; `data` = the task.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "crm_task_update"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"task_id\": 9921,\n  \"status\": \"in_progress\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"veniam in in laborum\",\n  \"data\": {\n    \"task_id\": 96566220,\n    \"type\": \"reprehenderit irure fugiat laboris\",\n    \"status\": \"waiting_for_client\",\n    \"description\": \"dolor in ad qui cillum\",\n    \"due_at\": \"Lorem esse in\",\n    \"priority\": \"sunt nostrud officia ut\",\n    \"contact_id\": null,\n    \"contact_type\": \"lead\",\n    \"contact_name\": \"tempor officia\",\n    \"employee_id\": 6012387,\n    \"employee_name\": \"consequat ipsum commodo exercitation\",\n    \"show_in_calendar\": true,\n    \"completed_at\": \"mollit et\",\n    \"updated_at\": \"consequat esse veniam proident ad\"\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "0a022ad9-1e34-4ccd-a79b-e5abec29543a",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "crm_task_update"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"task_id\": 9921,\n  \"status\": \"in_progress\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "cd03daf8-de90-4713-8641-07cb37d306bf",
          "name": "סימון משימה כבוצעה / Complete a CRM task",
          "request": {
            "name": "סימון משימה כבוצעה / Complete a CRM task",
            "description": {
              "content": "\"בוצע\" של מסך הפעילויות. כבר בוצעה = 409. Webhook `task_completed`.\n\nThe activity screen's \"done\". Already done = 409. Webhook `task_completed`.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "crm_task_complete"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"task_id\": 9921\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "fa602e0c-0da8-4a89-b39e-487e65bc1b95",
              "name": "Envelope; `data` = the task.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "crm_task_complete"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"task_id\": 9921\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"veniam in in laborum\",\n  \"data\": {\n    \"task_id\": 96566220,\n    \"type\": \"reprehenderit irure fugiat laboris\",\n    \"status\": \"waiting_for_client\",\n    \"description\": \"dolor in ad qui cillum\",\n    \"due_at\": \"Lorem esse in\",\n    \"priority\": \"sunt nostrud officia ut\",\n    \"contact_id\": null,\n    \"contact_type\": \"lead\",\n    \"contact_name\": \"tempor officia\",\n    \"employee_id\": 6012387,\n    \"employee_name\": \"consequat ipsum commodo exercitation\",\n    \"show_in_calendar\": true,\n    \"completed_at\": \"mollit et\",\n    \"updated_at\": \"consequat esse veniam proident ad\"\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "6d332c80-9634-42e3-9e08-2e3bc4278b88",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "crm_task_complete"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"task_id\": 9921\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "73e721fc-4720-423a-8ee0-331e9e563f5c",
          "name": "רשימת משימות / List CRM tasks",
          "request": {
            "name": "רשימת משימות / List CRM tasks",
            "description": {
              "content": "משימות לפי מועד, תמיד בעמודים. סינון: `contact_id`, `status` (open - ברירת מחדל, closed, all), `due_from` / `due_to` (שנה בין 1900 ל-9998).\n\nTasks by due date, always paged; optional `contact_id`, `status` (open default / closed / all), `due_from` / `due_to`.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "crm_task_list"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"status\": \"open\",\n  \"due_to\": \"2026-11-30\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "415ad1b5-7af3-4b41-a9fa-942166652ecc",
              "name": "Envelope; `data` = the page.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "crm_task_list"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"status\": \"open\",\n  \"due_to\": \"2026-11-30\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 204,\n  \"result_message\": \"dolore veniam ut consectetur sit\",\n  \"data\": {\n    \"page\": 10071397,\n    \"page_size\": 47500848,\n    \"total_count\": -22696474,\n    \"tasks\": [\n      {\n        \"task_id\": -58875150,\n        \"type\": \"anim do\",\n        \"status\": \"open\",\n        \"description\": \"ad anim esse\",\n        \"due_at\": \"velit mollit eiusmod cupidatat\",\n        \"priority\": \"do nostrud sunt\",\n        \"contact_id\": null,\n        \"contact_type\": \"customer\",\n        \"contact_name\": \"amet laborum\",\n        \"employee_id\": 4092783,\n        \"employee_name\": \"qui in mollit est consequat\",\n        \"show_in_calendar\": false,\n        \"completed_at\": \"minim consectetur cillum Ut\",\n        \"updated_at\": \"ut deserunt\"\n      },\n      {\n        \"task_id\": 64291727,\n        \"type\": \"dolore occaecat\",\n        \"status\": \"waiting_for_client\",\n        \"description\": \"repreh\",\n        \"due_at\": \"Duis\",\n        \"priority\": \"mollit sint mag\",\n        \"contact_id\": -82722284,\n        \"contact_type\": \"customer\",\n        \"contact_name\": \"laboris\",\n        \"employee_id\": 29761489,\n        \"employee_name\": \"fugiat minim Excepteur\",\n        \"show_in_calendar\": true,\n        \"completed_at\": null,\n        \"updated_at\": \"elit\"\n      }\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "3219e325-0dbd-4fa7-85a1-ae2821b189e6",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "crm_task_list"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"status\": \"open\",\n  \"due_to\": \"2026-11-30\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "c3a20547-d60e-4705-8522-56335e034560",
          "name": "רשימות עזר ל-CRM / CRM lookups",
          "request": {
            "name": "רשימות עזר ל-CRM / CRM lookups",
            "description": {
              "content": "שלבי ליד, סוגי משימה, מצבי משימה (קוד + שם בעברית) והעובדים הפעילים שאפשר לשייך להם משימה.\n\nLead stages, task types and statuses (code + Hebrew name) and the active employees a task can be assigned to.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "crm_lists"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "93573e16-d7d0-4156-8dd1-472404c1780b",
              "name": "Envelope; `data` = the lists.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "crm_lists"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"OK\",\n  \"data\": {\n    \"lead_stages\": [\n      {\n        \"code\": \"new\",\n        \"name\": \"חדש\"\n      },\n      {\n        \"code\": \"contacted\",\n        \"name\": \"נוצר קשר\"\n      },\n      {\n        \"code\": \"quoted\",\n        \"name\": \"נשלחה הצעה\"\n      },\n      {\n        \"code\": \"negotiation\",\n        \"name\": \"במשא ומתן\"\n      },\n      {\n        \"code\": \"won\",\n        \"name\": \"הפך ללקוח\"\n      },\n      {\n        \"code\": \"lost\",\n        \"name\": \"לא רלוונטי\"\n      }\n    ],\n    \"task_types\": [\n      {\n        \"code\": \"call\",\n        \"name\": \"שיחה\"\n      }\n    ],\n    \"task_statuses\": [\n      {\n        \"code\": \"open\",\n        \"name\": \"פתוחה\"\n      }\n    ],\n    \"employees\": [\n      {\n        \"employee_id\": 48228,\n        \"name\": \"בעל העסק\"\n      }\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "f2fefab7-d46d-4575-8e0b-3b408112a0e0",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "crm_lists"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        }
      ]
    },
    {
      "name": "Reports",
      "description": "מספרי העסק - רווח והפסד, מכירות לפי לקוח ולפי פריט, גיול חובות, תזרים מזומנים צפוי, מע\"מ ומקדמות מס, אותם מספרים כמו בדוחות באפליקציה (קריאה בלבד; נדרשת הרשאת \"צפייה בדוחות\" למשתמש שיצר את המפתח) / Business numbers - profit and loss, sales by customer and by item, debt aging, cash-flow forecast, VAT and income-tax advances; the app's own reports (read only; the key's user needs the \"view reports\" permission).",
      "item": [
        {
          "id": "cf3ef970-7917-410e-a4c6-ac41e4841889",
          "name": "רווח והפסד / Profit and loss",
          "request": {
            "name": "רווח והפסד / Profit and loss",
            "description": {
              "content": "דוח רווח והפסד של העסק לתקופה - אותו דוח ואותם מספרים כמו המסך \"רווח והפסד\" באפליקציה (מסמכים סופיים, לפי תאריך\nאסמכתא, לפני מע\"מ, לפי סעיפי ההכנסה וההוצאה; חשבונית עסקה אינה הכנסה).\n\n- `date_to` ברירת מחדל היום; `date_from` ברירת מחדל 1 בינואר של שנת `date_to`. שני התאריכים כלולים. טווח מקסימלי 366 ימים;\n  שנה בין 1900 ל-9998.\n- **סימנים כמו במסך:** שורות ההוצאה ו-`total_expenses` שליליים (הוצאה מקטינה את הרווח), ולכן\n  `profit` = `total_income` + `total_expenses`. `percent_of_income` הוא אחוז מההכנסות (ערך מוחלט, 0 בלי הכנסות);\n  `profit_percent` (ו-`percent_of_income` של `report_total`) עם סימן כמו במסך: בהפסד מספר שלילי, 0 בלי הכנסות.\n- `rows` = שורות הדוח לפי סדר המסך: `section` (סעיף), `stock_start` / `stock_end` (מלאי פתיחה במינוס / מלאי סגירה, בקבוצת הרכש / עלות המכירות,\n  ובלעדיה בקבוצה \"מלאי\" משלהן; רק כשיש שווי מלאי בתחילת התקופה או בסופה, גם בתקופה בלי מסמכי הוצאה),\n  `group_total`, `category_total` (הכנסות / הוצאות) ו-`report_total` (הרווח). `includes_stock_values` = ההוצאות כוללות את שינוי המלאי.\n- `agent_commissions` = עמלות הסוכנים, בקבוצה \"עמלות סוכנים\" משלה, אחרונה בהוצאות, כמו במסך: תעודות התחשבנות ששולמו, ביום\n  התשלום, העמלה המלאה לפני קיזוז מקדמה, בלי מע\"מ; ביטול תעודה ששולמה מחזיר את הסכום ביום הביטול. לא נכללות עמלות של סוכן\n  שהוא עובד (הן בשכר); בתעודה שנרשמה לה חשבונית סוכן החשבונית היא ההוצאה, ונספרת כאן רק המקדמה שקוזזה בה.\n  חשבונית שנרשמה בחודש מאוחר מהתשלום - העמלה נשארת בחודש התשלום ושורת מינוס נרשמת ביום החשבונית, ואם החשבונית\n  נרשמה אחרי התאריך שלה - ביום הרישום; ביטול חשבונית הסוכן מחזיר את העמלה ביום הביטול (חודש שכבר עבר לא משתנה). השורה מופיעה רק כשיש לתקופה תעודה כזו.\n- עוסק פטור: ההכנסות הן הקבלות (`income_basis` = `receipts`, הכותרת \"הכנסות (לפי קבלות)\"), כמו במסך.\n- ההכנסות כאן יכולות להיות שונות מ-`report_sales` לאותם תאריכים: כאן לפי תאריך אסמכתא ולפי סעיפי ההכנסה שנכללים בדוח,\n  שם לפי תאריך המסמך.\n- נדרשת הרשאת \"צפייה בדוחות\" למשתמש שיצר את המפתח (מנהל המערכת תמיד); בלעדיה 403. מפתח לקריאה בלבד יכול לקרוא את הדוח.\n\nThe business's profit and loss for a period - the app's \"רווח והפסד\" report, the same numbers (final documents, by\nreference date, net of VAT, by income / expense section). `date_to` defaults to today, `date_from` to 1 January of\n`date_to`'s year; both inclusive, at most 366 days. Signs as on the screen: expense rows and `total_expenses` are\nnegative, so `profit` = `total_income` + `total_expenses`. `profit_percent` (and the `report_total` row's\n`percent_of_income`) is signed as on the screen - negative on a loss, 0 without income; the other rows' percent is\nan absolute share of income. `rows` keep the screen's order; the opening / closing stock\nrows (`stock_start` / `stock_end`) sit in the purchase / cost-of-sales group, otherwise (when there is a stock value) in\na group \"מלאי\" of their own, also in a period without expense documents. `agent_commissions` is the agents'\ncommission (paid agent statements on their payment date, before any advance deduction, no VAT; a cancelled paid\nstatement is reversed on its cancel date; employee agents are left out; a statement with a recorded agent invoice\ncounts only the advance deducted in it - the invoice is the rest; an invoice recorded in a later month than the\npayment leaves the commission in the payment month and books a minus line on the invoice date, or on the day the\ninvoice was recorded when that is later; cancelling the\nagent invoice books the commission again on the cancel date - a past month never changes),\nin a group \"עמלות סוכנים\" of its own, last among the expenses, only when the period has one. An exempt dealer counts\nreceipts as income (`income_basis` = `receipts`). The key's user needs the \"view reports\" permission (403 otherwise).\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "report_profit_loss"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"date_from\": \"2026-01-01\",\n  \"date_to\": \"2026-10-31\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "73cad34d-cdf7-4b34-af2a-c5f7f81181e4",
              "name": "Envelope; `data` = the report, or null.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "report_profit_loss"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"date_from\": \"2026-01-01\",\n  \"date_to\": \"2026-10-31\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"OK\",\n  \"data\": {\n    \"date_from\": \"2026-01-01T00:00:00\",\n    \"date_to\": \"2026-10-31T00:00:00\",\n    \"is_exempt_dealer\": false,\n    \"income_basis\": \"invoices\",\n    \"total_income\": 120000,\n    \"total_expenses\": -45000,\n    \"profit\": 75000,\n    \"profit_percent\": 62.5,\n    \"includes_stock_values\": false,\n    \"rows\": [\n      {\n        \"row_type\": \"section\",\n        \"category\": \"income\",\n        \"group_name\": \"הכנסות ממכירות\",\n        \"section_id\": 10641,\n        \"name\": \"הכנסה ממכירות\",\n        \"amount\": 120000,\n        \"percent_of_income\": 100\n      },\n      {\n        \"row_type\": \"group_total\",\n        \"category\": \"income\",\n        \"group_name\": \"הכנסות ממכירות\",\n        \"section_id\": 0,\n        \"name\": \"סה\\\"כ הכנסות ממכירות\",\n        \"amount\": 120000,\n        \"percent_of_income\": 100\n      },\n      {\n        \"row_type\": \"category_total\",\n        \"category\": \"income\",\n        \"group_name\": \"\",\n        \"section_id\": 0,\n        \"name\": \"סה\\\"כ הכנסות\",\n        \"amount\": 120000,\n        \"percent_of_income\": 100\n      },\n      {\n        \"row_type\": \"section\",\n        \"category\": \"expenses\",\n        \"group_name\": \"הוצאות הנהלה וכלליות\",\n        \"section_id\": 10658,\n        \"name\": \"אחזקת מחשב\",\n        \"amount\": -45000,\n        \"percent_of_income\": 37.5\n      },\n      {\n        \"row_type\": \"group_total\",\n        \"category\": \"expenses\",\n        \"group_name\": \"הוצאות הנהלה וכלליות\",\n        \"section_id\": 0,\n        \"name\": \"סה\\\"כ הוצאות הנהלה וכלליות\",\n        \"amount\": -45000,\n        \"percent_of_income\": 37.5\n      },\n      {\n        \"row_type\": \"category_total\",\n        \"category\": \"expenses\",\n        \"group_name\": \"\",\n        \"section_id\": 0,\n        \"name\": \"סה\\\"כ הוצאות\",\n        \"amount\": -45000,\n        \"percent_of_income\": 37.5\n      },\n      {\n        \"row_type\": \"report_total\",\n        \"category\": \"report\",\n        \"group_name\": \"\",\n        \"section_id\": 0,\n        \"name\": \"רווח (הפסד)\",\n        \"amount\": 75000,\n        \"percent_of_income\": 62.5\n      }\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "e9ac50e8-f61d-46bc-9fb3-b86ee32b7672",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "report_profit_loss"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"date_from\": \"2026-01-01\",\n  \"date_to\": \"2026-10-31\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "4b0310fb-41ed-4928-962d-00d4d6dfad94",
          "name": "מכירות לפי לקוח / Sales by customer",
          "request": {
            "name": "מכירות לפי לקוח / Sales by customer",
            "description": {
              "content": "סך המכירות לתקופה ופירוט לפי לקוח - כמו המסך \"דיווח מכירה לפי לקוח\" באפליקציה: חשבונית מס, חשבונית מס ידנית וחשבונית\nמס קבלה סופיות, לפני מע\"מ, לפי תאריך המסמך; חשבונית זיכוי מקטינה. מהגדול לקטן.\n\n- תאריכים כמו ב-`report_profit_loss` (ברירת מחדל מ-1 בינואר עד היום, כלולים, עד 366 ימים).\n- `include_open_transaction_invoices` = true סופר גם חשבוניות עסקה פתוחות (כמו המתג במסך); ברירת מחדל false.\n- הלקוח המזדמן מופיע בשורה לכל שם שנכתב על המסמכים שלו (`is_casual_customer` = true, אותו `customer_id`).\n- אין מכירות בתקופה = 204 עם `total_amount` 0 ורשימה ריקה.\n- עוסק פטור: 403 - מסך המכירות אינו קיים לעוסק פטור; את ההכנסות לפי קבלות מחזיר `report_profit_loss`.\n- נדרשת הרשאת \"צפייה בדוחות\" למשתמש שיצר את המפתח; בלעדיה 403.\n\nSales for a period, net of VAT, by customer, largest first - the app's \"sales by customer\" report (tax invoice, manual\ntax invoice, invoice-receipt; credit invoices subtract; by document date). Dates as `report_profit_loss`.\n`include_open_transaction_invoices` adds open transaction invoices, as the screen's switch. No sales = 204 with an\nempty list. Not available to an exempt dealer (403; see `report_profit_loss`).\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "report_sales"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"date_from\": \"2026-10-01\",\n  \"date_to\": \"2026-10-31\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "ba7067c6-9683-4e20-9b36-76399fa687a2",
              "name": "Envelope; `data` = the report, or null.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "report_sales"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"date_from\": \"2026-10-01\",\n  \"date_to\": \"2026-10-31\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"OK\",\n  \"data\": {\n    \"date_from\": \"2026-10-01T00:00:00\",\n    \"date_to\": \"2026-10-31T00:00:00\",\n    \"include_open_transaction_invoices\": false,\n    \"total_amount\": 18500,\n    \"customers_count\": 2,\n    \"customers\": [\n      {\n        \"customer_id\": 5608,\n        \"is_casual_customer\": false,\n        \"company_name\": \"לקוח לדוגמה\",\n        \"amount\": 15000\n      },\n      {\n        \"customer_id\": 5001,\n        \"is_casual_customer\": true,\n        \"company_name\": \"ישראל ישראלי\",\n        \"amount\": 3500\n      }\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "c1cb2059-25e6-4325-a940-da87263c241b",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "report_sales"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"date_from\": \"2026-10-01\",\n  \"date_to\": \"2026-10-31\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "6cebb109-8296-493f-8b43-6a3e33d1c27b",
          "name": "גיול חובות / Debt aging",
          "request": {
            "name": "גיול חובות / Debt aging",
            "description": {
              "content": "מי חייב לעסק כסף ומאז מתי - כמו המסך \"גיול חובות\" באפליקציה, להיום. לקוח מופיע כשהחשבוניות הפתוחות שלו גדולות מהקבלות\nוהזיכויים הפתוחים שלו (חוב נטו של 1 ש\"ח ומעלה). חשבונית עסקה נכללת רק כשהעסק מגדיר \"לכלול חשבונית עסקה ביתרה\".\n\n- **סימנים:** `net_debt` חיובי = הלקוח חייב לעסק (הפוך מ-`customer_balance`). `open_credits` שלילי = קבלות וזיכויים\n  שעוד לא שויכו לחשבונית, והם מקטינים את החוב: `net_debt` = `open_invoices` + `open_credits`.\n- `net_debt_over_30` / `net_debt_over_60` = החלק מהחוב שמועד התשלום שלו עבר לפני יותר מ-30 / 60 יום, אחרי שהקבלות\n  הפתוחות מקוזזות קודם מהחשבוניות הישנות - אותו כלל כמו בכרטיסים שבמסך. לכן סכום השדות של כל הלקוחות שווה ל-\n  `total_net_debt_over_30` / `total_net_debt_over_60`, ומספר הלקוחות שבהם הם גדולים מ-0 שווה ל-`customers_over_30_count` /\n  `customers_over_60_count`.\n- `oldest_overdue_days` = הימים שעברו ממועד התשלום של החשבונית הפתוחה הכי ישנה (0 = עוד לא הגיע).\n- `overdue_over` = 30 או 60 מחזיר רק את הלקוחות עם חוב נטו כזה; הסיכום הוא תמיד של כל הלקוחות. ממוין מהחוב הגדול לקטן.\n- אין לקוחות כאלה = 204 עם הסיכום ורשימה ריקה.\n- עוסק פטור: 403 - מסך הגיול אינו קיים לעוסק פטור; יתרת לקוח: `customer_balance`, `customer_open_documents`.\n- נדרשת הרשאת \"צפייה בדוחות\" למשתמש שיצר את המפתח; בלעדיה 403.\n\nWho owes the business and since when, as of today - the app's debt aging screen. `net_debt` positive = the customer\nowes (the opposite sign of `customer_balance`); `open_credits` (negative) are receipts / credits not yet matched.\n`net_debt_over_30` / `_over_60` = the part due more than 30 / 60 days ago, net of open credits (oldest invoices are\npaid first) - the rule of the screen's cards, so the rows add up to the summary. `overdue_over` 30 / 60 returns only\nthose customers. Not available to an exempt dealer (403).\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "report_debt_aging"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"overdue_over\": 60\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "1d75da2b-5e16-4f09-ad84-90cade93451a",
              "name": "Envelope; `data` = the report, or null.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "report_debt_aging"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"overdue_over\": 60\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"OK\",\n  \"data\": {\n    \"as_of\": \"2026-10-31T00:00:00\",\n    \"overdue_over\": 60,\n    \"customers_count\": 12,\n    \"total_net_debt\": 43600,\n    \"total_open_invoices\": 45100,\n    \"total_open_credits\": -1500,\n    \"customers_over_30_count\": 3,\n    \"total_net_debt_over_30\": 9200,\n    \"customers_over_60_count\": 1,\n    \"total_net_debt_over_60\": 4000,\n    \"customers\": [\n      {\n        \"customer_id\": 5608,\n        \"company_name\": \"לקוח לדוגמה\",\n        \"open_invoices\": 6500,\n        \"open_credits\": -500,\n        \"net_debt\": 6000,\n        \"net_debt_over_30\": 5000,\n        \"net_debt_over_60\": 4000,\n        \"oldest_overdue_days\": 75\n      }\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "71e65c5f-cf73-4f5b-b3b8-6769737630d3",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "report_debt_aging"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"overdue_over\": 60\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "c033c387-5b98-4e26-97e8-1fb3d78b2d0e",
          "name": "תזרים מזומנים צפוי / Cash-flow forecast",
          "request": {
            "name": "תזרים מזומנים צפוי / Cash-flow forecast",
            "description": {
              "content": "תזרים המזומנים הצפוי מהיום ל-8 השבועות הבאים - כמו המסך \"תזרים מזומנים צפוי\" באפליקציה: יתרת הבנק שהעסק הקליד במסך,\nומה צפוי להיכנס (חשבוניות לגבייה, שיקים להפקדה) ולצאת (הוצאות לתשלום, שיקים לספקים) לפי מועד התשלום.\n\n- `periods`: `up_to_today` (`week` 0, עד היום כולל איחורים), 8 שבועות (`week` 1-8, מחר והלאה) ו-`later` (`week` 9, אחרי 8\n  שבועות - מוצג בלי יתרה: `balance` = null). `balance` = היתרה המצטברת אחרי התקופה.\n- סכומים חיוביים; `net` = נכנס פחות יוצא. `end_balance` = `opening_balance` + `total_net` (בלי \"אחרי 8 שבועות\").\n- `opening_balance_date` = null: העסק לא הקליד יתרת בנק, והתחזית מתחילה מ-0.\n- `has_expense_figures` = false: לעסק אין תוסף \"מעקב הוצאות\", ולכן ההוצאות והשיקים לספקים אינם בתחזית (0 אינו \"אין מה לשלם\").\n- `note` = מה לא כלול בתחזית (מע\"מ ומס, שכר, סליקת אשראי, ריטיינר, הוצאות קבועות). עוסק פטור: `invoices_title` = \"חשבונות לגבייה\", והמשפט ב-`note` נוקב באותה מילה (\"חשבונות\" ולא \"חשבוניות\").\n- בלי פרמטרים מלבד `api_token`. נדרשת הרשאת \"צפייה בדוחות\" למשתמש שיצר את המפתח; בלעדיה 403.\n\nThe expected cash flow from today for 8 weeks - the app's cash-flow forecast screen: the bank balance the business\ntyped, money in (invoices to collect, cheques to deposit) and out (expenses to pay, supplier cheques) by due date, up\nto today (overdue included), per week, and after 8 weeks (outside the running balance). Amounts positive,\n`net` = in - out. `has_expense_figures` false = no expenses add-on, the outgoing figures are not part of it. An exempt\ndealer (osek patur): the first source named in `note` uses the same word as `invoices_title`.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "report_cash_flow"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "e02ebc4c-39d2-4bb4-a009-3527243a80ce",
              "name": "Envelope; `data` = the forecast, or null.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "report_cash_flow"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"OK\",\n  \"data\": {\n    \"as_of\": \"2026-10-31T00:00:00\",\n    \"has_expense_figures\": true,\n    \"invoices_title\": \"חשבוניות לגבייה\",\n    \"opening_balance\": 15000,\n    \"opening_balance_date\": \"2026-10-30T00:00:00\",\n    \"total_in\": 12000,\n    \"total_out\": 4000,\n    \"total_net\": 8000,\n    \"end_date\": \"2026-12-26T00:00:00\",\n    \"end_balance\": 23000,\n    \"note\": \"התחזית כוללת רק חשבוניות לגבייה, שיקים להפקדה, הוצאות לתשלום ושיקים לספקים. ...\",\n    \"periods\": [\n      {\n        \"period_type\": \"up_to_today\",\n        \"week\": 0,\n        \"name\": \"עד היום (כולל איחורים)\",\n        \"date_from\": null,\n        \"date_to\": \"2026-10-31T00:00:00\",\n        \"invoices_in\": 9000,\n        \"invoices_in_count\": 4,\n        \"cheques_in\": 0,\n        \"cheques_in_count\": 0,\n        \"expenses_out\": 3000,\n        \"expenses_out_count\": 2,\n        \"cheques_out\": 0,\n        \"cheques_out_count\": 0,\n        \"net\": 6000,\n        \"balance\": 21000\n      },\n      {\n        \"period_type\": \"week\",\n        \"week\": 1,\n        \"name\": \"01/11 - 07/11\",\n        \"date_from\": \"2026-11-01T00:00:00\",\n        \"date_to\": \"2026-11-07T00:00:00\",\n        \"invoices_in\": 3000,\n        \"invoices_in_count\": 1,\n        \"cheques_in\": 0,\n        \"cheques_in_count\": 0,\n        \"expenses_out\": 1000,\n        \"expenses_out_count\": 1,\n        \"cheques_out\": 0,\n        \"cheques_out_count\": 0,\n        \"net\": 2000,\n        \"balance\": 23000\n      }\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "09ce368b-766a-424c-b2eb-22a20f109aef",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "report_cash_flow"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "e960f623-4ef7-4b4b-86c2-284b1c9aa057",
          "name": "מכירות לפי פריט / Sales by item",
          "request": {
            "name": "מכירות לפי פריט / Sales by item",
            "description": {
              "content": "כמות וסכום לכל פריט לתקופה - כמו הדוח \"לפי פריט\" באפליקציה: שורות הפריטים של חשבונית מס, חשבונית מס ידנית וחשבונית מס\nקבלה סופיות, לפני מע\"מ ואחרי הנחת המסמך, לפי תאריך המסמך; חשבונית זיכוי מקטינה. מהגדול לקטן.\n\n- תאריכים כמו ב-`report_profit_loss` (ברירת מחדל מ-1 בינואר עד היום, כלולים, עד 366 ימים).\n- סינון (לא חובה): `item_group_id` (קבוצת פריטים), `makat` (מק\"ט מדויק), `search` (חלק ממק\"ט או משם הפריט).\n- **השוואה:** `compare_from` + `compare_to` (שניהם יחד, עד 366 ימים) = תקופה נוספת. כל פריט מקבל `previous_quantity`,\n  `previous_amount`, `previous_average_price`, `change_amount` (עכשיו פחות אז) ו-`change_percent` (מהסכום של אז; חסר כשהוא\n  0), כולל פריטים שנמכרו רק אז (כמות 0 עכשיו). `sort` = `change` מסדר מהירידה הגדולה לעלייה הגדולה.\n- `side` = `purchases`: אותו דוח לרכש (חשבוניות רכש וזיכוי רכש; להוצאות אין שורות פריט) - כמו \"רכש לפי פריט\", דורש\n  את מודול המלאי (בלעדיו 403).\n- פריט = מק\"ט + שם (שורה בלי מק\"ט היא שורה לפי התיאור שלה). `average_price` = סכום חלקי כמות.\n- אין שורות = 204 עם `data` מלא ורשימה ריקה. עוסק פטור: 403 על המכירות. נדרשת הרשאת \"צפייה בדוחות\".\n\nQuantity and amount per item for a period - the app's \"by item\" report (net of VAT, after the document discount, by\ndocument date; credits subtract), largest first. Optional filters: item group, exact item code, code / name search.\n`compare_from` / `compare_to` add the numbers of a second period per item (`change_amount`, `change_percent`); `sort`\n`change` puts the largest drop first. `side` `purchases` = the purchase report (needs the stock module).\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "report_sales_by_item"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"date_from\": \"2026-07-01\",\n  \"date_to\": \"2026-09-30\",\n  \"compare_from\": \"2025-07-01\",\n  \"compare_to\": \"2025-09-30\",\n  \"sort\": \"change\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "4a882305-dd11-4e3c-b5ce-656ae09f9869",
              "name": "Envelope; `data` = the report, or null.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "report_sales_by_item"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"date_from\": \"2026-07-01\",\n  \"date_to\": \"2026-09-30\",\n  \"compare_from\": \"2025-07-01\",\n  \"compare_to\": \"2025-09-30\",\n  \"sort\": \"change\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"OK\",\n  \"data\": {\n    \"date_from\": \"2026-07-01T00:00:00\",\n    \"date_to\": \"2026-09-30T00:00:00\",\n    \"side\": \"sales\",\n    \"include_open_transaction_invoices\": false,\n    \"compare_from\": \"2025-07-01T00:00:00\",\n    \"compare_to\": \"2025-09-30T00:00:00\",\n    \"total_quantity\": 140,\n    \"total_amount\": 52000,\n    \"previous_total_quantity\": 190,\n    \"previous_total_amount\": 71000,\n    \"change_amount\": -19000,\n    \"change_percent\": -26.8,\n    \"items_count\": 2,\n    \"items\": [\n      {\n        \"makat\": \"CM-200\",\n        \"name\": \"מכונת קפה 200\",\n        \"group_name\": \"מכונות קפה\",\n        \"quantity\": 20,\n        \"amount\": 30000,\n        \"average_price\": 1500,\n        \"previous_quantity\": 35,\n        \"previous_amount\": 52500,\n        \"previous_average_price\": 1500,\n        \"change_amount\": -22500,\n        \"change_percent\": -42.9\n      },\n      {\n        \"makat\": \"CAP-10\",\n        \"name\": \"קפסולות 10\",\n        \"group_name\": \"קפסולות\",\n        \"quantity\": 120,\n        \"amount\": 22000,\n        \"average_price\": 183.33,\n        \"previous_quantity\": 155,\n        \"previous_amount\": 18500,\n        \"previous_average_price\": 119.35,\n        \"change_amount\": 3500,\n        \"change_percent\": 18.9\n      }\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "7c603f2a-845e-4e05-abd3-f996b666fe6e",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "report_sales_by_item"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"date_from\": \"2026-07-01\",\n  \"date_to\": \"2026-09-30\",\n  \"compare_from\": \"2025-07-01\",\n  \"compare_to\": \"2025-09-30\",\n  \"sort\": \"change\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "a79510d7-aae7-4b68-9787-61deb4a75695",
          "name": "מכירות לפי פריט ולקוח / Sales by item and customer",
          "request": {
            "name": "מכירות לפי פריט ולקוח / Sales by item and customer",
            "description": {
              "content": "מי קנה את הפריטים, כמה ובכמה - כמו הדוח \"לפי פריט ולקוח\" באפליקציה (אותם מסמכים וסכומים כמו `report_sales_by_item`).\n\n- חובה לבחור לפחות אחד: `makat`, `search`, `item_group_id` או `customer_id` (בלי סינון - 400).\n- `search` מחפש רק במק\"ט ובשם הפריט (לא בשם הלקוח).\n- **השוואה:** `compare_from` + `compare_to` - כל שורה מקבלת `previous_quantity`, `previous_amount`, `change_amount` ו-`status`:\n  `stopped` = קנה אז ולא עכשיו, `new` = קנה רק עכשיו, `both` = בשתי התקופות. בסיכום `stopped_count`, `new_count` ו-\n  `previous_customers_count`. `sort` = `change` = הירידה הגדולה ראשונה.\n- הלקוח המזדמן: שורה לכל שם שנכתב על המסמכים (`is_casual_customer` = true). `side` = `purchases` = לפי ספק.\n- תאריכים, `side`, עוסק פטור והרשאה - כמו `report_sales_by_item`.\n\nWho bought the items, how many and for how much - the app's \"by item and customer\" report. One filter at least\n(`makat`, `search`, `item_group_id` or `customer_id`). With `compare_from` / `compare_to` every row gets its previous\nnumbers and a `status` (`stopped` / `new` / `both`) - who stopped buying. `side` `purchases` = by supplier.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "report_sales_by_item_customer"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"date_from\": \"2026-07-01\",\n  \"date_to\": \"2026-09-30\",\n  \"compare_from\": \"2025-07-01\",\n  \"compare_to\": \"2025-09-30\",\n  \"makat\": \"CM-200\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "1e7735d1-86b1-495b-bd81-30cc6c8c68d9",
              "name": "Envelope; `data` = the report, or null.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "report_sales_by_item_customer"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"date_from\": \"2026-07-01\",\n  \"date_to\": \"2026-09-30\",\n  \"compare_from\": \"2025-07-01\",\n  \"compare_to\": \"2025-09-30\",\n  \"makat\": \"CM-200\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"OK\",\n  \"data\": {\n    \"date_from\": \"2026-07-01T00:00:00\",\n    \"date_to\": \"2026-09-30T00:00:00\",\n    \"side\": \"sales\",\n    \"include_open_transaction_invoices\": false,\n    \"compare_from\": \"2025-07-01T00:00:00\",\n    \"compare_to\": \"2025-09-30T00:00:00\",\n    \"total_quantity\": 20,\n    \"total_amount\": 30000,\n    \"previous_total_quantity\": 35,\n    \"previous_total_amount\": 52500,\n    \"customers_count\": 1,\n    \"previous_customers_count\": 2,\n    \"stopped_count\": 1,\n    \"new_count\": 0,\n    \"rows_count\": 2,\n    \"rows\": [\n      {\n        \"makat\": \"CM-200\",\n        \"name\": \"מכונת קפה 200\",\n        \"customer_id\": 5608,\n        \"is_casual_customer\": false,\n        \"company_name\": \"קפה השכונה\",\n        \"quantity\": 20,\n        \"amount\": 30000,\n        \"previous_quantity\": 15,\n        \"previous_amount\": 22500,\n        \"change_amount\": 7500,\n        \"status\": \"both\"\n      },\n      {\n        \"makat\": \"CM-200\",\n        \"name\": \"מכונת קפה 200\",\n        \"customer_id\": 5611,\n        \"is_casual_customer\": false,\n        \"company_name\": \"מסעדת הים\",\n        \"quantity\": 0,\n        \"amount\": 0,\n        \"previous_quantity\": 20,\n        \"previous_amount\": 30000,\n        \"change_amount\": -30000,\n        \"status\": \"stopped\"\n      }\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "bcc6e144-1ad7-43d7-aac1-122aebd8e3be",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "report_sales_by_item_customer"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"date_from\": \"2026-07-01\",\n  \"date_to\": \"2026-09-30\",\n  \"compare_from\": \"2025-07-01\",\n  \"compare_to\": \"2025-09-30\",\n  \"makat\": \"CM-200\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "5273af3c-c460-455d-aa36-e6c1020592aa",
          "name": "מכירות לפי חודש / Sales by month",
          "request": {
            "name": "מכירות לפי חודש / Sales by month",
            "description": {
              "content": "כמות וסכום חודש אחרי חודש - של פריט, קבוצת פריטים או כל המכירות - מאותו דוח \"לפי פריט\" (`report_sales_by_item`).\n\n- עד 24 חודשים קלנדריים. ברירת מחדל: 12 החודשים האחרונים - מתחילת החודש לפני 11 חודשים ועד היום. כשהתאריכים באמצע\n  חודש, החודש הראשון / האחרון חלקי (`date_from` / `date_to` של החודש).\n- סינון כמו ב-`report_sales_by_item`: `item_group_id`, `makat`, `search`, `side`, `include_open_transaction_invoices`\n  (בלי השוואה ובלי מיון).\n- `items_count` = כמה פריטים שונים נמכרו בחודש. אין שורות בכל החודשים = 204 עם `data` מלא.\n\nQuantity and amount month by month (up to 24 months; default the last 12) of an item, a group or all sales, from the\nsame \"by item\" report. The first / last month is partial when the dates are.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "report_sales_by_month"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"date_from\": \"2026-08-01\",\n  \"date_to\": \"2026-10-31\",\n  \"makat\": \"CM-200\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "59f29d93-3b8b-493c-ae1c-fee7aa79603b",
              "name": "Envelope; `data` = the report, or null.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "report_sales_by_month"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"date_from\": \"2026-08-01\",\n  \"date_to\": \"2026-10-31\",\n  \"makat\": \"CM-200\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"OK\",\n  \"data\": {\n    \"date_from\": \"2026-08-01T00:00:00\",\n    \"date_to\": \"2026-10-31T00:00:00\",\n    \"side\": \"sales\",\n    \"include_open_transaction_invoices\": false,\n    \"total_quantity\": 21,\n    \"total_amount\": 31500,\n    \"months\": [\n      {\n        \"month\": \"2026-08\",\n        \"date_from\": \"2026-08-01T00:00:00\",\n        \"date_to\": \"2026-08-31T00:00:00\",\n        \"quantity\": 12,\n        \"amount\": 18000,\n        \"items_count\": 1\n      },\n      {\n        \"month\": \"2026-09\",\n        \"date_from\": \"2026-09-01T00:00:00\",\n        \"date_to\": \"2026-09-30T00:00:00\",\n        \"quantity\": 6,\n        \"amount\": 9000,\n        \"items_count\": 1\n      },\n      {\n        \"month\": \"2026-10\",\n        \"date_from\": \"2026-10-01T00:00:00\",\n        \"date_to\": \"2026-10-31T00:00:00\",\n        \"quantity\": 3,\n        \"amount\": 4500,\n        \"items_count\": 1\n      }\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "aa584e7e-7725-492a-815a-2afeee6646b3",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "report_sales_by_month"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"date_from\": \"2026-08-01\",\n  \"date_to\": \"2026-10-31\",\n  \"makat\": \"CM-200\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "89999d50-29df-4c7a-9c92-e0e3937ff56a",
          "name": "רווח לפי פריט / Profit by item",
          "request": {
            "name": "רווח לפי פריט / Profit by item",
            "description": {
              "content": "מכירה, עלות, עמלת סוכן ורווח לכל פריט לתקופה - כמו הדוח \"רווח לפי פריט\" באפליקציה (אותם מספרים כמו \"רווח לעסקאות\").\n\n- `sale_amount` = מכירה לפני מע\"מ; `cost_amount` = העלות שנשמרה בשורה (מחיר עלות כפול כמות, לפני מע\"מ); `agent_commission`\n  = עמלת הסוכן של המסמך, מחולקת על שורותיו; `profit` = מכירה פחות עלות פחות עמלה. `profit_percent_of_sale` = רווח מתוך\n  המכירה, `markup_percent` = רווח מתוך העלות.\n- מסמך שאין לו עלות מלאה לא נכנס לרווח: המכירה שלו ב-`sale_without_cost` (`no_cost` = לשורה אין עלות בכלל).\n- השורה האחרונה `is_remainder` = true (\"ללא פריט / עיגול אגורות\") = מה ששורות הפריטים לא מחזיקות, כדי שהשורות יסתכמו\n  לסיכום. עם `makat` / `search` היא לא מוחזרת, והסיכום הוא של השורות שנמצאו.\n- מהרווח הגבוה לנמוך. תאריכים כמו ב-`report_profit_loss`. סינון: `makat` (מדויק), `search` (חלק ממק\"ט או משם).\n- עוסק פטור: 403. נדרשת הרשאת \"צפייה בדוחות\". אין מכירות = 204.\n\nSale, cost, agent commission and profit per item for a period - the app's \"profit by item\" report. A document\nwithout a full cost stays out of the profit (its sale is `sale_without_cost`). The `is_remainder` row holds what the\nitem lines do not carry, so the rows add up. Largest profit first. Not available to an exempt dealer (403).\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "report_profit_by_item"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"date_from\": \"2026-01-01\",\n  \"date_to\": \"2026-10-31\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "2e12bc46-902a-49e5-80d6-d365fd7577cc",
              "name": "Envelope; `data` = the report, or null.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "report_profit_by_item"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"date_from\": \"2026-01-01\",\n  \"date_to\": \"2026-10-31\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"OK\",\n  \"data\": {\n    \"date_from\": \"2026-01-01T00:00:00\",\n    \"date_to\": \"2026-10-31T00:00:00\",\n    \"total_sale\": 100000,\n    \"total_cost\": 60000,\n    \"total_agent_commission\": 2000,\n    \"total_profit\": 38000,\n    \"profit_percent_of_sale\": 38,\n    \"markup_percent\": 63.33,\n    \"documents_count\": 40,\n    \"documents_without_cost\": 1,\n    \"sale_without_cost\": 500,\n    \"items_count\": 1,\n    \"items\": [\n      {\n        \"makat\": \"CM-200\",\n        \"name\": \"מכונת קפה 200\",\n        \"is_remainder\": false,\n        \"quantity\": 60,\n        \"sale_amount\": 90000,\n        \"cost_amount\": 54000,\n        \"agent_commission\": 1800,\n        \"profit\": 34200,\n        \"profit_percent_of_sale\": 38,\n        \"markup_percent\": 63.33,\n        \"documents_count\": 35,\n        \"no_cost\": false,\n        \"sale_without_cost\": 500\n      },\n      {\n        \"makat\": \"\",\n        \"name\": \"ללא פריט / עיגול אגורות\",\n        \"is_remainder\": true,\n        \"quantity\": 0,\n        \"sale_amount\": 10000,\n        \"cost_amount\": 6000,\n        \"agent_commission\": 200,\n        \"profit\": 3800,\n        \"profit_percent_of_sale\": 38,\n        \"markup_percent\": 63.33,\n        \"documents_count\": 5,\n        \"no_cost\": false,\n        \"sale_without_cost\": 0\n      }\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "a48b9bec-9cd8-4bf1-9a21-556ac350ddff",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "report_profit_by_item"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"date_from\": \"2026-01-01\",\n  \"date_to\": \"2026-10-31\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "26a939fb-65fd-4b83-acde-5225ed7dd5f3",
          "name": "דוח מע\"מ / VAT report",
          "request": {
            "name": "דוח מע\"מ / VAT report",
            "description": {
              "content": "כמה מע\"מ לתשלום (או להחזר) לתקופה - חלק המע\"מ של המסך \"דיווח לרשויות\" באפליקציה, אותם מספרים. **אלה המספרים של BigBoss\nלפי המסמכים שנקלטו, לא דוח שהוגש:** שום דבר לא נשלח לרשות המסים.\n\n- בלי `date_from` ובלי `date_to`: תקופת הדיווח האחרונה שנסגרה לפי תדירות הדיווח של העסק (`vat_report_period`): חודשי -\n  החודש הקודם; דו-חודשי - הזוג האחרון שנסגר (ינואר-פברואר, מרץ-אפריל...), כמו ברירת המחדל במסך; `is_default_period` = true.\n  אחרת התאריכים כמו ב-`report_profit_loss` (כלולים, עד 366 ימים).\n- מכירות (חשבונית מס, חשבונית מס ידנית, חשבונית מס קבלה; חשבונית זיכוי מקטינה) לפי תאריך המסמך: `sales_exempt` = עסקאות\n  פטורות (מסמך בלי מע\"מ והחלק שלא חייב במע\"מ), `sales_taxable_before_vat` = עסקאות חייבות לפני מע\"מ, `vat_on_sales` = המס על\n  העסקאות.\n- תשומות (חשבוניות רכש והוצאה, רשימון יבוא; זיכוי מקטין) לפי תאריך האסמכתא, לפי סוג סעיף המע\"מ:\n  `vat_reclaimed_fixed_assets` = מס תשומות על ציוד ונכסים קבועים, `vat_reclaimed_other` = מס על תשומות אחרות.\n- `vat_to_pay` = `vat_on_sales` - `vat_reclaimed_total`; שלילי = החזר (`is_refund`). חשבונית ספק שעוד לא נקלטה, או טיוטה שלא\n  אושרה, לא נספרת.\n- עוסק פטור: 403. נדרשת הרשאת \"צפייה בדוחות\"; מפתח לקריאה בלבד יכול לקרוא.\n\nVAT to pay (or refund) for a period - the VAT part of the app's \"דיווח לרשויות\" screen, the same numbers. These are\nBigBoss's figures from the recorded documents, not a filed report; nothing is sent to the Tax Authority. With neither\ndate: the last closed reporting period by the company's frequency (`vat_report_period`; monthly = last month,\nbimonthly = the last closed Jan-Feb / Mar-Apr / ... pair), as the screen's default. Sales by document date, input VAT\nby reference date; credits subtract. `vat_to_pay` = `vat_on_sales` - `vat_reclaimed_total`; negative = a refund. Not\navailable to an exempt dealer (403).\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "report_vat"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"date_from\": \"2026-09-01\",\n  \"date_to\": \"2026-10-31\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "543690bd-164b-46ce-aa82-614bd3b89f8e",
              "name": "Envelope; `data` = the report, or null.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "report_vat"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"date_from\": \"2026-09-01\",\n  \"date_to\": \"2026-10-31\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"OK\",\n  \"data\": {\n    \"date_from\": \"2026-09-01T00:00:00\",\n    \"date_to\": \"2026-10-31T00:00:00\",\n    \"is_default_period\": false,\n    \"vat_report_period\": \"bimonthly\",\n    \"sales_exempt\": 150,\n    \"sales_taxable_before_vat\": 39636.14,\n    \"vat_on_sales\": 7134.5,\n    \"vat_reclaimed_fixed_assets\": 0,\n    \"vat_reclaimed_other\": 1260,\n    \"vat_reclaimed_total\": 1260,\n    \"vat_to_pay\": 5874.5,\n    \"is_refund\": false,\n    \"note\": \"אלה המספרים של BigBoss לפי המסמכים שנקלטו (מסך \\\"דיווח לרשויות\\\"), לא דוח שהוגש - הדיווח לרשות המסים נעשה בנפרד\"\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "3ddc1fb7-e3c6-4fe5-9854-2186497ed674",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "report_vat"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"date_from\": \"2026-09-01\",\n  \"date_to\": \"2026-10-31\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "d403bc46-a424-4e32-8ec8-e2b2b519451f",
          "name": "מקדמות מס הכנסה / Income-tax advances",
          "request": {
            "name": "מקדמות מס הכנסה / Income-tax advances",
            "description": {
              "content": "המקדמה למס הכנסה לתקופה - חלק המקדמות של המסך \"דיווח לרשויות\" באפליקציה, אותם מספרים. אלה המספרים של BigBoss, לא דוח\nשהוגש; שום דבר לא נשלח לרשות המסים.\n\n- תאריכים כמו ב-`report_vat` (בלי שניהם = התקופה האחרונה שנסגרה; `report_period` = תדירות הדיווח של העסק).\n- `turnover` = המחזור: חשבוניות מס, חשבוניות מס ידניות וחשבוניות מס קבלה לפני מע\"מ, לפי תאריך המסמך; חשבונית זיכוי מקטינה.\n- `advance_percent` = אחוז המקדמות מפרטי החברה (שדה \"מקדמות מס\"); `advance_by_turnover` = המחזור כפול האחוז.\n- `withholding_tax_deducted` = ניכוי מס במקור בקבלות של התקופה (קבלה החזרה מקטינה); `advance_to_pay` = המקדמה פחות הניכוי.\n- `note` = מה המספרים האלה ומה חסר: אחוז שלא הוגדר (0); לעוסק פטור המחזור נספר מחשבוניות מס בלבד, כמו במסך.\n- נדרשת הרשאת \"צפייה בדוחות\"; מפתח לקריאה בלבד יכול לקרוא.\n\nThe income-tax advance for a period - the advances part of the app's \"דיווח לרשויות\" screen, the same numbers (not a\nfiled report; nothing is sent). Dates as `report_vat`. `turnover` = tax invoices net of VAT by document date (credits\nsubtract); `advance_by_turnover` = turnover x the company's `advance_percent`; `advance_to_pay` = that less the tax\nwithheld at source on the period's receipts. `note` says what is missing (no percent set = 0; an exempt dealer's\nturnover counts tax invoices only, as on the screen).\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "report_tax_advances"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "1687826b-9c79-4d25-b384-aa800c67624c",
              "name": "Envelope; `data` = the report, or null.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "report_tax_advances"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"OK\",\n  \"data\": {\n    \"date_from\": \"2026-09-01T00:00:00\",\n    \"date_to\": \"2026-10-31T00:00:00\",\n    \"is_default_period\": true,\n    \"report_period\": \"bimonthly\",\n    \"is_exempt_dealer\": false,\n    \"turnover\": 39786.14,\n    \"advance_percent\": 5,\n    \"advance_by_turnover\": 1989.31,\n    \"withholding_tax_deducted\": 300,\n    \"advance_to_pay\": 1689.31,\n    \"note\": \"אלה המספרים של BigBoss לפי המסמכים שנקלטו (מסך \\\"דיווח לרשויות\\\"), לא דוח שהוגש - הדיווח לרשות המסים נעשה בנפרד\"\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "cbed41fc-c9d4-4fa9-bfc6-86eee5b30a71",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "report_tax_advances"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        }
      ]
    },
    {
      "name": "Items",
      "description": "כרטיסי פריטים / Item cards.",
      "item": [
        {
          "id": "c902e131-9d37-4da7-bb17-00c3221e062c",
          "name": "הוספת פריט / Create an item",
          "request": {
            "name": "הוספת פריט / Create an item",
            "description": {
              "content": "פותח כרטיס פריט חדש. `item_name` חובה. אין לשלוח `item_id`. `catalog_number` נשמר באותיות גדולות.\nמק\"ט שכבר קיים = 409. 503 = בקשה אחרת שומרת עכשיו פריט עם אותו מק\"ט; לא נשמר דבר - יש לשלוח שוב.\nשגיאה של כללי השמירה של הפריט (אותם כללים כמו באפליקציה) חוזרת ב-400 כפי שהיא.\n\nOpens a new item card (`item_name` required, no `item_id`). Existing catalog number = 409;\n503 = the same catalog number is being saved by another request, send again.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "item_new"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"item_name\": \"מוצר לדוגמה\",\n  \"catalog_number\": \"SKU-100\",\n  \"barcode\": \"7290000000001\",\n  \"group_id\": 12,\n  \"price_buy_nis\": 60,\n  \"price_sell_nis\": 117,\n  \"price_sell_vat_included\": 1,\n  \"image_url\": \"https://example.com/images/sku-100.jpg\",\n  \"extended_description\": \"תיאור מורחב של המוצר\",\n  \"managed_in_inventory\": 1,\n  \"inventory_min_qtty\": 5,\n  \"inventory_max_qtty\": 50,\n  \"request_reference\": \"SHOP-ITEM-100\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "970b88ad-a59a-464a-8ab7-5641afb5c688",
              "name": "הפריט נוסף",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "item_new"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"item_name\": \"מוצר לדוגמה\",\n  \"catalog_number\": \"SKU-100\",\n  \"barcode\": \"7290000000001\",\n  \"group_id\": 12,\n  \"price_buy_nis\": 60,\n  \"price_sell_nis\": 117,\n  \"price_sell_vat_included\": 1,\n  \"image_url\": \"https://example.com/images/sku-100.jpg\",\n  \"extended_description\": \"תיאור מורחב של המוצר\",\n  \"managed_in_inventory\": 1,\n  \"inventory_min_qtty\": 5,\n  \"inventory_max_qtty\": 50,\n  \"request_reference\": \"SHOP-ITEM-100\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"הפריט נוסף\",\n  \"data\": {\n    \"item_id\": 9120\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "7ddff31f-e477-43bf-935b-ebb223813b94",
              "name": "מק\"ט קיים",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "item_new"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"item_name\": \"מוצר לדוגמה\",\n  \"catalog_number\": \"SKU-100\",\n  \"barcode\": \"7290000000001\",\n  \"group_id\": 12,\n  \"price_buy_nis\": 60,\n  \"price_sell_nis\": 117,\n  \"price_sell_vat_included\": 1,\n  \"image_url\": \"https://example.com/images/sku-100.jpg\",\n  \"extended_description\": \"תיאור מורחב של המוצר\",\n  \"managed_in_inventory\": 1,\n  \"inventory_min_qtty\": 5,\n  \"inventory_max_qtty\": 50,\n  \"request_reference\": \"SHOP-ITEM-100\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 409,\n  \"result_message\": \"לא ניתן להוסיף פריט חדש: פריט עם מספר קטלוגי זה כבר קיים\",\n  \"data\": null\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "2a609cbc-bf79-496c-bcf7-3dda7240d9fb",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "item_new"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"item_name\": \"מוצר לדוגמה\",\n  \"catalog_number\": \"SKU-100\",\n  \"barcode\": \"7290000000001\",\n  \"group_id\": 12,\n  \"price_buy_nis\": 60,\n  \"price_sell_nis\": 117,\n  \"price_sell_vat_included\": 1,\n  \"image_url\": \"https://example.com/images/sku-100.jpg\",\n  \"extended_description\": \"תיאור מורחב של המוצר\",\n  \"managed_in_inventory\": 1,\n  \"inventory_min_qtty\": 5,\n  \"inventory_max_qtty\": 50,\n  \"request_reference\": \"SHOP-ITEM-100\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "a3432c8c-8c20-4fb5-922d-43000bdbd4a6",
          "name": "עדכון פריט / Update an item",
          "request": {
            "name": "עדכון פריט / Update an item",
            "description": {
              "content": "מעדכן כרטיס פריט פעיל. `item_id` חובה. רק שדות שנשלחו משתנים; שדה שלא נשלח (או `null`) נשאר.\n`image_url` ריק מסיר את התמונה החיצונית. כשלא השתנה דבר התשובה עדיין \"הפריט עודכן\" עם אותו `item_id`.\n\nUpdates an active item; only the fields sent change. An empty `image_url` removes the external image.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "item_update"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"item_id\": 9120,\n  \"price_sell_nis\": 129.9,\n  \"price_sell_vat_included\": 1\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "b201e2cd-cdfd-4141-af9c-265a8c75d060",
              "name": "הפריט עודכן",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "item_update"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"item_id\": 9120,\n  \"price_sell_nis\": 129.9,\n  \"price_sell_vat_included\": 1\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"הפריט עודכן\",\n  \"data\": {\n    \"item_id\": 9120\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "87da2ea9-a6fc-4159-9f52-19b6eacb5a52",
              "name": "פריט לא פעיל",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "item_update"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"item_id\": 9120,\n  \"price_sell_nis\": 129.9,\n  \"price_sell_vat_included\": 1\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 404,\n  \"result_message\": \"הפריט מוגדר כלא פעיל\",\n  \"data\": null\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "ef585c5c-b569-4120-afaf-4820f7972792",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "item_update"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"item_id\": 9120,\n  \"price_sell_nis\": 129.9,\n  \"price_sell_vat_included\": 1\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "10887569-8889-44e2-b932-eb81c9407dc1",
          "name": "שליפת פריט / Get an item",
          "request": {
            "name": "שליפת פריט / Get an item",
            "description": {
              "content": "מחזיר כרטיס פריט לפי `item_id` **או** לפי `catalog_number` - אחד מהם בדיוק. לא נמצא = 204.\n\nReturns an item by `item_id` **or** `catalog_number` (exactly one). Not found = 204.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "item_get"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"catalog_number\": \"SKU-100\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "5083e60b-b92c-4bc0-b7d8-f2d1e5e55efc",
              "name": "הפריט נמצא",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "item_get"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"catalog_number\": \"SKU-100\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"OK\",\n  \"data\": {\n    \"item_id\": 9120,\n    \"item_name\": \"מוצר לדוגמה\",\n    \"catalog_number\": \"SKU-100\",\n    \"barcode\": \"7290000000001\",\n    \"group_id\": 12,\n    \"group_name\": \"קבוצה לדוגמה\",\n    \"price_buy_nis\": 60,\n    \"price_sell_nis\": 117,\n    \"price_sell_vat_included\": 1,\n    \"image_url\": \"https://example.com/images/sku-100.jpg\",\n    \"extended_description\": \"תיאור מורחב של המוצר\",\n    \"managed_in_inventory\": 1,\n    \"inventory_min_qtty\": 5,\n    \"inventory_max_qtty\": 50,\n    \"request_reference\": \"SHOP-ITEM-100\"\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "5b77facd-3cf4-4788-82b4-77b835880524",
              "name": "נשלחו שני מזהים",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "item_get"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"catalog_number\": \"SKU-100\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 400,\n  \"result_message\": \"יש להעביר שדה item_id או שדה catalog_number (אך לא את שניהם יחד)\",\n  \"data\": null\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "e8d75aed-9515-44e0-99ac-51e8610879f4",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "item_get"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"catalog_number\": \"SKU-100\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "3d442498-95ac-4e3f-82f8-b17e84a4e539",
          "name": "רשימת פריטים / List items",
          "request": {
            "name": "רשימת פריטים / List items",
            "description": {
              "content": "מחזיר את הפריטים הפעילים של החברה, עם סינון אופציונלי לפי ניהול במלאי ולפי קבוצה. אין פריטים מתאימים = 204.\n\n- **בלי `page`, `updated_since` ו-`search`** - כל הרשימה במערך אחד, כמו תמיד.\n- **`page`** (מ-1) ו-`page_size` (ברירת מחדל 100, עד 500) - התשובה היא עמוד:\n  `data = {page, page_size, total_count, items}`, ממוין לפי מספר פריט. גם ב-204 `data` הוא העמוד עם `total_count` 0.\n- **`updated_since`** - רק פריטים שכרטיס הפריט שלהם נוסף או השתנה מאז (שם, מחירים, ברקוד, תמונה, קבוצה וכו').\n  תנועת מלאי אינה שינוי של הכרטיס - לכמויות יש `inventory_list`. שינוי שם של קבוצה לא מסמן את הפריטים שבה. פריט שנמחק לא יופיע.\n- **`search`** (2-100 תווים) - שם הפריט, המק\"ט או הברקוד מכילים את הטקסט כולו (כמו תיבת החיפוש במסך הפריטים;\n  אותיות גדולות / קטנות לא משנות). כמה מילים = כל הטקסט ביחד, לא כל מילה לחוד.\n- בלי `page`, הסינונים מחזירים את כל התוצאות במערך, ממוינות לפי מספר פריט.\n\nReturns the company's active items, optionally filtered by stock management and group. None matching = 204.\n- **No `page` / `updated_since` / `search`** - the full list in one array, as always.\n- **`page`** + `page_size` (default 100, max 500) - `data = {page, page_size, total_count, items}`, ordered by item id.\n  With 204 `data` is still the page object with `total_count` 0.\n- **`updated_since`** - only items whose item card was added or changed since then (name, prices, barcode,\n  picture, group...). A stock movement is not a card change - use `inventory_list` for quantities. Renaming a\n  group does not mark its items. Deleted items never appear.\n- **`search`** (2-100 chars) - the item name, catalog number or barcode contains the whole text (like the app's\n  item search box; letter case ignored). Several words are looked for together, not each word apart.\n- Without `page` the filters return every match in one array, ordered by item id.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "item_list"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"managed_in_inventory\": 1,\n  \"group_id\": 12\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "0261f37a-0907-43a3-9784-4fee25db17d0",
              "name": "רשימה",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "item_list"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"managed_in_inventory\": 1,\n  \"group_id\": 12\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"OK\",\n  \"data\": [\n    {\n      \"item_id\": 9120,\n      \"item_name\": \"מוצר לדוגמה\",\n      \"catalog_number\": \"SKU-100\",\n      \"barcode\": \"7290000000001\",\n      \"group_id\": 12,\n      \"group_name\": \"קבוצה לדוגמה\",\n      \"price_buy_nis\": 60,\n      \"price_sell_nis\": 117,\n      \"price_sell_vat_included\": 1,\n      \"image_url\": \"https://example.com/images/sku-100.jpg\",\n      \"extended_description\": \"תיאור מורחב של המוצר\",\n      \"managed_in_inventory\": 1,\n      \"inventory_min_qtty\": 5,\n      \"inventory_max_qtty\": 50,\n      \"request_reference\": \"SHOP-ITEM-100\"\n    }\n  ]\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "e266364b-b9e2-481f-ac67-b9a0d9d23d9a",
              "name": "אין פריטים",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "item_list"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"search\": \"SKU-100\",\n  \"page\": 1,\n  \"page_size\": 50\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 204,\n  \"result_message\": \"לא נמצאו פריטים התואמים לסינון\",\n  \"data\": null\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "a2a40cf9-d294-4a7a-b125-9abe0ad06fc8",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "item_list"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"managed_in_inventory\": 1,\n  \"group_id\": 12\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        }
      ]
    },
    {
      "name": "Inventory",
      "description": "כמויות במלאי, העברה בין מחסנים וספירת מלאי / Stock quantities, transfers and stock counts.",
      "item": [
        {
          "id": "300fc1af-2e85-428c-b782-6eac14ea5ab0",
          "name": "מלאי של פריט / Stock of one item",
          "request": {
            "name": "מלאי של פריט / Stock of one item",
            "description": {
              "content": "מחזיר את הכמות במלאי של פריט מנוהל במלאי, לפי `item_id` **או** `catalog_number` (אחד מהם בדיוק).\nבלי `warehouse_id` (או 0): הכמות בכל המחסנים יחד, ופירוט לפי מחסן ב-`warehouses`.\nעם `warehouse_id`: הכמות במחסן הזה בלבד, ו-`warehouses` חוזר null.\nפריט שלא נמצא או לא מנוהל במלאי = 204.\n\nStock of one stock-managed item, by `item_id` **or** `catalog_number`. Without `warehouse_id`:\ncompany total plus a per-warehouse breakdown; with it: that warehouse only (`warehouses` null).\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "inventory_get"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"catalog_number\": \"SKU-100\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "4601dcd0-7b26-45f1-8ce1-a3c524409fb3",
              "name": "כל המחסנים",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "inventory_get"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"catalog_number\": \"SKU-100\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"OK\",\n  \"data\": {\n    \"quantity\": 42,\n    \"warehouse_id\": 0,\n    \"warehouses\": [\n      {\n        \"warehouse_id\": 3,\n        \"warehouse_name\": \"מחסן ראשי\",\n        \"quantity\": 30\n      },\n      {\n        \"warehouse_id\": 7,\n        \"warehouse_name\": \"מחסן חנות\",\n        \"quantity\": 12\n      }\n    ],\n    \"quatity\": 42\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "e95e17fa-909b-493a-b934-3b93f92724b2",
              "name": "לא מנוהל במלאי",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "inventory_get"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"catalog_number\": \"SKU-100\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 204,\n  \"result_message\": \"פריט לא נמצא או לא מנוהל במלאי\",\n  \"data\": null\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "d0c5f3a3-6701-4aa4-885b-4b189547d60f",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "inventory_get"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"catalog_number\": \"SKU-100\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "3177e207-a682-4a65-b11f-9ea0e1773b1a",
          "name": "רשימת מלאי / Stock list",
          "request": {
            "name": "רשימת מלאי / Stock list",
            "description": {
              "content": "מחזיר את הכמות במלאי של כל הפריטים הפעילים המנוהלים במלאי, ברשימה אחת (בלי דפים).\nסינון אופציונלי לפי קבוצה ולפי מחסן (בלי `warehouse_id` או 0 = כל המחסנים יחד).\nאין פריטים מתאימים = 204.\n\nStock of all active stock-managed items (no paging), optionally by group and warehouse.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "inventory_list"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"group_id\": 12,\n  \"warehouse_id\": 3\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "4bca3843-1f61-4e23-a98c-8419f4d6df83",
              "name": "מחסן אחד",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "inventory_list"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"group_id\": 12,\n  \"warehouse_id\": 3\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"OK\",\n  \"data\": [\n    {\n      \"item_id\": 9120,\n      \"catalog_number\": \"SKU-100\",\n      \"item_name\": \"מוצר לדוגמה\",\n      \"group_id\": 12,\n      \"quantity\": 30,\n      \"warehouse_id\": 3,\n      \"quatity\": 30\n    }\n  ]\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "aa96dd39-b435-4d0e-82ae-6b30bed4a289",
              "name": "מחסן לא קיים",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "inventory_list"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"group_id\": 12,\n  \"warehouse_id\": 3\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 400,\n  \"result_message\": \"מחסן 99 לא נמצא\",\n  \"data\": null\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "8c6cb69a-01b1-456f-970e-b2cf22e94e97",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "inventory_list"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"group_id\": 12,\n  \"warehouse_id\": 3\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "a5171178-acec-4d70-8418-aa0a34a2cbf2",
          "name": "העברה בין מחסנים / Transfer stock between warehouses",
          "request": {
            "name": "העברה בין מחסנים / Transfer stock between warehouses",
            "description": {
              "content": "מעביר כמויות מפריטים ממחסן למחסן, במסמך \"העברה בין מחסנים\" (סוג 830) - כמו המסך באפליקציה. המלאי יורד במחסן\nהמקור ועולה במחסן היעד, ונשלחת הודעת Webhook \"עדכון מלאי\". דורש את מודול המלאי.\n\n- כל פריט פעם אחת, עד 500 פריטים, כמות גדולה מאפס. פריט שאינו מנוהל במלאי, או שאין ממנו מספיק במחסן המקור,\n  דוחה את כל הבקשה ולא מועבר דבר.\n- `request_reference`: מזהה ייחודי של ההעברה אצלכם. אותו מזהה שוב נדחה (400) - כך שליחה חוזרת לא מעבירה פעמיים.\n  המזהים משותפים לכל המסמכים של החברה (`document_new`, טיוטות, העברות וספירות): לא להשתמש באותו מזהה למסמך ולהעברה.\n- 503 = המערכת עסוקה. לא נשמר דבר - יש לשלוח שוב בעוד רגע.\n\nMoves item quantities from one warehouse to another in a \"transfer between warehouses\" document (type 830), as\nthe app's screen; the stock update webhook is sent. Needs the stock module. Every item once, up to 500, quantity\nabove zero; one bad line refuses the whole request. The same `request_reference` again is refused (no double move).\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "inventory_transfer"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"source_warehouse_id\": 3,\n  \"destination_warehouse_id\": 7,\n  \"request_reference\": \"SHOP-RESTOCK-2026-10-26\",\n  \"remarks\": \"השלמת מלאי לחנות\",\n  \"items\": [\n    {\n      \"catalog_number\": \"SKU-100\",\n      \"quantity\": 5\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "481d5e1a-3470-4232-8107-f1db3ce07894",
              "name": "Envelope; `data` = the transfer document, or null.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "inventory_transfer"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"source_warehouse_id\": 3,\n  \"destination_warehouse_id\": 7,\n  \"request_reference\": \"SHOP-RESTOCK-2026-10-26\",\n  \"remarks\": \"השלמת מלאי לחנות\",\n  \"items\": [\n    {\n      \"catalog_number\": \"SKU-100\",\n      \"quantity\": 5\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"OK\",\n  \"data\": {\n    \"document_id\": 88300,\n    \"document_type\": 830,\n    \"document_number\": 41,\n    \"source_warehouse_id\": 3,\n    \"destination_warehouse_id\": 7,\n    \"document_link\": \"https://www.bigboss.co.il/bigbossweb?vpid=SIGNED_VIEW_TOKEN\"\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "2b800177-a368-4e01-9c4b-f2f5f6a9c25e",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "inventory_transfer"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"source_warehouse_id\": 3,\n  \"destination_warehouse_id\": 7,\n  \"request_reference\": \"SHOP-RESTOCK-2026-10-26\",\n  \"remarks\": \"השלמת מלאי לחנות\",\n  \"items\": [\n    {\n      \"catalog_number\": \"SKU-100\",\n      \"quantity\": 5\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "f9c1a301-f9a9-4d3c-a74a-0b76cdc9a01c",
          "name": "ספירת מלאי / Stock count",
          "request": {
            "name": "ספירת מלאי / Stock count",
            "description": {
              "content": "מעדכן את המלאי במחסן לפי ספירה, במסמך \"ספירת מלאי\" (סוג 840) - כמו מסך הספירה באפליקציה. הכמויות לא נכתבות\nישירות: המסמך נשמר, הספירה נסגרת, והמלאי מתעדכן בדיוק כמו בסיום ספירה באפליקציה. נשלחת הודעת Webhook \"עדכון\nמלאי\" לכל פריט שהשתנה. דורש את מודול המלאי.\n\n- `apply_as_delta` 0 (ברירת מחדל): `quantity` היא הכמות שנספרה, והמלאי נקבע לכמות הזו.\n  `apply_as_delta` 1: `quantity` היא שינוי (חיובי מוסיף, שלילי מוריד).\n- כל פריט פעם אחת, עד 500 פריטים. רק פריטים פעילים שמנוהלים במלאי. פריט סידורי - כמות שלמה בלבד.\n- פריטים שלא נשלחו לא משתנים.\n- `request_reference`: אותו מזהה שוב נדחה (400) - ספירה לא מתבצעת פעמיים. המזהים משותפים לכל המסמכים של החברה.\n- בתשובה, לכל פריט: הכמות לפני, הכמות אחרי והשינוי.\n\nSets the stock of one warehouse from a count, in a \"stock count\" document (type 840) closed as the app's count\nscreen closes it; the stock update webhook is sent per changed item. `apply_as_delta` 0 (default): `quantity` is\nthe counted quantity; 1: `quantity` is a change. Items not sent are not touched. Needs the stock module.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "inventory_count"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"warehouse_id\": 3,\n  \"request_reference\": \"COUNT-2026-10-26\",\n  \"items\": [\n    {\n      \"catalog_number\": \"SKU-100\",\n      \"quantity\": 28\n    },\n    {\n      \"catalog_number\": \"SKU-200\",\n      \"quantity\": 0\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "9509683c-2eac-43b9-bc95-f1537026436b",
              "name": "Envelope; `data` = the count document and the change per item, or null.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "inventory_count"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"warehouse_id\": 3,\n  \"request_reference\": \"COUNT-2026-10-26\",\n  \"items\": [\n    {\n      \"catalog_number\": \"SKU-100\",\n      \"quantity\": 28\n    },\n    {\n      \"catalog_number\": \"SKU-200\",\n      \"quantity\": 0\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"OK\",\n  \"data\": {\n    \"document_id\": 88310,\n    \"document_type\": 840,\n    \"document_number\": 12,\n    \"warehouse_id\": 3,\n    \"apply_as_delta\": 0,\n    \"items\": [\n      {\n        \"catalog_number\": \"SKU-100\",\n        \"quantity_before\": 30,\n        \"quantity_after\": 28,\n        \"difference\": -2\n      },\n      {\n        \"catalog_number\": \"SKU-200\",\n        \"quantity_before\": 4,\n        \"quantity_after\": 0,\n        \"difference\": -4\n      }\n    ]\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "aff4f675-3719-480e-969e-1bee7f0353e6",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "inventory_count"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"warehouse_id\": 3,\n  \"request_reference\": \"COUNT-2026-10-26\",\n  \"items\": [\n    {\n      \"catalog_number\": \"SKU-100\",\n      \"quantity\": 28\n    },\n    {\n      \"catalog_number\": \"SKU-200\",\n      \"quantity\": 0\n    }\n  ]\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        }
      ]
    },
    {
      "name": "Item groups",
      "description": "קבוצות פריטים / Item groups.",
      "item": [
        {
          "id": "ba97a05b-17d1-4315-96ad-0c8979dcbb76",
          "name": "הוספת קבוצת פריטים / Create an item group",
          "request": {
            "name": "הוספת קבוצת פריטים / Create an item group",
            "description": {
              "content": "פותח קבוצת פריטים חדשה. `group_name` חובה; אין לשלוח `group_id`. קבוצה באותו שם כבר קיימת = 409.\n\nOpens a new item group (`group_name` required, no `group_id`). Same name exists = 409.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "itemgroup_new"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"group_name\": \"קבוצה לדוגמה\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "11420d55-471c-4dc1-affb-eb51b09d3c95",
              "name": "הקבוצה נוספה",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "itemgroup_new"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"group_name\": \"קבוצה לדוגמה\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"הקבוצה נוספה\",\n  \"data\": {\n    \"group_id\": 12\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "8943799e-98b8-4932-9c87-3f5ed9dde2bc",
              "name": "שם קיים",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "itemgroup_new"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"group_name\": \"קבוצה לדוגמה\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 409,\n  \"result_message\": \"לא ניתן להוסיף קבוצת פריטים חדשה: קבוצה בשם זה כבר קיימת\",\n  \"data\": null\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "534fb6f9-42a3-47e4-90b5-644e3f4a7bd3",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "itemgroup_new"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"group_name\": \"קבוצה לדוגמה\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "06a904c8-3959-48d8-ae16-b2735f4ccf3a",
          "name": "עדכון קבוצת פריטים / Rename an item group",
          "request": {
            "name": "עדכון קבוצת פריטים / Rename an item group",
            "description": {
              "content": "משנה את שם קבוצת פריטים פעילה. `group_id` (גדול מאפס) ו-`group_name` חובה.\n\nRenames an active item group. `group_id` (> 0) and `group_name` are required.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "itemgroup_update"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"group_id\": 12,\n  \"group_name\": \"קבוצה לדוגמה - חדש\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "ad37e57b-bcc9-4bae-8773-54f5b279b160",
              "name": "הקבוצה עודכנה",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "itemgroup_update"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"group_id\": 12,\n  \"group_name\": \"קבוצה לדוגמה - חדש\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"הקבוצה עודכנה\",\n  \"data\": {\n    \"group_id\": 12\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "142ee4bf-f845-415d-aaea-ac917466f24a",
              "name": "לא נמצאה",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "itemgroup_update"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"group_id\": 12,\n  \"group_name\": \"קבוצה לדוגמה - חדש\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 404,\n  \"result_message\": \"הקבוצה לא נמצאה\",\n  \"data\": null\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "f85cef99-7210-4c7f-86f1-015489c8d9f0",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "itemgroup_update"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"group_id\": 12,\n  \"group_name\": \"קבוצה לדוגמה - חדש\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "32ec0dc4-3a3d-4ab5-b0e0-258593abdcd4",
          "name": "שליפת קבוצת פריטים / Get an item group",
          "request": {
            "name": "שליפת קבוצת פריטים / Get an item group",
            "description": {
              "content": "מחזיר קבוצת פריטים לפי `group_id` (גם קבוצה לא פעילה). לא נמצאה = 204.\n\nReturns an item group by `group_id` (inactive groups too). Not found = 204.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "itemgroup_get"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"group_id\": 12\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "df6120cf-62e4-47d7-848c-5a02eec4655e",
              "name": "נמצאה",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "itemgroup_get"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"group_id\": 12\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"OK\",\n  \"data\": {\n    \"group_id\": 12,\n    \"group_name\": \"קבוצה לדוגמה\"\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "29acfd51-e5bd-46ec-bcaf-4fb3a1239986",
              "name": "לא נמצאה",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "itemgroup_get"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"group_id\": 12\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 204,\n  \"result_message\": \"קבוצה לא נמצאה\",\n  \"data\": null\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "a527a6fd-8c20-4ff2-af2c-39f8464783b0",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "itemgroup_get"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"group_id\": 12\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "7c25d576-778f-43b5-bf12-f0c164ac985e",
          "name": "רשימת קבוצות פריטים / List item groups",
          "request": {
            "name": "רשימת קבוצות פריטים / List item groups",
            "description": {
              "content": "מחזיר את קבוצות הפריטים הפעילות של החברה. בלי `page` - כל הרשימה במערך אחד, כמו תמיד. עם `page`\n(ו-`page_size`, ברירת מחדל 100, עד 500) - `data = {page, page_size, total_count, groups}`, ממוין לפי מספר קבוצה.\nאין קבוצות = 204.\n\nReturns the company's active item groups: without `page` the full array as always; with `page` (+ `page_size`,\ndefault 100, max 500) `data = {page, page_size, total_count, groups}` ordered by group id. None = 204.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "itemgroup_list"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "ba6eda6f-b008-40a9-8623-4efcbb5012ba",
              "name": "רשימה",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "itemgroup_list"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"OK\",\n  \"data\": [\n    {\n      \"group_id\": 12,\n      \"group_name\": \"קבוצה לדוגמה\"\n    },\n    {\n      \"group_id\": 13,\n      \"group_name\": \"קבוצה נוספת\"\n    }\n  ]\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "97fc6e55-8c1f-4434-ac30-cd3f946d0dd3",
              "name": "אין קבוצות",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "itemgroup_list"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 204,\n  \"result_message\": \"לא נמצאו קבוצות פריטים\",\n  \"data\": null\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "4f5f09f5-ce16-4e3c-9592-f1183743314c",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "itemgroup_list"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        }
      ]
    },
    {
      "name": "Webhooks",
      "description": "הרשמה להודעות Webhook (דורש גם את תוסף ה-Webhook). כל הודעה נחתמת בכותרת `X-BigBoss-Signature`:\n`t=<שניות יוניקס של השליחה>,v1=<HMAC-SHA256 בהקסה של \"<t>.<גוף ההודעה כמו שהתקבל>\">`, עם הסוד של ההרשמה.\nהמקבל מחשב מחדש, משווה בזמן קבוע, ודוחה t ישן מ-5 דקות. הודעה שלא הגיעה (תשובה שאינה 2xx) נשלחת שוב אחרי\nדקה, 5 דקות, 30 דקות, שעתיים, 6 שעות ו-24 שעות. אחרי 20 הודעות שנכשלו ברצף ההרשמה מכובה ובעל העסק מקבל מייל.\nכותרות נוספות: `X-BigBoss-Event`, `X-BigBoss-Delivery-Id` (זהה בכל ניסיון - לזיהוי כפילות), `X-BigBoss-Timestamp`.\n\nWebHook subscriptions (the WebHook add-on is needed too). Every message is signed in `X-BigBoss-Signature`:\n`t=<unix seconds of this send>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\">` with the subscription's secret. Recompute,\ncompare in constant time, reject a `t` older than 5 minutes. A message not answered 2xx is sent again after 1 m,\n5 m, 30 m, 2 h, 6 h and 24 h; after 20 failed messages in a row the subscription is switched off and the owner mailed.\n",
      "item": [
        {
          "id": "29bbe8d6-7952-4434-9d2d-2ad9861c6586",
          "name": "רשימת ההרשמות ל-Webhook / List WebHook subscriptions",
          "request": {
            "name": "רשימת ההרשמות ל-Webhook / List WebHook subscriptions",
            "description": {
              "content": "כל ההרשמות של החברה, כולל לא פעילות. הסוד לא חוזר. אין הרשמות = 204.\n\nEvery subscription of the company, inactive ones too. The secret is never returned. None = 204.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "webhook_list"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "e632cc48-956d-4df9-abe9-7a6878939d69",
              "name": "Envelope; `data` = the subscriptions, or null.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "webhook_list"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"OK\",\n  \"data\": [\n    {\n      \"subscription_id\": 68,\n      \"event\": \"document_added\",\n      \"event_type_id\": 40,\n      \"target_url\": \"https://example.com/bigboss/hook\",\n      \"is_active\": 1,\n      \"signed\": 1,\n      \"auto_disabled_at\": null\n    }\n  ]\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "7098e1b3-4ff6-4c65-927d-e4d180252c17",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "webhook_list"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "ee4e33d3-0458-4492-b472-4fd2873c234c",
          "name": "הרשמה ל-Webhook / Add a WebHook subscription",
          "request": {
            "name": "הרשמה ל-Webhook / Add a WebHook subscription",
            "description": {
              "content": "רושם כתובת https לאירוע אחד. התשובה מחזירה את `signing_secret` - **פעם אחת בלבד**. אותו אירוע ואותה\nכתובת פעמיים = 409. כתובת פנימית או לא מאובטחת = 400. `receiver_token` (לא חובה) נשלח חזרה בכותרת\n`Authorization: Bearer`. מפתח לקריאה בלבד = 403.\n\nRegisters an https address for one event. The answer carries `signing_secret` - **only once**. The same event\nand address twice = 409. An internal or non-https address = 400. `receiver_token` (optional) is sent back as\n`Authorization: Bearer`. A read-only key = 403.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "webhook_add"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"event\": \"document_added\",\n  \"target_url\": \"https://example.com/bigboss/hook\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "5c3e58f3-1869-4f6f-8fa4-42379d02cc96",
              "name": "Envelope; `data` = the new subscription with its `signing_secret`.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "webhook_add"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"event\": \"document_added\",\n  \"target_url\": \"https://example.com/bigboss/hook\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"ההרשמה נוספה\",\n  \"data\": {\n    \"subscription_id\": 68,\n    \"event\": \"document_added\",\n    \"event_type_id\": 40,\n    \"target_url\": \"https://example.com/bigboss/hook\",\n    \"is_active\": 1,\n    \"signed\": 1,\n    \"auto_disabled_at\": null,\n    \"signing_secret\": \"whsec_EXAMPLE0000000000000000000000000000000000\"\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "bf98e015-2708-4880-903a-f4cec43b3704",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "webhook_add"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"event\": \"document_added\",\n  \"target_url\": \"https://example.com/bigboss/hook\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        },
        {
          "id": "bda358d5-6b71-42a4-8197-705c79b43487",
          "name": "מחיקת הרשמה ל-Webhook / Delete a WebHook subscription",
          "request": {
            "name": "מחיקת הרשמה ל-Webhook / Delete a WebHook subscription",
            "description": {
              "content": "מוחק הרשמה של החברה לפי `subscription_id`. הודעות שעוד ממתינות לה מבוטלות. לא נמצאה = 404.\n\nDeletes a subscription of the company by `subscription_id`. Its waiting messages are cancelled. Not found = 404.\n",
              "type": "text/plain"
            },
            "url": {
              "path": [
                "Api.asmx",
                "webhook_delete"
              ],
              "host": [
                "{{baseUrl}}"
              ],
              "query": [],
              "variable": []
            },
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "method": "POST",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"api_token\": \"{{apiToken}}\",\n  \"subscription_id\": 68\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "auth": null
          },
          "response": [
            {
              "id": "107c757f-4954-46e7-8f2f-9605b04e67d1",
              "name": "Envelope; `data` = `{subscription_id}`.",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "webhook_delete"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"subscription_id\": 68\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "OK",
              "code": 200,
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "body": "{\n  \"result_code\": 200,\n  \"result_message\": \"ההרשמה נמחקה\",\n  \"data\": {\n    \"subscription_id\": 68\n  }\n}",
              "cookie": [],
              "_postman_previewlanguage": "json"
            },
            {
              "id": "04fa2c37-5be7-4c4b-836a-b9e46dfe3e68",
              "name": "תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שאינה JSON). הגוף אינו במבנה\n`ApiResult` ואין בו `result_code`. תקלה בתוך הפעולה חוזרת ב-HTTP 200 עם `result_code` 500.\n\nUnexpected failure outside the method's own handling (e.g. a non-JSON Content-Type). The body is\nnot an `ApiResult`. A failure inside the method is HTTP 200 with `result_code` 500.\n",
              "originalRequest": {
                "url": {
                  "path": [
                    "Api.asmx",
                    "webhook_delete"
                  ],
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "query": [],
                  "variable": []
                },
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  }
                ],
                "method": "POST",
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"api_token\": \"YOUR_API_KEY\",\n  \"subscription_id\": 68\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                }
              },
              "status": "Internal Server Error",
              "code": 500,
              "header": [],
              "cookie": [],
              "_postman_previewlanguage": "text"
            }
          ],
          "event": [],
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          }
        }
      ]
    }
  ],
  "event": [],
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://www.bigboss.co.il/bigbossweb"
    },
    {
      "key": "apiToken",
      "value": "YOUR_API_KEY",
      "type": "string",
      "description": "מפתח ה-API של החברה (מסך \"ממשק API\") / The company API key"
    }
  ],
  "info": {
    "_postman_id": "6b760966-0dfa-4ddf-9b06-3984a61ec31f",
    "name": "BigBoss API",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "description": {
      "content": "**עברית**\n\nממשק ה-API של BigBoss (תוסף \"ממשק API\") מחבר אתר או מערכת אחרת לכרטיסי הלקוחות, לפריטים,\nלמלאי ולהפקת מסמכים של החברה.\n\n- כל קריאה היא `POST` לכתובת `https://www.bigboss.co.il/bigbossweb/Api.asmx/<שם הפעולה>`,\n  עם גוף JSON ועם הכותרת `Content-Type: application/json; charset=utf-8`.\n- ההזדהות היא במפתח גישה (API key) שנשלח **בגוף הבקשה**, בשדה `api_token` - לא בכותרת.\n  המפתח נוצר באפליקציה, במסך \"ממשק API\", ושייך לחברה אחת. המפתח הוא סוד: אין לשתף אותו.\n- **הרשאת המפתח:** \"קריאה וכתיבה\" (ברירת המחדל) או \"קריאה בלבד\". מפתח לקריאה בלבד מקבל\n  `result_code` 403 \"מפתח זה מוגדר לקריאה בלבד\" בכל פעולה שמשנה נתונים (`document_new`,\n  `document_cancel`, `document_draft_new/issue/delete`, `customer_new/update`, `item_new/update`,\n  `itemgroup_new/update`, `inventory_transfer`, `inventory_count`,\n  `supplier_new/update`, `expense_new`, `expense_cancel`, `expense_file_read`, `expense_upload_link`, `supplier_payment_new`, `lead_new/update/convert`, `crm_task_new/update/complete`, `document_send`), ושום דבר לא נשמר.\n  הרשאה שלישית, **\"קריאה, כתיבה ושליחה ללקוחות\"**, מוסיפה את `document_send` (שליחת מסמך שהופק ללקוח במייל). מפתח\n  \"קריאה וכתיבה\" מקבל בה 403 \"מפתח זה אינו מורשה לשלוח מסמכים ללקוחות...\".\n- **דוחות העסק:** כל מפתח, גם לקריאה בלבד, קורא את `report_profit_loss`, `report_sales`, `report_debt_aging`, `report_cash_flow`,\n  `report_sales_by_item`, `report_sales_by_item_customer`, `report_sales_by_month`, `report_profit_by_item`, `report_vat`\n  ו-`report_tax_advances` (רווח והפסד, מכירות, גיול חובות, תזרים מזומנים צפוי - כולל יתרת הבנק שהוקלדה, מכירות ורווח לפי פריט,\n  מע\"מ ומקדמות מס), כל עוד למשתמש שיצר את המפתח יש הרשאת\n  \"צפייה בדוחות\" (נבדק בכל קריאה; בלעדיה 403).\n- המפתח המלא מוצג פעם אחת בלבד - כשהוא נוצר או מוחלף (\"החלף מפתח\"). אחר כך מוצגים רק 4 התווים\n  האחרונים. החלפת מפתח מפסיקה את המפתח הקודם מיד.\n- **סביבת בדיקה:** במסך \"ניהול ממשק Api\" אפשר ליצור סביבת בדיקה - חברה נפרדת עם מפתח משלה. מסמכים בה לא נשלחים\n  לרשות המסים (`allocation_status` 0 ו-`allocation_note` \"סביבת בדיקה\"), מייל נשלח רק ליוצר הסביבה, וכל מסמך מסומן\n  \"מסמך בדיקה\". סביבה שלא נעשה בה שימוש 90 יום נמחקת.\n- **מגבלת קצב:** עד 120 בקשות בדקה לכל מפתח, ועד 30 בקשות שנדחו בדקה (`result_code` 400 בקשה לא תקינה, או 403). תשובות 204 / 404 / 409 לא נספרות.\n  מעבר לזה הבקשה לא מבוצעת וחוזר `result_code` 429, עם `data.retry_after_seconds` - מספר השניות\n  עד שאפשר לשלוח שוב.\n- **יומן קריאות:** באפליקציה, במסך \"יומן קריאות Api\", רואים כל בקשה ששינתה נתונים (במלואה, גם בקשות\n  שנדחו, בלי המפתח) וספירה יומית של בקשות הקריאה.\n- כל תשובה היא באותו מבנה: `{result_code, result_message, data}`. ראו `ApiResult`.\n- תשובה שטופלה חוזרת תמיד ב-HTTP 200, גם כשהיא שגיאה. התוצאה האמיתית נמצאת ב-`result_code`.\n  תקלה לא צפויה מחוץ לטיפול של הפעולה (למשל כותרת Content-Type שגויה) יכולה לחזור ב-HTTP 500\n  בלי `result_code` - יש לבדוק את שניהם.\n- `result_message` הוא טקסט בעברית. בהצלחה הוא בדרך כלל `OK`; בפעולות הוספה ועדכון הוא משפט קצר\n  (למשל \"הלקוח נוסף\"). כל ההודעות האפשריות של כל פעולה מופיעות בשדה `x-result-messages` שלה,\n  לפי `result_code`. הודעות ההזדהות המשותפות לכל הפעולות נמצאות ב-`components.x-common-result-messages`.\n- תאריכים נשלחים בפורמט ISO 8601 (`2026-10-26` או `2026-10-26T00:00:00`) וחוזרים בפורמט\n  `2026-10-26T00:00:00` (שעון ישראל, בלי אזור זמן). סכומים בש\"ח, עד 2 ספרות אחרי הנקודה.\n- בשדות אופציונליים: שדה שלא נשלח (או נשלח כ-`null`) לא משנה דבר.\n\n**English**\n\nThe public BigBoss API (the \"API\" add-on) connects a web site or another system to a company's\ncustomer cards, items, stock and document issuing.\n\n- Every call is a `POST` to `https://www.bigboss.co.il/bigbossweb/Api.asmx/<method name>` with a\n  JSON body and the header `Content-Type: application/json; charset=utf-8`.\n- Authentication is an API key sent **in the JSON body**, in the `api_token` field (not a header).\n  Keys are created in the app (\"ממשק API\" screen) and belong to one company. Keep the key secret.\n- **Key permission:** \"read and write\" (default) or \"read only\". A read-only key gets `result_code`\n  403 \"מפתח זה מוגדר לקריאה בלבד\" on every method that changes data (`document_new`, `document_cancel`,\n  `document_draft_new/issue/delete`, `customer_new/update`, `item_new/update`, `itemgroup_new/update`,\n  `inventory_transfer`, `inventory_count`,\n  `supplier_new/update`, `expense_new`, `expense_cancel`, `expense_file_read`, `expense_upload_link`, `supplier_payment_new`, `lead_new/update/convert`, `crm_task_new/update/complete`, `document_send`); nothing is saved.\n  A third permission, **\"read, write and send to customers\"**, adds `document_send` (e-mailing an issued document to\n  its customer); a \"read and write\" key gets 403 there.\n- **Business reports:** every key, read-only ones included, may read `report_profit_loss`, `report_sales`,\n  `report_debt_aging`, `report_cash_flow` (the typed bank balance included), `report_sales_by_item`,\n  `report_sales_by_item_customer`, `report_sales_by_month`, `report_profit_by_item`, `report_vat` and `report_tax_advances`,\n  as long as the key's user has the\n  \"view reports\" permission (checked on every call; 403 otherwise).\n- The full key is shown once - when it is created or rotated (\"החלף מפתח\"); afterwards only its last\n  4 characters. Rotating a key stops the previous one at once.\n- **Sandbox:** the \"ממשק API\" screen can create a sandbox - a separate company with its own key. Its documents are\n  never sent to the Tax Authority (`allocation_status` 0 and `allocation_note` \"סביבת בדיקה\"), mail goes only to the\n  person who created it, and every document is stamped \"מסמך בדיקה\". A sandbox unused for 90 days is deleted.\n- **Rate limit:** up to 120 requests a minute per key, and up to 30 refused answers a minute\n  (`result_code` 400 or 403; 204 / 404 / 409 are not counted). Beyond that nothing is done and the answer is `result_code` 429 with\n  `data.retry_after_seconds`, the seconds until the next request is accepted.\n- **Call log:** the app's \"יומן קריאות Api\" screen shows every request that changed data (in full,\n  refused ones included, without the key) and a daily count of the read requests.\n- Every answer has the same envelope `{result_code, result_message, data}` (see `ApiResult`).\n- A handled answer is always HTTP 200, errors included; the outcome is `result_code`. An unexpected\n  failure outside the method (e.g. a wrong Content-Type) may come back as HTTP 500 without a\n  `result_code` - check both.\n- `result_message` is Hebrew text. On success it is usually `OK`; create / update calls answer a\n  short Hebrew sentence. Every message a method can return is listed in its `x-result-messages`,\n  grouped by `result_code`; the authentication messages shared by all methods are in\n  `components.x-common-result-messages`.\n- Dates are sent as ISO 8601 (`2026-10-26` or `2026-10-26T00:00:00`) and returned as\n  `2026-10-26T00:00:00` (Israel time, no zone). Amounts are NIS with up to 2 decimals.\n- Optional fields: a field left out (or sent as `null`) changes nothing.\n\n\nContact Support:\n Name: BigBoss",
      "type": "text/plain"
    }
  }
}
