List expense claims
curl --request GET \
--url https://api.scoutworks.app/api/v1/expense-claims \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.scoutworks.app/api/v1/expense-claims"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.scoutworks.app/api/v1/expense-claims', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"referenceNumber": "<string>",
"status": "pending",
"submittedAt": "2023-11-07T05:31:56Z",
"total": "<string>",
"lines": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"paymentType": "reimburse",
"amount": "<string>",
"expenseDate": "2023-12-25",
"categoryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"eventId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"restrictedFundId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"budgetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sectionShares": [
{
"sectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": "<string>"
}
],
"status": "pending",
"approvedAt": "2023-11-07T05:31:56Z",
"rejectedAt": "2023-11-07T05:31:56Z",
"settledAt": "2023-11-07T05:31:56Z",
"settledAs": "reimbursed",
"transactionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"supplierId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dueDate": "2023-12-25",
"mileage": {
"miles": 123,
"returnJourney": true,
"passengers": 0,
"ratePence": 0,
"passengerRatePence": 0
},
"description": "<string>",
"supplierName": "<string>",
"approvedByName": "<string>",
"settledByName": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"claimantName": "<string>",
"description": "<string>"
}
],
"nextCursor": "<string>",
"nextUpdatedSince": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}Expenses
List expense claims
Submitted expense claims with their lines, oldest first. A claim’s status and total come from its lines, as the claims table in Scoutworks shows them. Drafts and deleted claims are never included. Notes, rejection reasons, receipts, supplier bank details and mileage postcodes are never returned. With expenses.people:read too, each claim also carries claimantName and description, and each line its description, supplierName, approvedByName and settledByName. Pass updatedSince to read only claims whose envelope or lines changed.
GET
/
expense-claims
List expense claims
curl --request GET \
--url https://api.scoutworks.app/api/v1/expense-claims \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.scoutworks.app/api/v1/expense-claims"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.scoutworks.app/api/v1/expense-claims', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"referenceNumber": "<string>",
"status": "pending",
"submittedAt": "2023-11-07T05:31:56Z",
"total": "<string>",
"lines": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"paymentType": "reimburse",
"amount": "<string>",
"expenseDate": "2023-12-25",
"categoryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"eventId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"restrictedFundId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"budgetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sectionShares": [
{
"sectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": "<string>"
}
],
"status": "pending",
"approvedAt": "2023-11-07T05:31:56Z",
"rejectedAt": "2023-11-07T05:31:56Z",
"settledAt": "2023-11-07T05:31:56Z",
"settledAs": "reimbursed",
"transactionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"supplierId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dueDate": "2023-12-25",
"mileage": {
"miles": 123,
"returnJourney": true,
"passengers": 0,
"ratePence": 0,
"passengerRatePence": 0
},
"description": "<string>",
"supplierName": "<string>",
"approvedByName": "<string>",
"settledByName": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"claimantName": "<string>",
"description": "<string>"
}
],
"nextCursor": "<string>",
"nextUpdatedSince": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}Authorizations
Query Parameters
Response
OK