Documentation
Organization Structure API
- Axis-sections
- Departments
- Legal-Units
- Establishments
Core HR API
- Employees Directory
- Guides
Expenses API
- Expense-temp-items
- Expense-claims
- Expense-claim-items
- Exports
- Guides
Invoices API
- Guides
Absences API
- Leaves
- Leave-requests
- Sick-leaves
- Imports
- Guides
Office API
- User-locations
- Work-locations
Project API
- Clients
- Projects
- Project services
- Organizations
- Financials
Time Settings API
- UserDates
- Workcycle-exceptions
- Working-time-arrangement
Timesheet API
- Time-entries
- Timesheets
- Reports
- Guides
Mealvouchers API
- Statutory
- Computation
Compensation API
- Fixed-natures
- Fixed-items
- Variable-natures
- Variable-items
Training API
- Training-demands
- Realized-trainings
Expense-temp-items
Create a new temporary expense
Create a new temporary-expense-item.
POST
/
api
/
v3
/
expenseTempItems
Copy
curl --request POST \
--url https://{host}/api/v3/expenseTempItems \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"expenseNatureId": 1,
"purchasedOn": "2025-01-01",
"paymentMethodId": 1,
"quantity": 1,
"originalTransaction": {
"currencyId": "EUR",
"grossAmount": 25
},
"processedAmounts": {
"grossAmount": 25,
"currencyId": "EUR"
},
"deviceId": "Web",
"ownerId": 1,
"merchant": "SNCF",
"comment": "Travel to Paris"
}'
Copy
{
"id": 12,
"purchasedOn": "2025-01-01",
"originalTransaction": {
"grossAmount": 25,
"currencyId": "EUR",
"isExpenseAbroad": false
},
"processedAmounts": {
"grossAmount": 25,
"currencyId": "EUR",
"netAmount\"": 25,
"vatBases": [
{
"countryVatRateId": 2,
"countryVatRate": {
"id": "2,",
"name": "<string>",
"url": "<string>"
},
"vatAmount\"": 25,
"amountExcludingVat\"": 25
}
]
},
"expenseNatureId": 1,
"quantity": 1,
"ownerId": 1,
"paymentMethodId": 1,
"deviceId": "Web",
"mileage": null,
"effectiveQuantity": 1,
"attendees": {
"internal": [],
"external": []
},
"axisSections": [],
"customFields": {},
"merchant": "SNCF",
"comment": "Travel to Paris",
"expenseReceipts": [],
"authorizedActions": {
"isCancellable": true,
"isEditable": true
},
"sourceId": {
"id": 6
},
"statusId": {
"id": 0
}
}
Headers
API key. Value must be formatted like so: lucca application={api_key}
.
Body
application/json
The ExpenseTempItem
, or "temporary expense" is an expense that has not yet been declared (within an expense report) by its owner (the user who made the expense). Once submitted within an expense report, the expense turns into an ExpenseClaimItem
.
Response
200
application/json
OK
The response is of type object
.
Was this page helpful?
Copy
curl --request POST \
--url https://{host}/api/v3/expenseTempItems \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"expenseNatureId": 1,
"purchasedOn": "2025-01-01",
"paymentMethodId": 1,
"quantity": 1,
"originalTransaction": {
"currencyId": "EUR",
"grossAmount": 25
},
"processedAmounts": {
"grossAmount": 25,
"currencyId": "EUR"
},
"deviceId": "Web",
"ownerId": 1,
"merchant": "SNCF",
"comment": "Travel to Paris"
}'
Copy
{
"id": 12,
"purchasedOn": "2025-01-01",
"originalTransaction": {
"grossAmount": 25,
"currencyId": "EUR",
"isExpenseAbroad": false
},
"processedAmounts": {
"grossAmount": 25,
"currencyId": "EUR",
"netAmount\"": 25,
"vatBases": [
{
"countryVatRateId": 2,
"countryVatRate": {
"id": "2,",
"name": "<string>",
"url": "<string>"
},
"vatAmount\"": 25,
"amountExcludingVat\"": 25
}
]
},
"expenseNatureId": 1,
"quantity": 1,
"ownerId": 1,
"paymentMethodId": 1,
"deviceId": "Web",
"mileage": null,
"effectiveQuantity": 1,
"attendees": {
"internal": [],
"external": []
},
"axisSections": [],
"customFields": {},
"merchant": "SNCF",
"comment": "Travel to Paris",
"expenseReceipts": [],
"authorizedActions": {
"isCancellable": true,
"isEditable": true
},
"sourceId": {
"id": 6
},
"statusId": {
"id": 0
}
}
Assistant
Responses are generated using AI and may contain mistakes.