Splitwise icon

Splitwise

Consume the Splitwise API

Actions9

Overview

This node integrates with the Splitwise API to manage groups and expenses. Specifically, for the Group - Delete operation, it allows users to delete a group from their Splitwise account by specifying the group's name or ID. This is useful in scenarios where you want to automate cleanup of groups that are no longer needed or manage your Splitwise data programmatically.

Practical examples:

  • Automatically deleting a group after an event or project has ended.
  • Cleaning up test or temporary groups created during workflows.
  • Integrating with other systems to maintain synchronized group data by removing obsolete groups.

Properties

Name Meaning
Authentication Method used to authenticate with Splitwise API. Options: "API Key" or "OAuth2".
Group Name or ID The identifier of the group to delete. Can be selected from a list of existing groups or specified via expression.

Output

The output JSON contains a simple success confirmation object:

{
  "success": true
}

This indicates whether the group deletion was successful. If the deletion fails, an error will be thrown instead.

No binary data is output by this node.

Dependencies

  • Requires access to the Splitwise API.
  • Requires user authentication via either an API key or OAuth2 credentials configured in n8n.
  • The base URL for API requests is https://secure.splitwise.com/api/v3.0.

Troubleshooting

  • Common issues:

    • Providing an invalid or non-existent group ID/name will cause the deletion to fail.
    • Insufficient permissions or expired/invalid authentication tokens can result in authorization errors.
    • Network connectivity problems may prevent the API request from completing.
  • Error messages:

    • "Could not delete group": Indicates the API call to delete the group failed. Verify the group ID and authentication credentials.
    • Errors related to authentication usually require reconfiguring or refreshing the API key or OAuth2 token.
  • Resolution tips:

    • Ensure the group ID or name exists and is accessible with the provided credentials.
    • Check that the authentication method is correctly set and credentials are valid.
    • Use the "Get Groups" option to confirm available groups before attempting deletion.

Links and References

Discussion