Rest Accounting

Interact with Rest Accounting API

Actions13

Overview

This node integrates with the Rest Accounting API to manage accounting data programmatically. Specifically, for the Journal Entries - Create operation, it allows users to create new journal entries by sending structured accounting data (such as transaction date and line items) to the API.

Typical use cases include automating the recording of financial transactions from other systems into an accounting platform, batch uploading journal entries, or integrating custom business workflows that generate accounting entries dynamically.

For example, a company could use this node to automatically post daily sales transactions as journal entries into their accounting system without manual data entry.

Properties

Name Meaning
Journal Payload A JSON object representing the journal entry to create. It must include fields like date (the transaction date) and lines (an array of line items detailing debits and credits). Example: {"date":"2025-01-01","lines":[]}

Output

The node outputs the JSON response returned by the Rest Accounting API after creating the journal entry. This typically includes details of the newly created journal entry such as its unique ID, date, lines, and any metadata provided by the API.

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential for authenticating with the Rest Accounting API.
  • The node expects the base URL of the API and the API key to be configured in the credentials.
  • Network connectivity to the Rest Accounting API endpoint is necessary.

Troubleshooting

  • Common issues:

    • Invalid or missing API key will cause authentication failures.
    • Malformed JSON in the "Journal Payload" property can lead to request errors.
    • Missing required fields in the payload (e.g., date or lines) may cause the API to reject the request.
    • Network issues or incorrect base URL configuration can result in connection errors.
  • Error messages:

    • "Request failed": Generic error indicating the HTTP request did not succeed. Check network, credentials, and payload format.
    • API-specific error messages returned in the response body should be reviewed for details on validation errors or permission issues.
  • Resolution tips:

    • Verify the API key and base URL in the node credentials.
    • Ensure the JSON payload is valid and contains all required fields.
    • Use the API documentation to confirm the expected structure of journal entries.
    • Test connectivity to the API endpoint outside n8n if needed.

Links and References

Discussion