Sumit icon

Sumit

Interact with Sumit Accounting API

Document → Add Expense

AI-generated

Summary

Adds an expense document to Sumit by posting expense details to the Accounting API for each input item. The node requires Sumit API credentials; the operation-specific fields are not present in the supplied properties, though the implementation reads expense number, file, filename, date, description, and draft status.

Inputs

  • Expense number, file, filename, date, description, draft status — The implementation reads expenseNumber, expenseFile, expenseFilename, expenseDate, expenseDescription, and isDraft. If unset, it defaults to an empty number/file/filename/description, the current date, and true for draft status. These fields are not declared in the supplied operation-scoped properties.
  • Sumit API credentials (required) — Credentials provide the base URL, company ID, and API key used for the request.

Output shape

One output item per input item, containing the Sumit API response as JSON.

Sends a POST request to /accounting/documents/addexpense/. On failure, the node throws an API error unless Continue On Fail is enabled, in which case it outputs an { "error": "..." } JSON item for that input.

Links

Discussion