Connectors and webhooks

dataImports.files

Get short-lived download links for the files an imported invoice came with, and where it was imported from.

GETPOST/api/v1/accounting/dataImports.files

Permissions

accounting:read

Who can call it

admin, finance

Retries

Safe to retry: it only reads

MCP

accounting_data_imports_files

Fields

  • targetTypeenumRequired
    invoicecontractor_payout
  • targetIdstring (ID)Required

    The ID of the related record.

Example

curl -G https://app.getoatmilk.com/api/v1/accounting/dataImports.files \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  --data-urlencode 'targetType=invoice' \
  --data-urlencode 'targetId=4d5e6f7a-8b9c-4d0e-8f1a-2b3c4d5e6f7a'
Response
{
  "data": { … }
}

Try it

Try it

Checks your input with this action’s real schema and answers like the API, with synthetic data. No key needed, and nothing changes.

GET/api/v1/accounting/dataImports.files
curl -G https://app.getoatmilk.com/api/v1/accounting/dataImports.files \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  --data-urlencode 'targetType=invoice' \
  --data-urlencode 'targetId=4d5e6f7a-8b9c-4d0e-8f1a-2b3c4d5e6f7a'

More in Connectors and webhooks.