Invoice Data Extraction, Reconciliation, and Verification
Run any Bash in a Pipedream step within your workflow. Refer to the Pipedream Bash docs to learn more.
The Itemize API enables automated processing and organization of receipts, invoices, and other financial documents. By harnessing machine learning, it extracts pertinent data such as dates, amounts, taxes, and vendor information, converting cluttered paperwork into structured data. This can be a boon for accounting, expense tracking, and financial auditing workflows.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
itemize: {
type: "app",
app: "itemize",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://sandbox.proapi.itemize.com/api/enterprise/v1/accounts/[ACCOUNT-ID]`,
auth: {
username: `${this.itemize.$auth.api_token}`,
password: ``,
},
})
},
})
# $PIPEDREAM_STEPS file contains data from previous steps
cat $PIPEDREAM_STEPS | jq .trigger.context.id
# Write data to $PIPEDREAM_EXPORTS to return it from the step
# Exports must be written as key=value
echo foo=bar >> $PIPEDREAM_EXPORTS