curl --request POST \
--url https://external.pleo.io/v1/accounting-entries/receipts:search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json;charset=UTF-8' \
--data '
{
"includeDeleted": false,
"accountingEntryIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"employeeIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"mimeType": [],
"source": []
}
'import requests
url = "https://external.pleo.io/v1/accounting-entries/receipts:search"
payload = {
"includeDeleted": False,
"accountingEntryIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"employeeIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"mimeType": [],
"source": []
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json;charset=UTF-8"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'Content-Type': 'application/json;charset=UTF-8'
},
body: JSON.stringify({
includeDeleted: false,
accountingEntryIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
employeeIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
mimeType: [],
source: []
})
};
fetch('https://external.pleo.io/v1/accounting-entries/receipts:search', 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://external.pleo.io/v1/accounting-entries/receipts:search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'includeDeleted' => false,
'accountingEntryIds' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'employeeIds' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'mimeType' => [
],
'source' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json;charset=UTF-8"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://external.pleo.io/v1/accounting-entries/receipts:search"
payload := strings.NewReader("{\n \"includeDeleted\": false,\n \"accountingEntryIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"employeeIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"mimeType\": [],\n \"source\": []\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json;charset=UTF-8")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://external.pleo.io/v1/accounting-entries/receipts:search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json;charset=UTF-8")
.body("{\n \"includeDeleted\": false,\n \"accountingEntryIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"employeeIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"mimeType\": [],\n \"source\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://external.pleo.io/v1/accounting-entries/receipts:search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json;charset=UTF-8'
request.body = "{\n \"includeDeleted\": false,\n \"accountingEntryIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"employeeIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"mimeType\": [],\n \"source\": []\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"accountingEntryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"fileType": "EMBED",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mimeType": "unknown",
"sizeInBytes": 123,
"source": "APP_SHARE",
"url": "<string>",
"ocrDocumentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"pagination": {
"currentRequestPagination": {
"parameters": {},
"after": "<string>",
"before": "<string>",
"limit": 123,
"offset": 123,
"sortingKeys": [
"<string>"
],
"sortingOrder": [
"ASC"
]
},
"hasNextPage": true,
"hasPreviousPage": true,
"endCursor": "<string>",
"startCursor": "<string>",
"total": 123
}
}Apply filters to search for specific accounting entry receipts.
curl --request POST \
--url https://external.pleo.io/v1/accounting-entries/receipts:search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json;charset=UTF-8' \
--data '
{
"includeDeleted": false,
"accountingEntryIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"employeeIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"mimeType": [],
"source": []
}
'import requests
url = "https://external.pleo.io/v1/accounting-entries/receipts:search"
payload = {
"includeDeleted": False,
"accountingEntryIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"employeeIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"mimeType": [],
"source": []
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json;charset=UTF-8"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'Content-Type': 'application/json;charset=UTF-8'
},
body: JSON.stringify({
includeDeleted: false,
accountingEntryIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
employeeIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
mimeType: [],
source: []
})
};
fetch('https://external.pleo.io/v1/accounting-entries/receipts:search', 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://external.pleo.io/v1/accounting-entries/receipts:search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'includeDeleted' => false,
'accountingEntryIds' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'employeeIds' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'mimeType' => [
],
'source' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json;charset=UTF-8"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://external.pleo.io/v1/accounting-entries/receipts:search"
payload := strings.NewReader("{\n \"includeDeleted\": false,\n \"accountingEntryIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"employeeIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"mimeType\": [],\n \"source\": []\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json;charset=UTF-8")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://external.pleo.io/v1/accounting-entries/receipts:search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json;charset=UTF-8")
.body("{\n \"includeDeleted\": false,\n \"accountingEntryIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"employeeIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"mimeType\": [],\n \"source\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://external.pleo.io/v1/accounting-entries/receipts:search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json;charset=UTF-8'
request.body = "{\n \"includeDeleted\": false,\n \"accountingEntryIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"employeeIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"mimeType\": [],\n \"source\": []\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"accountingEntryId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"fileType": "EMBED",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mimeType": "unknown",
"sizeInBytes": 123,
"source": "APP_SHARE",
"url": "<string>",
"ocrDocumentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"pagination": {
"currentRequestPagination": {
"parameters": {},
"after": "<string>",
"before": "<string>",
"limit": 123,
"offset": 123,
"sortingKeys": [
"<string>"
],
"sortingOrder": [
"ASC"
]
},
"hasNextPage": true,
"hasPreviousPage": true,
"endCursor": "<string>",
"startCursor": "<string>",
"total": 123
}
}Authorizations
Query Parameters
Body
Only return receipts with the given mime type. Useful for fetching a list of receipts uploaded with particular mime types.
unknown: The MIME type of the file is unknown.
application/pdf: The receipt file is a PDF file.
application/postscript: The receipt file is a PostScript file.
application/xml: The receipt file is a xml e-invoice.
image/jpeg: The receipt file is a JPEG image.
image/png: The receipt file is a PNG image.
image/heic: The receipt file is a HEIC image.
image/heif: The receipt file is a HEIF image.
image/gif: The receipt file is a GIF image.
text/xml: The receipt file is a xml e-invoice.
unknown, application/pdf, application/postscript, application/xml, image/jpeg, image/png, image/heic, image/heif, image/gif, text/xml Only return receipts that are uploaded from the specific source. Useful for fetching a list of receipts uploaded via particular sources.
APP_SHARE: The receipt was uploaded via the share to Pleo mobile app function.
BOLT: The receipt was retrieved from Bolt mobile app.
CAMERA: The receipt was uploaded via the camera in the Pleo mobile app.
CASHBACK: The receipt was generated by the Cashback feature.
EMAIL_FETCHING: The receipt was automatically fetched via Pleo Fetch.
EMAIL_FETCHING_BATCHED: The receipt was automatically fetch via Pleo Fetch in a batch.
EMAIL_FORWARDING: The receipt was forwarded to Pleo via email.
GENERATED_RECEIPT: The receipt was generated by internal systems.
LOST_RECEIPT: The receipt was generated by the Lost Receipt feature.
ROGER: The receipt was automatically fetched via the Roger integration
STOREBOX: The receipt was uploaded via the Storebox integration.
STRIPE: The receipt was uploaded via the Stripe integration.
TRAVELPERK: The receipt was uploaded via the TravelPerk integration.
USER: The receipt was uploaded by the user.
APP_SHARE, BOLT, CAMERA, CASHBACK, EMAIL_FETCHING, EMAIL_FETCHING_BATCHED, EMAIL_FORWARDING, GENERATED_RECEIPT, LOST_RECEIPT, ROGER, STOREBOX, STRIPE, TRAVELPERK, USER Was this page helpful?