curl --request PUT \
--url https://{host}/api/v3/expenseTempItems/{expenseTempItemId} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"purchasedOn": "2023-12-25",
"originalTransaction": {
"grossAmount": 123,
"currencyId": "<string>",
"isExpenseAbroad": false
},
"processedAmounts": {
"grossAmount": 123,
"currencyId": "<string>",
"currency": {
"id": "<string>",
"name": "<string>",
"url": "<string>"
}
},
"expenseNatureId": 2,
"quantity": 1,
"ownerId": 123,
"paymentMethodId": 0,
"deviceId": "<string>",
"mileage": {
"distance": 123,
"power": 123,
"waypoints": [
"<unknown>"
]
},
"attendees": {
"internal": [
{
"id": 123,
"name": "<string>",
"url": "<string>",
"displayName": "<string>",
"modifiedOn": "<string>",
"lastName": "<string>",
"firstName": "<string>",
"login": "<string>",
"mail": "<string>",
"dtContractStart": "<string>",
"birthDate": "<string>",
"employeeNumber": "<string>",
"calendar": {
"id": 123,
"url": "<string>",
"name": "<string>"
},
"culture": {
"id": 123,
"name": "<string>",
"url": "<string>"
},
"picture": {
"id": "<string>",
"url": "<string>",
"name": "<string>"
},
"applicationData": {
"profile_figgo": {
"id": 123,
"name": "<string>",
"url": "<string>"
},
"profile_utime": {
"id": 123,
"name": "<string>",
"url": "<string>"
}
},
"legalEntity": {
"id": 123,
"name": "<string>",
"url": "<string>"
},
"department": {
"id": 123,
"name": "<string>",
"url": "<string>"
},
"manager": {
"id": 123,
"name": "<string>",
"url": "<string>"
},
"rolePrincipal": {
"id": 123,
"name": "<string>",
"url": "<string>"
},
"habilitedRoles": [
{
"id": 123,
"name": "<string>",
"url": "<string>"
}
],
"userWorkCycles": [
{
"Id": 123,
"OwnerID": 123,
"WorkCycleID": 123,
"StartsOn": "<string>",
"EndsOn": "<string>"
}
],
"dtContractEnd": "<unknown>"
}
],
"external": [
{
"id": 2,
"displayName": "<string>"
}
]
},
"axisSections": [
{
"id": 2
}
],
"customFields": {},
"merchant": "<string>",
"comment": "<string>",
"expenseReceipts": [
{
"id": "f0d01fd0-5f27-4061-8dca-bee6318b0103",
"originalReceipt": {
"id": "cb0aae89-56c9-48db-9052-48981660e0f7",
"name": "receipt-f0d01fd0-5f27-4061-8dca-bee6318b0103.pdf",
"href": "https://example.ilucca.net/api/v3/ExpenseReceipts/f0d01fd0-5f27-4061-8dca-bee6318b0103/originalReceiptFile",
"extension": ".pdf"
},
"receiptPreview": {
"id": "cb0aae89-56c9-48db-9052-48981660e0f7",
"name": "receipt-f0d01fd0-5f27-4061-8dca-bee6318b0103-preview.pdf",
"href": "https://example.ilucca.net/api/v3/ExpenseReceipts/f0d01fd0-5f27-4061-8dca-bee6318b0103/receiptPreviewFile",
"extension": ".pdf"
}
}
],
"sourceId": {
"id": "<string>"
},
"source": {
"id": 123,
"code": "<string>"
},
"paymentMethod": {
"id": 123,
"code": "<string>"
},
"statusId": {
"id": 0
},
"status": {
"id": 123,
"code": "<string>"
}
}
'{
"data": {
"id": 2,
"purchasedOn": "2023-12-25",
"originalTransaction": {
"grossAmount": 123,
"currencyId": "<string>",
"isExpenseAbroad": false
},
"processedAmounts": {
"grossAmount": 123,
"currencyId": "<string>",
"currency": {
"id": "<string>",
"name": "<string>",
"url": "<string>"
},
"netAmount": 123,
"vatBases": [
{
"countryVatRateId": 2,
"countryVatRate": {
"id": 2,
"name": "<string>",
"url": "<string>"
},
"vatAmount": 123,
"amountExcludingVat": 123
}
]
},
"expenseNatureId": 2,
"quantity": 1,
"ownerId": 123,
"paymentMethodId": 0,
"deviceId": "<string>",
"mileage": {
"distance": 123,
"power": 123,
"waypoints": [
"<unknown>"
]
},
"effectiveQuantity": 2,
"attendees": {
"internal": [
{
"id": 123,
"name": "<string>",
"url": "<string>",
"displayName": "<string>",
"modifiedOn": "<string>",
"lastName": "<string>",
"firstName": "<string>",
"login": "<string>",
"mail": "<string>",
"dtContractStart": "<string>",
"birthDate": "<string>",
"employeeNumber": "<string>",
"calendar": {
"id": 123,
"url": "<string>",
"name": "<string>"
},
"culture": {
"id": 123,
"name": "<string>",
"url": "<string>"
},
"picture": {
"id": "<string>",
"url": "<string>",
"name": "<string>"
},
"applicationData": {
"profile_figgo": {
"id": 123,
"name": "<string>",
"url": "<string>"
},
"profile_utime": {
"id": 123,
"name": "<string>",
"url": "<string>"
}
},
"legalEntity": {
"id": 123,
"name": "<string>",
"url": "<string>"
},
"department": {
"id": 123,
"name": "<string>",
"url": "<string>"
},
"manager": {
"id": 123,
"name": "<string>",
"url": "<string>"
},
"rolePrincipal": {
"id": 123,
"name": "<string>",
"url": "<string>"
},
"habilitedRoles": [
{
"id": 123,
"name": "<string>",
"url": "<string>"
}
],
"userWorkCycles": [
{
"Id": 123,
"OwnerID": 123,
"WorkCycleID": 123,
"StartsOn": "<string>",
"EndsOn": "<string>"
}
],
"dtContractEnd": "<unknown>"
}
],
"external": [
{
"id": 2,
"displayName": "<string>"
}
]
},
"axisSections": [
{
"id": 2,
"code": "<string>",
"name": "<string>",
"multilingualName": "<string>",
"description": "<string>",
"ownerId": 2,
"startOn": "2023-11-07T05:31:56Z",
"endOn": "2023-11-07T05:31:56Z",
"active": true,
"axisId": 123,
"parentAxisSections": [
{}
],
"childrenAxisSections": [
{}
]
}
],
"customFields": {},
"merchant": "<string>",
"comment": "<string>",
"expenseReceipts": [
{
"id": "f0d01fd0-5f27-4061-8dca-bee6318b0103",
"originalReceipt": {
"id": "cb0aae89-56c9-48db-9052-48981660e0f7",
"name": "receipt-f0d01fd0-5f27-4061-8dca-bee6318b0103.pdf",
"href": "https://example.ilucca.net/api/v3/ExpenseReceipts/f0d01fd0-5f27-4061-8dca-bee6318b0103/originalReceiptFile",
"extension": ".pdf"
},
"receiptPreview": {
"id": "cb0aae89-56c9-48db-9052-48981660e0f7",
"name": "receipt-f0d01fd0-5f27-4061-8dca-bee6318b0103-preview.pdf",
"href": "https://example.ilucca.net/api/v3/ExpenseReceipts/f0d01fd0-5f27-4061-8dca-bee6318b0103/receiptPreviewFile",
"extension": ".pdf"
}
}
],
"authorizedActions": {
"isCancellable": true,
"isEditable": true
},
"sourceId": {
"id": "<string>"
},
"source": {
"id": 123,
"name": "<string>",
"code": "<string>"
},
"paymentMethod": {
"id": 123,
"name": "<string>",
"code": "<string>"
},
"statusId": {
"id": 0
},
"status": {
"id": 123,
"name": "<string>",
"code": "<string>"
}
}
}Update a temporary expense item by its identifier.
curl --request PUT \
--url https://{host}/api/v3/expenseTempItems/{expenseTempItemId} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"purchasedOn": "2023-12-25",
"originalTransaction": {
"grossAmount": 123,
"currencyId": "<string>",
"isExpenseAbroad": false
},
"processedAmounts": {
"grossAmount": 123,
"currencyId": "<string>",
"currency": {
"id": "<string>",
"name": "<string>",
"url": "<string>"
}
},
"expenseNatureId": 2,
"quantity": 1,
"ownerId": 123,
"paymentMethodId": 0,
"deviceId": "<string>",
"mileage": {
"distance": 123,
"power": 123,
"waypoints": [
"<unknown>"
]
},
"attendees": {
"internal": [
{
"id": 123,
"name": "<string>",
"url": "<string>",
"displayName": "<string>",
"modifiedOn": "<string>",
"lastName": "<string>",
"firstName": "<string>",
"login": "<string>",
"mail": "<string>",
"dtContractStart": "<string>",
"birthDate": "<string>",
"employeeNumber": "<string>",
"calendar": {
"id": 123,
"url": "<string>",
"name": "<string>"
},
"culture": {
"id": 123,
"name": "<string>",
"url": "<string>"
},
"picture": {
"id": "<string>",
"url": "<string>",
"name": "<string>"
},
"applicationData": {
"profile_figgo": {
"id": 123,
"name": "<string>",
"url": "<string>"
},
"profile_utime": {
"id": 123,
"name": "<string>",
"url": "<string>"
}
},
"legalEntity": {
"id": 123,
"name": "<string>",
"url": "<string>"
},
"department": {
"id": 123,
"name": "<string>",
"url": "<string>"
},
"manager": {
"id": 123,
"name": "<string>",
"url": "<string>"
},
"rolePrincipal": {
"id": 123,
"name": "<string>",
"url": "<string>"
},
"habilitedRoles": [
{
"id": 123,
"name": "<string>",
"url": "<string>"
}
],
"userWorkCycles": [
{
"Id": 123,
"OwnerID": 123,
"WorkCycleID": 123,
"StartsOn": "<string>",
"EndsOn": "<string>"
}
],
"dtContractEnd": "<unknown>"
}
],
"external": [
{
"id": 2,
"displayName": "<string>"
}
]
},
"axisSections": [
{
"id": 2
}
],
"customFields": {},
"merchant": "<string>",
"comment": "<string>",
"expenseReceipts": [
{
"id": "f0d01fd0-5f27-4061-8dca-bee6318b0103",
"originalReceipt": {
"id": "cb0aae89-56c9-48db-9052-48981660e0f7",
"name": "receipt-f0d01fd0-5f27-4061-8dca-bee6318b0103.pdf",
"href": "https://example.ilucca.net/api/v3/ExpenseReceipts/f0d01fd0-5f27-4061-8dca-bee6318b0103/originalReceiptFile",
"extension": ".pdf"
},
"receiptPreview": {
"id": "cb0aae89-56c9-48db-9052-48981660e0f7",
"name": "receipt-f0d01fd0-5f27-4061-8dca-bee6318b0103-preview.pdf",
"href": "https://example.ilucca.net/api/v3/ExpenseReceipts/f0d01fd0-5f27-4061-8dca-bee6318b0103/receiptPreviewFile",
"extension": ".pdf"
}
}
],
"sourceId": {
"id": "<string>"
},
"source": {
"id": 123,
"code": "<string>"
},
"paymentMethod": {
"id": 123,
"code": "<string>"
},
"statusId": {
"id": 0
},
"status": {
"id": 123,
"code": "<string>"
}
}
'{
"data": {
"id": 2,
"purchasedOn": "2023-12-25",
"originalTransaction": {
"grossAmount": 123,
"currencyId": "<string>",
"isExpenseAbroad": false
},
"processedAmounts": {
"grossAmount": 123,
"currencyId": "<string>",
"currency": {
"id": "<string>",
"name": "<string>",
"url": "<string>"
},
"netAmount": 123,
"vatBases": [
{
"countryVatRateId": 2,
"countryVatRate": {
"id": 2,
"name": "<string>",
"url": "<string>"
},
"vatAmount": 123,
"amountExcludingVat": 123
}
]
},
"expenseNatureId": 2,
"quantity": 1,
"ownerId": 123,
"paymentMethodId": 0,
"deviceId": "<string>",
"mileage": {
"distance": 123,
"power": 123,
"waypoints": [
"<unknown>"
]
},
"effectiveQuantity": 2,
"attendees": {
"internal": [
{
"id": 123,
"name": "<string>",
"url": "<string>",
"displayName": "<string>",
"modifiedOn": "<string>",
"lastName": "<string>",
"firstName": "<string>",
"login": "<string>",
"mail": "<string>",
"dtContractStart": "<string>",
"birthDate": "<string>",
"employeeNumber": "<string>",
"calendar": {
"id": 123,
"url": "<string>",
"name": "<string>"
},
"culture": {
"id": 123,
"name": "<string>",
"url": "<string>"
},
"picture": {
"id": "<string>",
"url": "<string>",
"name": "<string>"
},
"applicationData": {
"profile_figgo": {
"id": 123,
"name": "<string>",
"url": "<string>"
},
"profile_utime": {
"id": 123,
"name": "<string>",
"url": "<string>"
}
},
"legalEntity": {
"id": 123,
"name": "<string>",
"url": "<string>"
},
"department": {
"id": 123,
"name": "<string>",
"url": "<string>"
},
"manager": {
"id": 123,
"name": "<string>",
"url": "<string>"
},
"rolePrincipal": {
"id": 123,
"name": "<string>",
"url": "<string>"
},
"habilitedRoles": [
{
"id": 123,
"name": "<string>",
"url": "<string>"
}
],
"userWorkCycles": [
{
"Id": 123,
"OwnerID": 123,
"WorkCycleID": 123,
"StartsOn": "<string>",
"EndsOn": "<string>"
}
],
"dtContractEnd": "<unknown>"
}
],
"external": [
{
"id": 2,
"displayName": "<string>"
}
]
},
"axisSections": [
{
"id": 2,
"code": "<string>",
"name": "<string>",
"multilingualName": "<string>",
"description": "<string>",
"ownerId": 2,
"startOn": "2023-11-07T05:31:56Z",
"endOn": "2023-11-07T05:31:56Z",
"active": true,
"axisId": 123,
"parentAxisSections": [
{}
],
"childrenAxisSections": [
{}
]
}
],
"customFields": {},
"merchant": "<string>",
"comment": "<string>",
"expenseReceipts": [
{
"id": "f0d01fd0-5f27-4061-8dca-bee6318b0103",
"originalReceipt": {
"id": "cb0aae89-56c9-48db-9052-48981660e0f7",
"name": "receipt-f0d01fd0-5f27-4061-8dca-bee6318b0103.pdf",
"href": "https://example.ilucca.net/api/v3/ExpenseReceipts/f0d01fd0-5f27-4061-8dca-bee6318b0103/originalReceiptFile",
"extension": ".pdf"
},
"receiptPreview": {
"id": "cb0aae89-56c9-48db-9052-48981660e0f7",
"name": "receipt-f0d01fd0-5f27-4061-8dca-bee6318b0103-preview.pdf",
"href": "https://example.ilucca.net/api/v3/ExpenseReceipts/f0d01fd0-5f27-4061-8dca-bee6318b0103/receiptPreviewFile",
"extension": ".pdf"
}
}
],
"authorizedActions": {
"isCancellable": true,
"isEditable": true
},
"sourceId": {
"id": "<string>"
},
"source": {
"id": 123,
"name": "<string>",
"code": "<string>"
},
"paymentMethod": {
"id": 123,
"name": "<string>",
"code": "<string>"
},
"statusId": {
"id": 0
},
"status": {
"id": 123,
"name": "<string>",
"code": "<string>"
}
}
}API key. Value must be formatted like so: lucca application={api_key}.
Unique identifier of the ExpenseTempItem.
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.
Day the expense was made.
Expense amount in original currency.
Show child attributes
0.01ISO code of the currency (eg: 'EUR', 'USD', 'GBP', ...).
Whether the expense was made in a different country than the owner establishment's.
Various amounts in the establishment's currency.
Show child attributes
Original transaction amount converted into the establishment's currency.
0.01ISO code of the currency (eg: 'EUR', 'USD', 'GBP', ...).
Nature of the expense: Meals, Train, Taxi, Hotels, Taxi, Mileage... List depends on the app configuration.
x >= 1The quantity when the expense type is 'Quantity'.
x >= 1Unique identifier of the user that made this expense.
How this expense was made: the owner used his money, an enterprise debit card, or a Cleemy card:
0, 1, 3 "Web"Additional information when the expense type is 'Invitation'.
Show child attributes
Attendees who work for the company (ie: Users in the system).
Show child attributes
11111111111Show child attributes
1Show child attributes
11Merchant of the expense.
The expense receipts (PDF file, image, ...). Technically, there could be more than one, but in reality, there’s usually just one.
Show child attributes
The ID of this expense receipt.
"f0d01fd0-5f27-4061-8dca-bee6318b0103"
The original file.
Show child attributes
The ID of the expense receipt file.
"cb0aae89-56c9-48db-9052-48981660e0f7"
"receipt-f0d01fd0-5f27-4061-8dca-bee6318b0103.pdf"
Follow this link to download this expense receipt original file.
"https://example.ilucca.net/api/v3/ExpenseReceipts/f0d01fd0-5f27-4061-8dca-bee6318b0103/originalReceiptFile"
Suffix to the name of a file (e.g., .txt, .pdf, .jppg) that indicates its content type or its intended use.
".pdf"
Lower resolution (i.e. thumbnail) file of the original expense receipt.
Show child attributes
The ID of the expense receipt file (same as original).
"cb0aae89-56c9-48db-9052-48981660e0f7"
"receipt-f0d01fd0-5f27-4061-8dca-bee6318b0103-preview.pdf"
Follow this link to download this expense receipt preview image (i.e. thumbnail), even if the original file is not an image (e.g. PDF).
Image size can be negotiated via the ?imageSize query parameter. Available sizes are: Small | Medium | Large | Full (e.g.: ?imageSize=Small).
If the original file is a PDF, then you may request any given page (default is the first) by adding the ?pageNumber query parameter (takes an integer that starts at 1).
"https://example.ilucca.net/api/v3/ExpenseReceipts/f0d01fd0-5f27-4061-8dca-bee6318b0103/receiptPreviewFile"
Suffix to the name of a file (e.g., .txt, .pdf, .jppg) that indicates its content type or its intended use.
".pdf"
The source describes how the expense was created:
Show child attributes
OK
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.
Show child attributes
x >= 1Day the expense was made.
Expense amount in original currency.
Show child attributes
0.01ISO code of the currency (eg: 'EUR', 'USD', 'GBP', ...).
Whether the expense was made in a different country than the owner establishment's.
Various amounts in the establishment's currency.
Show child attributes
Original transaction amount converted into the establishment's currency.
0.01ISO code of the currency (eg: 'EUR', 'USD', 'GBP', ...).
The converted amount after the expense policy has been applied.
0.01Show child attributes
x >= 10.010.01Nature of the expense: Meals, Train, Taxi, Hotels, Taxi, Mileage... List depends on the app configuration.
x >= 1The quantity when the expense type is 'Quantity'.
x >= 1Unique identifier of the user that made this expense.
How this expense was made: the owner used his money, an enterprise debit card, or a Cleemy card:
0, 1, 3 "Web"Additional information when the expense type is mileage.
Calculated quantity when the expense type is 'Quantity' or 'Invitations' (number of attendees).
x >= 1Additional information when the expense type is 'Invitation'.
Show child attributes
Attendees who work for the company (ie: Users in the system).
Show child attributes
11111111111Show child attributes
1Show child attributes
11Show child attributes
x >= 1x >= 1Merchant of the expense.
The expense receipts (PDF file, image, ...). Technically, there could be more than one, but in reality, there’s usually just one.
Show child attributes
The ID of this expense receipt.
"f0d01fd0-5f27-4061-8dca-bee6318b0103"
The original file.
Show child attributes
The ID of the expense receipt file.
"cb0aae89-56c9-48db-9052-48981660e0f7"
"receipt-f0d01fd0-5f27-4061-8dca-bee6318b0103.pdf"
Follow this link to download this expense receipt original file.
"https://example.ilucca.net/api/v3/ExpenseReceipts/f0d01fd0-5f27-4061-8dca-bee6318b0103/originalReceiptFile"
Suffix to the name of a file (e.g., .txt, .pdf, .jppg) that indicates its content type or its intended use.
".pdf"
Lower resolution (i.e. thumbnail) file of the original expense receipt.
Show child attributes
The ID of the expense receipt file (same as original).
"cb0aae89-56c9-48db-9052-48981660e0f7"
"receipt-f0d01fd0-5f27-4061-8dca-bee6318b0103-preview.pdf"
Follow this link to download this expense receipt preview image (i.e. thumbnail), even if the original file is not an image (e.g. PDF).
Image size can be negotiated via the ?imageSize query parameter. Available sizes are: Small | Medium | Large | Full (e.g.: ?imageSize=Small).
If the original file is a PDF, then you may request any given page (default is the first) by adding the ?pageNumber query parameter (takes an integer that starts at 1).
"https://example.ilucca.net/api/v3/ExpenseReceipts/f0d01fd0-5f27-4061-8dca-bee6318b0103/receiptPreviewFile"
Suffix to the name of a file (e.g., .txt, .pdf, .jppg) that indicates its content type or its intended use.
".pdf"
The source describes how the expense was created:
Show child attributes
Status of the expense.
Show child attributes
0, 1, 2 Was this page helpful?