List ExpenseClaims
curl --request GET \
--url https://{host}/api/v3/expenseClaims \
--header 'Authorization: <authorization>'import requests
url = "https://{host}/api/v3/expenseClaims"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://{host}/api/v3/expenseClaims', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{host}/api/v3/expenseClaims",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{host}/api/v3/expenseClaims"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{host}/api/v3/expenseClaims")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/api/v3/expenseClaims")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"data": {
"items": [
{
"declaredOn": "2023-11-07T05:31:56Z",
"createdOn": "2023-11-07T05:31:56Z",
"modifiedOn": "2023-11-07T05:31:56Z",
"id": 2,
"name": "<string>",
"paymentReceivedOn": "2023-11-07T05:31:56Z",
"sourceId": {
"id": "<string>"
},
"source": {
"id": 123,
"name": "<string>",
"code": "<string>"
},
"paymentMethod": {
"id": 123,
"name": "<string>",
"code": "<string>"
},
"statusId": {},
"status": {
"id": 123,
"name": "<string>",
"code": "<string>"
},
"approvalStateId": {},
"approvalState": {
"id": 123,
"name": "<string>",
"code": "<string>"
},
"authorizedActions": {
"isCancellable": true,
"isEditable": true,
"isApprovable": true,
"isControllable": true,
"isUnControllable": true
},
"ownerId": 123,
"owner": {
"id": 2,
"name": "<string>",
"url": "<string>",
"firstName": "<string>",
"lastName": "<string>"
},
"authorId": 123,
"author": {
"id": 123,
"name": "<string>",
"url": "<string>"
},
"legalEntityId": 123,
"legalEntity": {
"id": 123,
"name": "<string>",
"url": "<string>"
},
"departmentId": 123,
"department": {
"id": 123,
"name": "<string>",
"url": "<string>"
},
"currencyId": "<string>",
"currency": {
"id": "<string>",
"name": "<string>",
"url": "<string>"
}
}
]
}
}{
"Status": 401,
"Message": "Unauthorized"
}{
"Status": 401,
"Message": "Unauthorized"
}{
"Status": 401,
"Message": "Unauthorized"
}Expense-claims
List ExpenseClaims
Retrieve a list of ExpenseClaims.
The declaredOn query parameter can operate comparisons with a given date-time value:
?declaredOn=2021-01-01: strict equality.?declaredOn=since,2021-01-01: greater than or equal.?declaredOn=until,2021-01-01: lower than or equal.?declaredOn=between,2021-01-01,2021-01-31: comprised between two dates.
GET
/
api
/
v3
/
expenseClaims
List ExpenseClaims
curl --request GET \
--url https://{host}/api/v3/expenseClaims \
--header 'Authorization: <authorization>'import requests
url = "https://{host}/api/v3/expenseClaims"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://{host}/api/v3/expenseClaims', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{host}/api/v3/expenseClaims",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{host}/api/v3/expenseClaims"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{host}/api/v3/expenseClaims")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/api/v3/expenseClaims")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"data": {
"items": [
{
"declaredOn": "2023-11-07T05:31:56Z",
"createdOn": "2023-11-07T05:31:56Z",
"modifiedOn": "2023-11-07T05:31:56Z",
"id": 2,
"name": "<string>",
"paymentReceivedOn": "2023-11-07T05:31:56Z",
"sourceId": {
"id": "<string>"
},
"source": {
"id": 123,
"name": "<string>",
"code": "<string>"
},
"paymentMethod": {
"id": 123,
"name": "<string>",
"code": "<string>"
},
"statusId": {},
"status": {
"id": 123,
"name": "<string>",
"code": "<string>"
},
"approvalStateId": {},
"approvalState": {
"id": 123,
"name": "<string>",
"code": "<string>"
},
"authorizedActions": {
"isCancellable": true,
"isEditable": true,
"isApprovable": true,
"isControllable": true,
"isUnControllable": true
},
"ownerId": 123,
"owner": {
"id": 2,
"name": "<string>",
"url": "<string>",
"firstName": "<string>",
"lastName": "<string>"
},
"authorId": 123,
"author": {
"id": 123,
"name": "<string>",
"url": "<string>"
},
"legalEntityId": 123,
"legalEntity": {
"id": 123,
"name": "<string>",
"url": "<string>"
},
"departmentId": 123,
"department": {
"id": 123,
"name": "<string>",
"url": "<string>"
},
"currencyId": "<string>",
"currency": {
"id": "<string>",
"name": "<string>",
"url": "<string>"
}
}
]
}
}{
"Status": 401,
"Message": "Unauthorized"
}{
"Status": 401,
"Message": "Unauthorized"
}{
"Status": 401,
"Message": "Unauthorized"
}Headers
API key. Value must be formatted like so: lucca application={api_key}.
Query Parameters
Comma-separated list of user identifiers (int).
{fieldName},{'asc'||'desc'}. Example: ?orderby=declaredOn,desc
Examples: between,2022-01-01,202201-31.
{offset},{limit}. Defaults to 0,1000.
Example:
"100,0"
1: Created; 2: PartiallyApproved; 3: Approved; 4: Controlled; 5: ApprovedAndControlled; 6: PaymentInitiated; 7: Paid; 8: Refused; 9: Cancelled. Examples: 2,3 or PartiallyApproved,Approved.
Response
OK
Show child attributes
Show child attributes
Was this page helpful?
⌘I