List expense report exports for an organization
Returns a paginated list of expense report exports for the given organization.
curl --request GET \
--url https://stage-api.findity.com/api/v1/admin/organizations/{id}/expensereportsexports \
--header 'Authorization: Bearer <token>'import requests
url = "https://stage-api.findity.com/api/v1/admin/organizations/{id}/expensereportsexports"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://stage-api.findity.com/api/v1/admin/organizations/{id}/expensereportsexports', 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://stage-api.findity.com/api/v1/admin/organizations/{id}/expensereportsexports",
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: Bearer <token>"
],
]);
$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://stage-api.findity.com/api/v1/admin/organizations/{id}/expensereportsexports"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://stage-api.findity.com/api/v1/admin/organizations/{id}/expensereportsexports")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://stage-api.findity.com/api/v1/admin/organizations/{id}/expensereportsexports")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"meta": {
"count": 2,
"total": 12
},
"data": [
{
"id": "test123",
"dateCreated": "2024-02-10T08:15:00Z",
"lastDownloaded": "2024-02-11T09:00:00Z",
"recipientId": "recipient-001",
"integrationPluginName": "test-integration",
"exportedBy": {
"id": "person-001",
"email": "user1@example.com",
"firstName": "User",
"lastName": "One"
},
"hasContent": true,
"numberOfReports": 5,
"accountingBasisUrl": "https://api.findity.com/api/admin/expensereports/accountingbasis/test123"
},
{
"id": "111113d4e5f6a7b8c9d0e1f2a3b41111",
"dateCreated": "2024-01-15T10:30:00Z",
"lastDownloaded": null,
"recipientId": "recipient-002",
"integrationPluginName": "test-integration-1",
"exportedBy": {
"firstName": "user2@example.com",
"lastName": ""
},
"hasContent": false,
"numberOfReports": 0,
"accountingBasisUrl": null
}
]
}{
"result": "error",
"code": "MISSING_PARAMETER",
"description": "Missing parameter: organizationId"
}{
"result": "error",
"code": "ORGANIZATION_NOT_FOUND",
"description": "Organization not found"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The unique identifier of the organization UUID without dashes (32-character hex string)
^[0-9a-fA-F]{32}$"05b8daba9ba14a49846fe77883248cf0"
Query Parameters
Max records to return
1 <= x <= 1000Offset to be used in list
x >= 0Comma-separated list of sort properties and directions.
Accepted property names: dateCreated, lastDownloaded, exportedBy.
Accepted directions: asc, desc.
When omitted, results are sorted by dateCreated:desc by default.
Parameter used in the search
Used for filtering
Used for filtering
Filter exports by integration plugin name. String, case-sensitive. Optional.
Response
OK
Hide child attributes
Hide child attributes
External id of the export. Used as fileId on the download endpoint.
Date when the export was created
Date when the export content was last downloaded. Updated when the raw export file is fetched via the download endpoint.
Recipient id
Name of the integration plugin that produced the export
"test-integration"
Information about the user that requested the export. Populated when the export has a known
requester. When a matching Person record exists, the object contains id, email,
firstName and lastName. When no matching Person is found, only firstName (set to the
requester's email address) and lastName (empty string) are present, id and email are
omitted in that case. Null when the export has no known requester.
Hide child attributes
Hide child attributes
Internal person id. Only present when a matching Person record was found.
Person email. Only present when a matching Person record was found.
First name of the person, or the email address when no matching Person was found.
Last name of the person, or an empty string when no matching Person was found.
True when the export has downloadable content
Number of expense reports contained in the export
URL to the related accounting basis or payment basis resource
curl --request GET \
--url https://stage-api.findity.com/api/v1/admin/organizations/{id}/expensereportsexports \
--header 'Authorization: Bearer <token>'import requests
url = "https://stage-api.findity.com/api/v1/admin/organizations/{id}/expensereportsexports"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://stage-api.findity.com/api/v1/admin/organizations/{id}/expensereportsexports', 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://stage-api.findity.com/api/v1/admin/organizations/{id}/expensereportsexports",
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: Bearer <token>"
],
]);
$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://stage-api.findity.com/api/v1/admin/organizations/{id}/expensereportsexports"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://stage-api.findity.com/api/v1/admin/organizations/{id}/expensereportsexports")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://stage-api.findity.com/api/v1/admin/organizations/{id}/expensereportsexports")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"meta": {
"count": 2,
"total": 12
},
"data": [
{
"id": "test123",
"dateCreated": "2024-02-10T08:15:00Z",
"lastDownloaded": "2024-02-11T09:00:00Z",
"recipientId": "recipient-001",
"integrationPluginName": "test-integration",
"exportedBy": {
"id": "person-001",
"email": "user1@example.com",
"firstName": "User",
"lastName": "One"
},
"hasContent": true,
"numberOfReports": 5,
"accountingBasisUrl": "https://api.findity.com/api/admin/expensereports/accountingbasis/test123"
},
{
"id": "111113d4e5f6a7b8c9d0e1f2a3b41111",
"dateCreated": "2024-01-15T10:30:00Z",
"lastDownloaded": null,
"recipientId": "recipient-002",
"integrationPluginName": "test-integration-1",
"exportedBy": {
"firstName": "user2@example.com",
"lastName": ""
},
"hasContent": false,
"numberOfReports": 0,
"accountingBasisUrl": null
}
]
}{
"result": "error",
"code": "MISSING_PARAMETER",
"description": "Missing parameter: organizationId"
}{
"result": "error",
"code": "ORGANIZATION_NOT_FOUND",
"description": "Organization not found"
}
