Get an expense claim
curl --request GET \
--url https://api.scoutworks.app/api/v1/expense-claims/{claimId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.scoutworks.app/api/v1/expense-claims/{claimId}"
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/{claimId}', 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>"
}
}{
"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
Get an expense claim
One submitted claim with its lines. 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.
GET
/
expense-claims
/
{claimId}
Get an expense claim
curl --request GET \
--url https://api.scoutworks.app/api/v1/expense-claims/{claimId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.scoutworks.app/api/v1/expense-claims/{claimId}"
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/{claimId}', 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>"
}
}{
"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"
]
}