{"info":{"_postman_id":"35ef1fdc-7aa6-4df8-9560-5e65d1645d51","name":"Photon PRO API","description":"<html><head></head><body><img src=\"https://i.imgur.com/1gTG0e7.png\">\n\n<p>Welcome and thank you for checking out <a href=\"https://www.photoncommerce.com/\">Photon Commerce</a>!</p>\n<p>Our API enables customers to take invoices in various formats and return structured data to automate invoice processing. It extracts key information from invoices like text, total amount, balance due, tax, vendor name, vendor address, invoice date, invoice due date, invoice number, ship to, bill to, line items and more.</p>\n<p>The API returns key information in an organized structured JSON response. Documents can be from various formats and quality, including phone-captured images, scanned documents, Excel or Word documents, and digital PDFs.</p>\n<p>The Photon Commerce API is organized around <a href=\"http://en.wikipedia.org/wiki/Representational_State_Transfer\">REST</a>. The API has predictable resource-oriented URLs, accepts <a href=\"https://en.wikipedia.org/wiki/POST_(HTTP)#Use_for_submitting_web_forms\">form-encoded</a> request bodies, returns <a href=\"http://www.json.org/\">JSON-encoded</a> responses, and uses standard HTTP response codes, authentication, and verbs.</p>\n<p>Photon's services reads the most common languages around the world:</p>\n<p>Arabic, Chinese, Danish, Dutch, English, French, German, Greek, Hebrew, Italian, Japanese, Korean, Portuguese, Russian, Spanish, Thai, Turkish, Vietnamese</p>\n<p>If you have any questions, you are welcome to contact <a href=\"https://www.photoncommerce.com/\">Photon Commerce</a> at api @ photoncommerce.com to be set up with an account, or you can register for api keys and credentials by providing your email address and password. The details are provided in the next section.</p>\n<p>Your credentials carry many privileges, so be sure to keep them secure! Do not share your credentials in publicly accessible areas such as GitHub, client-side code, etc.</p>\n<p>Authentication to the API is performed via <a href=\"http://en.wikipedia.org/wiki/Basic_access_authentication\">HTTP Basic Auth</a>. Provide your credentials in the header. All API requests must be made over <a href=\"http://en.wikipedia.org/wiki/HTTP_Secure\">HTTPS</a>. API requests without authentication will fail.</p>\n<p><strong>We provide 2 services:</strong></p>\n<ol>\n<li><strong>Sandbox</strong> - hosted at sandbox-api.photoncommerce.com, this where new users can register for an account and test our API, we provide 20 free API Calls</li>\n<li><strong>Production</strong> - hosted at api.photoncommerce.com. If you wish to upgrade your account from sandbox to production and enable a higher API Call limit, please contact <a href=\"https://mailto:sales@photoncommerce.com\">sales@photoncommerce.com</a>.</li>\n</ol>\n<h4 id=\"note-you-can-get-code-snippets-in-languages-of-your-choice-by-changing-the-language-option-in-the-bar-above-you-can-also-run-each-code-snippet-in-postman-by-scrolling-to-the-top-of-this-page-and-clicking-the-run-in-postman-button-in-the-upper-right-hand-corner\">**NOTE: You can get code snippets in languages of your choice by changing the LANGUAGE option in the bar above. You can also run each code snippet in Postman by scrolling to the top of this page and clicking the \"Run in Postman\" button in the upper right hand corner.</h4>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"15627869","collectionId":"35ef1fdc-7aa6-4df8-9560-5e65d1645d51","publishedId":"2s93z3h6P1","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-08-06T23:03:37.000Z"},"item":[{"name":"1. Getting Started with Photon Commerce API","item":[{"name":"Demo: Invoice Request","id":"19cdf253-f123-44b5-9205-dfc7957bd53e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"CLIENT-ID","value":"_8z-AyFQ8LRPrg","description":"<p>Unique Client_ID for every user. The preset value for this header is a working test credential specially curated for this sample request.</p>\n","type":"default"},{"key":"AUTHORIZATION","value":"apikey apiphotoncommerce.com:example_test_api_key_1","description":"<p>In the format 'apikey :'. The preset value for this header is a working test credential specially curated for this sample request.</p>\n","type":"default"},{"key":"PASSWORD","value":"wAIz0y1oyAdKmQ","description":"<p>The password you used for your email registration. The preset value for this header is a working test credential specially curated for this sample request.</p>\n","type":"default"},{"key":"SECRET-KEY","value":"yz3YLXyPApmWv_srfGMu","description":"<p>Your secret key as a string. The preset value for this header is a working test credential specially curated for this sample request.</p>\n","type":"default"}],"url":"https://sandbox-api.photoncommerce.com/api/pro?url=https://photon-api-demo.s3.us-west-1.amazonaws.com/demo_docs/02-02-2021_-_TuneGO_2.0.pdf","description":"<h4 id=\"get-code-snippets-in-any-language-by-changing-the-language-option-in-the-bar-above-and-look-to-the-right-window-or-run-code-snippets-in-postman-by-scrolling-to-the-top-of-this-page-and-clicking-the-run-in-postman-button-in-the-upper-right-hand-corner-copy-paste-this-code-as-is-do-not-change-the-url\">*Get code snippets in any language by changing the LANGUAGE option in the bar above, and look to the right window. Or, run code snippets in Postman by scrolling to the top of this page and clicking the \"Run in Postman\" button in the upper right hand corner. Copy-paste this code as is. Do not change the URL.</h4>\n<p>Example request in Python:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">import requests\nurl = \"https://api.photoncommerce.com/api/v4?url=https://photon-api-demo.s3.us-west-1.amazonaws.com/demo_docs/02-02-2021_-_TuneGO_2.0.pdf\"\npayload={}\nheaders = {\n  'CLIENT-ID': '_8z-AyFQ8LRPrg',\n  'AUTHORIZATION': 'apikey apiphotoncommerce.com:example_test_api_key_1',\n  'PASSWORD': 'wAIz0y1oyAdKmQ',\n  'SECRET-KEY': 'yz3YLXyPApmWv_srfGMu'\n}\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\nprint(response.text)\n\n</code></pre>\n<p><strong>Seeing this error: \"Document Web URL incorrect for these credentials\"?</strong> You probably changed the pre-specfied URL of the document to the URL of one of your own documents. The test credentials in this section will only work on our sample documents (URLs mentioned in the code as well as the POST requests). To test our API on your documents, please register to receive personal credientials for using our services. Please check the following section 'Register a free sandbox account' for instructions to register for an account and 'Convert Documents to JSON' to learn how to use your creds to make requests to our API.</p>\n","urlObject":{"protocol":"https","path":["api","pro"],"host":["sandbox-api","photoncommerce","com"],"query":[{"key":"url","value":"https://photon-api-demo.s3.us-west-1.amazonaws.com/demo_docs/02-02-2021_-_TuneGO_2.0.pdf"}],"variable":[]}},"response":[{"id":"3d5c99e2-6532-44cf-ae0d-9e22b8bc3f93","name":"An Invoice Request","originalRequest":{"method":"POST","header":[{"key":"CLIENT-ID","value":"_8z-AyFQ8LRPrg","type":"default"},{"key":"AUTHORIZATION","value":"apikey apiphotoncommerce.com:example_test_api_key_1","type":"default"},{"key":"PASSWORD","value":"wAIz0y1oyAdKmQ","type":"default"},{"key":"SECRET-KEY","value":"yz3YLXyPApmWv_srfGMu","type":"default"}],"url":{"raw":"https://sandbox-api.photoncommerce.com/api/pro?url=https://photon-api-demo.s3.us-west-1.amazonaws.com/demo_docs/02-02-2021_-_TuneGO_2.0.pdf","protocol":"https","host":["sandbox-api","photoncommerce","com"],"path":["api","pro"],"query":[{"key":"url","value":"https://photon-api-demo.s3.us-west-1.amazonaws.com/demo_docs/02-02-2021_-_TuneGO_2.0.pdf"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Sun, 09 Jan 2022 14:38:48 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"Balance_Due\": 22001.38,\n        \"Total\": 22001.38,\n        \"Subtotal\": 22001.38,\n        \"Shipping\": 0,\n        \"Tax\": 0,\n        \"Cashback\": 0,\n        \"Discount\": 0,\n        \"Document_Type\": \"Invoice\",\n        \"Invoice_Number\": \"2/02/2021\",\n        \"PO_Number\": \"\",\n        \"Date\": \"2021-02-03\",\n        \"Created\": \"2021-02-03\",\n        \"Order_Date\": \"\",\n        \"Due_Date\": \"2021-02-10\",\n        \"Ship_Date\": \"\",\n        \"Delivery_Date\": \"\",\n        \"Service_Start_Date\": \"2021-01-18\",\n        \"Service_End_Date\": \"2021-01-29\",\n        \"Category\": \"Software Services\",\n        \"Currency_Code\": \"USD\",\n        \"Payment_Terms\": \"\",\n        \"Account_Number\": \"\",\n        \"Bill_To_Name\": \"TUNEGO, INC.\",\n        \"Bill_To_Recipient\": \"\",\n        \"Bill_To_Address\": \"32505 Anthem Village Drive, Suite E283 Henderson, NV 89052, United States\",\n        \"Bill_To_Address_Line\": \"32505 Anthem Village Drive, Suite E283\",\n        \"Bill_To_City\": \"Henderson\",\n        \"Bill_To_State\": \"NV\",\n        \"Bill_To_Zipcode\": \"89052\",\n        \"Bill_To_Vat_Number\": \"\",\n        \"Bill_To_Email\": \"\",\n        \"Card_Number\": \"\",\n        \"Payment_Display_Name\": \"\",\n        \"Payment_Type\": \"Transfer\",\n        \"Phone_Number\": \"\",\n        \"Vat_Number\": \"7010559296\",\n        \"Vendor_Name\": \"MOBILE REALITY sp. z. o. o.\",\n        \"Vendor_Raw_Name\": \"MOBILE REALITY sp. z. o. o.\",\n        \"Vendor_Recipient\": \"\",\n        \"Vendor_Email\": \"biuro@mobilereality.pl\",\n        \"Vendor_Address\": \"Al. Ks. J. Poniatowskiego 1/K4, 03-901 Warszawa, Poland\",\n        \"Vendor_Address_Line\": \"Al. Ks. J. Poniatowskiego 1/K4\",\n        \"Vendor_City\": \"Warszawa\",\n        \"Vendor_State\": \"\",\n        \"Vendor_Zipcode\": \"03-901\",\n        \"Vendor_Country\": \"Poland\",\n        \"Vendor_Type\": \"\",\n        \"Vendor_Phone\": \"\",\n        \"Vendor_Fax\": \"\",\n        \"Vendor_Website\": \"\",\n        \"Vendor_ABN_Number\": \"\",\n        \"Vendor_Bank_Name\": \"TransferWise\",\n        \"Vendor_Bank_Number\": \"084009519\",\n        \"Vendor_Bank_Swift\": \"CMFGUS33\",\n        \"Vendor_IBAN\": \"\",\n        \"Vendor_Account_Number\": \"9600000000220961\",\n        \"Remit_To_Name\": \"MOBILE REALITY sp. z. o. o.\",\n        \"Remit_To_Address\": \"Al. Ks. J. Poniatowskiego 1/K4, 03-901 Warszawa, Poland\",\n        \"All_Email_Addresses\": \"biuro@mobilereality.pl\",\n        \"Ship_To_Name\": \"\",\n        \"Ship_To_Address\": \"\",\n        \"Carrier\": \"\",\n        \"Tracking_Number\": \"\",\n        \"Pages\": 1,\n        \"Is_Duplicate\": 0,\n        \"Notes\": \"odwrotne obciążenie\",\n        \"Tax_Lines\": [],\n        \"Line_Items\": [\n            {\n                \"Line\": 1,\n                \"SKU\": \"\",\n                \"Description\": \"[TuneGO 2.0] React.JS frontend development services\",\n                \"Date\": \"\",\n                \"QTY\": 160,\n                \"Unit\": \"hrs\",\n                \"Order\": 0,\n                \"Reference\": \"\",\n                \"Tax_Rate\": 0,\n                \"Tax\": 0,\n                \"Type\": \"service\",\n                \"Price\": 42.5,\n                \"Discount\": 0,\n                \"Amount\": 6800\n            },\n            {\n                \"Line\": 2,\n                \"SKU\": \"\",\n                \"Description\": \"[TuneGO 2.0] React Native mobile development services\",\n                \"Date\": \"\",\n                \"QTY\": 146.25,\n                \"Unit\": \"hrs\",\n                \"Order\": 0,\n                \"Reference\": \"\",\n                \"Tax_Rate\": 0,\n                \"Tax\": 0,\n                \"Type\": \"service\",\n                \"Price\": 42.5,\n                \"Discount\": 0,\n                \"Amount\": 6215.63\n            },\n            {\n                \"Line\": 3,\n                \"SKU\": \"\",\n                \"Description\": \"[TuneGO 2.0] Node.JS back-end development\",\n                \"Date\": \"\",\n                \"QTY\": 205.5,\n                \"Unit\": \"hrs\",\n                \"Order\": 0,\n                \"Reference\": \"\",\n                \"Tax_Rate\": 0,\n                \"Tax\": 0,\n                \"Type\": \"service\",\n                \"Price\": 42.5,\n                \"Discount\": 0,\n                \"Amount\": 8733.75\n            },\n            {\n                \"Line\": 4,\n                \"SKU\": \"\",\n                \"Description\": \"[TuneGO 2.0] UX/UI/graphics design support\",\n                \"Date\": \"\",\n                \"QTY\": 9,\n                \"Unit\": \"hrs\",\n                \"Order\": 0,\n                \"Reference\": \"\",\n                \"Tax_Rate\": 0,\n                \"Tax\": 0,\n                \"Type\": \"service\",\n                \"Price\": 28,\n                \"Discount\": 0,\n                \"Amount\": 252\n            }\n        ],\n        \"Raw_Text\": \"Invoice No. 2/02/2021\\nIssue date: Warszawa, 2021-02-03\\nData wykonania usługi: 2021-02-03\\n\\tMobile Reality\\nDue date: 2021-02-10\\nPayment type: Transfer\\n\\nSeller\\t\\t\\t\\t\\t\\t\\tBuyer\\nMOBILE REALITY sp. z o.o.\\t\\t\\t\\t\\tTUNEGO, INC.\\nAl. Ks. J. Poniatowskiego 1/K4\\t\\t\\t\\t\\t32505 Anthem Village Drive, Suite E283\\n03-901 Warszawa, Poland\\t\\t\\t\\t\\tHenderson, NV 89052\\nVAT ID 7010559296\\t\\t\\t\\t\\t\\tUnited States\\n\\tFile Number: 6094078\\nbiuro@mobilereality.pl\\nAccount's owner : Mobile Reality Sp. z o.o.\\nTransferWise\\n19 W 24th Street\\nNew York 10010 United States\\nWire/ACH: 084009519\\nAccount number: 9600000000220961\\nSWIFT: CMFGUS33\\n\\nNo.\\tItem\\t\\t\\t\\t\\t\\tQty\\tUnit net\\tTotal net\\tVAT %\\tVAT amount\\tTotal gross\\n\\tprice\\n1\\t[TuneGO 2.0] React.JS frontend development\\t160 hrs\\t42.50\\t6,800.00\\tN/A\\t0.00\\t6,800.00\\nservices\\n2\\t[TuneGO 2.0] React Native mobile development\\t146.25 hrs\\t42.50\\t6,215.63\\tN/A\\t0.00\\t6,215.63\\nservices\\n3\\t[TuneGO 2.0] Node.JS back-end development\\t205.5 hrs\\t42.50\\t8,733.75\\tΝΙΑ\\t0.00\\t8,733.75\\n4\\t[TuneGO 2.0] UX/UI/graphics design\\tport\\t\\t9 hrs\\t28.00\\t252.00\\tN/A\\t0.00\\t252.00\\n\\tTax rate\\t22,001.38\\tN/A\\t0.00\\t22,001.38\\n\\tTotal\\t22,001.38\\t\\t0.00\\t22,001.38\\n\\tTotal net price\\tUSD 22,001.38\\n\\tVAT amount\\tUSD 0.00\\n\\tTotal gross price\\tUSD 22,001.38\\n\\nNotes:\\t\\t\\\"odwrotne obciążenie\\\"\\nTuneGO 2.0: development period 18.01-29.01.2021\\n\\nTotal due\\t\\tUSD 22,001.38\\nwords: twenty two tho\\tnd and one USD thirty eight cents\\n\\n\\tSeller's signature\\n\\tMateusz Sadowski\\n\\nPage 1 of 1\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tgenerated in Fakturownia.pl\",\n        \"Reference_Number\": \"6094078\",\n        \"Fraud_Score\": 5,\n        \"Risk_Score\": 2,\n        \"Anomaly_Score\": 5,\n        \"photon_key\": \"\"\n    },\n    \"message\": \"success\",\n    \"status\": \"success\"\n}"}],"_postman_id":"19cdf253-f123-44b5-9205-dfc7957bd53e"},{"name":"Demo: Receipt Request","id":"df31b744-7c62-4b66-8929-7e707c981b73","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"CLIENT-ID","value":"_8z-AyFQ8LRPrg","description":"<p>Unique Client_ID for every user. This a working test CLIENT-ID specially created for this sample request.</p>\n","type":"default"},{"key":"AUTHORIZATION","value":"apikey apiphotoncommerce.com:example_test_api_key_2","description":"<p>In the format 'apikey :'. This is a working test AUTHORIZATION header specially curated for this sample request.</p>\n","type":"default"},{"key":"PASSWORD","value":"wAIz0y1oyAdKmQ","description":"<p>The password you used for your email registration. This is a working test password specially curated for this sample request.</p>\n","type":"default"},{"key":"SECRET-KEY","value":"yz3YLXyPApmWv_srfGMu","description":"<p>Your secret key as a string. This a working test secret-key specially curated for this sample request.</p>\n","type":"default"}],"url":"https://api.photoncommerce.com/api/pro?url=https://photon-api-demo.s3.us-west-1.amazonaws.com/demo_docs/lineitem_receipt.png","description":"<h4 id=\"get-code-snippets-in-any-language-by-changing-the-language-option-in-the-bar-above-and-look-to-the-right-window-or-run-code-snippets-in-postman-by-scrolling-to-the-top-of-this-page-and-clicking-the-run-in-postman-button-in-the-upper-right-hand-corner-copy-paste-the-code-as-is-do-not-change-the-url\">*Get code snippets in any language by changing the LANGUAGE option in the bar above, and look to the right window. Or, run code snippets in Postman by scrolling to the top of this page and clicking the \"Run in Postman\" button in the upper right hand corner. Copy-Paste the code as is. Do Not change the URL.</h4>\n<p>Example request in Python:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">import requests\nurl = \"https://api.photoncommerce.com/api/v4?url=https://photon-api-demo.s3.us-west-1.amazonaws.com/demo_docs/lineitem_receipt.png\"\npayload={}\nheaders = {\n  'CLIENT-ID': '_8z-AyFQ8LRPrg',\n  'AUTHORIZATION': 'apikey apiphotoncommerce.com:example_test_api_key_2',\n  'PASSWORD': 'wAIz0y1oyAdKmQ',\n  'SECRET-KEY': 'yz3YLXyPApmWv_srfGMu'\n}\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\nprint(response.text)\n\n</code></pre>\n<p><strong>Seeing this error: \"Document Web URL incorrect for these credentials\"?</strong> You probably changed the pre-specfied URL of the document to the URL of one of your own documents. The test credentials in this section will only work on our sample documents (URLs mentioned in the code as well as the POST requests). To test our API on your documents, please register to receive personal credentials for using our services. Please check the following section 'Register a free sandbox account' for instructions to register for an account and 'Convert Documents to JSON' to learn how to use your creds to make requests to our API.</p>\n","urlObject":{"protocol":"https","path":["api","pro"],"host":["api","photoncommerce","com"],"query":[{"description":{"content":"<p>URL of the document. Do NOT change the value. Public Credentials will only work on our sample invoice and receipt.</p>\n","type":"text/plain"},"key":"url","value":"https://photon-api-demo.s3.us-west-1.amazonaws.com/demo_docs/lineitem_receipt.png"}],"variable":[]}},"response":[{"id":"7b57fbc3-4b00-4994-915c-2787d5cfb4d7","name":"A Receipt Request","originalRequest":{"method":"POST","header":[{"key":"CLIENT-ID","value":"_8z-AyFQ8LRPrg","type":"default"},{"key":"AUTHORIZATION","value":"apikey apiphotoncommerce.com:example_test_api_key_2","type":"default"},{"key":"PASSWORD","value":"wAIz0y1oyAdKmQ","type":"default"},{"key":"SECRET-KEY","value":"yz3YLXyPApmWv_srfGMu","type":"default"}],"url":{"raw":"https://sandbox-api.photoncommerce.com/api/pro?url=https://photon-api-demo.s3.us-west-1.amazonaws.com/demo_docs/lineitem_receipt.png","protocol":"https","host":["sandbox-api","photoncommerce","com"],"path":["api","pro"],"query":[{"key":"url","value":"https://photon-api-demo.s3.us-west-1.amazonaws.com/demo_docs/lineitem_receipt.png"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Sun, 09 Jan 2022 14:37:47 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"Balance_Due\": 34.95,\n        \"Total\": 34.95,\n        \"Subtotal\": 32.29,\n        \"Shipping\": 0,\n        \"Tax\": 2.66,\n        \"Tip\": 0,\n        \"Cashback\": 0,\n        \"Discount\": 0,\n        \"Document_Type\": \"Receipt\",\n        \"Invoice_Number\": \"\",\n        \"PO_Number\": \"\",\n        \"Date\": \"2018-10-17\",\n        \"Created\": \"2018-10-17\",\n        \"Order_Date\": \"2018-10-17\",\n        \"Due_Date\": \"\",\n        \"Ship_Date\": \"\",\n        \"Delivery_Date\": \"\",\n        \"Service_Start_Date\": \"2018-10-17\",\n        \"Service_End_Date\": \"22018-10-17\",\n        \"Category\": \"Supplies\",\n        \"Currency_Code\": \"USD\",\n        \"Payment_Terms\": \"\",\n        \"Account_Number\": \"\",\n        \"Bill_To_Name\": \"\",\n        \"Bill_To_Recipient\": \"\",\n        \"Bill_To_Address\": \"\",\n        \"Bill_To_Address_Line\": \"\",\n        \"Bill_To_City\": \"\",\n        \"Bill_To_State\": \"\",\n        \"Bill_To_Zipcode\": \"\",\n        \"Bill_To_Vat_Number\": \"\",\n        \"Bill_To_Email\": \"\",\n        \"Card_Number\": \"7373\",\n        \"Payment_Display_Name\": \"Visa ***7373\",\n        \"Payment_Type\": \"VISA\",\n        \"Phone_Number\": \"719-471-0054\",\n        \"Vat_Number\": \"\",\n        \"Vendor_Name\": \"THE HOME DEPOT\",\n        \"Vendor_Raw_Name\": \"THE HOME DEPOT\",\n        \"Vendor_Recipient\": \"BECKY NATION\",\n        \"Vendor_Email\": \"\",\n        \"Vendor_Address\": \"2250 SOUTHGATE RD, COLORADO SPRINGS, CO\",\n        \"Vendor_Address_Line\": \"2250 SOUTHGATE RD\",\n        \"Vendor_City\": \"COLORADO SPRINGS\",\n        \"Vendor_State\": \"CO\",\n        \"Vendor_Zipcode\": \"\",\n        \"Vendor_Country\": \"USA\",\n        \"Vendor_Type\": \"\",\n        \"Vendor_Phone\": \"719-471-0054\",\n        \"Vendor_Fax\": \"\",\n        \"Vendor_Website\": \"\",\n        \"Vendor_ABN_Number\": \"\",\n        \"Vendor_Bank_Name\": \"\",\n        \"Vendor_Bank_Number\": \"\",\n        \"Vendor_Bank_Swift\": \"\",\n        \"Vendor_IBAN\": \"\",\n        \"Vendor_Account_Number\": \"\",\n        \"Remit_To_Name\": \"\",\n        \"Remit_To_Address\": \"\",\n        \"All_Email_Addresses\": \"\",\n        \"Ship_To_Name\": \"\",\n        \"Ship_To_Address\": \"\",\n        \"Carrier\": \"\",\n        \"Tracking_Number\": \"\",\n        \"Pages\": 1,\n        \"Is_Duplicate\": 0,\n        \"Notes\": \"\",\n        \"Tax_Lines\": [\n            {\n                \"Base\": 0,\n                \"Name\": \"SALES\",\n                \"Order\": 0,\n                \"Rate\": 0,\n                \"Total\": 2.66\n            }\n        ],\n        \"Line_Items\": [\n            {\n                \"Line\": 1,\n                \"SKU\": \"037103136480\",\n                \"Description\": \"SNIP LEFT <A>\\nWISS LEFT-CUT SNIPS\",\n                \"Date\": \"2018-10-17\",\n                \"QTY\": 1,\n                \"Unit\": \"\",\n                \"Order\": 0,\n                \"Reference\": \"\",\n                \"Tax_Rate\": 0,\n                \"Tax\": 0,\n                \"Type\": \"product\",\n                \"Price\": 13.97,\n                \"Discount\": 4,\n                \"Amount\": 9.97\n            },\n            {\n                \"Line\": 2,\n                \"SKU\": \"045242268061\",\n                \"Description\": \"MILW5PCKBLDG <A>\\nMKE 5PK GENERAL PURPOSE BLADES\",\n                \"Date\": \"2018-10-17\",\n                \"QTY\": 1,\n                \"Unit\": \"\",\n                \"Order\": 1,\n                \"Reference\": \"\",\n                \"Tax_Rate\": 0,\n                \"Tax\": 0,\n                \"Type\": \"product\",\n                \"Price\": 1.18,\n                \"Discount\": 0,\n                \"Amount\": 1.18\n            },\n            {\n                \"Line\": 3,\n                \"SKU\": \"038902058966\",\n                \"Description\": \"1LB. SCREW <A>\\nEB NEO SELF-DRILLING 12X1\",\n                \"Date\": \"\",\n                \"QTY\": 1,\n                \"Unit\": \"\",\n                \"Order\": 2,\n                \"Reference\": \"\",\n                \"Tax_Rate\": 0,\n                \"Tax\": 0,\n                \"Type\": \"product\",\n                \"Price\": 10.57,\n                \"Discount\": 0,\n                \"Amount\": 10.57\n            },\n            {\n                \"Line\": 4,\n                \"SKU\": \"038902058959\",\n                \"Description\": \"1LB. SCREW <A>\\nEB NEO SELF-DRILLING 12X3/4\",\n                \"Date\": \"\",\n                \"QTY\": 1,\n                \"Unit\": \"\",\n                \"Order\": 3,\n                \"Reference\": \"\",\n                \"Tax_Rate\": 0,\n                \"Tax\": 0,\n                \"Type\": \"product\",\n                \"Price\": 10.57,\n                \"Discount\": 0,\n                \"Amount\": 10.57\n            }\n        ],\n        \"Raw_Text\": \"THE\\n\\tMore saving.\\nÂ® More doing.\\\"\\n\\tSM\\n2250 SOUTHGATE RD, COLORADO SPRINGS, CO\\nBECKY NATION STOREMANAGER 719-471-0054\\n1518 00000 17717 10/17/18 09:03 AM\\nSELF CHECK OUT\\n037103136480 SNIP LEFT <A>\\t9.97\\nWISS LEFT-CUT SNIPS\\nNLP Savings $4.00\\n045242268061 MILW5PCKBLDG <A>\\t1.18\\nMKE 5PK GENERAL PURPOSE BLADES\\n038902058966 1LB. SCREW <A>\\t10.57\\nEB NEO SELF-DRILLING 12X1\\n038902058959 1LB. SCREW <A>\\t10.57\\nEB NEO SELF-DRILLING 12X3/4\\nSUBTOTAL\\t32.29\\nSALES TAX\\t2.66\\nTOTAL\\t$34.95\\nXXXXXXXXXXXX7373 VISA\\n\\tUSD$ 34.95\\nAUTH CODE 025972/8585391\\tTA\\nAID A0000003131010 43415050544140204F4\\nE452050595341\\nHOME\\nDEPOT\",\n        \"Reference_Number\": \"\",\n        \"Fraud_Score\": 5,\n        \"Risk_Score\": 2,\n        \"Anomaly_Score\": 5,\n        \"photon_key\": \"\"\n    },\n    \"message\": \"success\",\n    \"status\": \"success\"\n}"}],"_postman_id":"df31b744-7c62-4b66-8929-7e707c981b73"}],"id":"01251d2b-e37c-4778-b020-6c8b443fe08d","description":"<h3 id=\"call-the-api-on-sample-documents-instantly-without-having-to-sign-up-for-credentials\">Call the API on sample documents instantly without having to sign up for credentials</h3>\n<p>To enable users to test our API without having to sign up for credentials, here are the sample documents and document-specific credentials.</p>\n<h4 id=\"note-the-credentials-being-used-in-this-section-will-only-work-on-these-2-sample-documents-to-extract-data-from-other-documents-please-use-your-own-credentials-to-authorize-the-request\"><strong>*Note: The credentials being used in this section will only work on these 2 sample documents. To extract data from other documents, please use your own credentials to authorize the request.</strong></h4>\n","_postman_id":"01251d2b-e37c-4778-b020-6c8b443fe08d"},{"name":"2. Register a free sandbox account","item":[{"name":"Register A New Account","id":"6ec48624-ba19-4b8b-9a5b-74f50c514896","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"xosaj31228@peykesabz.com","description":"<p>Your email address</p>\n","type":"text"},{"key":"password","value":"Passit123@","description":"<p>Passwords must be at least 10 characters\nlong, must contain at least 1 digit and 1 special character.</p>\n","type":"text"}]},"url":"https://sandbox-api.photoncommerce.com/api/v4/register","description":"<p>Register a new free account using your email address and password to receive secure credentials</p>\n<h4 id=\"get-code-snippets-in-any-language-by-changing-the-language-option-in-the-bar-above-and-look-to-the-right-window-or-run-code-snippets-in-postman-by-scrolling-to-the-top-of-this-page-and-clicking-the-run-in-postman-button-in-the-upper-right-hand-corner\">*Get code snippets in any language by changing the LANGUAGE option in the bar above, and look to the right window. Or, run code snippets in Postman by scrolling to the top of this page and clicking the \"Run in Postman\" button in the upper right hand corner.</h4>\n","urlObject":{"protocol":"https","path":["api","v4","register"],"host":["sandbox-api","photoncommerce","com"],"query":[],"variable":[]}},"response":[{"id":"e286ed60-8124-4119-9773-871e14c004b0","name":"Test Request","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","description":"https://sandbox-api.photoncommerce.com/api/v4/register","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"email","value":"xosaj31228@peykesabz.com","description":"your email address","type":"text"},{"key":"password","value":"Passit123@","description":"Passwords must be atleast 10 characters\nlong, must contain atleast 1 digit and 1 special character","type":"text"}]},"url":"https://sandbox-api.photoncommerce.com/api/v4/register"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Sat, 29 Jan 2022 14:56:15 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"160"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"OPTIONS, POST"},{"key":"X-Frame-Options","value":"SAMEORIGIN"}],"cookie":[],"responseTime":null,"body":"{\n    \"client_id\": \"AydxDTylz7-WIA\",\n    \"api_key\": \"LZLQ4E3Rs3lWt1a-luSW\",\n    \"secret_key\": \"kC3JSgXzeUD-ZoWyPvif\",\n    \"username\": \"xosaj31228peykesabz.com\",\n    \"password\": \"Passit123@\"\n}"}],"_postman_id":"6ec48624-ba19-4b8b-9a5b-74f50c514896"}],"id":"ed28e5cb-1d41-4568-8fc1-c8a175c965fb","_postman_id":"ed28e5cb-1d41-4568-8fc1-c8a175c965fb","description":""},{"name":"3. Pro Verified Asynchronous API","item":[{"name":"Async API - upload using URL","id":"c319d852-7dbf-4131-bc7d-54de1a12ebcf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"CLIENT-ID","value":"string","description":"<p>Unique Client_ID for every user. Incorrect value will lead to an authorization error.</p>\n","type":"default"},{"key":"AUTHORIZATION","value":"string","description":"<p>In the format apikey your_username:your_api_key</p>\n","type":"default"},{"key":"PASSWORD","value":"string","description":"<p>The password of the account</p>\n","type":"default"},{"key":"SECRET-KEY","value":"string","description":"<p>The secret key of the account</p>\n","type":"default"}],"body":{"mode":"raw","raw":""},"url":"https://sandbox-api.photoncommerce.com/api/pro?url=string&webhook_url=string&auth_token=string&doctype=string&ID=string&subaccount=string&page_start=integer&page_end=integer","description":"<p>Capture invoices and receipts using your Client ID, Client Secret, API Key and Username</p>\n<p>To receive notifications on your webhook URL when the document has been processed, you can pass the 'webhook_url' in your request. This parameter is optional.</p>\n<p>Once you post documents to our API, we will return a 'photon_key' in the response and begin processing your document. This photon_key can be used to fetch the json by following the steps mentioned under the section 'Retrieve Data (JSON)\" on the \"Getting Started with the Photon Commerce API\" Page. As soon as your document is processed, we will POST a request to your webhook URL to notify that the extractions are ready.</p>\n<p>Our ASYNC requests are customisable to help serve our customers better. We also take in \"auth_token\" as a parameter that can be used by you to verify that the incoming notification on your webhook is from us. If you need to internally annotate a document with an ID, we will return it in our POST request to your webhook.</p>\n","urlObject":{"protocol":"https","path":["api","pro"],"host":["sandbox-api","photoncommerce","com"],"query":[{"disabled":true,"description":{"content":"<p>Set to async.</p>\n","type":"text/plain"},"key":"type","value":"async"},{"description":{"content":"<p>The path to the pdf, document, or image needing to be captured. </p>\n","type":"text/plain"},"key":"url","value":"string"},{"description":{"content":"<p>optional. Your webhook URL where we will post notifications once the document has been processed</p>\n","type":"text/plain"},"key":"webhook_url","value":"string"},{"description":{"content":"<p>optional. Auth tokens can be used to verify if the notifcation to your webhook URL is pushed by Photon.</p>\n","type":"text/plain"},"key":"auth_token","value":"string"},{"description":{"content":"<p>optional. Specify the document type. Should be one of invoice, receipt, check, remittance, statement. The default is invoice.</p>\n","type":"text/plain"},"key":"doctype","value":"string"},{"description":{"content":"<p>optional. Specify your document's internal ID if you need to use it to keep track of your documents internally. Once a document has been annotated, this ID will be returned in the webhook notification.</p>\n","type":"text/plain"},"key":"ID","value":"string"},{"description":{"content":"<p>optional. Specify your customer's subaccount if you need to distinguish between docs from different customers.</p>\n","type":"text/plain"},"key":"subaccount","value":"string"},{"description":{"content":"<p>optional. Specify the page on the document from where extractions should begin.</p>\n","type":"text/plain"},"key":"page_start","value":"integer"},{"description":{"content":"<p>optional. Specify the page on the document from where extractions should end.</p>\n","type":"text/plain"},"key":"page_end","value":"integer"}],"variable":[]}},"response":[{"id":"0d5afd48-08b0-45b8-9a06-c94d6f00ba0e","name":"Async API - upload using URL","originalRequest":{"method":"POST","header":[{"key":"CLIENT-ID","value":"string","description":"Unique Client_ID for every user. Incorrect value will lead to an authorization error.","type":"default"},{"key":"AUTHORIZATION","value":"apikey your_username:your_api_key","description":"In the format apikey your_username:your_api_key","type":"default"},{"key":"PASSWORD","value":"string","description":"The password of the account","type":"default"},{"key":"SECRET-KEY","value":"string","description":"The secret key of the account","type":"default"}],"body":{"mode":"raw","raw":""},"url":{"raw":"https://sandbox-api.photoncommerce.com/api/pro?url=string&webhook_url=string&auth_token=string&doctype=string&ID=string&subaccount=string&page_start=integer&page_end=integer","protocol":"https","host":["sandbox-api","photoncommerce","com"],"path":["api","pro"],"query":[{"key":"type","value":"async","description":"Set to async.","disabled":true},{"key":"url","value":"string","description":"The path to the pdf, document, or image needing to be captured. "},{"key":"webhook_url","value":"string","description":"optional. Your webhook URL where we will post notifications once the document has been processed"},{"key":"auth_token","value":"string","description":"optional. Auth tokens can be used to verify if the notifcation to your webhook URL is pushed by Photon."},{"key":"doctype","value":"string","description":"optional. Specify the document type. Should be one of invoice, receipt, check, remittance, statement. The default is invoice."},{"key":"ID","value":"string","description":"optional. Alphanumeric. Specify your document's internal ID if you need to use it to keep track of your documents internally. Once a document has been annotated, this ID will be returned in the webhook notification."},{"key":"subaccount","value":"string","description":"optional. Specify your customer's subaccount if you need to distinguish between docs from different customers."},{"key":"page_start","value":"integer","description":"optional. Specify the page on the document from where extractions should begin."},{"key":"page_end","value":"integer","description":"optional. Specify the page on the document from where extractions should end."}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"photon_key\": \"your-photon-key-here\",\n    \"doc_path\": \"path to the document you submitted\",\n    \"message\": \"success\"\n}"}],"_postman_id":"c319d852-7dbf-4131-bc7d-54de1a12ebcf"},{"name":"Async API - upload from local","id":"9862668f-f80f-4657-9b4d-d835212a55f2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"CLIENT-ID","value":"string","description":"<p>Unique Client_ID for every user. Incorrect value will lead to an authorization error.</p>\n","type":"default"},{"key":"AUTHORIZATION","value":"string","description":"<p>In the format apikey your_username:your_api_key</p>\n","type":"default"},{"key":"PASSWORD","value":"string","description":"<p>The password of the account</p>\n","type":"default"},{"key":"SECRET-KEY","value":"string","description":"<p>The secret key of the account</p>\n","type":"default"}],"body":{"mode":"formdata","formdata":[{"key":"pdf","type":"file","value":null}]},"url":"https://sandbox-api.photoncommerce.com/api/pro?webhook_url=string&auth_token=string&doctype=invoice&ID=string&subaccount=string","description":"<p>Capture invoices and receipts using your Client ID, Client Secret, API Key and Username</p>\n<p>To receive notifications on your webhook URL when the document has been processed, you can pass the 'webhook_url' in your request. This parameter is optional.  </p>\n<p>Once you post documents to our API, we will return a 'photon_key' in the response and begin processing your document. This photon_key can be used to fetch the json by following the steps mentioned under the section 'Retrieve Data (JSON)\" on the \"Getting Started with the Photon Commerce API\" Page. As soon as your document is processed, we will POST a request to your webhook URL to notify that the extractions are ready.  </p>\n<p>Our ASYNC requests are customisable to help serve our customers better. We also take in \"auth_token\" as a parameter that can be used by you to verify that the incoming notification on your webhook is from us. If you need to internally annotate a document with an ID, we will return it in our POST request to your webhook.</p>\n","urlObject":{"protocol":"https","path":["api","pro"],"host":["sandbox-api","photoncommerce","com"],"query":[{"disabled":true,"description":{"content":"<p>Set to async.</p>\n","type":"text/plain"},"key":"type","value":"async"},{"description":{"content":"<p>optional. Your webhook URL where we will post notifications once the document has been processed</p>\n","type":"text/plain"},"key":"webhook_url","value":"string"},{"description":{"content":"<p>optional. Auth tokens can be used to verify if the notifcation to your webhook URL is pushed by Photon.</p>\n","type":"text/plain"},"key":"auth_token","value":"string"},{"description":{"content":"<p>optional. Specify the document type. Should be one of invoice, receipt, check, remittance, statement. The default is invoice.</p>\n","type":"text/plain"},"key":"doctype","value":"invoice"},{"description":{"content":"<p>optional. Alphanumeric. Specify your document's internal ID if you need to use it to keep track of your documents internally. Once a document has been annotated, this ID will be returned in the webhook notification.</p>\n","type":"text/plain"},"key":"ID","value":"string"},{"description":{"content":"<p>optional. Specify your customer's subaccount if you need to distinguish between docs from different customers.</p>\n","type":"text/plain"},"key":"subaccount","value":"string"}],"variable":[]}},"response":[{"id":"fd49cd70-4667-4602-876c-43a1b65f6e53","name":"Async API - upload from local","originalRequest":{"method":"POST","header":[{"key":"CLIENT-ID","value":"string","description":"Unique Client_ID for every user. Incorrect value will lead to an authorization error.","type":"default"},{"key":"AUTHORIZATION","value":"apikey your_username:your_api_key","description":"In the format apikey your_username:your_api_key","type":"default"},{"key":"PASSWORD","value":"string","description":"The password of the account","type":"default"},{"key":"SECRET-KEY","value":"string","description":"The secret key of the account","type":"default"}],"body":{"mode":"formdata","formdata":[{"key":"pdf","type":"file","value":null}]},"url":{"raw":"https://sandbox-api.photoncommerce.com/api/pro?webhook_url=string&auth_token=string&doctype=invoice&ID=string&subaccount=string","protocol":"https","host":["sandbox-api","photoncommerce","com"],"path":["api","pro"],"query":[{"key":"type","value":"async","description":"Set to async.","disabled":true},{"key":"webhook_url","value":"string","description":"optional. Your webhook URL where we will post notifications once the document has been processed"},{"key":"auth_token","value":"string","description":"optional. Auth tokens can be used to verify if the notifcation to your webhook URL is pushed by Photon."},{"key":"doctype","value":"invoice","description":"optional. Specify the document type. Should be one of invoice, receipt, check, remittance, statement. The default is invoice."},{"key":"ID","value":"string","description":"optional. Alphanumeric. Specify your document's internal ID if you need to use it to keep track of your documents internally. Once a document has been annotated, this ID will be returned in the webhook notification."},{"key":"subaccount","value":"string","description":"optional. Specify your customer's subaccount if you need to distinguish between docs from different customers.","type":"text"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"photon_key\": \"your-photon-key-here\",\n    \"doc_path\": \"path to the document you submitted\",\n    \"message\": \"success\"\n}"}],"_postman_id":"9862668f-f80f-4657-9b4d-d835212a55f2"},{"name":"Retrieve JSON of uploaded file","id":"0cff019e-2a12-41da-947f-e2adcef1dd10","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"PASSWORD","value":"string","description":"<p>The password you used for your email registration</p>\n","type":"default"},{"key":"SECRET-KEY","value":"string","description":"<p>Your secret key as a string</p>\n","type":"default"},{"key":"CLIENT-ID","value":"string","description":"<p>Unique Client_ID for every user. Incorrect value will lead to an authorization error</p>\n","type":"default"},{"key":"AUTHORIZATION","value":"string","description":"<p>In the format 'apikey your_username:your_api_key'</p>\n","type":"default"}],"url":"https://sandbox-api.photoncommerce.com/api/v4/json?photon_key=<photon-key>","urlObject":{"protocol":"https","path":["api","v4","json"],"host":["sandbox-api","photoncommerce","com"],"query":[{"description":{"content":"<p>The photon_key of the uploaded file to fetch the JSON of.</p>\n","type":"text/plain"},"key":"photon_key","value":"<photon-key>"}],"variable":[]}},"response":[{"id":"e4cb7366-c0f8-412b-be11-ee8fdeacb73f","name":"Retrieve JSON of uploaded file","originalRequest":{"method":"GET","header":[{"key":"PASSWORD","value":"Passit123@","type":"default"},{"key":"SECRET-KEY","value":"XTuxgZcVC5A3g2RgV7W4","type":"default"},{"key":"CLIENT-ID","value":"qrAm1tjJSzof9Q","type":"default"},{"key":"AUTHORIZATION","value":"apikey shilpasabarwal81gmail.com:5z4HZ9EVifqYUqCYRsJM","type":"default"}],"url":{"raw":"https://sandbox-api.photoncommerce.com/api/v4/json?photon_key=<photon_key>","protocol":"https","host":["sandbox-api","photoncommerce","com"],"path":["api","v4","json"],"query":[{"key":"photon_key","value":"<photon_key>"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Tue, 11 Jan 2022 17:17:38 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"OPTIONS, GET"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"Balance_Due\": 22001.38,\n        \"Total\": 22001.38,\n        \"Subtotal\": 22001.38,\n        \"Shipping\": 0,\n        \"Tax\": 0,\n        \"Tip\": 0,\n        \"Cashback\": 0,\n        \"Discount\": 0,\n        \"Document_Type\": \"Invoice\",\n        \"Invoice_Number\": \"2/02/2021\",\n        \"Check_Number\": \"\",\n        \"PO_Number\": \"\",\n        \"Date\": \"2021-02-03\",\n        \"Created\": \"2022-01-06 07:40:15\",\n        \"Order_Date\": \"\",\n        \"Due_Date\": \"2021-02-10\",\n        \"Ship_Date\": \"\",\n        \"Delivery_Date\": \"\",\n        \"Service_Start_Date\": \"\",\n        \"Service_End_Date\": \"\",\n        \"Category\": \"Office Supplies & Software\",\n        \"Currency_Code\": \"USD\",\n        \"Payment_Terms\": \"\",\n        \"Account_Number\": \"\",\n        \"Bill_To_Name\": \"MOBILE REALITY sp. z o. o\",\n        \"Bill_To_Recipient\": \"\",\n        \"Bill_To_Address\": \"03-901 Warszawa, Poland\",\n        \"Bill_To_Address_Line\": \"03-901 Warszawa, Poland\",\n        \"Bill_To_City\": \"\",\n        \"Bill_To_State\": \"\",\n        \"Bill_To_Zipcode\": \"\",\n        \"Bill_To_Vat_Number\": \"\",\n        \"Bill_To_Email\": \"\",\n        \"Card_Number\": \"\",\n        \"Payment_Display_Name\": \"\",\n        \"Payment_Type\": \"\",\n        \"Phone_Number\": \"\",\n        \"Vat_Number\": \"7010559296\",\n        \"Vendor_Name\": \"TUNEGO, INC.\",\n        \"Vendor_Raw_Name\": \"Mobile Reality\",\n        \"Vendor_Recipient\": \"\",\n        \"Vendor_Email\": \"biuro@mobilereality.pl\",\n        \"Vendor_Address\": \"32505 Anthem Village Drive, Suite E283, Henderson, NV 89052\",\n        \"Vendor_Address_Line\": \"32505 Anthem Village Drive\",\n        \"Vendor_City\": \"Henderson\",\n        \"Vendor_State\": \"NV\",\n        \"Vendor_Zipcode\": \"89052\",\n        \"Vendor_Country\": \"United States\",\n        \"Vendor_Type\": \"\",\n        \"Vendor_Phone\": \"\",\n        \"Vendor_Fax\": \"\",\n        \"Vendor_Website\": \"\",\n        \"Vendor_ABN_Number\": \"\",\n        \"Vendor_Bank_Name\": \"\",\n        \"Vendor_Bank_Number\": \"084009519\",\n        \"Vendor_Bank_Swift\": \"CMFGUS33\",\n        \"Vendor_IBAN\": \"\",\n        \"Vendor_Account_Number\": \"9600000000220961\",\n        \"Remit_To_Name\": \"TUNEGO, INC.\",\n        \"Remit_To_Address\": \"\",\n        \"All_Email_Addresses\": \"biuro@mobilereality.pl\",\n        \"Ship_To_Name\": \"TUNEGO, INC\",\n        \"Ship_To_Address\": \"\",\n        \"Carrier\": \"\",\n        \"Tracking_Number\": \"\",\n        \"Pages\": 1,\n        \"Is_Duplicate\": 0,\n        \"Notes\": \"\\\"odwrotne obciążenie\",\n        \"Tax_Lines\": [],\n        \"Line_Items\": [\n            {\n                \"Line\": 1,\n                \"SKU\": \"\",\n                \"Date\": \"\",\n                \"Order\": 0,\n                \"Reference\": \"\",\n                \"Description\": \"TuneGO 2.0] React.JS frontend development\\nN/A\\nservices\",\n                \"QTY\": 160,\n                \"Unit\": \"hrs\",\n                \"Tax\": 0,\n                \"Tax_Rate\": 0,\n                \"Type\": \"service\",\n                \"Price\": 42.5,\n                \"Discount\": 0,\n                \"Amount\": 6800\n            },\n            {\n                \"Line\": 2,\n                \"SKU\": \"\",\n                \"Date\": \"\",\n                \"Order\": 1,\n                \"Reference\": \"\",\n                \"Description\": \"TuneGO 2.0] React Native mobile development\\nN/A\\nservices\",\n                \"QTY\": 146.25,\n                \"Unit\": \"hrs\",\n                \"Tax\": 0,\n                \"Tax_Rate\": 0,\n                \"Type\": \"service\",\n                \"Price\": 42.5,\n                \"Discount\": 0,\n                \"Amount\": 6215.63\n            },\n            {\n                \"Line\": 3,\n                \"SKU\": \"\",\n                \"Date\": \"\",\n                \"Order\": 2,\n                \"Reference\": \"\",\n                \"Description\": \"TuneGO 2.0] Node.JS back-end development\\nN/A\\n TuneGO 2.0] UX/UI/graphics design support\\nN/A\",\n                \"QTY\": 205.5,\n                \"Unit\": \"hrs\",\n                \"Tax\": 0,\n                \"Tax_Rate\": 0,\n                \"Type\": \"service\",\n                \"Price\": 42.5,\n                \"Discount\": 0,\n                \"Amount\": 8733.75\n            },\n            {\n                \"Line\": 4,\n                \"SKU\": \"\",\n                \"Date\": \"\",\n                \"Order\": 4,\n                \"Reference\": \"\",\n                \"Description\": \"[TuneGO 2.0] UX/UI/graphics design support\",\n                \"QTY\": 9,\n                \"Unit\": \"\",\n                \"Tax\": 0,\n                \"Tax_Rate\": 0,\n                \"Type\": \"service\",\n                \"Price\": 28.0,\n                \"Discount\": 0,\n                \"Amount\": 252.0\n            }\n        ],\n        \"Raw_Text\": \"Invoice No. 2/02/2021\\nIssue date: Warszawa, 2021-02-03\\nData wykonania usługi: 2021-02-03\\n\\tMobile Reality\\nDue date: 2021-02-10\\nPayment type: Transfer\\n\\nSeller\\t\\t\\t\\t\\t\\t\\tBuyer\\nMOBILE REALITY sp. z o. o.\\t\\t\\t\\t\\tTUNEGO, INC.\\nAl. Ks. J. Poniatowskiego 1/K4\\t\\t\\t\\t32505 Anthem Village Drive, Suite E283\\n03-901 Warszawa, Poland\\t\\t\\t\\t\\tHenderson, NV 89052\\nVAT ID 7010559296\\t\\t\\t\\t\\tUnited States\\nbiuro@mobilereality.pl\\t\\t\\t\\t\\tFile Number: 6094078\\nAccount's owner : Mobile Reality Sp. z o.o.\\nTransferWise\\n19 W 24th Street\\nNew York 10010 United States\\nWire/ACH: 084009519\\nAccount number: 9600000000220961\\nSWIFT : CMFGUS33\\n\\nNo. Item\\t\\t\\t\\t\\t\\tQty\\tUnit net\\tTotal net VAT % VAT amount Total gross\\n\\tprice\\n1\\t[TuneGO 2.0] React.JS frontend development\\t160 hrs\\t42.50\\t6,800.00\\tN/A\\t0.00\\t6,800.00\\nservices\\n2\\t[TuneGO 2.0] React Native mobile development\\t146.25 hrs\\t42.50\\t6,215.63\\tN/A\\t0.00\\t6,215.63\\nservices\\n3 [TuneGO 2.0] Node.JS back-end development\\t205.5 hrs\\t42.50\\t8,733.75\\tN/A\\t0.00\\t8,733.75\\n4 [TuneGO 2.0] UX/UI/graphics design support\\t9 hrs\\t28.00\\t252.00\\tN/A\\t0.00\\t252.00\\n\\tTax rate\\t22,001.38\\tN/A\\t0.00\\t22,001.38\\n\\tTotal\\t22,001.38\\t\\t0.00\\t22,001.38\\n\\tTotal net price\\tUSD 22,001.38\\n\\tVAT amount\\tUSD 0.00\\n\\tTotal gross price\\tUSD 22,001.38\\n\\nNotes:\\t\\t\\\"odwrotne obciążenie\\\"\\nTuneGO 2.0: development period 18.01-29.01.2021\\n\\nTotal due\\tUSD 22,001.38\\nIn words: twenty two thousand and one USD thirty eight cents\\n\\n\\tSeller's signature\\n\\tMateusz Sadowski\\n\\nPage 1 of 1\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tgenerated in Fakturownia.pl\",\n        \"Reference_Number\": \"\",\n        \"Fraud_Score\": 5,\n        \"Risk_Score\": 5,\n        \"Anomaly_Score\": 5,\n        \"photon_key\": \"data/madhusanka.wpapertrl.com/2022-01-05/23-40-12-067728_02022021__TuneGO_20.json\"\n    },\n    \"message\": \"success\",\n    \"status\": \"success\"\n}"}],"_postman_id":"0cff019e-2a12-41da-947f-e2adcef1dd10"}],"id":"1bdbe798-4dce-44cf-8042-352c6c6b9e40","description":"<p><strong>In order to do asynchronous API calls, please first contact</strong> <a href=\"https://mailto:sales@photoncommerce.com\"><b>sales@photoncommerce.com</b></a> <strong>to activate your account.</strong></p>\n<p>Please provide your project requirements and samples.</p>\n<p>Our standard turnaround time (TAT) for document processing is 24 hours.<br />We also offer expedited processing, with TATs as fast as 5 minutes.<br />For faster turnaround options and pricing, please contact <a href=\"https://mailto:support@photoncommerce.com\">support@photoncommerce.com.</a></p>\n<p>*<em>Mention the document type in the API request using the parameter 'doctype'. Valid options for doctype are:__*</em></p>\n<ol>\n<li><p>invoice</p>\n</li>\n<li><p>check</p>\n</li>\n<li><p>remittance</p>\n</li>\n<li><p>statement</p>\n</li>\n<li><p>receipt-expense</p>\n</li>\n<li><p>bol (stands for Bill of Lading)</p>\n</li>\n<li><p>hbl (stands for House Bill of Lading</p>\n</li>\n<li><p>mbl (stands for Master Bill of Lading)</p>\n</li>\n<li><p>bill-utility (Utility Bills like Electric, Gas, Water, Internet &amp; Voice)</p>\n</li>\n</ol>\n<p><em><strong>Please note that even though passing this parameter in the API request is optional, unless the doctype is specified in the request, your document will be treated as an invoice by default</strong></em>.</p>\n<p><strong>Fraud Score and Risk Score</strong></p>\n<p>Tired of traditional document verification processes that are time-consuming, error-prone, and leave your organization vulnerable to fraudulent activities?</p>\n<p>Our cutting-edge algorithms are designed to revolutionize document security by <em><strong>accurately detecting fraud and determining risk scores from documents</strong></em> in real-time. With our solution, you can streamline your verification processes, reduce manual errors, and safeguard your organization against potential threats.</p>\n<p><em><strong>Note:</strong></em> Fraud and Risk scores are optional fields. If you need to activate these for your account, please contact <a href=\"https://mailto:support@photoncommerce.com\">support@photoncommerce.com</a></p>\n<h3 id=\"subaccount\"><strong>Subaccount</strong></h3>\n<p>To help you better organize and differentiate between your customers, we've introduced Subaccount Support.</p>\n<p>A subaccount is a unique identifier (like a customer ID) that you can pass with every API request. It helps you track usage and data on a per-customer basis — without needing to manage that separation manually.</p>\n<h5 id=\"✅-subaccount-rules\"><strong>✅ Subaccount Rules:</strong></h5>\n<ul>\n<li><p>Can be alphanumeric</p>\n</li>\n<li><p>Can include hyphens</p>\n</li>\n<li><p>Must be under 50 characters</p>\n</li>\n</ul>\n<h3 id=\"configuring-page-range-for-targeted-extraction-using-page_start--page_end\">Configuring Page Range for Targeted Extraction (Using <code>page_start</code> / <code>page_end</code>)</h3>\n<p>Worried about cropping your document just to run extractions on a specific section? Does your document contain statements, BOLs, invoices, receipts, or other segments—but you only need data extracted from one of them? We've got you covered with this flexible new feature!</p>\n<p>You can now control where extractions run by specifying <code>page_start</code> and <code>page_end</code> parameters in your API request. This allows you to keep the entire document intact while targeting only a specific page range for extraction—for example, pages 2 through 7 of a 20-page document.</p>\n<h4 id=\"example\">Example:</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"page_start\": 2,\n  \"page_end\": 7\n}\n\n</code></pre>\n<h4 id=\"how-it-works\">How it works:</h4>\n<ul>\n<li><p><code>page_start</code> (default: 1) – The first page to include in extraction (inclusive).</p>\n</li>\n<li><p><code>page_end</code> (default: total number of pages) – The last page to include in extraction (inclusive).</p>\n</li>\n<li><p>Page numbers are 1-based (i.e., the first page is <code>1</code>).</p>\n</li>\n</ul>\n<p><strong>Note:</strong> If either value is invalid (e.g., not an integer, out of range), it will be ignored.</p>\n<p>This feature is perfect for documents containing multiple embedded formats or sections—such as combined PDFs with invoices, receipts, and summary reports—allowing you to pinpoint exactly where extraction should occur without modifying the original file.</p>\n<h3 id=\"async-webhook-for-notifications\"><strong>Async webhook for notifications</strong></h3>\n<p>To receive notifications on your webhook URL when the document has been processed, you can pass the 'webhook_url' in your API request.</p>\n<p>Our ASYNC requests are customisable to help serve our customers better. We also take in \"auth_token\" as a parameter that can be used by you to verify that the incoming notification on your webhook is from us. If you need to internally annotate a document with an ID, we will return it in our POST request to your webhook.</p>\n<p>Here's the structure of the data and header you should expect in a <strong>webhook notification</strong> from us:</p>\n<p>Data:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{'photon_key': 'your-photon-key-here', 'message': 'success', 'status': 'success'}\n\n</code></pre>\n<p>If you've specified an optional_id in the API request, it will be returned as 'ID' in the webhook request data.</p>\n<p>Headers:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{'Content-Type': 'application/json', 'Accept': 'application/json', 'Authorization': 'your-auth-token-here'}\n\n</code></pre>\n<p><strong>Asynchronous API for batches and queues of documents</strong></p>\n<p>No need to wait for the results. You will be notified via webhook when the document has been processed and the result is ready to be fetched.</p>\n<p>This ASYNC API allows us to upload multiple documents, one after another with a minimal waiting time. Store the photon_key we send in the response and access it once you receive a webhook notification from Photon.</p>\n<h3 id=\"webhook-retry-policy--reliability\">Webhook Retry Policy &amp; Reliability</h3>\n<p>To ensure the guaranteed delivery of your document data, Photon Commerce employs a robust retry mechanism for all webhook notifications.</p>\n<h4 id=\"success-criteria\"><strong>Success Criteria</strong></h4>\n<p>A webhook delivery is considered <strong>successful</strong> only when your endpoint returns an <strong>HTTP 200</strong> status code. Any other response (including 4xx or 5xx codes) or a connection timeout will trigger our retry sequence.</p>\n<h4 id=\"retry-logic--intervals\"><strong>Retry Logic &amp; Intervals</strong></h4>\n<p>If a delivery attempt fails, we will automatically retry up to <strong>3 times</strong> using an exponential backoff strategy to account for temporary server downtime or network fluctuations:</p>\n<ol>\n<li><p><strong>First Attempt:</strong> Immediate notification.</p>\n</li>\n<li><p><strong>Second Attempt:</strong> 1 second after the first failure.</p>\n</li>\n<li><p><strong>Third Attempt:</strong> 5 seconds after the second failure.</p>\n</li>\n<li><p><strong>Fourth Attempt:</strong> 2 minutes after the third failure.</p>\n</li>\n</ol>\n<h4 id=\"final-failure-handling\"><strong>Final Failure Handling</strong></h4>\n<p>If the notification fails after the fourth and final attempt, no further retries will be performed. In such cases, you can manually retrieve the document status and structured data at any time using our <a href=\"https://apidocs.photoncommerce.com/#0cff019e-2a12-41da-947f-e2adcef1dd10\">FETCH JSON</a> endpoint. We recommend implementing a reconciliation job to check this endpoint for any documents that did not result in a successful webhook confirmation.</p>\n<hr />\n","_postman_id":"1bdbe798-4dce-44cf-8042-352c6c6b9e40"},{"name":"4. Update and Edit Data - Invoices","item":[{"name":"Update Fields","id":"00bc37a3-2fa7-424c-86eb-461831028f11","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"string","type":"default","description":"<p>set to 'application/json'</p>\n"},{"key":"CLIENT-ID","value":"string","type":"default","description":"<p>Unique client-id provided during user\nregistration</p>\n"},{"key":"AUTHORIZATION","value":"string","type":"default","description":"<p>In the format 'apikey your-username:your-api-key'</p>\n"},{"key":"PASSWORD","value":"string","type":"default","description":"<p>Password used during user registration</p>\n"},{"key":"SECRET-KEY","value":"string","type":"default","description":"<p>Your secret key as a string</p>\n"}],"body":{"mode":"raw","raw":"{\"Total\": 1878.8, \"Vendor_Name\": \"Einsteam\"}","options":{"raw":{"language":"text"}}},"url":"https://sandbox-api.photoncommerce.com/api/v4/update?photon_key=<photon-key>","description":"<p>Update fields using a PUT request</p>\n<p>You can update any key field present in the JSON data. While submitting the data for the PUT request, make sure that the datatype of the values are preserved. The key fields, their description and datatype can be found above under the section 'Capture an invoice or receipt in real time'.</p>\n<p>For the example given, the updated JSON will have Total set as 1878.80 and Vendor_Name set as 'Einsteam'. To verify if the update worked fine, you can use the GET request mentioned above to fetch the JSON and check if the changes have been successfully applied</p>\n","urlObject":{"protocol":"https","path":["api","v4","update"],"host":["sandbox-api","photoncommerce","com"],"query":[{"description":{"content":"<p>The photon key of the json file to update</p>\n","type":"text/plain"},"key":"photon_key","value":"<photon-key>"}],"variable":[]}},"response":[{"id":"377f772b-aefa-4b2e-a3ee-721e6a3fa65e","name":"Update Document","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"default"},{"key":"CLIENT-ID","value":"iyeHs0oJRAooRw","type":"default"},{"key":"AUTHORIZATION","value":"apikey pran.81gmail.com:e-hmk5s3qeSaWhc368pd","type":"default"},{"key":"PASSWORD","value":"Passit123@","type":"default"},{"key":"SECRET-KEY","value":"KNYh8XJX3xXEFftfoAd5","type":"default"}],"body":{"mode":"raw","raw":"{\"Total\": 1878.8, \"Vendor_Name\": \"Einsteam\"}"},"url":{"raw":"https://sandbox-api.photoncommerce.com/api/v4/update?photon_key=data/madhusanka.wpapertrl.com/2022-01-05/23-40-12-067728_02022021__TuneGO_20.json","protocol":"https","host":["sandbox-api","photoncommerce","com"],"path":["api","v4","update"],"query":[{"key":"photon_key","value":"data/madhusanka.wpapertrl.com/2022-01-05/23-40-12-067728_02022021__TuneGO_20.json"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Wed, 12 Jan 2022 14:19:37 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"OPTIONS, PUT"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Updated successfully\",\n    \"status\": \"success\"\n}"}],"_postman_id":"00bc37a3-2fa7-424c-86eb-461831028f11"},{"name":"Update Line Items","id":"ed1d8d84-dc5d-4e32-b913-eb5e48cf9d47","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"CLIENT-ID","value":"string","type":"default","description":"<p>Unique client-id provided during user\nregistration</p>\n"},{"key":"AUTHORIZATION","value":"string","type":"default","description":"<p>In the format 'apikey your-username:your-api-key'</p>\n"},{"key":"SECRET-KEY","value":"string","type":"default","description":"<p>Your secret key as a string</p>\n"},{"key":"PASSWORD","value":"string","type":"default","description":"<p>Password used during user registration</p>\n"},{"key":"Content-Type","value":"string","type":"default","description":"<p>Set to \"application/json\"</p>\n"}],"body":{"mode":"raw","raw":"{\"SKU\":\"0004\"}"},"url":"https://sandbox-api.photoncommerce.com/api/v4/update/line-items/<line-item-id>?photon_key=<photon-key>","description":"<p>To update an existing line item, submit a PUT request with new values in the PUT body.</p>\n<p>line-item-id: the string that is the value of \"Line\" for line item to be updated.</p>\n<p>Line items that can updated:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>\"SKU\":   string - parsed SKU code,\n\"Description\":  string - raw item description,\n\"Date\":  date of the line item as a string \"YYYY-MM-DD\",\n\"Order\":  integer - Order of the item,\n\"Reference\":  string - Reference ID for the item,\n\"QTY\":  decimal number of units,\n\"Unit\": unit of measure,\n\"Price\": decimal unit price,\n\"Amount\": decimal total pricing,\n\"Discount\": decimal line item discount amount,\n\"Tax_Rate\":  the tax rate levied,\n\"Tax\": decimal line item tax amount,\n\"Type\": inferred product or service string\n\n</code></pre>","urlObject":{"protocol":"https","path":["api","v4","update","line-items","<line-item-id>"],"host":["sandbox-api","photoncommerce","com"],"query":[{"disabled":true,"key":"","value":null},{"key":"photon_key","value":"<photon-key>"}],"variable":[]}},"response":[{"id":"1a2dbe06-80ad-4956-b008-3a24477b307b","name":"Update Line Items","originalRequest":{"method":"PUT","header":[{"key":"CLIENT-ID","value":"TLyzg1Ih9VU0eg","type":"default"},{"key":"AUTHORIZATION","value":"apikey surikaur905gmail.com:u-s2E-HYXy00uW7_dteW","type":"default"},{"key":"SECRET-KEY","value":"jZ0hdBnuyOm2-jXg5NZY","type":"default"},{"key":"PASSWORD","value":"Passit123@","type":"default"},{"key":"Content-Type","value":"application/json","type":"default"}],"body":{"mode":"raw","raw":"{\"SKU\":\"0004\"}"},"url":{"raw":"https://sandbox-api.photoncommerce.com/api/v4/update/line-items/1?photon_key=data/madhusanka.wpapertrl.com/2022-01-05/23-40-12-067728_02022021__TuneGO_20.json","protocol":"https","host":["sandbox-api","photoncommerce","com"],"path":["api","v4","update","line-items","1"],"query":[{"key":"photon_key","value":"data/madhusanka.wpapertrl.com/2022-01-05/23-40-12-067728_02022021__TuneGO_20.json"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Wed, 26 Jan 2022 09:25:21 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"PUT, DELETE, POST, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Updated line item successfully\",\n    \"status\": \"success\"\n}"}],"_postman_id":"ed1d8d84-dc5d-4e32-b913-eb5e48cf9d47"},{"name":"Add Line Item","id":"93b38678-cbff-42c2-b993-6338923f82c9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"string","type":"default","description":"<p>Set to \"application/json\"</p>\n"},{"key":"CLIENT-ID","value":"string","type":"default","description":"<p>Unique client-id provided upon user \nregistration</p>\n"},{"key":"AUTHORIZATION","value":"string","type":"default","description":"<p>In the format 'apikey your-username:your-api-key'</p>\n"},{"key":"PASSWORD","value":"string","type":"default","description":"<p>Password used during user registration</p>\n"},{"key":"SECRET-KEY","value":"string","type":"default","description":"<p>Secret key provided as a string</p>\n"}],"body":{"mode":"raw","raw":"{\"SKU\": \"003\", \"Description\": \"MacBook\", \"Price\": 1299, \"Amount\": 1299}"},"url":"https://sandbox-api.photoncommerce.com/api/v4/line-items?photon_key=<photon-key>&url=<url>","description":"<p>To add a new line item, submit a POST request with the data to be updated as a string of dictionary.</p>\n<p>Line Item Keys that can be added:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>\"SKU\":   string - parsed SKU code,\n\"Description\":  string - raw item description,\n\"Date\":  date of the line item as a string \"YYYY-MM-DD\",\n\"Order\":  integer - Order of the item,\n\"Reference\":  string - Reference ID for the item,\n\"QTY\":  decimal number of units,\n\"Unit\": unit of measure,\n\"Price\": decimal unit price,\n\"Amount\": decimal total pricing,\n\"Discount\": decimal line item discount amount,\n\"Tax_Rate\":  the tax rate levied,\n\"Tax\": decimal line item tax amount,\n\"Type\": inferred product or service string\n\n</code></pre>","urlObject":{"protocol":"https","path":["api","v4","line-items"],"host":["sandbox-api","photoncommerce","com"],"query":[{"description":{"content":"<p>The photon key of the json file to update</p>\n","type":"text/plain"},"key":"photon_key","value":"<photon-key>"},{"description":{"content":"<p>The path to the pdf, document, or image needing to be captured. Any image or Word document are also acceptable.</p>\n","type":"text/plain"},"key":"url","value":"<url>"}],"variable":[]}},"response":[{"id":"91b5b05f-3df2-491d-909d-3482211b96bb","name":"Add Line Item","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"default"},{"key":"CLIENT-ID","value":"TLyzg1Ih9VU0eg","type":"default"},{"key":"AUTHORIZATION","value":"apikey surikaur905gmail.com:u-s2E-HYXy00uW7_dteW","type":"default"},{"key":"PASSWORD","value":"Passit123@","type":"default"},{"key":"SECRET-KEY","value":"jZ0hdBnuyOm2-jXg5NZY","type":"default"}],"body":{"mode":"raw","raw":"{\"SKU\": \"003\", \"Description\": \"MacBook\", \"Price\": 1299, \"Amount\": 1299}"},"url":{"raw":"https://sandbox-api.photoncommerce.com/api/v4/line-items?photon_key=data/madhusanka.wpapertrl.com/2022-01-05/23-40-12-067728_02022021__TuneGO_20.json&url=https://photon-sample.s3.amazonaws.com/02-02-2021_-_TuneGO_2.0.pdf","protocol":"https","host":["sandbox-api","photoncommerce","com"],"path":["api","v4","line-items"],"query":[{"key":"photon_key","value":"data/madhusanka.wpapertrl.com/2022-01-05/23-40-12-067728_02022021__TuneGO_20.json"},{"key":"url","value":"https://photon-sample.s3.amazonaws.com/02-02-2021_-_TuneGO_2.0.pdf"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Thu, 13 Jan 2022 18:20:01 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"Balance_Due\": 22001.38,\n        \"Total\": 22001.38,\n        \"Subtotal\": 22001.38,\n        \"Shipping\": 0,\n        \"Tax\": 0,\n        \"Tip\": 0,\n        \"Cashback\": 0,\n        \"Discount\": 0,\n        \"Document_Type\": \"Invoice\",\n        \"Invoice_Number\": \"2/02/2021\",\n        \"Check_Number\": \"\",\n        \"PO_Number\": \"\",\n        \"Date\": \"2021-02-03\",\n        \"Created\": \"2022-01-12 14:51:50\",\n        \"Order_Date\": \"\",\n        \"Due_Date\": \"2021-02-10\",\n        \"Ship_Date\": \"\",\n        \"Delivery_Date\": \"\",\n        \"Service_Start_Date\": \"\",\n        \"Service_End_Date\": \"\",\n        \"Category\": \"Office Supplies & Software\",\n        \"Currency_Code\": \"USD\",\n        \"Payment_Terms\": \"\",\n        \"Account_Number\": \"\",\n        \"Bill_To_Name\": \"MOBILE REALITY sp. z o. o\",\n        \"Bill_To_Recipient\": \"\",\n        \"Bill_To_Address\": \"03-901 Warszawa, Poland\",\n        \"Bill_To_Address_Line\": \"03-901 Warszawa, Poland\",\n        \"Bill_To_City\": \"\",\n        \"Bill_To_State\": \"\",\n        \"Bill_To_Zipcode\": \"\",\n        \"Bill_To_Vat_Number\": \"\",\n        \"Bill_To_Email\": \"biuro@mobilereality.pl\",\n        \"Card_Number\": \"\",\n        \"Payment_Display_Name\": \"\",\n        \"Payment_Type\": \"\",\n        \"Phone_Number\": \"\",\n        \"Vat_Number\": \"7010559296\",\n        \"Vendor_Name\": \"TUNEGO, INC.\",\n        \"Vendor_Raw_Name\": \"Mobile Reality\",\n        \"Vendor_Recipient\": \"\",\n        \"Vendor_Email\": \"biuro@mobilereality.pl\",\n        \"Vendor_Address\": \"\",\n        \"Vendor_Address_Line\": \"\",\n        \"Vendor_City\": \"\",\n        \"Vendor_State\": \"\",\n        \"Vendor_Zipcode\": \"\",\n        \"Vendor_Country\": \"United States\",\n        \"Vendor_Type\": \"\",\n        \"Vendor_Phone\": \"\",\n        \"Vendor_Fax\": \"\",\n        \"Vendor_Website\": \"\",\n        \"Vendor_ABN_Number\": \"\",\n        \"Vendor_Bank_Name\": \"\",\n        \"Vendor_Bank_Number\": \"084009519\",\n        \"Vendor_Bank_Swift\": \"CMFGUS33\",\n        \"Vendor_IBAN\": \"\",\n        \"Vendor_Account_Number\": \"9600000000220961\",\n        \"Remit_To_Name\": \"TUNEGO, INC.\",\n        \"Remit_To_Address\": \"\",\n        \"All_Email_Addresses\": \"biuro@mobilereality.pl\",\n        \"Ship_To_Name\": \"TUNEGO, INC\",\n        \"Ship_To_Address\": \"32505 Anthem Village Drive, Suite E283, Henderson, NV 89052\",\n        \"Carrier\": \"\",\n        \"Tracking_Number\": \"\",\n        \"Pages\": 1,\n        \"Is_Duplicate\": 0,\n        \"Notes\": \"\\\"odwrotne obciążenie\",\n        \"Tax_Lines\": [],\n        \"Line_Items\": [\n            {\n                \"Line\": 1,\n                \"SKU\": \"\",\n                \"Date\": \"\",\n                \"Order\": 0,\n                \"Reference\": \"\",\n                \"Description\": \"TuneGO 2.0] React.JS frontend development\\nN/A\\nservices\",\n                \"QTY\": 160,\n                \"Unit\": \"hrs\",\n                \"Tax\": 0,\n                \"Tax_Rate\": 0,\n                \"Type\": \"service\",\n                \"Price\": 42.5,\n                \"Discount\": 0,\n                \"Amount\": 6800\n            },\n            {\n                \"Line\": 2,\n                \"SKU\": \"\",\n                \"Date\": \"\",\n                \"Order\": 1,\n                \"Reference\": \"\",\n                \"Description\": \"TuneGO 2.0] React Native mobile development\\nN/A\\nservices\",\n                \"QTY\": 146.25,\n                \"Unit\": \"hrs\",\n                \"Tax\": 0,\n                \"Tax_Rate\": 0,\n                \"Type\": \"service\",\n                \"Price\": 42.5,\n                \"Discount\": 0,\n                \"Amount\": 6215.63\n            },\n            {\n                \"Line\": 3,\n                \"SKU\": \"\",\n                \"Date\": \"\",\n                \"Order\": 2,\n                \"Reference\": \"\",\n                \"Description\": \"TuneGO 2.0] Node.JS back-end development\\nN/A\\n TuneGO 2.0] UX/UI/graphics design support\\nN/A\",\n                \"QTY\": 205.5,\n                \"Unit\": \"hrs\",\n                \"Tax\": 0,\n                \"Tax_Rate\": 0,\n                \"Type\": \"service\",\n                \"Price\": 42.5,\n                \"Discount\": 0,\n                \"Amount\": 8733.75\n            },\n            {\n                \"Line\": 4,\n                \"SKU\": \"\",\n                \"Date\": \"\",\n                \"Order\": 4,\n                \"Reference\": \"\",\n                \"Description\": \"N/A\\n TuneGO 2.0: development\",\n                \"QTY\": 1,\n                \"Unit\": \"\",\n                \"Tax\": 22001.38,\n                \"Tax_Rate\": 0,\n                \"Type\": \"tax\",\n                \"Price\": 0,\n                \"Discount\": 0,\n                \"Amount\": 22001.38\n            }\n        ],\n        \"Raw_Text\": \"Invoice No. 2/02/2021\\nIssue date: Warszawa, 2021-02-03\\nData wykonania usługi: 2021-02-03\\n\\tMobile Reality\\nDue date: 2021-02-10\\nPayment type: Transfer\\n\\nSeller\\t\\t\\t\\t\\t\\t\\tBuyer\\nMOBILE REALITY sp. z o. o.\\t\\t\\t\\t\\tTUNEGO, INC.\\nAl. Ks. J. Poniatowskiego 1/K4\\t\\t\\t\\t32505 Anthem Village Drive, Suite E283\\n03-901 Warszawa, Poland\\t\\t\\t\\t\\tHenderson, NV 89052\\nVAT ID 7010559296\\t\\t\\t\\t\\tUnited States\\nbiuro@mobilereality.pl\\t\\t\\t\\t\\tFile Number: 6094078\\nAccount's owner : Mobile Reality Sp. z o.o.\\nTransferWise\\n19 W 24th Street\\nNew York 10010 United States\\nWire/ACH: 084009519\\nAccount number: 9600000000220961\\nSWIFT : CMFGUS33\\n\\nNo. Item\\t\\t\\t\\t\\t\\tQty\\tUnit net\\tTotal net VAT % VAT amount Total gross\\n\\tprice\\n1\\t[TuneGO 2.0] React.JS frontend development\\t160 hrs\\t42.50\\t6,800.00\\tN/A\\t0.00\\t6,800.00\\nservices\\n2\\t[TuneGO 2.0] React Native mobile development\\t146.25 hrs\\t42.50\\t6,215.63\\tN/A\\t0.00\\t6,215.63\\nservices\\n3 [TuneGO 2.0] Node.JS back-end development\\t205.5 hrs\\t42.50\\t8,733.75\\tN/A\\t0.00\\t8,733.75\\n4 [TuneGO 2.0] UX/UI/graphics design support\\t9 hrs\\t28.00\\t252.00\\tN/A\\t0.00\\t252.00\\n\\tTax rate\\t22,001.38\\tN/A\\t0.00\\t22,001.38\\n\\tTotal\\t22,001.38\\t\\t0.00\\t22,001.38\\n\\tTotal net price\\tUSD 22,001.38\\n\\tVAT amount\\tUSD 0.00\\n\\tTotal gross price\\tUSD 22,001.38\\n\\nNotes:\\t\\t\\\"odwrotne obciążenie\\\"\\nTuneGO 2.0: development period 18.01-29.01.2021\\n\\nTotal due\\tUSD 22,001.38\\nIn words: twenty two thousand and one USD thirty eight cents\\n\\n\\tSeller's signature\\n\\tMateusz Sadowski\\n\\nPage 1 of 1\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tgenerated in Fakturownia.pl\",\n        \"Reference_Number\": \"\",\n        \"Fraud_Score\": 5,\n        \"Risk_Score\": 5,\n        \"Anomaly_Score\": 5,\n        \"photon_key\": \"data/pran.81gmail.com/2022-01-12/06-51-46-049161_02022021__TuneGO_20.json\"\n    },\n    \"message\": \"success\",\n    \"status\": \"success\"\n}"}],"_postman_id":"93b38678-cbff-42c2-b993-6338923f82c9"},{"name":"Delete Line Item","id":"fa121d05-d758-48cf-ac7c-1700602cc427","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"CLIENT-ID","value":"string","type":"default","description":"<p>Unique client-id provided upon user\nregistration</p>\n"},{"key":"AUTHORIZATION","value":"string","type":"default","description":"<p>In the format 'apikey your-username:your-api-key'</p>\n"},{"key":"SECRET-KEY","value":"string","type":"default","description":"<p>Secret key as a string</p>\n"},{"key":"PASSWORD","value":"string","type":"default","description":"<p>Password used during user registration</p>\n"},{"key":"Content-Type","value":"string","type":"default","description":"<p>Set to \"application/json\"</p>\n"}],"url":"https://sandbox-api.photoncommerce.com/api/v4/update/line-items/<line-item-id>?photon_key=<photon-key>","description":"<p>To delete an existing line item, submit a DELETE request with the corresponding line item ID.</p>\n<p>This method can be used to delete one line item at a time.</p>\n<p>line-item-id: the string that is the value of \"Line\" for line item to be deleted</p>\n","urlObject":{"protocol":"https","path":["api","v4","update","line-items","<line-item-id>"],"host":["sandbox-api","photoncommerce","com"],"query":[{"description":{"content":"<p>Photon Key of the JSON file that needs to\nbe updated</p>\n","type":"text/plain"},"key":"photon_key","value":"<photon-key>"}],"variable":[]}},"response":[{"id":"d5dec823-6ba4-49c2-8e79-6f2a134740de","name":"Delete Line Item","originalRequest":{"method":"DELETE","header":[{"key":"CLIENT-ID","value":"TLyzg1Ih9VU0eg","type":"default"},{"key":"AUTHORIZATION","value":"apikey surikaur905gmail.com:u-s2E-HYXy00uW7_dteW","type":"default"},{"key":"SECRET-KEY","value":"jZ0hdBnuyOm2-jXg5NZY","type":"default"},{"key":"PASSWORD","value":"Passit123@","type":"default"},{"key":"Content-Type","value":"application/json","type":"default"}],"url":{"raw":"https://sandbox-api.photoncommerce.com/api/v4/update/line-items/1?photon_key=data/madhusanka.wpapertrl.com/2022-01-05/23-40-12-067728_02022021__TuneGO_20.json","protocol":"https","host":["sandbox-api","photoncommerce","com"],"path":["api","v4","update","line-items","1"],"query":[{"key":"photon_key","value":"data/madhusanka.wpapertrl.com/2022-01-05/23-40-12-067728_02022021__TuneGO_20.json"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Wed, 26 Jan 2022 09:27:07 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"PUT, DELETE, POST, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Deleted line item successfully\",\n    \"status\": \"success\"\n}"}],"_postman_id":"fa121d05-d758-48cf-ac7c-1700602cc427"}],"id":"18c4686f-6dec-41fb-aff6-745fb5a8aa0e","description":"<p>To update the values extracted by Photon Commerce  </p>\n<p><strong>*Note:<br />If you're a Sandbox user, please route all requests to</strong> <a href=\"mailto:sandbox-api@photoncommerce.com\"><strong>sandbox-api.photoncommerce.com</strong></a> <strong>instead of api.photoncommerce.com</strong></p>\n","_postman_id":"18c4686f-6dec-41fb-aff6-745fb5a8aa0e"},{"name":"5. Fetch Original Document","item":[{"name":"Fetch Document","id":"08e135e4-02cd-42e6-8bee-2ef7a0bb72c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"CLIENT-ID","value":"string","type":"default","description":"<p>Unique client-id provided upon user\nregistration</p>\n"},{"key":"AUTHORIZATION","value":"string","type":"default","description":"<p>In the format 'apikey your-username:your-api-key'</p>\n"},{"key":"SECRET-KEY","value":"string","type":"default","description":"<p>Secret key as a string</p>\n"},{"key":"PASSWORD","value":"string","type":"default","description":"<p>Password used during user registration</p>\n"}],"url":"https://sandbox-api.photoncommerce.com/download-file?doc_path=doc-path-here","urlObject":{"protocol":"https","path":["download-file"],"host":["sandbox-api","photoncommerce","com"],"query":[{"description":{"content":"<p>This is path to the document -- returned in Photon's Response for SYNC as well as PRO requests</p>\n","type":"text/plain"},"key":"doc_path","value":"doc-path-here"}],"variable":[]}},"response":[],"_postman_id":"08e135e4-02cd-42e6-8bee-2ef7a0bb72c1"}],"id":"6bab6cd5-436e-4948-8cd3-4d321a6bb7ea","description":"<p>With this feature, we give you the ability to access the original document you submitted to our API. All you need is the value of 'doc_path' from our responses and your credentials for authenticating the request.<br />The 'doc_path' is an indicator of where the document is stored on our system.</p>\n<p>Your credentials serve as authentication. Nobody else except you is authorized to access and fetch files belonging to you, unless your credentials have been shared with multiple people.</p>\n<p>If a GET request is sent for a previously deleted file, we respond with the message \"File already deleted on \". This will give you an idea of the date when the file was first deleted from our system.</p>\n<p>**NOTE: Calling our API endpoint to access original documents will not affect the count of your API Calls for the current term. We don't charge for this call.</p>\n<p>***Note:**<strong>If you're a Sandbox user, please route all requests to</strong> <a href=\"https://mailto:sandbox-api@photoncommerce.com\"><b>sandbox-api.photoncommerce.com</b></a> <strong>instead of api.photoncommerce.com</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">import shutil\nimport requests\n\"\"\"\nFunction to send a request to Photon API to access\ncontent of original file and write the content\nto a local file.\n\"\"\"\ndef download_file(doc_path, local_path, headers):\n    URL = 'https://sandbox-api.photoncommerce.com'\n    URL1 = URL + f'/download-file?doc_path={doc_path}'\n    response = requests.get(URL1, stream=True, headers=headers)\n    print(response.raw, response.status_code)\n    local_filename = local_path\n    if response.status_code == 200:\n        print('Writing to local file')\n        print(local_filename)\n        with open(local_filename, 'wb') as f:\n            shutil.copyfileobj(response.raw, f)\n    else:\n        print(response.text)\n    return response\n\n</code></pre>\n","_postman_id":"6bab6cd5-436e-4948-8cd3-4d321a6bb7ea"},{"name":"6. Delete Documents & JSONs","item":[{"name":"Delete Document or JSON","id":"88d9507d-60b0-4faa-9adf-994e27dd9b22","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"CLIENT-ID","value":"string","type":"default","description":"<p>Unique client-id provided upon user\nregistration</p>\n"},{"key":"AUTHORIZATION","value":"string","type":"default","description":"<p>In the format 'apikey your-username:your-api-key'</p>\n"},{"key":"SECRET-KEY","value":"string","type":"default","description":"<p>Secret key as a string</p>\n"},{"key":"PASSWORD","value":"string","type":"default","description":"<p>Password used during user registration</p>\n"},{"key":"Content-Type","value":"application/json","type":"default","description":"<p>Set to \"application/json\"</p>\n"}],"url":"https://sandbox-api.photoncommerce.com/delete-file?file_key=data/dev/2022-07-07/21-52-24-080343_inv.pdf","description":"<p>To delete an existing line item, submit a DELETE request with the corresponding line item ID.</p>\n<p>This method can be used to delete one line item at a time.</p>\n<p>line-item-id: the string that is the value of \"Line\" for line item to be deleted</p>\n","urlObject":{"protocol":"https","path":["delete-file"],"host":["sandbox-api","photoncommerce","com"],"query":[{"description":{"content":"<p>The file key. Can either be the value of the doc_path or photon_key in previous responses.</p>\n","type":"text/plain"},"key":"file_key","value":"data/dev/2022-07-07/21-52-24-080343_inv.pdf"}],"variable":[]}},"response":[{"id":"f566f13d-ecfa-4868-a56d-48c52ca5c1f0","name":"Delete Document or JSON","originalRequest":{"method":"DELETE","header":[{"key":"CLIENT-ID","value":"string","type":"default","description":"Unique client-id provided upon user\nregistration"},{"key":"AUTHORIZATION","value":"string","type":"default","description":"In the format 'apikey your-username:your-api-key'"},{"key":"SECRET-KEY","value":"string","type":"default","description":"Secret key as a string"},{"key":"PASSWORD","value":"string","type":"default","description":"Password used during user registration"},{"key":"Content-Type","value":"string","type":"default","description":"Set to \"application/json\"","disabled":true}],"url":{"raw":"https://sandbox-api.photoncommerce.com/delete-file?file_key=data/dev/2022-07-07/21-52-24-080343_inv.pdf","protocol":"https","host":["sandbox-api","photoncommerce","com"],"path":["delete-file"],"query":[{"key":"file_key","value":"data/dev/2022-07-07/21-52-24-080343_inv.pdf","description":"The file key. Can either be the value of the doc_path or photon_key in previous responses."}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Thu, 28 Apr 2022 07:55:15 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"OPTIONS, POST, PUT, DELETE"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Sucessfully deleted file.\",\n    \"status\": \"success\"\n}"}],"_postman_id":"88d9507d-60b0-4faa-9adf-994e27dd9b22"}],"id":"47776347-9a51-4733-b614-973dd40d308c","description":"<p>With this feature, we give you the ability to delete previously uploaded files or extracted JSONs. All you need is the value of 'doc_path' , 'photon_key' from our responses and your credentials for authenticating the request.<br />The 'doc_path' is an indicator of where the document is stored and 'photon_key' is an indicator of where the JSON is stored.</p>\n<p>Your credentials serve as authentication. Nobody else except you is authorized to delete files belonging to you, unless your credentials have been shared with multiple people.</p>\n<p>If a DELETE request is sent for a previously deleted file, we respond with the message \"File already deleted on \". This will give you an idea of the date when the file was first deleted from our system.</p>\n<p>**NOTE: Calling our API endpoint to delete documents/JSONs will not affect the count of your API Calls for the current term. We don't charge for this call. Deleting previusly uploaded documents/JSONs will NOT decrease your upload count.</p>\n<p><strong>*Note:<br />If you're a Sandbox user, please route all requests to</strong> <a href=\"mailto:sandbox-api@photoncommerce.com\"><strong>sandbox-api.photoncommerce.com</strong></a> <strong>instead of api.photoncommerce.com</strong></p>\n","_postman_id":"47776347-9a51-4733-b614-973dd40d308c"},{"name":"7. Capture Checks & Remittances","item":[{"name":"Scan a Remittance","id":"4a97d357-7cd2-494c-b47f-9ae523ff5499","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"PASSWORD","value":"blah","description":"<p>The password you used for your email registration</p>\n","type":"text"},{"key":"CLIENT-ID","value":"9nHg-Ss_knhvy","description":"<p>Unique Client_ID for every user. Incorrect value will lead to an authorization error</p>\n","type":"text"},{"key":"AUTHORIZATION","value":"apikey xyz@gmail.com:afh9yhJjbvSPGcPR7U-","description":"<p>In the format 'apikey :'</p>\n","type":"text"},{"key":"SECRET-KEY","value":"tbWc0vgchnRw8Mvu2-u7q","description":"<p>Your secret key as a string</p>\n","type":"text"}],"url":"https://sandbox-api.photoncommerce.com/api/v4?url=https://photon-api-demo.s3.us-west-1.amazonaws.com/demo_docs/00000763.tif&type=async","description":"<p>If you contacted Photon Commerce to receive an API Key, skip the following POST request section and read on. If you registered for credentials using your email address and password, the authentication parameters in your API requests will slightly differ. The following block explains how to pass your credentials to authenticate API requests. ( Please Note: Empty and null values for all fields will appear as with 0 or empty quotations \"\", depending on if the field type is numeric or text.)</p>\n<h4 id=\"scan-a-file-via-its-url\">Scan a file via its URL</h4>\n<p>You can submit files using their URL. Simply make sure that your files are publicly accessible and submit your file's URL using the optional form parameter 'url'. The proper request URL for this feature is shown below.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">headers= {\n  # Remember to add your login credentials...\n}\nfile_url = 'https://photon-api-demo.s3.us-west-1.amazonaws.com/demo_docs/00000763.tif'\nresponse = requests.post(f'https://sandbox-api.photoncommerce.com/api/v4?url={file_url}', headers=headers)\n\n</code></pre>\n<h4 id=\"scan-a-local-file\">Scan a local file</h4>\n<p>You can scan a local file by uploading it in a POST request at the same URL.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\"> # set value of variable f_name as path to local file\nf_name = 'local_file.pdf'\nfiles = {'file': open(f_name, 'rb')}\nheaders= {\n  # Remember to add your login credentials...\n}\nresponse = requests.post(f'https://sandbox-api.photoncommerce.com/api/v4', headers=headers, files=files)\n\n</code></pre>\n<h4 id=\"specify-document-type\">Specify Document Type</h4>\n<p>You can pre-specify the document type by using the <em>doctype</em> parameter.</p>\n<ol>\n<li><strong>Remittance</strong> (Photon doctype value: <em>remittance</em>)</li>\n</ol>\n<p><em><strong>Note:</strong></em> <strong>The value of this parameter should be in lowercase and must not contain any spaces.</strong> ***If any arbitrary document type is specified, Photon will re-classify the document using its own logic.</p>\n<p><em><strong>Note: We also parse invoices &amp; receipts. The format/schema of the JSON response data for Checks &amp; Remittances is different from the format/schema of the response data for other document types.</strong></em></p>\n<h4 id=\"pre-specify-fields\">Pre-Specify fields</h4>\n<p>If you wish to view the data only for some specific fields and not all, we can filter those out for you! All you need to do is pre-specify the fields whose extractions are important to you. Here's how: add a key 'fields' to the request data whose value is a string of comma-separated fields you're interested in. Example: If you only want to view data for 'total', 'payerName', 'checkNumber' and 'lineItems': pass \"fields\" as \"total,payerName,checkNumber, lineItems\" in the request data.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">file_url = 'https://photon-api-demo.s3.us-west-1.amazonaws.com/demo_docs/00000763.tif'\nheaders = {\n    'Validations': 'true',\n    'Header-Only': 'true',\n    # Remember to add your login credentials...\n}\n # value for \"fields\" should be a string of only those comma separated fields whose value you want to view\n # In this example, we've set it as \"total,payerName,checkNumber, lineItems\"\ndata = {\"fields\": \"total,payerName,checkNumber,lineItems\"}\nresponse = requests.post(f'https://sandbox-api.photoncommerce.com/api/v4?url={file_url}', headers=headers, data=data)\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["api","v4"],"host":["sandbox-api","photoncommerce","com"],"query":[{"key":"url","value":"https://photon-api-demo.s3.us-west-1.amazonaws.com/demo_docs/00000763.tif"},{"key":"type","value":"async"}],"variable":[]}},"response":[{"id":"a3f38cf1-56fa-41d6-ba18-411816f3a50e","name":"Scan a Remittance - Local","originalRequest":{"method":"POST","header":[{"key":"PASSWORD","value":"blah","description":"The password you used for your email registration","type":"text"},{"key":"CLIENT-ID","value":"9nHg-Ss_knhvy","description":"Unique Client_ID for every user. Incorrect value will lead to an authorization error","type":"text"},{"key":"AUTHORIZATION","value":"apikey xyz@gmail.com:afh9yhJjbvSPGcPR7U-","description":"In the format 'apikey <your_username>:<your_api_key>'","type":"text"},{"key":"SECRET-KEY","value":"tbWc0vgchnRw8Mvu2-u7q","description":"Your secret key as a string","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"pdf","type":"file","src":"P371epP-L/2278883210.tiff"}]},"url":{"raw":"https://sandbox-api.photoncommerce.com/api/v4?doctype=remittance&type=async","protocol":"https","host":["sandbox-api","photoncommerce","com"],"path":["api","v4"],"query":[{"key":"doctype","value":"remittance"},{"key":"type","value":"async","description":"Set to async. DO NOT CHANGE"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Thu, 28 Apr 2022 04:35:20 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"total\": 196.8,\n        \"subtotal\": 196.8,\n        \"tax\": 0,\n        \"discount\": 0,\n        \"documentType\": \"Remittance\",\n        \"invoiceNumber\": \"24415\",\n        \"checkNumber\": \"24415\",\n        \"purchaseOrderNumber\": \"\",\n        \"documentDate\": \"2021-04-20\",\n        \"documentUploadCreatedDate\": \"2022-04-27 21:35:20\",\n        \"transactionOrderDate\": \"\",\n        \"serviceStartDate\": \"\",\n        \"serviceEndDate\": \"\",\n        \"currencyCode\": \"USD\",\n        \"payerAccountNumber\": \"\",\n        \"payeeName\": \"CITY ELECTRIC SUPPLY\",\n        \"payeeAddress\": \"\",\n        \"payeeAddressLine\": \"\",\n        \"payeeCity\": \"\",\n        \"payeeState\": \"\",\n        \"payeeZipcode\": \"\",\n        \"payeeCountry\": \"US\",\n        \"payeeVATNumber\": \"\",\n        \"payeeEmail\": \"\",\n        \"paymentMethod\": \"Check\",\n        \"payerName\": \"THE BROOKSTONE SCHOOL, INC.\",\n        \"payerEmail\": \"\",\n        \"payerAddress\": \"440 BRADLEY PARK DRIVE, COLUMBUS, GEORGIA 31904-2989\",\n        \"payerAddressLine\": \"440 BRADLEY PARK DRIVE\",\n        \"payerCity\": \"COLUMBUS\",\n        \"payerState\": \"GEORGIA\",\n        \"payerZipcode\": \"31904-2989\",\n        \"payerCountry\": \"US\",\n        \"payerPhone\": \"\",\n        \"payerFax\": \"\",\n        \"payerWebsite\": \"\",\n        \"payerABNNumber\": \"\",\n        \"payerBankName\": \"\",\n        \"payerBankNumber\": \"\",\n        \"payerBankAccountNumber\": \"\",\n        \"payerBankSWIFTCode\": \"\",\n        \"payerIBAN\": \"\",\n        \"pages\": 1,\n        \"isDuplicate\": 0,\n        \"memo\": \"\",\n        \"lineItems\": [\n            {\n                \"line\": 1,\n                \"invoiceNumber\": \"COL/064811\",\n                \"description\": \"LED BULBS\",\n                \"date\": \"2021-03-31\",\n                \"quantity\": 1,\n                \"unitOfMeasure\": \"\",\n                \"purchaseOrderNumber\": \"\",\n                \"referenceNumber\": \"\",\n                \"taxRate\": 0,\n                \"taxAmount\": 0,\n                \"type\": \"\",\n                \"unitPrice\": 295.2,\n                \"discount\": 0,\n                \"amount\": 295.2,\n                \"flexField\": []\n            },\n            {\n                \"line\": 2,\n                \"invoiceNumber\": \"COL/064884\",\n                \"description\": \"LED BULBS\",\n                \"date\": \"2021-04-06\",\n                \"quantity\": 1,\n                \"unitOfMeasure\": \"\",\n                \"purchaseOrderNumber\": \"\",\n                \"referenceNumber\": \"\",\n                \"taxRate\": 0,\n                \"taxAmount\": 0,\n                \"type\": \"\",\n                \"unitPrice\": 196.8,\n                \"discount\": 0,\n                \"amount\": 196.8,\n                \"flexField\": [\n                    \"PAINTED\"\n                ]\n            }\n        ],\n        \"rawText\": \"THE BROOKSTONE SCHOOL, INC.\\n440 BRADLEY PARK DRIVE\\nCOLUMBUS, GEORGIA 31904-2989\\nINVOICE NUMBER\\nDATE\\nCOL/064811\\n3/31/2021\\n4/6/2021\\nCOL/064884\\nLED BULBS\\nLED BULBS\\nDESCRIPTION\\nTo:\\nCITY ELECTRIC SUPPLY\\nAMOUNT\\nTotals:\\n$295.20\\n$196.80\\n$492.00\\nDISCOUNT\\n$0.00\\n$0.00\\n$0.00\\n24415\\n4/20/2021\\nNET AMOUNT\\n$295.20\\n$196.80\\nS492.00\\nPAINTED IN U.S.A.\\nPARTAIN MARKETING 706-888-1756\\nINGLIST\",\n        \"referenceNumber\": \"\",\n        \"fraudScore\": 5,\n        \"riskScore\": 5,\n        \"anomalyScore\": 5,\n        \"photonKey\": \"data/BYPASS/2022-04-27/21-35-15-258869_00000763.json\",\n        \"docPath\": \"data/BYPASS/2022-04-27/21-35-15-258869_00000763.pdf\"\n    },\n    \"message\": \"success\",\n    \"status\": \"success\"\n}"},{"id":"3abcf07a-6fa4-4c5e-8525-5d06d0f54751","name":"Scan a Remittance - URL","originalRequest":{"method":"POST","header":[{"key":"PASSWORD","value":"blah","description":"The password you used for your email registration","type":"text"},{"key":"CLIENT-ID","value":"9nHg-Ss_knhvy","description":"Unique Client_ID for every user. Incorrect value will lead to an authorization error","type":"text"},{"key":"AUTHORIZATION","value":"apikey xyz@gmail.com:afh9yhJjbvSPGcPR7U-","description":"In the format 'apikey <your_username>:<your_api_key>'","type":"text"},{"key":"SECRET-KEY","value":"tbWc0vgchnRw8Mvu2-u7q","description":"Your secret key as a string","type":"text"}],"url":{"raw":"https://sandbox-api.photoncommerce.com/api/v4?url=https://photon-api-demo.s3.us-west-1.amazonaws.com/demo_docs/00000763.tif&doctype=remittance&type=async","protocol":"https","host":["sandbox-api","photoncommerce","com"],"path":["api","v4"],"query":[{"key":"url","value":"https://photon-api-demo.s3.us-west-1.amazonaws.com/demo_docs/00000763.tif"},{"key":"doctype","value":"remittance"},{"key":"type","value":"async","description":"Set to async. DO NOT CHANGE"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Thu, 28 Apr 2022 04:35:20 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"total\": 196.8,\n        \"subtotal\": 196.8,\n        \"tax\": 0,\n        \"discount\": 0,\n        \"documentType\": \"Remittance\",\n        \"invoiceNumber\": \"24415\",\n        \"checkNumber\": \"24415\",\n        \"purchaseOrderNumber\": \"\",\n        \"documentDate\": \"2021-04-20\",\n        \"documentUploadCreatedDate\": \"2022-04-27 21:35:20\",\n        \"transactionOrderDate\": \"\",\n        \"serviceStartDate\": \"\",\n        \"serviceEndDate\": \"\",\n        \"currencyCode\": \"USD\",\n        \"payerAccountNumber\": \"\",\n        \"payeeName\": \"CITY ELECTRIC SUPPLY\",\n        \"payeeAddress\": \"\",\n        \"payeeAddressLine\": \"\",\n        \"payeeCity\": \"\",\n        \"payeeState\": \"\",\n        \"payeeZipcode\": \"\",\n        \"payeeCountry\": \"US\",\n        \"payeeVATNumber\": \"\",\n        \"payeeEmail\": \"\",\n        \"paymentMethod\": \"Check\",\n        \"payerName\": \"THE BROOKSTONE SCHOOL, INC.\",\n        \"payerEmail\": \"\",\n        \"payerAddress\": \"440 BRADLEY PARK DRIVE, COLUMBUS, GEORGIA 31904-2989\",\n        \"payerAddressLine\": \"440 BRADLEY PARK DRIVE\",\n        \"payerCity\": \"COLUMBUS\",\n        \"payerState\": \"GEORGIA\",\n        \"payerZipcode\": \"31904-2989\",\n        \"payerCountry\": \"US\",\n        \"payerPhone\": \"\",\n        \"payerFax\": \"\",\n        \"payerWebsite\": \"\",\n        \"payerABNNumber\": \"\",\n        \"payerBankName\": \"\",\n        \"payerBankNumber\": \"\",\n        \"payerBankAccountNumber\": \"\",\n        \"payerBankSWIFTCode\": \"\",\n        \"payerIBAN\": \"\",\n        \"pages\": 1,\n        \"isDuplicate\": 0,\n        \"memo\": \"\",\n        \"lineItems\": [\n            {\n                \"line\": 1,\n                \"invoiceNumber\": \"COL/064811\",\n                \"description\": \"LED BULBS\",\n                \"date\": \"2021-03-31\",\n                \"quantity\": 1,\n                \"unitOfMeasure\": \"\",\n                \"purchaseOrderNumber\": \"\",\n                \"referenceNumber\": \"\",\n                \"taxRate\": 0,\n                \"taxAmount\": 0,\n                \"type\": \"\",\n                \"unitPrice\": 295.2,\n                \"discount\": 0,\n                \"amount\": 295.2,\n                \"flexField\": []\n            },\n            {\n                \"line\": 2,\n                \"invoiceNumber\": \"COL/064884\",\n                \"description\": \"LED BULBS\",\n                \"date\": \"2021-04-06\",\n                \"quantity\": 1,\n                \"unitOfMeasure\": \"\",\n                \"purchaseOrderNumber\": \"\",\n                \"referenceNumber\": \"\",\n                \"taxRate\": 0,\n                \"taxAmount\": 0,\n                \"type\": \"\",\n                \"unitPrice\": 196.8,\n                \"discount\": 0,\n                \"amount\": 196.8,\n                \"flexField\": [\n                    \"PAINTED\"\n                ]\n            }\n        ],\n        \"rawText\": \"THE BROOKSTONE SCHOOL, INC.\\n440 BRADLEY PARK DRIVE\\nCOLUMBUS, GEORGIA 31904-2989\\nINVOICE NUMBER\\nDATE\\nCOL/064811\\n3/31/2021\\n4/6/2021\\nCOL/064884\\nLED BULBS\\nLED BULBS\\nDESCRIPTION\\nTo:\\nCITY ELECTRIC SUPPLY\\nAMOUNT\\nTotals:\\n$295.20\\n$196.80\\n$492.00\\nDISCOUNT\\n$0.00\\n$0.00\\n$0.00\\n24415\\n4/20/2021\\nNET AMOUNT\\n$295.20\\n$196.80\\nS492.00\\nPAINTED IN U.S.A.\\nPARTAIN MARKETING 706-888-1756\\nINGLIST\",\n        \"referenceNumber\": \"\",\n        \"fraudScore\": 5,\n        \"riskScore\": 5,\n        \"anomalyScore\": 5,\n        \"photonKey\": \"data/BYPASS/2022-04-27/21-35-15-258869_00000763.json\",\n        \"docPath\": \"data/BYPASS/2022-04-27/21-35-15-258869_00000763.pdf\"\n    },\n    \"message\": \"success\",\n    \"status\": \"success\"\n}"}],"_postman_id":"4a97d357-7cd2-494c-b47f-9ae523ff5499"},{"name":"Scan a Check","id":"b789d16a-5b42-4879-a623-e6f441eb55a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"PASSWORD","value":"blah","description":"<p>The password you used for your email registration</p>\n","type":"text"},{"key":"CLIENT-ID","value":"9nHg-Ss_knhvy","description":"<p>Unique Client_ID for every user. Incorrect value will lead to an authorization error</p>\n","type":"text"},{"key":"AUTHORIZATION","value":"apikey xyz@gmail.com:afh9yhJjbvSPGcPR7U-","description":"<p>In the format 'apikey :'</p>\n","type":"text"},{"key":"SECRET-KEY","value":"tbWc0vgchnRw8Mvu2-u7q","description":"<p>Your secret key as a string</p>\n","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"pdf","type":"file","src":"1sykL-kb6/00000049.tif"}]},"url":"https://api.photoncommerce.com/api/v4?doctype=check&type=async","description":"<p>If you contacted Photon Commerce to receive an API Key, skip the following POST request section and read on. If you registered for credentials using your email address and password, the authentication parameters in your API requests will slightly differ. The following block explains how to pass your credentials to authenticate API requests. ( Please Note: Empty and null values for all fields will appear as with 0 or empty quotations \"\", depending on if the field type is numeric or text.)</p>\n<h4 id=\"scan-a-file-via-its-url\">Scan a file via its URL</h4>\n<p>You can submit files using their URL. Simply make sure that your files are publicly accessible and submit your file's URL using the optional form parameter 'url'. The proper request URL for this feature is shown below.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">headers= {\n  # Remember to add your login credentials...\n}\nfile_url = 'https://photon-api-demo.s3.us-west-1.amazonaws.com/demo_docs/00-50-38-098501_00000481.pdf'\nresponse = requests.post(f'https://sandbox-api.photoncommerce.com/api/v4?url={file_url}', headers=headers)\n\n</code></pre>\n<h4 id=\"scan-a-local-file\">Scan a local file</h4>\n<p>You can scan a local file by uploading it in a POST request at the same URL.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">f_name = 'local-file.pdf' # path to file on your device \nfiles = {'file': open(f_name, 'rb')}\nheaders= {\n  # Remember to add your login credentials...\n}\nresponse = requests.post(f'https://sandbox-api.photoncommerce.com/api/v4', headers=headers, files=files)\n\n</code></pre>\n<h4 id=\"specify-document-type\">Specify Document Type</h4>\n<p>You can pre-specify the document type by using the <em>doctype</em> parameter.</p>\n<ol>\n<li><strong>Check</strong> (Photon doctype value: <em>check</em>)</li>\n</ol>\n<p><em><strong>Note:</strong></em> <strong>The value of this parameter should be in lowercase and must not contain any spaces.</strong> ***If any arbitrary document type is specified, Photon will re-classify the document using its own logic.</p>\n","urlObject":{"protocol":"https","path":["api","v4"],"host":["api","photoncommerce","com"],"query":[{"key":"doctype","value":"check"},{"description":{"content":"<p>Set to async. DO NOT CHANGE</p>\n","type":"text/plain"},"key":"type","value":"async"}],"variable":[]}},"response":[{"id":"a9e5df26-e7b5-43b6-a26c-347cc187a5f1","name":"Scan a Check - Local","originalRequest":{"method":"POST","header":[{"key":"PASSWORD","value":"blah","description":"The password you used for your email registration"},{"key":"CLIENT-ID","value":"9nHg-Ss_knhvy","description":"Unique Client_ID for every user. Incorrect value will lead to an authorization error"},{"key":"AUTHORIZATION","value":"apikey xyz@gmail.com:afh9yhJjbvSPGcPR7U-","description":"In the format 'apikey <your_username>:<your_api_key>'"},{"key":"SECRET-KEY","value":"tbWc0vgchnRw8Mvu2-u7q","description":"Your secret key as a string"}],"body":{"mode":"formdata","formdata":[{"key":"pdf","type":"file","src":"yrJ4KC_k1/00000049.tif"}]},"url":{"raw":"https://sandbox-api.photoncommerce.com/api/v4?doctype=check","protocol":"https","host":["sandbox-api","photoncommerce","com"],"path":["api","v4"],"query":[{"key":"doctype","value":"check"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Thu, 28 Apr 2022 04:43:51 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"total\": 129.88,\n        \"subtotal\": 129.88,\n        \"tax\": 0,\n        \"discount\": 0,\n        \"documentType\": \"Check\",\n        \"invoiceNumber\": \"\",\n        \"checkNumber\": \"013248\",\n        \"purchaseOrderNumber\": \"\",\n        \"documentDate\": \"2021-04-09\",\n        \"documentUploadCreatedDate\": \"2022-04-27 21:43:51\",\n        \"transactionOrderDate\": \"\",\n        \"serviceStartDate\": \"\",\n        \"serviceEndDate\": \"\",\n        \"currencyCode\": \"USD\",\n        \"payerAccountNumber\": \"\",\n        \"payeeName\": \"CITY ELECTRIC SUPPLY CO.\",\n        \"payeeAddress\": \"PO BOX 131811, DALLAS TX 75313\",\n        \"payeeAddressLine\": \"PO BOX 131811\",\n        \"payeeCity\": \"DALLAS\",\n        \"payeeState\": \"TX\",\n        \"payeeZipcode\": \"75313\",\n        \"payeeCountry\": \"US\",\n        \"payeeVATNumber\": \"\",\n        \"payeeEmail\": \"\",\n        \"paymentMethod\": \"Check\",\n        \"payerName\": \"RETAIL POWER, INC.\",\n        \"payerEmail\": \"\",\n        \"payerAddress\": \"6180 PARKWAY NORTH DRIVE, CUMMING, GA 30040\",\n        \"payerAddressLine\": \"6180 PARKWAY NORTH DRIVE\",\n        \"payerCity\": \"CUMMING\",\n        \"payerState\": \"GA\",\n        \"payerZipcode\": \"30040\",\n        \"payerCountry\": \"US\",\n        \"payerPhone\": \"\",\n        \"payerFax\": \"\",\n        \"payerWebsite\": \"\",\n        \"payerABNNumber\": \"\",\n        \"payerBankName\": \"\",\n        \"payerBankNumber\": \"061120851\",\n        \"payerBankAccountNumber\": \"12700011\",\n        \"payerBankSWIFTCode\": \"\",\n        \"payerIBAN\": \"\",\n        \"pages\": 1,\n        \"isDuplicate\": 0,\n        \"memo\": \"\",\n        \"lineItems\": [],\n        \"isHandwritten\": 1,\n        \"originalDocument\": 1,\n        \"rawText\": \"©\\nTHE REVEASE SIDE OF THIS\\nDOCUMENT INCLUDES MICROPRINTED ENDOASĖMENT UNES AND ARTIFICIAL WATEAMARK - HOLD AT AN ANGLE 18 VIEW\\nTHE PIEDMONT BANK\\n13248\\n64-2085/611\\nCHECK NO.\\nRETAIL POWER, INC.\\n6180 PARKWAY NORTH DRIVE\\nCUMMING, GA 30040\\n13248\\nDATE\\nAMOUNT\\n******ONE HUNDRED TWENTY NINE DOLLARS AND 88 CENTS******\\nTHIS DOCUMENT IS PAINTED ON TONER ADHESION PAPER\\nHEAT SENSITIVE RED IMAGE DISAPPEARS WITH HEAT\\n****\\n04/09/21\\n*129.88\\nPAY\\nTO THE\\nORDER\\nOF\\nCITY ELECTRIC SUPPLY CO.\\nATTN: ACCOUNTS RECEIVABLE\\nDALLAS DIVISION\\nPO BOX 131811\\nDALLAS TX 75313\\nhet\\nAUTHORIZED SIGNATURE\\n31 min\\nTADES\\n01324811\\n1:06 1 1 208 511: 12700011\",\n        \"referenceNumber\": \"\",\n        \"fraudScore\": 5,\n        \"riskScore\": 5,\n        \"anomalyScore\": 5,\n        \"photonKey\": \"data/BYPASS/2022-04-27/21-43-45-636324_005038098501_00000481.json\",\n        \"docPath\": \"data/BYPASS/2022-04-27/21-43-45-636324_005038098501_00000481.pdf\"\n    },\n    \"message\": \"success\",\n    \"status\": \"success\"\n}"},{"id":"19c156cc-1036-421a-9322-6421f579fa51","name":"Scan a Check - URL","originalRequest":{"method":"POST","header":[{"key":"PASSWORD","value":"blah","description":"The password you used for your email registration"},{"key":"CLIENT-ID","value":"9nHg-Ss_knhvy","description":"Unique Client_ID for every user. Incorrect value will lead to an authorization error"},{"key":"AUTHORIZATION","value":"apikey xyz@gmail.com:afh9yhJjbvSPGcPR7U-","description":"In the format 'apikey <your_username>:<your_api_key>'"},{"key":"SECRET-KEY","value":"tbWc0vgchnRw8Mvu2-u7q","description":"Your secret key as a string"}],"url":{"raw":"https://sandbox-api.photoncommerce.com/api/v4?url=https://photon-api-demo.s3.us-west-1.amazonaws.com/demo_docs/00-50-38-098501_00000481.pdf&doctype=check&type=async","protocol":"https","host":["sandbox-api","photoncommerce","com"],"path":["api","v4"],"query":[{"key":"url","value":"https://photon-api-demo.s3.us-west-1.amazonaws.com/demo_docs/00-50-38-098501_00000481.pdf","description":"URL of a file on the cloud"},{"key":"doctype","value":"check"},{"key":"type","value":"async"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Thu, 28 Apr 2022 04:43:51 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"total\": 129.88,\n        \"subtotal\": 129.88,\n        \"tax\": 0,\n        \"discount\": 0,\n        \"documentType\": \"Check\",\n        \"invoiceNumber\": \"\",\n        \"checkNumber\": \"013248\",\n        \"purchaseOrderNumber\": \"\",\n        \"documentDate\": \"2021-04-09\",\n        \"documentUploadCreatedDate\": \"2022-04-27 21:43:51\",\n        \"transactionOrderDate\": \"\",\n        \"serviceStartDate\": \"\",\n        \"serviceEndDate\": \"\",\n        \"currencyCode\": \"USD\",\n        \"payerAccountNumber\": \"\",\n        \"payeeName\": \"CITY ELECTRIC SUPPLY CO.\",\n        \"payeeAddress\": \"PO BOX 131811, DALLAS TX 75313\",\n        \"payeeAddressLine\": \"PO BOX 131811\",\n        \"payeeCity\": \"DALLAS\",\n        \"payeeState\": \"TX\",\n        \"payeeZipcode\": \"75313\",\n        \"payeeCountry\": \"US\",\n        \"payeeVATNumber\": \"\",\n        \"payeeEmail\": \"\",\n        \"paymentMethod\": \"Check\",\n        \"payerName\": \"RETAIL POWER, INC.\",\n        \"payerEmail\": \"\",\n        \"payerAddress\": \"6180 PARKWAY NORTH DRIVE, CUMMING, GA 30040\",\n        \"payerAddressLine\": \"6180 PARKWAY NORTH DRIVE\",\n        \"payerCity\": \"CUMMING\",\n        \"payerState\": \"GA\",\n        \"payerZipcode\": \"30040\",\n        \"payerCountry\": \"US\",\n        \"payerPhone\": \"\",\n        \"payerFax\": \"\",\n        \"payerWebsite\": \"\",\n        \"payerABNNumber\": \"\",\n        \"payerBankName\": \"\",\n        \"payerBankNumber\": \"061120851\",\n        \"payerBankAccountNumber\": \"12700011\",\n        \"payerBankSWIFTCode\": \"\",\n        \"payerIBAN\": \"\",\n        \"pages\": 1,\n        \"isDuplicate\": 0,\n        \"memo\": \"\",\n        \"lineItems\": [],\n        \"isHandwritten\": 1,\n        \"originalDocument\": 1,\n        \"fraudScore\": 0,\n        \"anomalyScore\": 12,\n        \"rawText\": \"©\\nTHE REVEASE SIDE OF THIS\\nDOCUMENT INCLUDES MICROPRINTED ENDOASĖMENT UNES AND ARTIFICIAL WATEAMARK - HOLD AT AN ANGLE 18 VIEW\\nTHE PIEDMONT BANK\\n13248\\n64-2085/611\\nCHECK NO.\\nRETAIL POWER, INC.\\n6180 PARKWAY NORTH DRIVE\\nCUMMING, GA 30040\\n13248\\nDATE\\nAMOUNT\\n******ONE HUNDRED TWENTY NINE DOLLARS AND 88 CENTS******\\nTHIS DOCUMENT IS PAINTED ON TONER ADHESION PAPER\\nHEAT SENSITIVE RED IMAGE DISAPPEARS WITH HEAT\\n****\\n04/09/21\\n*129.88\\nPAY\\nTO THE\\nORDER\\nOF\\nCITY ELECTRIC SUPPLY CO.\\nATTN: ACCOUNTS RECEIVABLE\\nDALLAS DIVISION\\nPO BOX 131811\\nDALLAS TX 75313\\nhet\\nAUTHORIZED SIGNATURE\\n31 min\\nTADES\\n01324811\\n1:06 1 1 208 511: 12700011\",\n        \"referenceNumber\": \"\",\n        \"fraudScore\": 5,\n        \"riskScore\": 5,\n        \"anomalyScore\": 5,\n        \"photonKey\": \"data/BYPASS/2022-04-27/21-43-45-636324_005038098501_00000481.json\",\n        \"docPath\": \"data/BYPASS/2022-04-27/21-43-45-636324_005038098501_00000481.pdf\"\n    },\n    \"message\": \"success\",\n    \"status\": \"success\"\n}"}],"_postman_id":"b789d16a-5b42-4879-a623-e6f441eb55a4"},{"name":"Retrieve JSON of uploaded file","id":"e0934538-4fc3-4d59-b0da-1729bd2df925","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"PASSWORD","value":"string","description":"<p>The password you used for your email registration</p>\n","type":"default"},{"key":"SECRET-KEY","value":"string","description":"<p>Your secret key as a string</p>\n","type":"default"},{"key":"CLIENT-ID","value":"string","description":"<p>Unique Client_ID for every user. Incorrect value will lead to an authorization error</p>\n","type":"default"},{"key":"AUTHORIZATION","value":"string","description":"<p>Pass your username and unique API key  in the form 'apikey :'</p>\n","type":"default"}],"url":"https://sandbox-api.photoncommerce.com/api/v4/json?photon_key=<photon-key>","urlObject":{"protocol":"https","path":["api","v4","json"],"host":["sandbox-api","photoncommerce","com"],"query":[{"description":{"content":"<p>The photon_key of the uploaded file to fetch the JSON of.</p>\n","type":"text/plain"},"key":"photon_key","value":"<photon-key>"}],"variable":[]}},"response":[{"id":"de6b082f-3d9c-4b77-958c-c210a6754023","name":"Retrieve JSON of uploaded file","originalRequest":{"method":"GET","header":[{"key":"PASSWORD","value":"blah","description":"The password you used for your email registration"},{"key":"SECRET-KEY","value":"9nHg-Ss_knhvy","description":"Your secret key as a string"},{"key":"CLIENT-ID","value":"apikey xyz@gmail.com:afh9yhJjbvSPGcPR7U-","description":"Unique Client_ID for every user. Incorrect value will lead to an authorization error"},{"key":"AUTHORIZATION","value":"tbWc0vgchnRw8Mvu2-u7q","description":"Pass your username and unique API key  in the form 'apikey <your_username>:<your_api_key>'"}],"url":{"raw":"https://sandbox-api.photoncommerce.com/api/v4/json?photon_key=data/BYPASS/2022-04-27/21-43-45-636324_005038098501_00000481.json","protocol":"https","host":["sandbox-api","photoncommerce","com"],"path":["api","v4","json"],"query":[{"key":"photon_key","value":"data/BYPASS/2022-04-27/21-43-45-636324_005038098501_00000481.json"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Thu, 28 Apr 2022 04:48:38 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"total\": 129.88,\n        \"subtotal\": 129.88,\n        \"tax\": 0,\n        \"discount\": 0,\n        \"documentType\": \"Check\",\n        \"invoiceNumber\": \"\",\n        \"checkNumber\": \"013248\",\n        \"purchaseOrderNumber\": \"\",\n        \"documentDate\": \"2021-04-09\",\n        \"documentUploadCreatedDate\": \"2022-04-27 21:43:51\",\n        \"transactionOrderDate\": \"\",\n        \"serviceStartDate\": \"\",\n        \"serviceEndDate\": \"\",\n        \"currencyCode\": \"USD\",\n        \"payerAccountNumber\": \"\",\n        \"payeeName\": \"CITY ELECTRIC SUPPLY CO.\",\n        \"payeeAddress\": \"PO BOX 131811, DALLAS TX 75313\",\n        \"payeeAddressLine\": \"PO BOX 131811\",\n        \"payeeCity\": \"DALLAS\",\n        \"payeeState\": \"TX\",\n        \"payeeZipcode\": \"75313\",\n        \"payeeCountry\": \"US\",\n        \"payeeVATNumber\": \"\",\n        \"payeeEmail\": \"\",\n        \"paymentMethod\": \"Check\",\n        \"payerName\": \"RETAIL POWER, INC.\",\n        \"payerEmail\": \"\",\n        \"payerAddress\": \"6180 PARKWAY NORTH DRIVE, CUMMING, GA 30040\",\n        \"payerAddressLine\": \"6180 PARKWAY NORTH DRIVE\",\n        \"payerCity\": \"CUMMING\",\n        \"payerState\": \"GA\",\n        \"payerZipcode\": \"30040\",\n        \"payerCountry\": \"US\",\n        \"payerPhone\": \"\",\n        \"payerFax\": \"\",\n        \"payerWebsite\": \"\",\n        \"payerABNNumber\": \"\",\n        \"payerBankName\": \"\",\n        \"payerBankNumber\": \"061120851\",\n        \"payerBankAccountNumber\": \"12700011\",\n        \"payerBankSWIFTCode\": \"\",\n        \"payerIBAN\": \"\",\n        \"pages\": 1,\n        \"isDuplicate\": 0,\n        \"memo\": \"\",\n        \"lineItems\": [],\n        \"isHandwritten\": 1,\n        \"originalDocument\": 1,\n        \"rawText\": \"©\\nTHE REVEASE SIDE OF THIS\\nDOCUMENT INCLUDES MICROPRINTED ENDOASĖMENT UNES AND ARTIFICIAL WATEAMARK - HOLD AT AN ANGLE 18 VIEW\\nTHE PIEDMONT BANK\\n13248\\n64-2085/611\\nCHECK NO.\\nRETAIL POWER, INC.\\n6180 PARKWAY NORTH DRIVE\\nCUMMING, GA 30040\\n13248\\nDATE\\nAMOUNT\\n******ONE HUNDRED TWENTY NINE DOLLARS AND 88 CENTS******\\nTHIS DOCUMENT IS PAINTED ON TONER ADHESION PAPER\\nHEAT SENSITIVE RED IMAGE DISAPPEARS WITH HEAT\\n****\\n04/09/21\\n*129.88\\nPAY\\nTO THE\\nORDER\\nOF\\nCITY ELECTRIC SUPPLY CO.\\nATTN: ACCOUNTS RECEIVABLE\\nDALLAS DIVISION\\nPO BOX 131811\\nDALLAS TX 75313\\nhet\\nAUTHORIZED SIGNATURE\\n31 min\\nTADES\\n01324811\\n1:06 1 1 208 511: 12700011\",\n        \"referenceNumber\": \"\",\n        \"fraudScore\": 5,\n        \"riskScore\": 5,\n        \"anomalyScore\": 5,\n        \"photonKey\": \"data/BYPASS/2022-04-27/21-43-45-636324_005038098501_00000481.json\",\n        \"docPath\": \"data/BYPASS/2022-04-27/21-43-45-636324_005038098501_00000481.pdf\"\n    },\n    \"message\": \"success\",\n    \"status\": \"success\"\n}"}],"_postman_id":"e0934538-4fc3-4d59-b0da-1729bd2df925"}],"id":"0d5e4898-45b8-41e1-aa26-23b701fbb44f","description":"<p><strong>Need accurate data from checks or remittance documents? We've got you covered.</strong></p>\n<p>Our <strong>professional human review team</strong> ensures high-accuracy extraction and verification of:</p>\n<ul>\n<li><p>✔️ Remittance line items</p>\n</li>\n<li><p>✔️ Check MICR line data, LAR and CAR amounts, Signature detection</p>\n</li>\n<li><p>✔️ All other relevant check/remittance information</p>\n</li>\n</ul>\n<p>Perfect for use cases where <strong>precision matters</strong> — especially in financial workflows and audits.</p>\n<p>Snippets of API calls in various languages, such as python, PHP, JAVA, C#, etc., are available upon request.</p>\n<p>***Note:**<strong>If you're a Sandbox user, please route all requests to</strong> <a href=\"https://mailto:sandbox-api@photoncommerce.com\"><b>sandbox-api.photoncommerce.com</b></a> <strong>instead of api.photoncommerce.com</strong></p>\n<p>The following section explains how to pass your credentials to authenticate API requests and receive your JSON response.</p>\n","_postman_id":"0d5e4898-45b8-41e1-aa26-23b701fbb44f"},{"name":"8. Update Data - Checks & Remittances","item":[{"name":"Update Fields","id":"ddb7b252-b0a5-470b-8cf1-14acf568a171","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"string","type":"default","description":"<p>set to 'application/json'</p>\n"},{"key":"CLIENT-ID","value":"string","type":"default","description":"<p>Unique client-id provided during user\nregistration</p>\n"},{"key":"AUTHORIZATION","value":"string","type":"default","description":"<p>In the format 'apikey your-username:your-api-key'</p>\n"},{"key":"PASSWORD","value":"string","type":"default","description":"<p>Password used during user registration</p>\n"},{"key":"SECRET-KEY","value":"string","type":"default","description":"<p>Your secret key as a string</p>\n"}],"body":{"mode":"raw","raw":"{\"total\": 1234.50, \"payerName\": \"ABC\"}","options":{"raw":{"language":"text"}}},"url":"https://sandbox-api.photoncommerce.com/api/v4/update?photon_key=data/BYPASS/2022-04-27/21-35-15-258869_00000763.json","description":"<p>Update fields using a PUT request</p>\n<p>You can update any key field present in the JSON data. While submitting the data for the PUT request, make sure that the datatype of the values are preserved. The key fields, their description and datatype can be found in the example responses from the preceeding section 'Parse Checks &amp; Remittances'.</p>\n<p>For the example given, the updated JSON will have total set as 1234.50 and payerName set as 'ABC'. You can use the GET request under 'Retrieve JSON of upload file' mentioned in the preceeding section to fetch the JSON and verify if the changes have been successfully applied</p>\n","urlObject":{"protocol":"https","path":["api","v4","update"],"host":["sandbox-api","photoncommerce","com"],"query":[{"description":{"content":"<p>The photon key of the json file to update</p>\n","type":"text/plain"},"key":"photon_key","value":"data/BYPASS/2022-04-27/21-35-15-258869_00000763.json"}],"variable":[]}},"response":[{"id":"4a1db1ff-3726-4bd2-8183-da784dfabc97","name":"Update Fields","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"string","type":"default","description":"set to 'application/json'"},{"key":"CLIENT-ID","value":"string","type":"default","description":"Unique client-id provided during user\nregistration"},{"key":"AUTHORIZATION","value":"string","type":"default","description":"In the format 'apikey your-username:your-api-key'"},{"key":"PASSWORD","value":"string","type":"default","description":"Password used during user registration"},{"key":"SECRET-KEY","value":"string","type":"default","description":"Your secret key as a string"}],"body":{"mode":"raw","raw":"{\"total\": 1234.50, \"payerName\": \"ABC\"}","options":{"raw":{"language":"text"}}},"url":{"raw":"https://sandbox-api.photoncommerce.com/api/v4/update?photon_key=data/BYPASS/2022-04-27/23-37-26-612753_00000763.json","protocol":"https","host":["sandbox-api","photoncommerce","com"],"path":["api","v4","update"],"query":[{"key":"photon_key","value":"data/BYPASS/2022-04-27/23-37-26-612753_00000763.json","description":"The photon key of the json file to update"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Thu, 28 Apr 2022 06:47:11 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"PUT, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Updated successfully\",\n    \"status\": \"success\"\n}"}],"_postman_id":"ddb7b252-b0a5-470b-8cf1-14acf568a171"},{"name":"Update Line Items","id":"d03d7013-0a96-40de-880e-1d6d6bb4e3f5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"CLIENT-ID","value":"string","type":"default","description":"<p>Unique client-id provided during user\nregistration</p>\n"},{"key":"AUTHORIZATION","value":"string","type":"default","description":"<p>In the format 'apikey your-username:your-api-key'</p>\n"},{"key":"SECRET-KEY","value":"string","type":"default","description":"<p>Your secret key as a string</p>\n"},{"key":"PASSWORD","value":"string","type":"default","description":"<p>Password used during user registration</p>\n"},{"key":"Content-Type","value":"string","type":"default","description":"<p>Set to \"application/json\"</p>\n"}],"body":{"mode":"raw","raw":"{\"invoiceNumber\":\"COL / 064811\"}"},"url":"https://sandbox-api.photoncommerce.com/api/v4/update/line-items/1?photon_key=data/BYPASS/2022-04-27/21-35-15-258869_00000763.json","description":"<p>To update an existing line item, submit a PUT request with new values in the PUT body.</p>\n<p>line-item-id: the string that is the value of \"line\" for line item to be updated.</p>\n<p>Line items that can updated:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>\"invoiceNumber\":   string - invoice number mentioned to refer to,\n\"description\":  string - raw item description,\n\"date\":  date of the line item as a string \"YYYY-MM-DD\",\n\"quantity\":  decimal - number of units,\n\"unitOfMeasure\": unit of measure,\n\"purchaseOrderNumber\": string - sometimes listed under the header 'PO',\n\"referenceNumber\": string - voucher numbers, other ids for reference,\n\"taxRate\": decimal - the tax rate levied,\n\"taxAmount\": decimal - the total tax levied based on the tax rate and the amount,\n\"type\": string - inferred product or service\n\"unitPrice\": decimal - unit price,\n\"discount\": decimal - line item discount amount,\n\"amount\": decimal - total pricing\n\n</code></pre><p>In the request example, we will be updating the invoiceNumber of the first line item. That's why the request URL has 'line-items/1'. To update the 2nd line item, it should be replaced by 'line-items/2' and so on.</p>\n","urlObject":{"protocol":"https","path":["api","v4","update","line-items","1"],"host":["sandbox-api","photoncommerce","com"],"query":[{"key":"photon_key","value":"data/BYPASS/2022-04-27/21-35-15-258869_00000763.json"}],"variable":[]}},"response":[{"id":"1759536c-a0a4-4ed6-8332-4e7311aebdbd","name":"Update Line Items","originalRequest":{"method":"PUT","header":[{"key":"CLIENT-ID","value":"string","type":"default","description":"Unique client-id provided during user\nregistration"},{"key":"AUTHORIZATION","value":"string","type":"default","description":"In the format 'apikey your-username:your-api-key'"},{"key":"SECRET-KEY","value":"string","type":"default","description":"Your secret key as a string"},{"key":"PASSWORD","value":"string","type":"default","description":"Password used during user registration"},{"key":"Content-Type","value":"string","type":"default","description":"Set to \"application/json\""}],"body":{"mode":"raw","raw":"{\"invoiceNumber\":\"COL / 064811\"}"},"url":{"raw":"https://sandbox-api.photoncommerce.com/api/v4/update/line-items/1?photon_key=data/BYPASS/2022-04-27/21-35-15-258869_00000763.json","protocol":"https","host":["sandbox-api","photoncommerce","com"],"path":["api","v4","update","line-items","1"],"query":[{"key":"photon_key","value":"data/BYPASS/2022-04-27/21-35-15-258869_00000763.json"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Thu, 28 Apr 2022 07:07:37 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"OPTIONS, POST, PUT, DELETE"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Updated line item successfully\",\n    \"status\": \"success\"\n}"}],"_postman_id":"d03d7013-0a96-40de-880e-1d6d6bb4e3f5"},{"name":"Add Line Item","id":"9c8e2a54-7a39-4b8a-adf7-5f5ca1a103b6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"string","type":"default","description":"<p>Set to \"application/json\"</p>\n"},{"key":"CLIENT-ID","value":"string","type":"default","description":"<p>Unique client-id provided upon user \nregistration</p>\n"},{"key":"AUTHORIZATION","value":"string","type":"default","description":"<p>In the format 'apikey your-username:your-api-key'</p>\n"},{"key":"PASSWORD","value":"string","type":"default","description":"<p>Password used during user registration</p>\n"},{"key":"SECRET-KEY","value":"string","type":"default","description":"<p>Secret key provided as a string</p>\n"}],"body":{"mode":"raw","raw":"{\"invoiceNumber\": \"Test/12\", \"description\": \"Adding a test line item\", \"unitPrice\": 1234.56, \"tax\": 5.0, \"amount\": 1239.56}"},"url":"https://sandbox-api.photoncommerce.com/api/v4/update/line-items?photon_key=data/BYPASS/2022-04-28/00-32-38-219467_00000763.json","description":"<p>To add a new line item, submit a POST request with the data to be updated as a string of dictionary.</p>\n<p>Line Item Keys that can be added:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>\"SKU\":   string - parsed SKU code,\n\"Description\":  string - raw item description,\n\"Date\":  date of the line item as a string \"YYYY-MM-DD\",\n\"Order\":  integer - Order of the item,\n\"Reference\":  string - Reference ID for the item,\n\"QTY\":  decimal number of units,\n\"Unit\": unit of measure,\n\"Price\": decimal unit price,\n\"Amount\": decimal total pricing,\n\"Discount\": decimal line item discount amount,\n\"Tax_Rate\":  the tax rate levied,\n\"Tax\": decimal line item tax amount,\n\"Type\": inferred product or service string\n\n</code></pre>","urlObject":{"protocol":"https","path":["api","v4","update","line-items"],"host":["sandbox-api","photoncommerce","com"],"query":[{"description":{"content":"<p>The photon key of the json file to update</p>\n","type":"text/plain"},"key":"photon_key","value":"data/BYPASS/2022-04-28/00-32-38-219467_00000763.json"}],"variable":[]}},"response":[{"id":"b9abd1b1-54f7-4b81-9c2c-1034a2606abb","name":"Add Line Item","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"string","type":"default","description":"Set to \"application/json\""},{"key":"CLIENT-ID","value":"string","type":"default","description":"Unique client-id provided upon user \nregistration"},{"key":"AUTHORIZATION","value":"string","type":"default","description":"In the format 'apikey your-username:your-api-key'"},{"key":"PASSWORD","value":"string","type":"default","description":"Password used during user registration"},{"key":"SECRET-KEY","value":"string","type":"default","description":"Secret key provided as a string"}],"body":{"mode":"raw","raw":"{\"invoiceNumber\": \"Test/12\", \"description\": \"Adding a test line item\", \"unitPrice\": 1234.56, \"tax\": 5.0, \"amount\": 1239.56}"},"url":{"raw":"https://sandbox-api.photoncommerce.com/api/v4/update/line-items?photon_key=data/BYPASS/2022-04-28/00-32-38-219467_00000763.json","protocol":"https","host":["sandbox-api","photoncommerce","com"],"path":["api","v4","update","line-items"],"query":[{"key":"photon_key","value":"data/BYPASS/2022-04-28/00-32-38-219467_00000763.json","description":"The photon key of the json file to update"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Thu, 28 Apr 2022 07:50:57 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"DELETE, POST, PUT, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Updated line item successfully\",\n    \"status\": \"success\"\n}"}],"_postman_id":"9c8e2a54-7a39-4b8a-adf7-5f5ca1a103b6"},{"name":"Delete Line Item","id":"c67c45f4-d5f2-4cea-b5e1-5e8055cfb2a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"CLIENT-ID","value":"string","type":"default","description":"<p>Unique client-id provided upon user\nregistration</p>\n"},{"key":"AUTHORIZATION","value":"string","type":"default","description":"<p>In the format 'apikey your-username:your-api-key'</p>\n"},{"key":"SECRET-KEY","value":"string","type":"default","description":"<p>Secret key as a string</p>\n"},{"key":"PASSWORD","value":"string","type":"default","description":"<p>Password used during user registration</p>\n"},{"key":"Content-Type","value":"string","type":"default","description":"<p>Set to \"application/json\"</p>\n"}],"url":"https://sandbox-api.photoncommerce.com/api/v4/update/line-items/4?photon_key=data/BYPASS/2022-04-28/00-32-38-219467_00000763.json","description":"<p>To delete an existing line item, submit a DELETE request with the corresponding line item ID.</p>\n<p>This method can be used to delete one line item at a time.</p>\n<p>line-item-id: the string that is the value of \"Line\" for line item to be deleted</p>\n","urlObject":{"protocol":"https","path":["api","v4","update","line-items","4"],"host":["sandbox-api","photoncommerce","com"],"query":[{"description":{"content":"<p>Photon Key of the JSON file that needs to\nbe updated</p>\n","type":"text/plain"},"key":"photon_key","value":"data/BYPASS/2022-04-28/00-32-38-219467_00000763.json"}],"variable":[]}},"response":[{"id":"4f2ada5b-4137-4eae-a0d1-f7a07b64169e","name":"Delete Line Item","originalRequest":{"method":"DELETE","header":[{"key":"CLIENT-ID","value":"string","type":"default","description":"Unique client-id provided upon user\nregistration"},{"key":"AUTHORIZATION","value":"string","type":"default","description":"In the format 'apikey your-username:your-api-key'"},{"key":"SECRET-KEY","value":"string","type":"default","description":"Secret key as a string"},{"key":"PASSWORD","value":"string","type":"default","description":"Password used during user registration"},{"key":"Content-Type","value":"string","type":"default","description":"Set to \"application/json\""}],"url":{"raw":"https://sandbox-api.photoncommerce.com/api/v4/update/line-items/4?photon_key=data/BYPASS/2022-04-28/00-32-38-219467_00000763.json","protocol":"https","host":["sandbox-api","photoncommerce","com"],"path":["api","v4","update","line-items","4"],"query":[{"key":"photon_key","value":"data/BYPASS/2022-04-28/00-32-38-219467_00000763.json","description":"Photon Key of the JSON file that needs to\nbe updated"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Thu, 28 Apr 2022 07:55:15 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"OPTIONS, POST, PUT, DELETE"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Deleted line item successfully\",\n    \"status\": \"success\"\n}"}],"_postman_id":"c67c45f4-d5f2-4cea-b5e1-5e8055cfb2a4"}],"id":"03ffd2d8-6228-469f-8e1e-7bc17907f17b","description":"<p>To update the values extracted by Photon Commerce from Checks &amp; Remittances</p>\n<p><strong>*Note:<br />If you're a Sandbox user, please route all requests to</strong> <a href=\"mailto:sandbox-api@photoncommerce.com\"><strong>sandbox-api.photoncommerce.com</strong></a> <strong>instead of api.photoncommerce.com</strong></p>\n","_postman_id":"03ffd2d8-6228-469f-8e1e-7bc17907f17b"},{"name":"9. Bank and Card Statements PDF to JSON","item":[{"name":"Bank Statement API","id":"99290b72-0239-40cc-aa97-7b8094c20de0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"PASSWORD","value":"string","description":"<p>The password you used for your email registration</p>\n","type":"text"},{"key":"CLIENT-ID","value":"string","description":"<p>Unique Client_ID for every user. Incorrect value will lead to an authorization error</p>\n","type":"text"},{"key":"AUTHORIZATION","value":"string","description":"<p>In the format 'apikey :'</p>\n","type":"text"},{"key":"SECRET-KEY","value":"string","description":"<p>Your secret key as a string</p>\n","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"pdf","description":"<p>path to local file</p>\n","type":"file","src":"hDN2YTn5Z/Chase_Bank_Statement1.pdf"}]},"url":"https://sandbox-api.photoncommerce.com/statements/v1?doctype=statement&type=async","description":"<p>Bank statement parsing in seconds!</p>\n<p>By posting a <strong>PDF</strong> bank statement to our <strong>statements/v1</strong> endpoint, you can receive a structured data response in a matter of <em>3-4 seconds.</em></p>\n<p><strong>cURL Request</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>curl --location --request POST 'https://sandbox-api.photoncommerce.com/statements/v1' \\\n--header 'PASSWORD: Passit123@' \\\n--header 'SECRET-KEY: XTuxgZcVC5A3g2RgV7W4' \\\n--header 'AUTHORIZATION: apikey shilpasabarwal81gmail.com:5z4HZ9EVifqYUqCYRsJM' \\\n--header 'CLIENT-ID: qrAm1tjJSzof9Q' \\\n-F 'pdf=@Chase_Bank_Statement.pdf'\n\n</code></pre><p><strong>Response</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"data\": {\n        \"starting_balance\": 11146.68,\n        \"ending_balance\": 13946.68,\n        \"tot_credit\": 2802.4,\n        \"tot_debit\": 2.4,\n        \"statement_end_date\": \"2021-04-26\",\n        \"statement_start_date\": \"2021-03-25\",\n        \"account_number\": \"001100322730721\",\n        \"client_name\": \"JANE DOE\",\n        \"account_type\": \"Chase College Checking\",\n        \"bank_name\": \"CHASE\",\n        \"bank_address\": \"JPMorgan Chase Bank, N.A.\\nPO Box 182051\\nColumbus, OH 43218 - 2051\",\n        \"client_address\": \"30 NEWPORT PKWY\",\n        \"transactions\": [\n            {\n                \"date\": \"2021-04-01\",\n                \"type\": \"credit\",\n                \"description\": \"PPD ID: 9320517957\",\n                \"amount\": 2800.0\n            },\n            {\n                \"date\": \"2021-04-16\",\n                \"type\": \"credit\",\n                \"description\": \"CCD ID: 1800948598\",\n                \"amount\": 1.25\n            },\n            {\n                \"date\": \"2021-04-19\",\n                \"type\": \"credit\",\n                \"description\": \"CCD ID: 1800948598\",\n                \"amount\": 1.15\n            },\n            {\n                \"date\": \"2021-04-22\",\n                \"type\": \"debit\",\n                \"description\": \"American Express ACH Pmt M2730 Web ID: 2005134111\",\n                \"amount\": 2.40\n            }\n        ],\n        \"photon_key\": \"data/janedoe/2022-09-26/06-25-44-948850_Chase_Bank_Statement1.json\",\n        \"doc_path\": \"\",\n        \"hash_json\": \"data/janedoe/2022-09-26/06-25-44-948850_Chase_Bank_Statement1.json\",\n        \"Is_Duplicate\": 0\n    },\n    \"message\": \"success\",\n    \"status\": \"success\"\n}\n\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">def parse_statement(f):\n    URL1 = f'https://sandbox-api.photoncommerce.com/statements/v1'\n    files = {'pdf': open(f, 'rb')}\n    headers = {\n        'Content-Type': 'application/json',\n        'CLIENT-ID': 'iyeHs0oJRAooRw',\n        'AUTHORIZATION': 'apikey pran.81gmail.com:e-hmk5s3qeSaWhc368pd',\n        'PASSWORD':'Passit123',\n        'SECRET-KEY':'Fie5rhNz-XnqeUiVcIr5'\n    }\n    r = requests.post(URL1, files=files, headers=headers)\n    return r.json()\npath_to_file = 'Chase_Bank_Statement.pdf' #replace this with the local path to your own file\nr = parse_statement(path_to_file)\nprint(r)\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["statements","v1"],"host":["sandbox-api","photoncommerce","com"],"query":[{"key":"doctype","value":"statement"},{"key":"type","value":"async"}],"variable":[]}},"response":[],"_postman_id":"99290b72-0239-40cc-aa97-7b8094c20de0"}],"id":"0c4e24e2-538c-4f86-b140-177f0c67a5a5","description":"<p>Bank statement parsing in seconds!</p>\n<p>By posting a <strong>PDF</strong> bank statement to our <strong>statements/v1</strong> endpoint, you can receive a structured data response in a matter of <em>3-4 seconds.</em></p>\n<p><strong>*Note:<br />If you're a Sandbox user, please route all requests to</strong> <a href=\"mailto:sandbox-api@photoncommerce.com\"><strong>sandbox-api.photoncommerce.com</strong></a> <strong>instead of api.photoncommerce.com</strong></p>\n","_postman_id":"0c4e24e2-538c-4f86-b140-177f0c67a5a5"},{"name":"10. Bill of Lading","item":[{"name":"Bill of Lading API","id":"68dd4f72-c3b4-4bcd-b93b-cd5c588d21e3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"PASSWORD","value":"string","description":"<p>The password you used for your email registration</p>\n","type":"text"},{"key":"CLIENT-ID","value":"string","description":"<p>Unique Client_ID for every user. Incorrect value will lead to an authorization error</p>\n","type":"text"},{"key":"AUTHORIZATION","value":"string","description":"<p>In the format 'apikey :'</p>\n","type":"text"},{"key":"SECRET-KEY","value":"string","description":"<p>Your secret key as a string</p>\n","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"pdf","description":"<p>path to local file</p>\n","type":"file","src":"M9FQSZrSc/APL.pdf"}]},"url":"https://sandbox-api.photoncommerce.com/api/v4?type=async&doctype=bol","description":"<p><em>Get human-reviewed data extractions from a BOL by simply posting it our API!</em></p>\n<p><strong>cURL Request</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>curl --location --request POST 'https://sandbox-api.photoncommerce.com/api/v4?type=async&amp;doctype=bol' \\\n--header 'PASSWORD: your-password' \\\n--header 'SECRET-KEY: your-secret-key' \\\n--header 'AUTHORIZATION: apikey your-username:your-api-key' \\\n--header 'CLIENT-ID: your-client-id' \\\n-F 'pdf=@BOL.pdf'\n\n</code></pre><p><strong>Response</strong></p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"BOL_Number\": \"EGLV002700640670 \",\n    \"Booking_Number\": \"\",\n    \"Shipper\": \"TRANS WAGON INT'L CO.,LTD. \",\n    \"Consignee\": \"STRAIGHT FORWARDING INC. \",\n    \"Notify_Party\": \"STRAIGHT FORWARDING INC. \",\n    \"Vessel\": \"EVER STEADY\",\n    \"Voyage\": \"0907-066E\",\n    \"Loading_Port\": \"KAOHSIUNG, TAIWAN\",\n    \"Discharge_Port\": \"LOS ANGELES, CA \",\n    \"Receipt_Address\": \"TAICHUNG, TAIWAN \",\n    \"Delivery_Address\": \"LOS ANGELES, CA \",\n    \"Marks_and_Numbers\": \"TCNU2203208\",\n    \"Goods_Description\": \"THESE ARE FOR RELIGIOUS USE ONLY. THEY WILL BE USED IN THE BUDDHIST TEMPLE AND NOT FOR RESALE. RELIGIOUS RITES GOODS\\nHS  CODE 3406.00\",\n    \"Origin_Service_Terms\": \"O\",\n    \"Destination_Service_Terms\": \"O\",\n    \"Total_Quantity\": 1830,\n    \"Total_Quantity_UOM\": \"PACKAGES\",\n    \"Total_Measurement\": 62.18,\n    \"Total_Measurement_UOM\": \"CBM\",\n    \"Containers\": [\n        {\n            \"Container_Number\": \"TCNU2203208\",\n            \"Seal_Number\": \"EMCGNE1746\",\n            \"Type_and_Size\": \"40H\",\n            \"Quantity\": 1830,\n            \"Quantity_UOM\": \"PACKAGES\",\n            \"Weight\": 24503.32,\n            \"Weight_UOM\": \"KGS\",\n            \"Measurement\": 62.18,\n            \"Measurement_UOM\": \"CBM\"\n        }\n    ]\n}\n\n</code></pre>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">def parse_bol(f):\n    URL1 = f'https://sandbox-api.photoncommerce.com/api/v4?type=async&amp;doctype=bol'\n    files = {'pdf': open(f, 'rb')}\n    headers = {\n        'Content-Type': 'application/json',\n        'CLIENT-ID': 'your-client-id',\n        'AUTHORIZATION': 'apikey your-username:your-api-key',\n        'PASSWORD':'your-password',\n        'SECRET-KEY':'your-secret-key'\n    }\n    r = requests.post(URL1, files=files, headers=headers)\n    return r.json()\npath_to_file = 'BOL.pdf' #replace this with the local path to your own file\nr = parse_bol(path_to_file)\nprint(r)\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["api","v4"],"host":["sandbox-api","photoncommerce","com"],"query":[{"key":"type","value":"async"},{"key":"doctype","value":"bol"}],"variable":[]}},"response":[],"_postman_id":"68dd4f72-c3b4-4bcd-b93b-cd5c588d21e3"},{"name":"Retrieve JSON of uploaded file","id":"60fa0fde-0048-4eac-9140-14c3e4ac6e80","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"PASSWORD","value":"string","description":"<p>The password you used for your email registration</p>\n","type":"default"},{"key":"SECRET-KEY","value":"string","description":"<p>Your secret key as a string</p>\n","type":"default"},{"key":"CLIENT-ID","value":"string","description":"<p>Unique Client_ID for every user. Incorrect value will lead to an authorization error</p>\n","type":"default"},{"key":"AUTHORIZATION","value":"string","description":"<p>Pass your username and unique API key  in the form 'apikey :'</p>\n","type":"default"}],"url":"https://sandbox-api.photoncommerce.com/api/v4/json?photon_key=<photon-key>","urlObject":{"protocol":"https","path":["api","v4","json"],"host":["sandbox-api","photoncommerce","com"],"query":[{"description":{"content":"<p>The photon_key of the uploaded file to fetch the JSON of.</p>\n","type":"text/plain"},"key":"photon_key","value":"<photon-key>"}],"variable":[]}},"response":[{"id":"8cb8050e-f0bd-43af-925d-8a09ec9b1aee","name":"Retrieve JSON of uploaded file","originalRequest":{"method":"GET","header":[{"key":"PASSWORD","value":"blah","description":"The password you used for your email registration","type":"default"},{"key":"SECRET-KEY","value":"9nHg-Ss_knhvy","description":"Your secret key as a string","type":"default"},{"key":"CLIENT-ID","value":"apikey xyz@gmail.com:afh9yhJjbvSPGcPR7U-","description":"Unique Client_ID for every user. Incorrect value will lead to an authorization error","type":"default"},{"key":"AUTHORIZATION","value":"tbWc0vgchnRw8Mvu2-u7q","description":"Pass your username and unique API key  in the form 'apikey <your_username>:<your_api_key>'","type":"default"}],"url":{"raw":"https://sandbox-api.photoncommerce.com/api/v4/json?photon_key=your-key-here","protocol":"https","host":["sandbox-api","photoncommerce","com"],"path":["api","v4","json"],"query":[{"key":"photon_key","value":"your-key-here"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Thu, 28 Apr 2022 04:48:38 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"BOL_Number\": \"EGLV002700640670 \",\n        \"Booking_Number\": \"\",\n        \"Shipper\": \"TRANS WAGON INT'L CO.,LTD. \",\n        \"Consignee\": \"STRAIGHT FORWARDING INC. \",\n        \"Notify_Party\": \"STRAIGHT FORWARDING INC. \",\n        \"Vessel\": \"EVER STEADY\",\n        \"Voyage\": \"0907-066E\",\n        \"Loading_Port\": \"KAOHSIUNG, TAIWAN\",\n        \"Discharge_Port\": \"LOS ANGELES, CA \",\n        \"Receipt_Address\": \"TAICHUNG, TAIWAN \",\n        \"Delivery_Address\": \"LOS ANGELES, CA \",\n        \"Marks_and_Numbers\": \"TCNU2203208\",\n        \"Goods_Description\": \"THESE ARE FOR RELIGIOUS USE ONLY. THEY WILL BE USED IN THE BUDDHIST TEMPLE AND NOT FOR RESALE. RELIGIOUS RITES GOODS\\nHS  CODE 3406.00\",\n        \"Origin_Service_Terms\": \"O\",\n        \"Destination_Service_Terms\": \"O\",\n        \"Total_Quantity\": 1830,\n        \"Total_Quantity_UOM\": \"PACKAGES\",\n        \"Total_Measurement\": 62.18,\n        \"Total_Measurement_UOM\": \"CBM\",\n        \"Containers\": [\n            {\n                \"Container_Number\": \"TCNU2203208\",\n                \"Seal_Number\": \"EMCGNE1746\",\n                \"Type_and_Size\": \"40H\",\n                \"Quantity\": 1830,\n                \"Quantity_UOM\": \"PACKAGES\",\n                \"Weight\": 24503.32,\n                \"Weight_UOM\": \"KGS\",\n                \"Measurement\": 62.18,\n                \"Measurement_UOM\": \"CBM\"\n            }\n        ],\n        \"Fraud_Score\": 5,\n        \"Risk_Score\": 5,\n        \"Anomaly_Score\": 5,\n        \"photon_key\": \"your-photon-key\"\n    },\n    \"message\": \"success\",\n    \"status\": \"success\"\n}"}],"_postman_id":"60fa0fde-0048-4eac-9140-14c3e4ac6e80"}],"id":"3b313121-31cf-4a3d-a696-4c3a719d6858","description":"<p>To help you standardise HBL, MBL and BOL data, Photon now extracts data for key fields from these documents!</p>\n<p>All you need to do is post a document to the /api/v4 endpoint with doctype as one of hbl, mbl or bol and leave the rest to us.</p>\n<p>***Note:**<strong>If you're a Sandbox user, please route all requests to</strong> <a href=\"https://mailto:sandbox-api@photoncommerce.com\"><b>sandbox-api.photoncommerce.com</b></a> **instead of api.photoncommerce.com  </p>\n<p>Sample Extraction:**</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"BOL_Number\": \"EGLV002700640670 \",\n    \"Booking_Number\": \"\",\n    \"Shipper\": \"TRANS WAGON INT'L CO.,LTD. \",\n    \"Consignee\": \"STRAIGHT FORWARDING INC. \",\n    \"Notify_Party\": \"STRAIGHT FORWARDING INC. \",\n    \"Vessel\": \"EVER STEADY\",\n    \"Voyage\": \"0907-066E\",\n    \"Loading_Port\": \"KAOHSIUNG, TAIWAN\",\n    \"Discharge_Port\": \"LOS ANGELES, CA \",\n    \"Receipt_Address\": \"TAICHUNG, TAIWAN \",\n    \"Delivery_Address\": \"LOS ANGELES, CA \",\n    \"Marks_and_Numbers\": \"TCNU2203208\",\n    \"Goods_Description\": \"THESE ARE FOR RELIGIOUS USE ONLY. THEY WILL BE USED IN THE BUDDHIST TEMPLE AND NOT FOR RESALE. RELIGIOUS RITES GOODS\\nHS  CODE 3406.00\",\n    \"Origin_Service_Terms\": \"O\",\n    \"Destination_Service_Terms\": \"O\",\n    \"Total_Quantity\": 1830,\n    \"Total_Quantity_UOM\": \"PACKAGES\",\n    \"Total_Measurement\": 62.18,\n    \"Total_Measurement_UOM\": \"CBM\",\n    \"Containers\": [\n        {\n            \"Container_Number\": \"TCNU2203208\",\n            \"Seal_Number\": \"EMCGNE1746\",\n            \"Type_and_Size\": \"40H\",\n            \"Quantity\": 1830,\n            \"Quantity_UOM\": \"PACKAGES\",\n            \"Weight\": 24503.32,\n            \"Weight_UOM\": \"KGS\",\n            \"Measurement\": 62.18,\n            \"Measurement_UOM\": \"CBM\"\n        }\n    ]\n}\n\n</code></pre>\n","_postman_id":"3b313121-31cf-4a3d-a696-4c3a719d6858"},{"name":"11. Email Integration","item":[],"id":"0dcae61f-eb93-4cca-8dc5-8335b5429f6a","description":"<p>Integrating with our API is super easy and quick—but we’ve made it even easier to extract data from your documents. With our <strong>email integration</strong>, you can simply send documents as email attachments, and we’ll take care of the rest. No setup, no coding—just results.</p>\n<p>Once your documents are processed, we’ll email back structured JSON data, along with downloadable Excel files, so you can put your data to work instantly.</p>\n<p>This is perfect for:<br />✅ <strong>Faster testing</strong>—quickly validate results without writing code.<br />✅ <strong>Non-technical teams</strong>—submit and receive data effortlessly.<br />✅ <strong>Flexible workflows</strong>—customize responses to fit your needs.</p>\n<p>To activate email processing or request custom configurations, contact <a href=\"https://null\"><b>support@photoncommerce.com</b></a>.</p>\n<h3 id=\"how-it-works\"><strong>How It Works</strong></h3>\n<ol>\n<li><p><strong>Send Documents</strong>: Attach your files and email them to our processing address.</p>\n</li>\n<li><p><strong>First Response</strong>: You’ll receive a confirmation email with <code>photon_keys</code>, unique identifiers for each document. These can be used to retrieve results later, if needed, via our API*.</p>\n</li>\n<li><p><strong>Final Response</strong>: Once all documents in the email are processed, you’ll receive:</p>\n<ul>\n<li><p><strong>Original documents</strong></p>\n</li>\n<li><p><strong>Extracted JSON data</strong></p>\n</li>\n<li><p><strong>XLSX files</strong> (one per document, unless customized)</p>\n</li>\n</ul>\n</li>\n</ol>\n<p>*Note: To <a href=\"https://apidocs.photoncommerce.com/#0cff019e-2a12-41da-947f-e2adcef1dd10\">retrieve results via the API</a>, you need to <a href=\"https://apidocs.photoncommerce.com/#ed28e5cb-1d41-4568-8fc1-c8a175c965fb\">register for a free sandbox account</a> using the same email that is used to send documents to us.</p>\n<h3 id=\"customization-options\"><strong>Customization Options</strong></h3>\n<p>We understand that every business has unique needs. That’s why we offer flexible response formats, including but not limited to:</p>\n<ul>\n<li><p>📊 <strong>Single vs. Consolidated XLSX</strong>: Receive individual Excel files per document or a single, combined spreadsheet.</p>\n</li>\n<li><p>🛠 <strong>Custom JSON Structure</strong>: Tailor the JSON output to match your internal systems.</p>\n</li>\n</ul>\n<p>If you need any customizations, reach out to <a href=\"https://null\"><b>support@photoncommerce.com</b></a> for a quote.</p>\n<h3 id=\"limitations\"><strong>Limitations</strong></h3>\n<ul>\n<li><p><strong>Email Attachment Limits</strong>: Individual document size cannot exceed 25MB and the total size across all attachments should be lower than 25 MB.</p>\n</li>\n<li><p><strong>No Live Status Updates</strong>: Unlike our API, email processing doesn’t provide real-time progress tracking.</p>\n</li>\n<li><p><strong>No. of Attachments:</strong> While there is no explicit limit on the no. of documents you can attach in a single email (as far as the total size is &lt;25 MB), we recommend keeping the number of attachments in a single email <strong>below 10</strong> to avoid delays*.</p>\n</li>\n</ul>\n<p>*Since responses are only sent after all documents in an email are processed, large batches may take longer to return results.</p>\n<p>For businesses needing <strong>faster processing, larger file support, or API-driven automation</strong>, we recommend using our <strong>asynchronous API service</strong>.</p>\n<p>To activate email submission or discuss your specific needs, contact <a href=\"https://null\"><b>support@photoncommerce.com</b></a> today! 🚀</p>\n","_postman_id":"0dcae61f-eb93-4cca-8dc5-8335b5429f6a"},{"name":"12. Document Splitter","item":[{"name":"Split Document - Web URL","id":"deea7604-fd10-4996-8899-9139a0b5ce71","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"CLIENT-ID","value":"clientIDHere","description":"<p>Unique Client_ID for every user. The preset value for this header is a working test credential specially curated for this sample request.</p>\n","type":"default"},{"key":"AUTHORIZATION","value":"apikey usernameHere:apikeyHere","description":"<p>In the format 'apikey :'. The preset value for this header is a working test credential specially curated for this sample request.</p>\n","type":"default"},{"key":"PASSWORD","value":"passwordHere","description":"<p>The password you used for your email registration. The preset value for this header is a working test credential specially curated for this sample request.</p>\n","type":"default"},{"key":"SECRET-KEY","value":"secretKeyHere","description":"<p>Your secret key as a string. The preset value for this header is a working test credential specially curated for this sample request.</p>\n","type":"default"}],"url":"https://sandbox-api.photoncommerce.com/docsplitter?url=https://photon-api-demo.s3.us-west-1.amazonaws.com/demo_docs/multidocument.pdf","description":"<h4 id=\"get-code-snippets-in-any-language-by-changing-the-language-option-in-the-bar-above-and-look-to-the-right-window-or-run-code-snippets-in-postman-by-scrolling-to-the-top-of-this-page-and-clicking-the-run-in-postman-button-in-the-upper-right-hand-corner\">*Get code snippets in any language by changing the LANGUAGE option in the bar above, and look to the right window. Or, run code snippets in Postman by scrolling to the top of this page and clicking the \"Run in Postman\" button in the upper right hand corner.</h4>\n","urlObject":{"protocol":"https","path":["docsplitter"],"host":["sandbox-api","photoncommerce","com"],"query":[{"key":"url","value":"https://photon-api-demo.s3.us-west-1.amazonaws.com/demo_docs/multidocument.pdf"},{"disabled":true,"key":"","value":""}],"variable":[]}},"response":[{"id":"f03d0c0b-5164-45d9-9e91-abaa5c92a707","name":"Split Document via URL","originalRequest":{"method":"POST","header":[{"key":"CLIENT-ID","value":"clientIDHere","description":"Unique Client_ID for every user. The preset value for this header is a working test credential specially curated for this sample request.","type":"default"},{"key":"AUTHORIZATION","value":"apikey usernameHere:apikeyHere","description":"In the format 'apikey <your_username>:<your_api_key>'. The preset value for this header is a working test credential specially curated for this sample request.","type":"default"},{"key":"PASSWORD","value":"passwordHere","description":"The password you used for your email registration. The preset value for this header is a working test credential specially curated for this sample request.","type":"default"},{"key":"SECRET-KEY","value":"secretKeyHere","description":"Your secret key as a string. The preset value for this header is a working test credential specially curated for this sample request.","type":"default"}],"url":{"raw":"https://sandbox-api.photoncommerce.com/docsplitter?url=https://photon-api-demo.s3.us-west-1.amazonaws.com/demo_docs/multidocument.pdf","protocol":"https","host":["sandbox-api","photoncommerce","com"],"path":["docsplitter"],"query":[{"key":"url","value":"https://photon-api-demo.s3.us-west-1.amazonaws.com/demo_docs/multidocument.pdf"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Sun, 09 Jan 2022 14:38:48 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Successfully split the document.\",\n    \"status\": \"successful\",\n    \"data\": {\n        \"page_split\": [\n            1,\n            2,\n            4,\n            5\n        ],\n        \"photon_key\": \"data/BYPASS/2022-11-24/22-49-29-337018_multidocument.json\"\n    }\n}"}],"_postman_id":"deea7604-fd10-4996-8899-9139a0b5ce71"},{"name":"Split Document - Local","id":"cd6eccb9-a00d-4760-9f2b-4a3831f0b8f1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"CLIENT-ID","value":"clientIDHere","description":"<p>Unique Client_ID for every user. The preset value for this header is a working test credential specially curated for this sample request.</p>\n","type":"default"},{"key":"AUTHORIZATION","value":"apikey usernameHere:apikeyHere","description":"<p>In the format 'apikey :'. The preset value for this header is a working test credential specially curated for this sample request.</p>\n","type":"default"},{"key":"PASSWORD","value":"passwordHere","description":"<p>The password you used for your email registration. The preset value for this header is a working test credential specially curated for this sample request.</p>\n","type":"default"},{"key":"SECRET-KEY","value":"secretKeyHere","description":"<p>Your secret key as a string. The preset value for this header is a working test credential specially curated for this sample request.</p>\n","type":"default"}],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":"nwHLnPCR8/multidocument.pdf"}]},"url":"https://sandbox-api.photoncommerce.com/docsplitter","description":"<h4 id=\"get-code-snippets-in-any-language-by-changing-the-language-option-in-the-bar-above-and-look-to-the-right-window-or-run-code-snippets-in-postman-by-scrolling-to-the-top-of-this-page-and-clicking-the-run-in-postman-button-in-the-upper-right-hand-corner\">*Get code snippets in any language by changing the LANGUAGE option in the bar above, and look to the right window. Or, run code snippets in Postman by scrolling to the top of this page and clicking the \"Run in Postman\" button in the upper right hand corner.</h4>\n","urlObject":{"protocol":"https","path":["docsplitter"],"host":["sandbox-api","photoncommerce","com"],"query":[{"disabled":true,"key":"","value":""},{"disabled":true,"key":"","value":""}],"variable":[]}},"response":[{"id":"ef8fdc1d-e01f-46ed-b0a5-fb2cac83555f","name":"Split Local Document","originalRequest":{"method":"POST","header":[{"key":"CLIENT-ID","value":"clientIDHere","description":"Unique Client_ID for every user. The preset value for this header is a working test credential specially curated for this sample request.","type":"default"},{"key":"AUTHORIZATION","value":"apikey usernameHere:apikeyHere","description":"In the format 'apikey <your_username>:<your_api_key>'. The preset value for this header is a working test credential specially curated for this sample request.","type":"default"},{"key":"PASSWORD","value":"passwordHere","description":"The password you used for your email registration. The preset value for this header is a working test credential specially curated for this sample request.","type":"default"},{"key":"SECRET-KEY","value":"secretKeyHere","description":"Your secret key as a string. The preset value for this header is a working test credential specially curated for this sample request.","type":"default"}],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":"oE3IpbJ1o/multidocument.pdf"}]},"url":{"raw":"https://sandbox-api.photoncommerce.com/docsplitter","protocol":"https","host":["sandbox-api","photoncommerce","com"],"path":["docsplitter"],"query":[{"key":"","value":"","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Sun, 09 Jan 2022 14:38:48 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Successfully split the document.\",\n    \"status\": \"successful\",\n    \"data\": {\n        \"page_split\": [\n            1,\n            2,\n            4,\n            5\n        ],\n        \"photon_key\": \"data/BYPASS/2022-11-24/22-49-29-337018_multidocument.json\"\n    }\n}"}],"_postman_id":"cd6eccb9-a00d-4760-9f2b-4a3831f0b8f1"}],"id":"1e943ca9-e917-4fec-bcd8-08a966aa319a","description":"<p><em><strong>Introducing a new feature - Document Splitter</strong></em></p>\n<p>Does your document contain multiple invoices within it? Our intelligent splitter can help you by detecting the page boundaries and tell you where exactly an invoice ends and another one begins! With our detected page boundaries and a few lines of code, you can easily separate out individual invoices from your document.</p>\n<p>Not sure whether your document contains a single invoice or multiple ones? Try our API and let us help you!</p>\n<p><strong>*Note:<br />If you're a Sandbox user, please route all requests to</strong> <a href=\"mailto:sandbox-api@photoncommerce.com\"><strong>sandbox-api.photoncommerce.com</strong></a> <strong>instead of api.photoncommerce.com</strong></p>\n","_postman_id":"1e943ca9-e917-4fec-bcd8-08a966aa319a"},{"name":"13. Document Type Detector","item":[{"name":"Classify Document - Web URL","id":"4fbaa10e-ba0f-479a-b5ab-d5474760894e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"CLIENT-ID","value":"clientIDHere","description":"<p>Unique Client_ID for every user. The preset value for this header is a working test credential specially curated for this sample request.</p>\n","type":"default"},{"key":"AUTHORIZATION","value":"apikey usernameHere:apikeyHere","description":"<p>In the format 'apikey :'. The preset value for this header is a working test credential specially curated for this sample request.</p>\n","type":"default"},{"key":"PASSWORD","value":"passwordHere","description":"<p>The password you used for your email registration. The preset value for this header is a working test credential specially curated for this sample request.</p>\n","type":"default"},{"key":"SECRET-KEY","value":"secretKeyHere","description":"<p>Your secret key as a string. The preset value for this header is a working test credential specially curated for this sample request.</p>\n","type":"default"}],"url":"https://sandbox-api.photoncommerce.com/classify?url=https://photon-api-demo.s3.us-west-1.amazonaws.com/demo_docs/Chase-Bank-Statement-BankStatements.net_.pdf","description":"<h4 id=\"get-code-snippets-in-any-language-by-changing-the-language-option-in-the-bar-above-and-look-to-the-right-window-or-run-code-snippets-in-postman-by-scrolling-to-the-top-of-this-page-and-clicking-the-run-in-postman-button-in-the-upper-right-hand-corner\">*Get code snippets in any language by changing the LANGUAGE option in the bar above, and look to the right window. Or, run code snippets in Postman by scrolling to the top of this page and clicking the \"Run in Postman\" button in the upper right hand corner.</h4>\n","urlObject":{"protocol":"https","path":["classify"],"host":["sandbox-api","photoncommerce","com"],"query":[{"disabled":true,"key":"","value":""},{"key":"url","value":"https://photon-api-demo.s3.us-west-1.amazonaws.com/demo_docs/Chase-Bank-Statement-BankStatements.net_.pdf"}],"variable":[]}},"response":[{"id":"f30e80ce-f118-4b91-8fba-5b19929f1cd4","name":"Split Document via URL","originalRequest":{"method":"POST","header":[{"key":"CLIENT-ID","value":"clientIDHere","description":"Unique Client_ID for every user. The preset value for this header is a working test credential specially curated for this sample request.","type":"default"},{"key":"AUTHORIZATION","value":"apikey usernameHere:apikeyHere","description":"In the format 'apikey <your_username>:<your_api_key>'. The preset value for this header is a working test credential specially curated for this sample request.","type":"default"},{"key":"PASSWORD","value":"passwordHere","description":"The password you used for your email registration. The preset value for this header is a working test credential specially curated for this sample request.","type":"default"},{"key":"SECRET-KEY","value":"secretKeyHere","description":"Your secret key as a string. The preset value for this header is a working test credential specially curated for this sample request.","type":"default"}],"url":{"raw":"https://sandbox-api.photoncommerce.com/classify?url=https://photon-api-demo.s3.us-west-1.amazonaws.com/demo_docs/Chase-Bank-Statement-BankStatements.net_.pdf","protocol":"https","host":["sandbox-api","photoncommerce","com"],"path":["classify"],"query":[{"key":"url","value":"https://photon-api-demo.s3.us-west-1.amazonaws.com/demo_docs/Chase-Bank-Statement-BankStatements.net_.pdf"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Sun, 09 Jan 2022 14:38:48 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Successfully detected the document type.\",\n    \"status\": \"successful\",\n    \"data\": {\n        \"document_type\": \"statement\",\n        \"photon_key\": \"data/username/2024-01-01/22-49-29-337018_doc.json\"\n    }\n}"}],"_postman_id":"4fbaa10e-ba0f-479a-b5ab-d5474760894e"},{"name":"Classify Document - Local","id":"04ea4ecd-f69d-4404-b06c-16f8bb587955","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"CLIENT-ID","value":"clientIDHere","description":"<p>Unique Client_ID for every user. The preset value for this header is a working test credential specially curated for this sample request.</p>\n","type":"default"},{"key":"AUTHORIZATION","value":"apikey usernameHere:apikeyHere","description":"<p>In the format 'apikey :'. The preset value for this header is a working test credential specially curated for this sample request.</p>\n","type":"default"},{"key":"PASSWORD","value":"passwordHere","description":"<p>The password you used for your email registration. The preset value for this header is a working test credential specially curated for this sample request.</p>\n","type":"default"},{"key":"SECRET-KEY","value":"secretKeyHere","description":"<p>Your secret key as a string. The preset value for this header is a working test credential specially curated for this sample request.</p>\n","type":"default"}],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["nwHLnPCR8/multidocument.pdf"],"src":"lea6YGdcZ/Chase-Bank-Statement-BankStatements.net_.pdf"}]},"url":"https://sandbox-api.photoncommerce.com/classify","description":"<h4 id=\"get-code-snippets-in-any-language-by-changing-the-language-option-in-the-bar-above-and-look-to-the-right-window-or-run-code-snippets-in-postman-by-scrolling-to-the-top-of-this-page-and-clicking-the-run-in-postman-button-in-the-upper-right-hand-corner\">*Get code snippets in any language by changing the LANGUAGE option in the bar above, and look to the right window. Or, run code snippets in Postman by scrolling to the top of this page and clicking the \"Run in Postman\" button in the upper right hand corner.</h4>\n","urlObject":{"protocol":"https","path":["classify"],"host":["sandbox-api","photoncommerce","com"],"query":[{"disabled":true,"key":"","value":""}],"variable":[]}},"response":[{"id":"6888d8ea-c040-4c86-9952-362ed1934f54","name":"Split Local Document","originalRequest":{"method":"POST","header":[{"key":"CLIENT-ID","value":"clientIDHere","description":"Unique Client_ID for every user. The preset value for this header is a working test credential specially curated for this sample request.","type":"default"},{"key":"AUTHORIZATION","value":"apikey usernameHere:apikeyHere","description":"In the format 'apikey <your_username>:<your_api_key>'. The preset value for this header is a working test credential specially curated for this sample request.","type":"default"},{"key":"PASSWORD","value":"passwordHere","description":"The password you used for your email registration. The preset value for this header is a working test credential specially curated for this sample request.","type":"default"},{"key":"SECRET-KEY","value":"secretKeyHere","description":"Your secret key as a string. The preset value for this header is a working test credential specially curated for this sample request.","type":"default"}],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","fileNotInWorkingDirectoryWarning":"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can setup your working directory in Settings.","filesNotInWorkingDirectory":["oE3IpbJ1o/multidocument.pdf"],"src":"NH4fvIFdN/Chase-Bank-Statement-BankStatements.net_.pdf"}]},"url":{"raw":"https://sandbox-api.photoncommerce.com/classify","protocol":"https","host":["sandbox-api","photoncommerce","com"],"path":["classify"],"query":[{"key":"","value":"","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Sun, 09 Jan 2022 14:38:48 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Successfully detected the document type.\",\n    \"status\": \"successful\",\n    \"data\": {\n        \"document_type\": \"statement\",\n        \"photon_key\": \"data/username/2024-01-01/22-49-29-337018_doc.json\"\n    }\n}"}],"_postman_id":"04ea4ecd-f69d-4404-b06c-16f8bb587955"}],"id":"9cb7f63a-28ee-44f1-ac7a-ff1417c23798","description":"<p><em><strong>Introducing a new feature - Document Type Detector</strong></em></p>\n<p>Have multiple documents and are finding manual document classification time consuming? Our intelligent document type detector can help you by detecting the document type based on the document text, dimensions and other aspects ! Now, you can easily route documents to our PRO API with this detected document type and have 99.9% accurate data extracted within minutes!</p>\n<p>Not sure whether your document classifies as a commercial invoice or BOL? Try our API and let us help you!</p>\n<p>Our algorithms can currently detect the following document types:</p>\n<ol>\n<li><p>invoice</p>\n</li>\n<li><p>receipt</p>\n</li>\n<li><p>bill-utility: Utility Bill</p>\n</li>\n<li><p>remittance</p>\n</li>\n<li><p>check</p>\n</li>\n<li><p>statement: Bank Statement</p>\n</li>\n<li><p>bol: Bill of Lading</p>\n</li>\n<li><p>invoice-commercial: Commercial Invoice</p>\n</li>\n</ol>\n<p>***Note:**<strong>If you're a Sandbox user, please route all requests to</strong> <a href=\"https://mailto:sandbox-api@photoncommerce.com\"><b>sandbox-api.photoncommerce.com</b></a> <strong>instead of api.photoncommerce.com</strong></p>\n","_postman_id":"9cb7f63a-28ee-44f1-ac7a-ff1417c23798"},{"name":"14. Rotate Keys","item":[{"name":"Rotate keys","id":"867a8e1d-7c01-40d5-adee-56114fb3a6d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"your-email-here","description":"<p>The email associated with your account</p>\n","type":"text"}]},"url":"https://sandbox-api.photoncommerce.com/rotate-keys","description":"<p>Make sure that the email address passed in the request is the one you used to register an account with us.  </p>\n<p>The response {\"message\": \"An email has been sent to your registered email address. Please check your inbox and verify your email address\", \"status\": \"successful\"} suggests that the request went through correctly.  </p>\n<p>In case you receive a different response from the one mentioned above, the \"message\" in the response will be indicative of the exact error in your request.</p>\n","urlObject":{"protocol":"https","path":["rotate-keys"],"host":["sandbox-api","photoncommerce","com"],"query":[],"variable":[]}},"response":[{"id":"019c1283-2217-4833-9ddb-aa9b30c59a09","name":"Rotate keys","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"email","value":"your-email-here","description":"The email associated with your account","type":"text"}]},"url":"https://sandbox-api.photoncommerce.com/rotate-keys"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"An email has been sent to your registered email address. Please check your inbox and verify your email address\",\n    \"status\": \"successful\"\n}"}],"_postman_id":"867a8e1d-7c01-40d5-adee-56114fb3a6d5"}],"id":"82afeaa9-c8cd-45f3-907c-0cd82662d7e2","description":"<p><em><strong>Don't have access to your credentials? Want to rotate your credentials for securtiy purposes?</strong></em></p>\n<p>We hear you! Introducing the 'Rotate keys' feature. Simply POST a request to the 'rotate-keys' endpoint with your username in the request. You will receive an email with a link to verify and confirm that it is indeed you that submitted a request to rotate the keys. Do NOT share this link with anyone. Once you click on the link, the rotated keys will be displayed and an email containing the updated credentials will also be sent to you.</p>\n<p><strong>*Note:<br />If you're a Sandbox user, please route all requests to</strong> <a href=\"mailto:sandbox-api@photoncommerce.com\"><strong>sandbox-api.photoncommerce.com</strong></a> <strong>instead of api.photoncommerce.com</strong></p>\n","_postman_id":"82afeaa9-c8cd-45f3-907c-0cd82662d7e2"},{"name":"15. Fetch Balance","item":[{"name":"Fetch API calls and Pages","id":"b97bbde1-7267-4511-ab0e-ef2c57cd2a93","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"CLIENT-ID","value":"string","description":"<p>Unique Client_ID for every user. The preset value for this header is a working test credential specially curated for this sample request.</p>\n","type":"default"},{"key":"AUTHORIZATION","value":"string","description":"<p>In the format 'apikey :'. The preset value for this header is a working test credential specially curated for this sample request.</p>\n","type":"default"},{"key":"PASSWORD","value":"string","description":"<p>The password you used for your email registration. The preset value for this header is a working test credential specially curated for this sample request.</p>\n","type":"default"},{"key":"SECRET-KEY","value":"string","description":"<p>Your secret key as a string. The preset value for this header is a working test credential specially curated for this sample request.</p>\n","type":"default"}],"url":"https://sandbox-api.photoncommerce.com/balance?year=2023&month=1","description":"<h4 id=\"get-code-snippets-in-any-language-by-changing-the-language-option-in-the-bar-above-and-look-to-the-right-window-or-run-code-snippets-in-postman-by-scrolling-to-the-top-of-this-page-and-clicking-the-run-in-postman-button-in-the-upper-right-hand-corner\">*Get code snippets in any language by changing the LANGUAGE option in the bar above, and look to the right window. Or, run code snippets in Postman by scrolling to the top of this page and clicking the \"Run in Postman\" button in the upper right hand corner.</h4>\n<p>Example request in Python:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">import requests\nurl = \"https://sandbox-api.photoncommerce.com/balance?year=2023&amp;month=1\"\npayload = {}\nheaders = {\n  'CLIENT-ID': 'string',\n  'AUTHORIZATION': 'string',\n  'PASSWORD': 'string',\n  'SECRET-KEY': 'string'\n}\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\nprint(response.text)\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["balance"],"host":["sandbox-api","photoncommerce","com"],"query":[{"description":{"content":"<p>Optional field: 4 digit year. If not mentioned, the default value will be the current year</p>\n","type":"text/plain"},"key":"year","value":"2023"},{"description":{"content":"<p>Optional field: month number. If not mentioned, the default value will be the current month</p>\n","type":"text/plain"},"key":"month","value":"1"}],"variable":[]}},"response":[{"id":"d72897d5-2396-476d-8512-08bec7b03d10","name":"Fetch API Calls and Pages","originalRequest":{"method":"POST","header":[{"key":"CLIENT-ID","value":"string","description":"Unique Client_ID for every user. The preset value for this header is a working test credential specially curated for this sample request.","type":"default"},{"key":"AUTHORIZATION","value":"string","description":"In the format 'apikey <your_username>:<your_api_key>'. The preset value for this header is a working test credential specially curated for this sample request.","type":"default"},{"key":"PASSWORD","value":"string","description":"The password you used for your email registration. The preset value for this header is a working test credential specially curated for this sample request.","type":"default"},{"key":"SECRET-KEY","value":"string","description":"Your secret key as a string. The preset value for this header is a working test credential specially curated for this sample request.","type":"default"}],"url":{"raw":"https://sandbox-api.photoncommerce.com/balance?year=2023&month=1","protocol":"https","host":["sandbox-api","photoncommerce","com"],"path":["balance"],"query":[{"key":"year","value":"2023","description":"Optional field: 4 digit year. If not mentioned, the default value will be the current year"},{"key":"month","value":"1","description":"Optional field: month number. If not mentioned, the default value will be the current month"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Sun, 09 Jan 2022 14:38:48 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"user\": \"BYPASS\",\n            \"api_calls\": 1985,\n            \"pages\": 1987\n        }\n    ],\n    \"message\": \"success\",\n    \"status\": \"success\"\n}"}],"_postman_id":"b97bbde1-7267-4511-ab0e-ef2c57cd2a93"},{"name":"Fetch subaccount level API calls and Pages","id":"8e19187d-3116-4f8f-b812-84c436c17a5c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"CLIENT-ID","value":"string","description":"<p>Unique Client_ID for every user. The preset value for this header is a working test credential specially curated for this sample request.</p>\n","type":"default"},{"key":"AUTHORIZATION","value":"string","description":"<p>In the format 'apikey :'. The preset value for this header is a working test credential specially curated for this sample request.</p>\n","type":"default"},{"key":"PASSWORD","value":"string","description":"<p>The password you used for your email registration. The preset value for this header is a working test credential specially curated for this sample request.</p>\n","type":"default"},{"key":"SECRET-KEY","value":"string","description":"<p>Your secret key as a string. The preset value for this header is a working test credential specially curated for this sample request.</p>\n","type":"default"}],"url":"https://sandbox-api.photoncommerce.com/balance?year=2023&subaccount=True","description":"<h4 id=\"get-code-snippets-in-any-language-by-changing-the-language-option-in-the-bar-above-and-look-to-the-right-window-or-run-code-snippets-in-postman-by-scrolling-to-the-top-of-this-page-and-clicking-the-run-in-postman-button-in-the-upper-right-hand-corner\">*Get code snippets in any language by changing the LANGUAGE option in the bar above, and look to the right window. Or, run code snippets in Postman by scrolling to the top of this page and clicking the \"Run in Postman\" button in the upper right hand corner.</h4>\n<p>Example request in Python:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-python\">import requests\nurl = \"https://sandbox-api.photoncommerce.com/balance?subaccount=True&amp;year=2023&amp;month=1\"\npayload = {}\nheaders = {\n  'CLIENT-ID': 'string',\n  'AUTHORIZATION': 'string',\n  'PASSWORD': 'string',\n  'SECRET-KEY': 'string'\n}\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\nprint(response.text)\n\n</code></pre>\n","urlObject":{"protocol":"https","path":["balance"],"host":["sandbox-api","photoncommerce","com"],"query":[{"description":{"content":"<p>Optional field: 4 digit year. If not mentioned, the default value will be the current year</p>\n","type":"text/plain"},"key":"year","value":"2023"},{"description":{"content":"<p>set to True; don't change</p>\n","type":"text/plain"},"key":"subaccount","value":"True"}],"variable":[]}},"response":[{"id":"3f88fe05-4a9c-4d14-8385-db8b73a116df","name":"An Invoice Request","originalRequest":{"method":"POST","header":[{"key":"CLIENT-ID","value":"string","type":"default"},{"key":"AUTHORIZATION","value":"string","type":"default"},{"key":"PASSWORD","value":"string","type":"default"},{"key":"SECRET-KEY","value":"string","type":"default"}],"url":{"raw":"https://sandbox-api.photoncommerce.com/balance?subaccount=True&year=2023&month=1","protocol":"https","host":["sandbox-api","photoncommerce","com"],"path":["balance"],"query":[{"key":"subaccount","value":"True","description":"set to True; don't change"},{"key":"year","value":"2023","description":"Optional field: 4 digit year. If not mentioned, the default value will be the current year"},{"key":"month","value":"1","description":"Optional field: month number. If not mentioned, the default value will be the current month"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Sun, 09 Jan 2022 14:38:48 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Vary","value":"Accept, Origin"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"user\": \"testcustomer12\",\n            \"api_calls\": 2,\n            \"pages\": 2\n        },\n        {\n            \"user\": \"niralis\",\n            \"api_calls\": 1,\n            \"pages\": 1\n        }\n    ],\n    \"message\": \"success\",\n    \"status\": \"success\"\n}"}],"_postman_id":"8e19187d-3116-4f8f-b812-84c436c17a5c"}],"id":"2744ae63-ee60-4676-a226-bc36c345bd39","description":"<p>Want to keep track of the number of API calls and document pages submitted to our API? We hear you!</p>\n<p>By submitting a GET request to the '/balance' endpoint, you can learn about the number of documents and document pages we've processed for your account in the current month.</p>\n<p>Have you been using our 'subaccount' feature and wish to fetch the balances per subaccount? All you need to do is pass 'subaccount' as True in the request, and we'll handle the rest!</p>\n<p>***Note:**<strong>If you're a Sandbox user, please route all requests to</strong> <a href=\"https://mailto:sandbox-api@photoncommerce.com\"><b>sandbox-api.photoncommerce.com</b></a> <strong>instead of api.photoncommerce.com</strong></p>\n","_postman_id":"2744ae63-ee60-4676-a226-bc36c345bd39"},{"name":"16. Server Health Check","item":[{"name":"Health API request","event":[{"listen":"test","script":{"id":"93e9eb82-2439-4092-9d7d-ffde88ba1d56","exec":["pm.test(\"Status code is 200\", function (){","    pm.response.to.have.status(200);","})","pm.test(\"Response time is less than 200ms\", function(){","    pm.expect(pm.response.responseTime).to.be.below(200);","})"],"type":"text/javascript"}}],"id":"5975899a-62a7-4c12-a06b-9965eda0eaa1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://sandbox-api.photoncommerce.com/health","description":"<p>Check the status of the server with this simple GET request.</p>\n","urlObject":{"protocol":"http","path":["health"],"host":["sandbox-api","photoncommerce","com"],"query":[],"variable":[]}},"response":[{"id":"71bc9460-2d41-49ed-81fe-cdc40010d5c7","name":"Health API request","originalRequest":{"method":"GET","header":[],"url":"http://sandbox-api.photoncommerce.com/health"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"healthy\",\n    \"status\": \"success\"\n}"}],"_postman_id":"5975899a-62a7-4c12-a06b-9965eda0eaa1"}],"id":"7f5aeaef-cb33-4ba8-bde9-26ca886d9362","description":"<p><strong>*Note:<br />If you're a Sandbox user, please route all requests to</strong> <a href=\"mailto:sandbox-api@photoncommerce.com\"><strong>sandbox-api.photoncommerce.com</strong></a> <strong>instead of api.photoncommerce.com</strong></p>\n","_postman_id":"7f5aeaef-cb33-4ba8-bde9-26ca886d9362"},{"name":"17. Exceptions & Error Codes","item":[],"id":"323bd673-7e35-46eb-92de-f81bdc96521e","description":"<p>Generally, if the document submitted by the user is processed, the \"message\" in the response is \"success\". However, there can be a lot of reasons behind why a request could not be successfully completed. To help users understand these reasons better, Photon returns custom error messages.</p>\n<p>Below is the list of all possible error messages that our API service can return within the \"message\" key and the reason for the same.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Message in response</strong></th>\n<th><strong>Context</strong></th>\n<th><strong>Status Code</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>success</td>\n<td>The request went through successfully without any issues.</td>\n<td>200</td>\n</tr>\n<tr>\n<td>Registration failed. Missing username and/or password</td>\n<td>Signing up for our services is very easy. All you need is an email and a password. You will recieve this error when of the 2 fields are missing in the registration request.</td>\n<td>400</td>\n</tr>\n<tr>\n<td>Registration failed. Username already exists</td>\n<td>The user has already signed up with this email address before. If you have lost access to your keys, you can submit a request to rotate the keys. Upon verification, a new set of credentials will be emailed to you.</td>\n<td>400</td>\n</tr>\n<tr>\n<td>Registration failed. The password does not meet minimum requirements</td>\n<td>Minimum requirements for the password: It should be at least 4 characters long.</td>\n<td>400</td>\n</tr>\n<tr>\n<td>Authentication failed. Please check your credentials</td>\n<td>The user could not be verified and hence the request could not be completed. This might occur when either the headers for authentication or at least one of the credentials are incorrect.</td>\n<td>401</td>\n</tr>\n<tr>\n<td>The free trial includes 20 pages over 14 days. Please upgrade your account for more pages by contacting <a href=\"https://mailto:sales@photoncommerce.com\">sales@photoncommerce.com</a>.</td>\n<td>When you sign up for a free trial of our API service, you can use the credentials to capture 20 document pages and will only be valid for 14 days, whichever comes first.</td>\n<td>403</td>\n</tr>\n<tr>\n<td>Both document path and URL are missing. Please pass atleast one of these values to enable processing</td>\n<td>The file to be processed was not passed correctly in the request. There are 2 ways to send a file to be processed: Either use the form-data parameter 'file' to upload local files OR the parameter 'url' to pass web URL of the file.</td>\n<td>403</td>\n</tr>\n<tr>\n<td>File extension missing from URL. Could not guess file extension from content.</td>\n<td>The web URL of the file passed in the request did not include the extension of the file. We were unable to guess the extension based on the file content possibly because either the file could not be fetched or it was corrupt.</td>\n<td>400</td>\n</tr>\n<tr>\n<td>Could not fetch the file from the URL provided. Please ensure that the file is publicly accessible.</td>\n<td>We were unable to access the file from the Web URL passed in the request. The file was not publicly accessible and hence could not be captured by us. Please update the permissions of the file and re-submit a request to enable processing.</td>\n<td>403</td>\n</tr>\n<tr>\n<td>We only accept filesizes between 1KB and 50MB</td>\n<td>We do not process files larger than 50MB and lower than 1KB in size.</td>\n<td>400</td>\n</tr>\n<tr>\n<td>Blank PDF submitted!</td>\n<td>The PDF file submitted in the request was blank and hence not processed.</td>\n<td>400</td>\n</tr>\n<tr>\n<td>This file could not be opened or may be corrupted. Please double check the file and try to send another.</td>\n<td>The file submitted was possibly corrupt.</td>\n<td>400</td>\n</tr>\n<tr>\n<td>The dimensions of the PDF file you submitted are lower than 100px. Please try uploading another file.</td>\n<td>The height and width of pages in a PDF file should be at least 100px.</td>\n<td>400</td>\n</tr>\n<tr>\n<td>Low resolution image</td>\n<td>The image file submitted was low resolution and hence could not be processed.</td>\n<td>400</td>\n</tr>\n<tr>\n<td>The image file is either too long or too wide. At least one dimension of the image should be greater than 400px and none of the dimensions should less than 100px</td>\n<td>The height and width of all images cannot both be less than 400px and none of the dimensions can be less than 100px. We do not process images that are too long or too wide.</td>\n<td>400</td>\n</tr>\n<tr>\n<td>This file type is not supported.</td>\n<td>We only support the following extensions: .pdf, .png, .jpeg, .jpg, .tif, .tiff, .heic, .doc, .docx, .xls, .xlsx, .html, .txt</td>\n<td>400</td>\n</tr>\n<tr>\n<td>Photon Key missing</td>\n<td>The \"photon_key\" was not passed correctly in the request. Either the parameter name was not correct: \"photon_key\" or this parameter was not passed in the request.</td>\n<td>403</td>\n</tr>\n<tr>\n<td>Updated line item successfully</td>\n<td>The request to update an existing line item was successfully completed.</td>\n<td>200</td>\n</tr>\n<tr>\n<td>Deleted line item successfully</td>\n<td>The request to delete an existing line item was successfully completed.</td>\n<td>200</td>\n</tr>\n<tr>\n<td>Line Item ID invalid</td>\n<td>When trying to update data for an existing line item, the line item number passed in the request is not valid. Line item number must be numeric only.</td>\n<td>403</td>\n</tr>\n<tr>\n<td>Data field missing!</td>\n<td>When sending a request to update JSON/Line items, it is mandatory to send in data that includes updated values for fields. Without this, the request cannot be completed.</td>\n<td>403</td>\n</tr>\n<tr>\n<td>Line Item with specified line ID already exists. Send a PUT request to update it.</td>\n<td>When sending a request to add a new line item, the line item number passed already exists.</td>\n<td>403</td>\n</tr>\n<tr>\n<td>Document Path missing. Please pass the document path using the doc_path parameter</td>\n<td>When submitting a request to download a file, it is mandatory to pass the path to the document using the \"doc_path\" parameter.</td>\n<td>403</td>\n</tr>\n<tr>\n<td>Document Path incorrect. Please ensure that the document path passed is correct.</td>\n<td>The document path passed in the request is invalid and does not match records. Please check the value of the doc_path parameter in the initial response and ensure that the same value is passed in the current request.</td>\n<td>403</td>\n</tr>\n<tr>\n<td>Unable to retrieve file. It was deleted on (date in YYYY-mm-dd)</td>\n<td>This suggests that you were trying to access a file that has already been deleted by you. The message will also include the date when you submitted a request to delete the file.</td>\n<td>404</td>\n</tr>\n<tr>\n<td>You are not authorized to access this document.</td>\n<td>This means that you were accessing a document that does not belong to the user account whose credentials were passed in the request.</td>\n<td>403</td>\n</tr>\n<tr>\n<td>Error occurred while fetching the document.</td>\n<td>Due to some error, we were unable to fetch the document for you to be able to download it. Please contact us to learn more.</td>\n<td>403</td>\n</tr>\n<tr>\n<td>The document you submitted is being processed.</td>\n<td>This means that the document you've submitted via our ASYNC request is being processed. If you passed token and Webhook URL in the ASYNC request, you will receive a notification when your document has been processed.</td>\n<td>200</td>\n</tr>\n<tr>\n<td>File Key missing in request. Use the parameter file_key to specify the file to delete.</td>\n<td>To delete a file, it is necessary to pass the name of the file using the parameter \"file_key\". Otherwise, this message is received in the response.</td>\n<td>403</td>\n</tr>\n<tr>\n<td>Incorrect file key in request. Please ensure that the file key passed is accurate and try again.</td>\n<td>The file_key sent in the \"Delete File\" request is incorrect and does not exist.</td>\n<td>403</td>\n</tr>\n<tr>\n<td>You are not authorized to delete this file</td>\n<td>The file you are trying to delete does not belong to the user whose credentials are passed in the request. For security purposes, a user can only delete files belonging to them.</td>\n<td>401</td>\n</tr>\n<tr>\n<td>Sucessfully deleted file.</td>\n<td>The file has been succesfully deleted. The delete request was successfully completed.</td>\n<td>200</td>\n</tr>\n<tr>\n<td>Password reset failed. Missing Client ID</td>\n<td>When submitting a request to reset the password, the CLIENT_ID is missing from the header.</td>\n<td>400</td>\n</tr>\n<tr>\n<td>Password reset failed. Missing Authorization field</td>\n<td>When submitting a request to reset the password, the AUTHORIZATION field is missing from the header.</td>\n<td>400</td>\n</tr>\n<tr>\n<td>Password reset failed. Please check the Authorization field</td>\n<td>When submitting a request to reset the password, the credentials passed in the AUTHORIZATION field were not in the correcr format. One of more portions of the credentials were missing.</td>\n<td>400</td>\n</tr>\n<tr>\n<td>Password reset failed. New password missing from request</td>\n<td>When submitting a request to reset the password, the new password was not sent in the request headers as \"PASSWORD\"</td>\n<td>400</td>\n</tr>\n<tr>\n<td>Password reset failed, could not authenticate user</td>\n<td>When submitting a request to reset the password, the credentials passed to authenticate the user did not match records. Hence we could not verify the user and complete the request.</td>\n<td>401</td>\n</tr>\n<tr>\n<td>Rotation of keys failed. Please pass your email address in the request data</td>\n<td>In case the user loses access to their keys, we provide the user with an ability to get new keys. This request reuires the user to pass their email address for verification purposes. This error message suggests that the email address was not sent in thr request.</td>\n<td>400</td>\n</tr>\n<tr>\n<td>User with this email not found. Please make sure you've passed the correct email address</td>\n<td>This error message suggests that the user hasn't signed up for our services with the email address that was sent in the request.</td>\n<td>400</td>\n</tr>\n<tr>\n<td>An email has been sent to your registered email address. Please check your inbox and verify your email address</td>\n<td>This message suggests that the user needs to verify their email address by clicking on the link received in their email from <a href=\"https://mailto:notifications@photoncommerce.com\">notifications@photoncommerce.com</a></td>\n<td>200</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"323bd673-7e35-46eb-92de-f81bdc96521e"},{"name":"18. Limits","item":[],"id":"1ce18560-a7db-4deb-8305-79854724895c","description":"<p>Photon Commerce API is easy to use, has a lot of features and provides structured responses with 99%+ accuracy. But there are some limitations.</p>\n<p><strong>Sandbox account</strong></p>\n<p>The free trial includes 20 API Calls over 14 days. To continue using our services, please upgrade your account for more API calls &amp; pages by contacting <a href=\"https://mailto:sales@photoncommerce.com\">sales@photoncommerce.com</a>.</p>\n<p><strong>File Types</strong></p>\n<p>We support the following file types:</p>\n<ol>\n<li><p>PDF - regular as well as scanned PDFs, single as well as multipage</p>\n</li>\n<li><p>Images - .png, .jpeg, .jpg, .tif, .tiff, .heic</p>\n</li>\n<li><p>Doc - .doc, .docx</p>\n</li>\n<li><p>Excel - .xls, .xlsx</p>\n</li>\n<li><p>HTML - .html</p>\n</li>\n<li><p>Text - .txt</p>\n</li>\n</ol>\n<p><strong>File Size</strong><br />We only process documents <strong>between 1KB and 50MB</strong> in size. For files lesser than 1KB and greater than 50MB in size, we return a 400 Bad Request response.  </p>\n<p><strong>API Calls Rate</strong><br />Our API call rate is set to 10 requests per second. As an example, if a user submits 11 requests to our API within a second, we set the first 10 requests for processing. Only when one of these requests has been processed, the 11th request is set for processing.</p>\n","_postman_id":"1ce18560-a7db-4deb-8305-79854724895c"}]}