Enhance your workflow with our Postman collection, ready for download. Simplify your development process and create outstanding software effortlessly with our receipt and invoice OCR.
curl --location --request POST 'https://de.eagle-doc.com/api/finance/v1/processing' \
--header 'api-key: YOUR_SECRET_API_KEY' \
--form 'file=@"receipt.jpeg"'
curl --location --request POST 'https://de.eagle-doc.com/api/receipt/v3/processing' \
--header 'api-key: YOUR_SECRET_API_KEY' \
--form 'file=@"receipt.jpeg"'
curl --location --request POST 'https://de.eagle-doc.com/api/invoice/v1/processing' \
--header 'api-key: YOUR_SECRET_API_KEY' \
--form 'file=@"invoice.pdf"'
// --------------------------------------------------
// Example code for Eagle Doc Receipt OCR
// --------------------------------------------------
$client = curl_init($url);
curl_setopt_array($client, array(
CURLOPT_URL => 'https://de.eagle-doc.com/api/receipt/v3/processing',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => array('file'=> new CURLFILE("receipt.jpeg")),
CURLOPT_HTTPHEADER => array(
'api-key: YOUR_SECRET_API_KEY'
),
));
$json = curl_exec($client);
curl_close($client);
echo $json;
// --------------------------------------------------
// Example code for Eagle Doc Invoice OCR
// --------------------------------------------------
$client = curl_init($url);
curl_setopt_array($client, array(
CURLOPT_URL => 'https://de.eagle-doc.com/api/invoice/v1/processing',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => array('file'=> new CURLFILE("invoice.pdf")),
CURLOPT_HTTPHEADER => array(
'api-key: YOUR_SECRET_API_KEY'
),
));
$json = curl_exec($client);
curl_close($client);
echo $json;
# --------------------------------------------------
# Example code for Eagle Doc Receipt OCR
# --------------------------------------------------
import requests
url = "https://de.eagle-doc.com/api/receipt/v3/processing"
payload = {}
files=[
('file',('dm-k.png',open('/Users/abc/Desktop/dm-k.png','rb'),'image/png'))
]
headers = {
'api-key': 'YOUR_SECRET_API_KEY'
}
response = requests.request("POST", url, headers=headers, data=payload, files=files)
print(response.text)
# --------------------------------------------------
# Example code for Eagle Doc Invoice OCR
# --------------------------------------------------
import requests
url = "https://de.eagle-doc.com/api/invoice/v1/processing"
payload = {}
files=[
('file',('dm-k.png',open('/Users/abc/Desktop/invoice.pdf','rb'),'image/png'))
]
headers = {
'api-key': 'YOUR_SECRET_API_KEY'
}
response = requests.request("POST", url, headers=headers, data=payload, files=files)
print(response.text)
Copyright © S2Tec GmbH