{
  "info": {
    "_postman_id": "7b3fe953-818c-4489-bab2-ec9ba1e540fb",
    "name": "Classer External - API",
    "description": "ExternalController endpoints under /api/external with X-API-Key auth.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "_exporter_id": "5865274"
  },
  "item": [
    {
      "name": "Clients - Get",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"pageSize\": {{pageSize}},\n  \"pageNumber\": {{pageNumber}},\n  \"search\": \"{{search}}\"\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/external/clients/get",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "external",
            "clients",
            "get"
          ]
        }
      },
      "response": []
    },
    {
      "name": "Suppliers - Get",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"pageSize\": {{pageSize}},\n  \"pageNumber\": {{pageNumber}},\n  \"search\": \"{{search}}\"\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/external/suppliers/get",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "external",
            "suppliers",
            "get"
          ]
        }
      },
      "response": []
    },
    {
      "name": "Categories - Get",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"category\": 1,\n  \"pageSize\": {{pageSize}},\n  \"pageNumber\": {{pageNumber}},\n  \"search\": \"{{search}}\"\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/external/categories/get",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "external",
            "categories",
            "get"
          ]
        }
      },
      "response": []
    },
    {
      "name": "Document Types - Get",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"type\": 1\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/external/document-types/get",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "external",
            "document-types",
            "get"
          ]
        }
      },
      "response": []
    },
    {
      "name": "Incomes - Add",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"documentType\": 2,\n  \"date\": \"{{toDate}}\",\n  \"valueDate\": \"{{toDate}}\",\n  \"ovrlPrice\": 100,\n  \"title\": \"Income sample\",\n  \"description\": \"\",\n  \"items\": [{ \"name\": \"Service\", \"quantity\": 1, \"unitPrice\": 100 }],\n  \"client\": { \"name\": \"Client\", \"phone\": \"0500000000\" }\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/external/incomes/add",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "external",
            "incomes",
            "add"
          ]
        }
      },
      "response": []
    },
    {
      "name": "Incomes - Get",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"pageSize\": {{pageSize}},\n  \"pageNumber\": {{pageNumber}},\n  \"search\": \"{{search}}\"\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/external/incomes/get",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "external",
            "incomes",
            "get"
          ]
        }
      },
      "response": []
    },
    {
      "name": "Outcomes - Add",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"categoryId\": \"{{categoryId}}\",\n    \"documentType\": \"{{outcomeDocumentTypeId}}\",\n    \"date\": \"{{toDate}}\",\n    \"ovrlPrice\": 100,\n    \"supplier\": {\n        \"name\": \"Supplier\",\n        \"phone\": \"0500000001\"\n    }\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/external/outcomes/add",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "external",
            "outcomes",
            "add"
          ]
        }
      },
      "response": []
    },
    {
      "name": "Outcomes - Get",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"pageSize\": {{pageSize}},\n  \"pageNumber\": {{pageNumber}},\n  \"search\": \"{{search}}\"\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/external/outcomes/get",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "external",
            "outcomes",
            "get"
          ]
        }
      },
      "response": []
    },
    {
      "name": "Receipts - Add",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"documentType\": 5,\n  \"date\": \"{{toDate}}\",\n  \"ovrlPrice\": 100,\n  \"payments\": [{ \"type\": 0, \"price\": 100, \"date\": \"{{toDate}}\" }],\n  \"client\": { \"name\": \"Client\", \"phone\": \"0500000000\" }\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/external/receipts/add",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "external",
            "receipts",
            "add"
          ]
        }
      },
      "response": []
    },
    {
      "name": "Receipts - Get",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"pageSize\": {{pageSize}},\n  \"pageNumber\": {{pageNumber}},\n  \"search\": \"{{search}}\"\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/external/receipts/get",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "external",
            "receipts",
            "get"
          ]
        }
      },
      "response": []
    },
    {
      "name": "Receipts - Add Invoice Receipt",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"date\": \"{{toDate}}\",\n  \"ovrlPrice\": 118,\n  \"items\": [{ \"name\": \"Item\", \"quantity\": 1, \"unitPrice\": 100 }],\n  \"payments\": [{ \"type\": 0, \"price\": 118, \"date\": \"{{toDate}}\" }],\n  \"client\": { \"name\": \"Client\", \"phone\": \"0500000000\" }\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/external/receipts/add-invoice-receipt",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "external",
            "receipts",
            "add-invoice-receipt"
          ]
        }
      },
      "response": []
    },
    {
      "name": "Documents - Create (Type 1 Invoice)",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"type\": 1,\n    \"date\": \"{{toDate}}\",\n    \"valueDate\": \"{{toDate}}\",\n    \"ovrlPrice\": 100,\n    \"title\": \"Invoice sample\",\n    \"description\": \"Postman test\",\n    \"items\": [\n        {\n            \"name\": \"Service\",\n            \"quantity\": 1,\n            \"unitPrice\": 100\n        }\n    ],\n    \"client\": {\n        \"name\": \"לקוח ראשון\",\n        \"businessNumber\": \"237546221\",\n        \"contactName\": \"לקוח 1\",\n        \"phone\": \"0501234567\",\n        \"mail\": \"jane@example.com\",\n        \"address\": \"תל-אביב\"\n    }\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/external/documents/create",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "external",
            "documents",
            "create"
          ]
        }
      },
      "response": []
    },
    {
      "name": "Documents - Create (Type 2 Outcome)",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"type\": 2,\n    \"documentTypeId\": \"{{outcomeDocumentTypeId}}\",\n    \"categoryId\": \"{{categoryId}}\",\n    \"date\": \"{{toDate}}\",\n    \"valueDate\": \"{{toDate}}\",\n    \"ovrlPrice\": 100,\n    \"title\": \"Outcome sample\",\n    \"description\": \"Postman test\",\n    \"supplier\": {\n        \"name\": \"ספק ראשון\",\n        \"businessNumber\": \"333138923\",\n        \"contactName\": \"ספק 1\",\n        \"phone\": \"0544434567\",\n        \"mail\": \"jane@example.com\",\n        \"address\": \"תל-אביב\"\n    }\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/external/documents/create",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "external",
            "documents",
            "create"
          ]
        }
      },
      "response": []
    },
    {
      "name": "Documents - Create (Type 3 Receipt)",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"type\": 3,\n    \"date\": \"{{toDate}}\",\n    \"valueDate\": \"{{toDate}}\",\n    \"ovrlPrice\": 100,\n    \"title\": \"Receipt sample\",\n    \"description\": \"Postman test\",\n    \"payments\": [\n        {\n            \"type\": 0,\n            \"price\": 100,\n            \"date\": \"{{toDate}}\"\n        }\n    ],\n    \"client\": {\n        \"name\": \"לקוח ראשון\",\n        \"businessNumber\": \"237546221\",\n        \"contactName\": \"לקוח 1\",\n        \"phone\": \"0501234567\",\n        \"mail\": \"jane@example.com\",\n        \"address\": \"תל-אביב\"\n    }\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/external/documents/create",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "external",
            "documents",
            "create"
          ]
        }
      },
      "response": []
    },
    {
      "name": "Documents - Create (Type 4 Tax Invoice Receipt)",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"type\": 4,\n    \"date\": \"{{toDate}}\",\n    \"valueDate\": \"{{toDate}}\",\n    \"ovrlPrice\": 118,\n    \"title\": \"Bundle sample\",\n    \"description\": \"Postman test\",\n    \"items\": [\n        {\n            \"name\": \"Item\",\n            \"quantity\": 1,\n            \"unitPrice\": 100\n        }\n    ],\n    \"payments\": [\n        {\n            \"type\": 0,\n            \"price\": 118,\n            \"date\": \"{{toDate}}\"\n        }\n    ],\n    \"client\": {\n        \"name\": \"לקוח ראשון\",\n        \"businessNumber\": \"237546221\",\n        \"contactName\": \"לקוח 1\",\n        \"phone\": \"0501234567\",\n        \"mail\": \"jane@example.com\",\n        \"address\": \"תל-אביב\"\n    }\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/external/documents/create",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "external",
            "documents",
            "create"
          ]
        }
      },
      "response": []
    },
    {
      "name": "Documents - Get",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"clientId\": \"{{clientKey}}\",\n  \"pageSize\": {{pageSize}},\n  \"pageNumber\": {{pageNumber}},\n  \"type\": [1,2,3,4],\n  \"search\": \"{{search}}\"\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/external/documents/get",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "external",
            "documents",
            "get"
          ]
        }
      },
      "response": []
    },
    {
      "name": "Documents - Cancel",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"documentId\": \"{{documentId}}\"\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/external/documents/cancel",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "external",
            "documents",
            "cancel"
          ]
        }
      },
      "response": []
    },
    {
      "name": "Reports - Karteset",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"from\": \"{{fromDate}}\",\n  \"to\": \"{{toDate}}\",\n  \"sortCodeFrom\": \"0\",\n  \"sortCodeTo\": \"99999999\",\n  \"accountKeyFrom\": \"0\",\n  \"accountKeyTo\": \"99999999\",\n  \"includeOpeningBalance\": false\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/external/reports/karteset",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "external",
            "reports",
            "karteset"
          ]
        }
      },
      "response": []
    },
    {
      "name": "Reports - Mazaan",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"from\": \"{{fromDate}}\",\n  \"to\": \"{{toDate}}\",\n  \"sortCodeFrom\": \"0\",\n  \"sortCodeTo\": \"99999999\"\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/external/reports/mazaan",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "external",
            "reports",
            "mazaan"
          ]
        }
      },
      "response": []
    },
    {
      "name": "Reports - Incomes",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"from\": \"{{fromDate}}\",\n  \"to\": \"{{toDate}}\"\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/external/reports/incomes",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "external",
            "reports",
            "incomes"
          ]
        }
      },
      "response": []
    },
    {
      "name": "Reports - Expenses",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"from\": \"{{fromDate}}\",\n  \"to\": \"{{toDate}}\"\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/external/reports/expenses",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "external",
            "reports",
            "expenses"
          ]
        }
      },
      "response": []
    },
    {
      "name": "Reports - createBKMVDATA",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"from\": \"{{fromDate}}\",\n  \"to\": \"{{toDate}}\"\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/external/reports/createBKMVDATA",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "external",
            "reports",
            "createBKMVDATA"
          ]
        }
      },
      "response": []
    },
    {
      "name": "Tax - Connect",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/external/tax/connect",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "external",
            "tax",
            "connect"
          ]
        }
      },
      "response": []
    },
    {
      "name": "Tax - Verify",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/external/tax/verify",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "external",
            "tax",
            "verify"
          ]
        }
      },
      "response": []
    },
    {
      "name": "Account - Details",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/external/account/details",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "external",
            "account",
            "details"
          ]
        }
      },
      "response": []
    },
    {
      "name": "Account - Login URL",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/api/external/account/login-url",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "external",
            "account",
            "login-url"
          ]
        }
      },
      "response": []
    }
  ],
  "auth": {
    "type": "apikey",
    "apikey": [
      {
        "key": "key",
        "value": "X-API-Key",
        "type": "string"
      },
      {
        "key": "value",
        "value": "{{apiKey}}",
        "type": "string"
      },
      {
        "key": "in",
        "value": "header",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://localhost:7174"
    },
    {
      "key": "apiKey",
      "value": "84b397f2-8030-4717-b"
    },
    {
      "key": "clientKey",
      "value": "-1"
    },
    {
      "key": "categoryId",
      "value": "00000000-0000-0000-0000-000000000000"
    },
    {
      "key": "outcomeDocumentTypeId",
      "value": "00000000-0000-0000-0000-000000000000"
    },
    {
      "key": "documentId",
      "value": "00000000-0000-0000-0000-000000000000"
    },
    {
      "key": "pageSize",
      "value": "20"
    },
    {
      "key": "pageNumber",
      "value": "1"
    },
    {
      "key": "search",
      "value": ""
    },
    {
      "key": "fromDate",
      "value": "2026-01-01T00:00:00Z"
    },
    {
      "key": "toDate",
      "value": "2026-04-20T00:00:00Z"
    }
  ]
}