curl --request POST \
--url https://{host}/api/v3/expenseClaims/creation \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
[
{
"title": "<string>",
"expenseTempItems": [
{
"id": 123
}
]
}
]
'{
"data": [
{
"createdExpenseClaim": {
"id": 123,
"nextApprover": {
"firstName": "<string>",
"lastName": "<string>"
}
}
}
]
}When a user wants to declare his expenses, he creates an ExpenseClaim.
An ExpenseClaim is created by regrouping one or more ExpenseTempItems and converting them into ExpenseClaimItems.
Once created, an ExpenseClaim has to be approved by his manager.
Multiple ExpenseClaims can be created through a single request.
curl --request POST \
--url https://{host}/api/v3/expenseClaims/creation \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
[
{
"title": "<string>",
"expenseTempItems": [
{
"id": 123
}
]
}
]
'{
"data": [
{
"createdExpenseClaim": {
"id": 123,
"nextApprover": {
"firstName": "<string>",
"lastName": "<string>"
}
}
}
]
}API key. Value must be formatted like so: lucca application={api_key}.
OK
Show child attributes
Was this page helpful?