VUZDevelopers

Create new expense

POST
/expense-management/expenses
X-Api-Key<token>

Business API key, e.g. vuz_ab12cdef... Created via Settings → Integrations → API Keys. Unlike partner keys, a public API key's STRING does not encode its environment — isolation instead comes from a completely separate sandbox database: a key minted on the Sandbox server (above) only ever reads/writes sandbox data and can never see or affect production, regardless of what the key looks like.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/expense-management/expenses" \  -H "Content-Type: application/json" \  -d '{    "description": "string",    "amount": 0,    "expenseDate": "2019-08-24"  }'
{  "id": "string",  "businessId": "string",  "userId": "string",  "description": "string",  "amount": 0,  "vatAmount": 0,  "vatRate": 0,  "totalAmount": 0,  "vatRecognitionRate": 1,  "incomeTaxRecognitionRate": 1,  "status": "processing",  "expenseDate": "2019-08-24T14:15:22Z",  "paidDate": "2019-08-24T14:15:22Z",  "categoryId": "string",  "category": {    "id": "string",    "businessId": "string",    "code": "OFFICE_SUPPLIES",    "nameHe": "ציוד משרדי",    "nameEn": "Office Supplies",    "descriptionHe": "string",    "descriptionEn": "string",    "defaultVatRecognitionRate": 1,    "defaultIncomeTaxRecognitionRate": 1,    "icon": "fi-rr-box",    "color": "#3b82f6",    "sortOrder": 0,    "isActive": true,    "isSystem": false,    "rules": {},    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  },  "categoryCode": "C18_S16",  "parentCategoryCode": "C18",  "supplierId": "string",  "receiptNumber": "string",  "currency": "ILS",  "exchangeRate": 3.65,  "totalAmountIls": 731.7,  "importSource": "manual",  "metadata": {},  "ocrMetadata": {},  "aiOriginalExtraction": {},  "isDuplicate": true,  "duplicateLevel": "none",  "duplicateOfId": "string",  "notAdmissibleExpense": true,  "contentHash": "string",  "approvedBy": "string",  "approvedAt": "2019-08-24T14:15:22Z",  "receipts": [    {      "id": "string",      "originalFilename": "string",      "mimeType": "string",      "fileSize": 0,      "storageKey": "string",      "signedUrl": "string",      "ocrData": {},      "ocrProcessedAt": "2019-08-24T14:15:22Z",      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    }  ],  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z",  "deletedAt": "2019-08-24T14:15:22Z"}