{"id":19982940,"url":"https://github.com/veryfi/veryfi-nodejs","last_synced_at":"2025-04-06T18:14:23.984Z","repository":{"id":41853650,"uuid":"381820698","full_name":"veryfi/veryfi-nodejs","owner":"veryfi","description":"Node.js module for communicating with the Veryfi OCR API. || read: https://veryfi.com/nodejs","archived":false,"fork":false,"pushed_at":"2024-10-23T22:53:18.000Z","size":4448,"stargazers_count":26,"open_issues_count":0,"forks_count":8,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-10-24T12:02:00.259Z","etag":null,"topics":["api","invoice","nodejs","ocr","receipt","sdk","sdk-nodejs","veryfi","veryfi-api"],"latest_commit_sha":null,"homepage":"https://veryfi.github.io/veryfi-nodejs/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/veryfi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-30T20:08:01.000Z","updated_at":"2024-09-03T07:41:18.000Z","dependencies_parsed_at":"2024-01-02T18:45:13.605Z","dependency_job_id":"5d9be1dd-7c2b-44e5-b457-cbfc1857ded0","html_url":"https://github.com/veryfi/veryfi-nodejs","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veryfi%2Fveryfi-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veryfi%2Fveryfi-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veryfi%2Fveryfi-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veryfi%2Fveryfi-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/veryfi","download_url":"https://codeload.github.com/veryfi/veryfi-nodejs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247526762,"owners_count":20953143,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","invoice","nodejs","ocr","receipt","sdk","sdk-nodejs","veryfi","veryfi-api"],"created_at":"2024-11-13T04:13:31.010Z","updated_at":"2025-04-06T18:14:23.963Z","avatar_url":"https://github.com/veryfi.png","language":"JavaScript","readme":"# Veryfi SDK for Node.js\n\n\u003cimg src=\"https://user-images.githubusercontent.com/30125790/212157461-58bdc714-2f89-44c2-8e4d-d42bee74854e.png#gh-dark-mode-only\" width=\"200\"\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/30125790/212157486-bfd08c5d-9337-4b78-be6f-230dc63838ba.png#gh-light-mode-only\" width=\"200\"\u003e\n\n[![Node.js - version](https://img.shields.io/badge/node-%3E%3D%206.0.0-brightgreen)](https://www.npmjs.com/package/@veryfi/veryfi-sdk)\n[![npm](https://img.shields.io/badge/npm-v7.0.0-blue)](https://www.npmjs.com/package/@veryfi/veryfi-sdk)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n\n## Table of Contents\n\n- [Veryfi SDK for Node.js](#veryfi-sdk-for-nodejs)\n  - [Table of Contents](#table-of-contents)\n  - [Installation](#installation)\n  - [Getting Started](#getting-started)\n    - [Obtaining Client ID and user keys](#obtaining-client-id-and-user-keys)\n    - [Node.js API Client Library](#nodejs-api-client-library)\n    - [Extracting Data](#extracting-data)\n    - [Response](#response)\n    - [Updating a document](#updating-a-document)\n  - [Need help?](#need-help)\n    - [Learn more at our blog](#learn-more-at-our-blog)\n  - [Tutorial Video](#tutorial-video)\n\n**veryfi-nodejs** is a Node.js module for communicating with the [Veryfi OCR API](https://veryfi.com/api/)\n\n## Installation\n\nInstall from [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm), a package manager for Javascript.\n\n```bash\nnpm i @veryfi/veryfi-sdk\n```\n\nYou may need to run the above command with `sudo`.\n\n## Getting Started\n\n### Obtaining Client ID and user keys\n\nIf you don't have an account with Veryfi, please go ahead and register here: [https://app.veryfi.com/signup/api/](https://app.veryfi.com/signup/api/)\n\n### Node.js API Client Library\n\nThe **veryfi** library can be used to communicate with Veryfi API. All available functionality is described here: \u003chttps://veryfi.github.io/veryfi-nodejs/\u003e\n\nBelow is a sample script using **Veryfi** for OCR and extracting data from a document:\n\n### Extracting Data\n\n```js\nconst Client = require('@veryfi/veryfi-sdk');\nconst client_id = 'your_client_id';\nconst client_secret = 'your_client_secret';\nconst username = 'your_username';\nconst api_key = 'your_password';\n\nconst categories = ['Grocery', 'Utilities', 'Travel'];\nconst file_path = './test/receipt.png';\n```\n\nThis submits a document for processing (3-5 seconds for a response)\n\n```js\nlet veryfi_client = new Client(client_id, client_secret, username, api_key);\nlet response = veryfi_client.process_document(file_path, categories=categories).then(response =\u003e {\n  console.log(response)\n});\n```\n\n...or with a URL\n\n```js\nlet response = veryfi_client.process_document_url(url, external_id=some_id).then(response =\u003e {\n  console.log(response)\n});\n```\n\n### Response\n\n```json\n{\n  \"account_number\": \"test1\",\n          \"accounting_entry_type\": \"debit\",\n          \"balance\": null,\n          \"barcodes\": [\n    {\n      \"data\": \"101785617711518\",\n      \"type\": \"CODE128\"\n    }\n  ],\n          \"bill_to\": {\n    \"address\": null,\n            \"email\": null,\n            \"name\": null,\n            \"parsed_address\": null,\n            \"phone_number\": null,\n            \"reg_number\": null,\n            \"vat_number\": null\n  },\n  \"cashback\": null,\n          \"category\": \"Supplies\",\n          \"created_date\": \"2024-10-31 14:38:27\",\n          \"currency_code\": \"USD\",\n          \"custom_fields\": {\n    \"box_number\": null,\n            \"dsadasas\": \"dasdsadas\",\n            \"foo\": \"bar\"\n  },\n  \"date\": \"2018-10-17 09:03:00\",\n          \"default_category\": \"Job Supplies\",\n          \"delivery_date\": null,\n          \"delivery_note_number\": null,\n          \"discount\": null,\n          \"document_reference_number\": null,\n          \"document_title\": null,\n          \"document_type\": \"receipt\",\n          \"due_date\": null,\n          \"duplicate_of\": null,\n          \"exch_rate\": 1,\n          \"external_id\": null,\n          \"final_balance\": null,\n          \"guest_count\": null,\n          \"id\": 255371329,\n          \"img_blur\": false,\n          \"img_file_name\": \"255371329.png\",\n          \"img_thumbnail_url\": \"https://scdn.veryfi.com/receipts/919ba4778c039560/d9477032-8537-41cf-97dd-56cb1443a576/thumbnail.png?Expires=1730386417\u0026Signature=VNRx8OISmHUsbPk3YAItcUteEAb4GyLxHTplgCxDxGD2NDE05I7XG~92ikhZhz6oTfCPGqLc7l5Zw0PmDD7di07ZCWRqkpB2OSPUU9ZlHbDLnpenGC7QscEaf8mPb8k0UDKXMY7gw8GCCoRS7IirMnN8aIpaKeRvukIKYCJMqEkX9ncf247BcLyYvnOV20gLieIT1~mofcCebUakr3hBSAbThN0vwYNDXSqth-IpNpDAMcm-nU71KlJWFqdRv4~m3NljwhFkXy1eTK3JiV97EfZJ-Nj~MUxBKWhIjBS~~l-Dp218ogv53Ws8llP5r1RiRrdgqIOtx-8xKa21WU8vbQ__\u0026Key-Pair-Id=APKAJCILBXEJFZF4DCHQ\",\n          \"img_url\": \"https://scdn.veryfi.com/receipts/919ba4778c039560/d9477032-8537-41cf-97dd-56cb1443a576/8e9aebdd-d4f6-4fec-97c8-237dc5bd190d.png?Expires=1730386417\u0026Signature=HTydoDEasZLN7C0QTj-flLCqUqruI3ereSbllb2SEDHrxQTXZPqQ99HE87E5OsWzDmtNumGXYs4UFPjSSOOidUy38EbmyOEljp0VFxPwXMMrJtoVGGShIkTHg-desK3r0fx6xy9l~IX16SEtNCQyZLrzkjTRp0xU9kM1kVuBueW6JewxXUfiIlPu~ITwbwr7PtqRG6uHB3X1myrRXBSv-arbTaLvCrBrmIMGz0gaPH5dA~ehhDSIRvxaKTNTWX-MBloNHfhz~v7xYJyFooDwetyxV968JqGlR-Jx6EAillWbnuflfH5R~VRr~CAtbCsz9gM6q2nqVXPhDDRUl~hrkA__\u0026Key-Pair-Id=APKAJCILBXEJFZF4DCHQ\",\n          \"incoterms\": null,\n          \"insurance\": null,\n          \"invoice_number\": \"17717\",\n          \"is_approved\": false,\n          \"is_blurry\": [\n    false\n  ],\n          \"is_document\": true,\n          \"is_duplicate\": false,\n          \"is_money_in\": false,\n          \"is_transaction\": false,\n          \"license_plate_number\": null,\n          \"line_items\": [\n    {\n      \"category\": \"Supplies\",\n      \"country_of_origin\": null,\n      \"custom_fields\": {},\n      \"date\": null,\n      \"description\": \"SNIP LEFT \u003cA\u003e\\nWISS LEFT-CUT SNIPS\",\n      \"discount\": 4,\n      \"discount_price\": null,\n      \"discount_rate\": null,\n      \"end_date\": null,\n      \"full_description\": \"SNIP LEFT \u003cA\u003e\\nWISS LEFT-CUT SNIPS\",\n      \"gross_total\": null,\n      \"hsn\": null,\n      \"id\": 1146544820,\n      \"lot\": null,\n      \"manufacturer\": null,\n      \"net_total\": null,\n      \"normalized_description\": null,\n      \"order\": 0,\n      \"price\": null,\n      \"quantity\": 1,\n      \"reference\": null,\n      \"section\": null,\n      \"sku\": \"037103136480\",\n      \"start_date\": null,\n      \"subtotal\": null,\n      \"tags\": [\n        \"line_items_total_greater_than_1\"\n      ],\n      \"tax\": null,\n      \"tax_code\": null,\n      \"tax_rate\": null,\n      \"text\": \"037103136480 SNIP LEFT \u003cA\u003e\\t9.97\\nWISS LEFT-CUT SNIPS$4.00\",\n      \"total\": 9.97,\n      \"type\": \"product\",\n      \"unit_of_measure\": null,\n      \"upc\": null,\n      \"weight\": null\n    },\n    {\n      \"category\": \"Supplies\",\n      \"country_of_origin\": null,\n      \"custom_fields\": {},\n      \"date\": null,\n      \"description\": \"MILW5PCKBLDG \u003cA\u003e\\nMKE 5PK GENERAL PURPOSE BLADES\",\n      \"discount\": null,\n      \"discount_price\": null,\n      \"discount_rate\": null,\n      \"end_date\": null,\n      \"full_description\": \"MILW5PCKBLDG \u003cA\u003e\\nMKE 5PK GENERAL PURPOSE BLADES\",\n      \"gross_total\": null,\n      \"hsn\": null,\n      \"id\": 1146544822,\n      \"lot\": null,\n      \"manufacturer\": null,\n      \"net_total\": null,\n      \"normalized_description\": null,\n      \"order\": 1,\n      \"price\": null,\n      \"quantity\": 1,\n      \"reference\": null,\n      \"section\": null,\n      \"sku\": \"045242268061\",\n      \"start_date\": null,\n      \"subtotal\": null,\n      \"tags\": [\n        \"line_items_total_greater_than_1\"\n      ],\n      \"tax\": null,\n      \"tax_code\": null,\n      \"tax_rate\": null,\n      \"text\": \"045242268061 MILW5PCKBLDG \u003cA\u003e\\t1.18\\nMKE 5PK GENERAL PURPOSE BLADES\",\n      \"total\": 1.18,\n      \"type\": \"product\",\n      \"unit_of_measure\": null,\n      \"upc\": null,\n      \"weight\": null\n    },\n    {\n      \"category\": \"Supplies\",\n      \"country_of_origin\": null,\n      \"custom_fields\": {},\n      \"date\": null,\n      \"description\": \"1LB. SCREW \u003cA\u003e\\nEB NEO SELF-DRILLING 12X1\",\n      \"discount\": null,\n      \"discount_price\": null,\n      \"discount_rate\": null,\n      \"end_date\": null,\n      \"full_description\": \"1LB. SCREW \u003cA\u003e\\nEB NEO SELF-DRILLING 12X1\",\n      \"gross_total\": null,\n      \"hsn\": null,\n      \"id\": 1146544824,\n      \"lot\": null,\n      \"manufacturer\": null,\n      \"net_total\": null,\n      \"normalized_description\": null,\n      \"order\": 2,\n      \"price\": null,\n      \"quantity\": 1,\n      \"reference\": null,\n      \"section\": null,\n      \"sku\": \"038902058966\",\n      \"start_date\": null,\n      \"subtotal\": null,\n      \"tags\": [\n        \"line_items_total_greater_than_1\"\n      ],\n      \"tax\": null,\n      \"tax_code\": null,\n      \"tax_rate\": null,\n      \"text\": \"038902058966 1LB. SCREW \u003cA\u003e\\t10.57\\nEB NEO SELF-DRILLING 12X1\",\n      \"total\": 10.57,\n      \"type\": \"product\",\n      \"unit_of_measure\": null,\n      \"upc\": null,\n      \"weight\": null\n    },\n    {\n      \"category\": \"Supplies\",\n      \"country_of_origin\": null,\n      \"custom_fields\": {},\n      \"date\": null,\n      \"description\": \"1LB. SCREW \u003cA\u003e\\nEB NEO SELF-DRILLING 12X3/4\",\n      \"discount\": null,\n      \"discount_price\": null,\n      \"discount_rate\": null,\n      \"end_date\": null,\n      \"full_description\": \"1LB. SCREW \u003cA\u003e\\nEB NEO SELF-DRILLING 12X3/4\",\n      \"gross_total\": null,\n      \"hsn\": null,\n      \"id\": 1146544825,\n      \"lot\": null,\n      \"manufacturer\": null,\n      \"net_total\": null,\n      \"normalized_description\": null,\n      \"order\": 3,\n      \"price\": null,\n      \"quantity\": 1,\n      \"reference\": null,\n      \"section\": null,\n      \"sku\": \"038902058959\",\n      \"start_date\": null,\n      \"subtotal\": null,\n      \"tags\": [\n        \"line_items_total_greater_than_1\"\n      ],\n      \"tax\": null,\n      \"tax_code\": null,\n      \"tax_rate\": null,\n      \"text\": \"038902058959 1LB. SCREW \u003cA\u003e\\t10.57\\nEB NEO SELF-DRILLING 12X3/4\",\n      \"total\": 10.57,\n      \"type\": \"product\",\n      \"unit_of_measure\": null,\n      \"upc\": null,\n      \"weight\": null\n    }\n  ],\n          \"meta\": {\n    \"device_id\": null,\n            \"device_user_uuid\": null,\n            \"duplicates\": [\n      {\n        \"id\": 214960758,\n        \"score\": 1,\n        \"url\": \"https://scdn.veryfi.com/receipts/919ba4778c039560/801c6b7b-8d26-459a-ae4a-db58306e34d3/a9c63167-a8e8-4ed2-8fad-7d06cb17beb3.png?Expires=1730386417\u0026Signature=dbq1l7GZCl7K6rXaiSVMUsoDez6OqL9eapnC83AS3YX-o0omgmaoXGaN3K4nYd1w45U5FnNvB~Fca3nlEh4OVui4HfIK-IQPrc-SED8RHVnfCIM74cD5rDw0lokgT-SAkj5JAVohkHC0WHl-vfXWz-PoYRD6PPs-vkSTnvRdsRMPJRjU2-d9EPj6Rqx1sAm9JEMjIOllHCmpNyeuNaRcBTrPDmv5Z7KpiA4ZbDaEmtpDBJiC4CGsPf4ZgBc9zQy4a~J2Zj54TZPrcU5gVg6WCKibhopCVzw2nuW0TmaHZaxFGmK~W642VzMp3oCBZ1izwfUAJvcPx4WN7fzsp~Txlw__\u0026Key-Pair-Id=APKAJCILBXEJFZF4DCHQ\"\n      },\n      {\n        \"id\": 214966753,\n        \"score\": 1,\n        \"url\": \"https://scdn.veryfi.com/receipts/919ba4778c039560/ceeb34fd-f810-4319-9fd4-b8b1293ad5fb/ef5987c8-e27b-45cb-b009-a12070a68651.png?Expires=1730386417\u0026Signature=OKiIfd6gWDTAjcgIpvSxmk-0KdsZxnEqTwy3Vb85VuZEIkyG31O4ueQy-IwwsTsxa~unKoK4A-N0XEy8dWSvycUwsHZIshyUYyn2sIDqaPdeKQoOAAf3qpAGTFATPujAqnpo0dws0CyDMdpzt0E~D9~tKzFx1W6isq0~eTXEG-~2GTaKG~bEniEgv~xbwJfVINC5O86HDq-bjNjl6Zx~pWlal~LKoANF1SiyRQGHLw4SaE85kTE5FeTUds4b7OyKPqavqa34hGaNWQt0WoPStcfhhXMzaMxX5uefA5eMlMjcW7Iz2jrnU1L1QjTLDHeZ9w3rCHQwlCZuEmG3IJ8R0g__\u0026Key-Pair-Id=APKAJCILBXEJFZF4DCHQ\"\n      },\n      {\n        \"id\": 214966696,\n        \"score\": 1,\n        \"url\": \"https://scdn.veryfi.com/receipts/919ba4778c039560/47446fc9-9ace-411c-8cac-8d8a7378d058/d0de825f-6ed7-4723-92c4-9d48237eba24.png?Expires=1730386417\u0026Signature=GdhaDVHWsiBJi3YUyWonDYfVsUe6uTiXdx0V1CBXRayLPdMqfCVGpPYmlFlsZjBFhvNAS-~D7rHwoZINKa~TIBBYfnZemwjaXmdn~R~ybEic1DbQD~3fU3DecpSEDt76iZRDK~HFefF5BXPHXVhoYqstU7hJFZ~qYR2jpN5hynoMFn6~jY4~0L81msre2lPN3X71yD7ibcdcRbnGCnpT-7sNTrNZ-7CEv9oV1uAbhu54No~B-2XHb6jTgi2q1PM9CkwRJu9dvRtOp~asYQr7gN5EvFpn0yCeUj4Lhv64mwpKYhogFVpHkNAzFSYcplDd522-qbY39cjDNi1F4E4Taw__\u0026Key-Pair-Id=APKAJCILBXEJFZF4DCHQ\"\n      },\n      {\n        \"id\": 214971025,\n        \"score\": 1,\n        \"url\": \"https://scdn.veryfi.com/receipts/919ba4778c039560/76d57a9c-2eb7-49dd-b406-eb55a8ac7b7c/693dc46a-89c9-4dff-a7ea-a3d17e18f0a2.png?Expires=1730386417\u0026Signature=I-d8it0jM0EotcxPiltR9JvOYLWhcdflj5yGzQdw5zWrN2s95~wN8mrczHLYGUHvirEljD4tJew1Ob43DcMLEnl~6Mx-nLYAsDAKWAwN5GDzoBjCD1ddQwnr~irhVymdesnSNc50wIDT9GcpMfgpUfndHK~BslgLBRTz3UgQZQfxHhCveJq5J1oAZZnW-7hPcfvW92C8-M9d6yjwsw7SoN~gGFu7qs8cgQXWS2K0ZjiyaG3RqJhKnVF57JXtM966-J7F3z4woED~dTy-ZAOFdG-Vdg0cCri11183wpU5MJNCfrh-obMvVJA1XzqyjaFM6hB1ruTriBz-k7FmXsvsbg__\u0026Key-Pair-Id=APKAJCILBXEJFZF4DCHQ\"\n      },\n      {\n        \"id\": 214971108,\n        \"score\": 1,\n        \"url\": \"https://scdn.veryfi.com/receipts/919ba4778c039560/4bffa87e-a2e4-480f-86c7-b1267a9bfb9e/1c057703-a1b2-4f7f-b809-16ba79a9635c.png?Expires=1730386417\u0026Signature=Qhv0ZOl5p~AC7n3A0yIhDofWZhR3OHpQl2k2Fzl9DAqaJ6oc8KjCkOr86HNQT2cdOj6ZPF4lR1Wiy~jjY1keExdoOpAGAef2FFUCt8~R6UWFCKY7mZZD8ETqgMMzkMhvVvFsR~Y3tJ8l7NALp~-1YuYghmT~nycJMj0V37s~f0rPc9ft-YbmoIsnwRkSyLWIf6YDOHEbRmrNqvW0VdektyNWPJgreaWENu9ZmZyawCVXcExU~zBsHJx0ySeIqMx7fzVkxeXghTKPgKjOIcCKuqlGAAx0f0jRJ4z8BV8T1n~l0MOezvAL3j3NudWilDkgz8eDWA458GXOgmbxlX-Klw__\u0026Key-Pair-Id=APKAJCILBXEJFZF4DCHQ\"\n      },\n      {\n        \"id\": 214971072,\n        \"score\": 1,\n        \"url\": \"https://scdn.veryfi.com/receipts/919ba4778c039560/135de1f0-b2bb-4a9d-a4ac-2c70c22eb0d9/fd301613-7850-4b0c-b491-5e6f0113a9e6.png?Expires=1730386417\u0026Signature=VD6teyIDHsCXFzgwXsyJrTf506tIqxCAXd1XPnKzpTUhTVoO-lOLh-I9ieucFG4RaL0GeebnOqhiZ1D7nPAiY2h1b2H33rKPp0jRWx0aw7m4L4Vh0-b01URvIJ~D-cnW~iv8CpFGB1AO4voydNqNoMyJSzzdCb1VRbpKpsUkzIhn8n01XkVm7z-98tnSobzh97YLM7-zjDdcNi9bm09Y2HmlepEzl4jHUwIUi-OkG9l12EMj8mWDR2hU5WkL1iIEe8qe6pZkBn4saLyDqE1C42q8ojeaVrV5rDdWpZ7b-QYwkrhmO0Epz6-6ueDKdt6rCBys5m~nWj8-uxNB33SgQA__\u0026Key-Pair-Id=APKAJCILBXEJFZF4DCHQ\"\n      },\n      {\n        \"id\": 214963213,\n        \"score\": 1,\n        \"url\": \"https://scdn.veryfi.com/receipts/919ba4778c039560/ec3b5f22-0d69-49d1-af88-29930edbd19b/2efe3e17-0740-40a5-bd8e-9bb1a96e5718.png?Expires=1730386417\u0026Signature=NdBSHpukLcy2WSvMCnAcAQ-4tkblzeWn~0dmMAukIwm7h~hEz4-01FeglTNU4SmIcylx5X4I8ptydn5rHAIYRHVndHjmpS08dien56sd0JDR3bEgOEqbVfdvfw8K-ibOjEE-00Vbor0NqrhQIfZJX7uSxHU4Ugv-mPRa2TGojTUWCNRPkbNMwj-wqeO3AbTnuTr7sA3tVHkWatFMA1g2WrUH0-HMulRXNCFNuSDhuPc-t4FVdJ2e6SElyUxIYhMzeuSzsK0G0B~qk0KYeEv7dkDwMfl6FLmiV0YOwG40KyKNLkjy1HnUJS7WWuxbU4wzjPjICQK6lw7-Z8MO7IsMew__\u0026Key-Pair-Id=APKAJCILBXEJFZF4DCHQ\"\n      },\n      {\n        \"id\": 214969026,\n        \"score\": 1,\n        \"url\": \"https://scdn.veryfi.com/receipts/919ba4778c039560/a59dcd7d-43be-4ad8-a713-6b496b1ae6fb/491d164e-9002-45b3-9913-890af8b9a3a1.png?Expires=1730386417\u0026Signature=F7l1Altw3P9gCO2C~1yiP-bHAjDd5n4aMYozvIBP55sRC5GF~IgHGMs7~rG6ux~uNjOTFwvT8o-iMhz9S6NSXH5R2YtReqVV0-RyBqQWN2sTbwn0VF-ytXiVGBnh2AxHRKBPc7QCxtsdFYS8~NNFDyVcPPFsr0aJL78Yrr7Gbq4e~~ld2ZvkyUo0t31dmMXj8YkquXNqsQ7xyow31rXukvE1PKC7aOn31h4SCbUauVnniHs0iysIYyCrgdf5FYTApdDINTkHANXHYZxXdSXJX6mpTp5ZZ~j-uTDmGSzq9kBdHQxivoHVt~iW4mS8rigBbUc~KNhXyW2SofvSzA2Vyg__\u0026Key-Pair-Id=APKAJCILBXEJFZF4DCHQ\"\n      },\n      {\n        \"id\": 214973908,\n        \"score\": 1,\n        \"url\": \"https://scdn.veryfi.com/receipts/919ba4778c039560/d26a7012-126e-4f88-8fad-df3914d3b609/65a98087-04c9-4685-bc30-26e4244a84ea.png?Expires=1730386417\u0026Signature=P8LGG2ZuD3rl6U6RCRmuogoV9lhoF4J54lqTMEwUhKhyLQSKyHj81SWQFqQpTV5TiFlwbuAHWzGN-EXCXmy4fkvte9srQcNBkA6iLk6yDsi4-m26lxdhDYgoV0lGJn0UArmfSUgOOGak0OTZFOB0HOntyOZN9RpdvcBwEvZRuqZ8tML8X2EKQAnxklrtdxiZhlzayNSc4zgoYflQpTBU7XJX~XvTCj2~2shhwwQapqG901L1qn2e3ZcS0TU6t9iw9CZWxcHRh~swEGXBR-N7PXtWPrJletoovUFtNYczki2oiXBQCvoX7afQ3J~F8IdJcrN6OrX1WFRJfqxJhD-UlA__\u0026Key-Pair-Id=APKAJCILBXEJFZF4DCHQ\"\n      },\n      {\n        \"id\": 214973989,\n        \"score\": 1,\n        \"url\": \"https://scdn.veryfi.com/receipts/919ba4778c039560/d6684aac-f493-4094-9f15-ec9fe105aa71/b3c2a9d9-e1e8-457f-a05d-277136bfedc0.png?Expires=1730386417\u0026Signature=NMAkp1yzYH2oFlH7Pie5yQeJUzb1-9pu7RG6ljBzD2Xela9Jbdax1Gn1~fBrWB3xulUFueejXxMyuUvQd0hH08ZrAEpCTLI4Djo4x8-bf5LzKt~wWubp9B~aCuSFOab2rszgmCBRA5OBie8BAletWJYj5GoQZ-Cwp~yKk9rPILZTH6PggsPbNlvsNs0p-v4R7ryK3IQH3AMDRlwmrPzJSQpCsNKufvcB6dmPkju6vJaI05I1vVg4tBooVlssyaoH3UOvlhG435u~sgw6Y4fWG1nsfT~vOjqa~-VtFPD8DBfsEQIzEEFz7ydbewvFDF-tlnef3283sDMxk6~U~hAitQ__\u0026Key-Pair-Id=APKAJCILBXEJFZF4DCHQ\"\n      }\n    ],\n            \"fraud\": {\n      \"attribution\": null,\n              \"color\": \"green\",\n              \"custom_types\": [],\n              \"decision\": \"Not Fraud\",\n              \"images\": [\n        {\n          \"is_lcd\": false,\n          \"score\": 0.95\n        }\n      ],\n              \"pages\": [\n        {\n          \"is_lcd\": {\n            \"score\": 0.95,\n            \"value\": false\n          }\n        }\n      ],\n              \"score\": 0.05,\n              \"submissions\": {},\n      \"types\": [],\n              \"version\": null\n    },\n    \"handwritten_fields\": [],\n            \"language\": [\n      \"en\"\n    ],\n            \"owner\": \"devapitest\",\n            \"pages\": [\n      {\n        \"height\": 1848,\n        \"is_blurry\": {\n          \"score\": 0.97,\n          \"value\": false\n        },\n        \"language\": [\n          \"en\"\n        ],\n        \"screenshot\": {\n          \"score\": 0.9399999976158142,\n          \"type\": null\n        },\n        \"width\": 1048\n      }\n    ],\n            \"processed_pages\": 1,\n            \"source\": \"api\",\n            \"source_documents\": [\n      {\n        \"height\": 1848,\n        \"size_kb\": 990,\n        \"width\": 1048\n      }\n    ],\n            \"total_pages\": 1,\n            \"warnings\": [\n      {\n        \"message\": \"Decoded Barcode numbers were not found on the document\",\n        \"type\": \"barcode_code_missing_in_ocr\"\n      }\n    ]\n  },\n  \"model\": \"2.50.0\",\n          \"notes\": null,\n          \"ocr_text\": \"HOME\\nTHE\\n\\tMore saving.\\n\\tMore doing.\\\"\\n\\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 \u003cA\u003e\\t9.97\\nWISS LEFT-CUT SNIPS\\nNLP Savings\\t$4.00\\n045242268061 MILW5PCKBLDG \u003cA\u003e\\t1.18\\nMKE 5PK GENERAL PURPOSE BLADES\\n038902058966 1LB. SCREW \u003cA\u003e\\t10.57\\nEB NEO SELF-DRILLING 12X1\\n038902058959 1LB. SCREW \u003cA\u003e\\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\\t4341505054414C204F4\\nE452050595341\\nDEPOT\",\n          \"order_date\": null,\n          \"payment\": {\n    \"card_number\": \"7373\",\n            \"display_name\": \"Visa ***7373\",\n            \"terms\": null,\n            \"type\": \"visa\"\n  },\n  \"pdf_url\": \"https://scdn.veryfi.com/receipts/919ba4778c039560/d9477032-8537-41cf-97dd-56cb1443a576/cde38dad-6123-454f-842b-e794b108a880.pdf?Expires=1730386417\u0026Signature=MpQOcHRbhvhiOACw~Hg4T6htbXg3tnRgbn0vmIgVYBzcYY2aYsW~lKjBFchpFQAtB-pk2nhZqfFaQRAZKhWAVTJdV5Kje4fneAP205-ekOK5LdB~CfrxcE-gfX6v3GTAKGijYoyWwW9Vodgxnfr3T6EBJc27v1aE~lwF1wXu0nsCLhqp1vnO1BWbxQHF6lW2Pzc9RRZ5qPOpiGRLhu5WbtilboBgTYy30EjQWT1oNeK2GmsteYsx0ygBvV1l92e-0cPgs5kJZnZ7hGNTWyc83MwnZt9KbWcV2Kz3X0T5q902XxmEQ4zKO5XfuIjY~pKLE-~39NxZdg32lRNOKj38Gg__\u0026Key-Pair-Id=APKAJCILBXEJFZF4DCHQ\",\n          \"previous_balance\": null,\n          \"purchase_order_number\": null,\n          \"reference_number\": \"VCDHD-71329\",\n          \"rounding\": null,\n          \"server_name\": null,\n          \"service_end_date\": null,\n          \"service_start_date\": null,\n          \"ship_date\": null,\n          \"ship_to\": {\n    \"address\": null,\n            \"name\": null,\n            \"parsed_address\": null\n  },\n  \"shipping\": null,\n          \"status\": \"processed\",\n          \"store_number\": \"1518\",\n          \"subtotal\": 32.29,\n          \"tags\": [\n    {\n      \"id\": 9018171,\n      \"name\": \"line_items_total_greater_than_1\"\n    },\n    {\n      \"id\": 9018172,\n      \"name\": \"is_document\"\n    },\n    {\n      \"id\": 9018173,\n      \"name\": \"total_greater_than_1\"\n    },\n    {\n      \"id\": 9018396,\n      \"name\": \"extract_tags\"\n    },\n    {\n      \"id\": 9277238,\n      \"name\": \"is_fraud_green\"\n    },\n    {\n      \"id\": 12926297,\n      \"name\": \"test_rule_1_failure\"\n    }\n  ],\n          \"tax\": 2.66,\n          \"tax_lines\": [],\n          \"tip\": null,\n          \"total\": 34.95,\n          \"total_pages\": 1,\n          \"total_quantity\": null,\n          \"total_weight\": null,\n          \"tracking_number\": null,\n          \"tracking_numbers\": [\n    null\n  ],\n          \"updated_date\": \"2024-10-31 14:38:35\",\n          \"vending_person\": null,\n          \"vending_person_number\": null,\n          \"vendor\": {\n    \"abn_number\": null,\n            \"account_currency\": null,\n            \"account_number\": null,\n            \"address\": \"2250 SOUTHGATE RD, COLORADO SPRINGS, CO\",\n            \"bank_breakdown\": [\n      {}\n    ],\n            \"bank_name\": null,\n            \"bank_number\": null,\n            \"bank_swift\": null,\n            \"biller_code\": null,\n            \"category\": \"Nurseries \u0026 Gardening\",\n            \"country_code\": \"US\",\n            \"email\": null,\n            \"external_id\": null,\n            \"external_ids\": [],\n            \"fax_number\": null,\n            \"iban\": null,\n            \"lat\": 38.798985,\n            \"lng\": -104.819856,\n            \"logo\": \"https://cdn.veryfi.com/logos/us/051403134.jpg\",\n            \"logo_name\": \"the home depot\",\n            \"map_url\": \"https://www.google.com/maps/search/?api=1\u0026query=Home+Depot+2250+SOUTHGATE+RD,+COLORADO+SPRINGS,+CO\",\n            \"name\": \"Home Depot\",\n            \"order_number\": null,\n            \"parsed_address\": {},\n    \"phone_number\": \"719-471-0054\",\n            \"raw_address\": \"2250 SOUTHGATE RD, COLORADO SPRINGS, CO\\nBECKY NATION\",\n            \"raw_name\": \"DEPOT\",\n            \"reg_number\": null,\n            \"type\": \"Nurseries \u0026 Gardening\",\n            \"vat_number\": \"452050595341\",\n            \"web\": null\n  },\n  \"vendors\": [\n    \"Home Depot\"\n  ],\n          \"vin_number\": null,\n          \"warnings\": [],\n          \"weights\": [\n    null\n  ]\n}\n```\n\n### Updating a document\n\n```js\nlet new_vendor = {\"name\": \"Starbucks\", \"address\": \"123 Easy Str, San Francisco, CA 94158\"};\nlet category = \"Meals \u0026 Entertainment\";\nlet new_total = 11.23;\nveryfi_client.update_document(id=12345,\n    {\n        'vendor': new_vendor,\n        'category': new_category,\n        'total': new_total\n    })\n.then(response =\u003e {\n  console.log(response)\n});\n```\n\n## Need help?\nVisit https://docs.veryfi.com/ to access integration guides and usage notes in the Veryfi API Documentation Portal\n\nIf you run into any issue or need help installing or using the library, please contact support@veryfi.com.\n\nIf you found a bug in this library or would like new features added, then open an issue or pull requests against this repo!\n\n### [API Docs](https://docs.veryfi.com/)\n\n### [Learn more at our blog](https://www.veryfi.com/nodejs/)\n\n## Tutorial Video\n\n[![Veryfi Tutorial](https://img.youtube.com/vi/PcJdgnvyfBc/maxresdefault.jpg)](https://www.youtube.com/watch?v=PcJdgnvyfBc)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fveryfi%2Fveryfi-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fveryfi%2Fveryfi-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fveryfi%2Fveryfi-nodejs/lists"}