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"
}'
{
"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
}
}
Create a new temporary-expense-item.
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"
}'
{
"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
}
}
API key. Value must be formatted like so: lucca application={api_key}
.
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
.
OK
The response is of type object
.
Was this page helpful?