Postman

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.

Postman logo Download the collection

Examples


Finance OCR example for cURL:
                        
                            curl --location --request POST 'https://de.eagle-doc.com/api/finance/v1/processing' \
                                --header 'api-key: YOUR_SECRET_API_KEY' \
                                --form 'file=@"receipt.jpeg"'
                        
                    


Receipt OCR example for cURL:
                        
                            curl --location --request POST 'https://de.eagle-doc.com/api/receipt/v3/processing' \
                                --header 'api-key: YOUR_SECRET_API_KEY' \
                                --form 'file=@"receipt.jpeg"'
                        
                    


Invoice OCR example for cURL:
                        
                            curl --location --request POST 'https://de.eagle-doc.com/api/invoice/v1/processing' \
                                --header 'api-key: YOUR_SECRET_API_KEY' \
                                --form 'file=@"invoice.pdf"'
                        
                    


Receipt OCR example for PHP:
                        
                                // --------------------------------------------------
                                // 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;
                            
                        
                    


Invoice OCR example for PHP:
                        
                                // --------------------------------------------------
                                // 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;
                            
                        
                    


Receipt OCR example for Python (3.10):
                        
                            # --------------------------------------------------
                            # 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)
                            
                        
                    


Invoice OCR example for Python (3.10):
                        
                            # --------------------------------------------------
                            # 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)