A Lambda function to automatically create Settle Up expenses when criteria are met
The application uses Lambda & API Gateway. For the function to run, you'll need to configure the following environment variables in the Lambda config:
SETTLE_UP_USERNAME
: Your Settle Up usernameSETTLE_UP_PASSWORD
: Your Settle Up passwordSETTLE_UP_GROUP
: The name of the Settle Up group to targetSETTLE_UP_USER
: The name of the Settle Up user to create expenses underSETTLE_UP_AUTH_CONFIG
: JSON Object with Firebase configuration propertiesAPI_TOKEN
: Up Personal Access Token
Once deployed, you'll need to generate a Webhook on the Up API. The easiest way of doing this is to simply use your preferred HTTP client and follow the documentation. You'll need to note the secretKey
returned on Webhook creation.
After the webhook is created, a new deployment of the Lambda function is required, this time with an additional environment variable:
WEBHOOK_KEY
: ThesecretKey
value mentioned above.