Automate uploading of new expenses to an already assigned card via API
Options
guru_vg
Expensify Customer Posts: 1
Hi,
I was wondering if there's an option to automate the current "Import Transactions from a file (csv)" via API or SFTP way and associate it to the card assigned to the user?
Thanks,
Guru
Answers
-
Of course.
API Method:
- Set up an API endpoint on your server to receive the file upload or accept the file path for processing.
- Use a CSV parsing library or module to read the CSV file and extract the transaction data.
- Associate the transactions with the user's card by linking them based on a unique identifier such as a card number or user ID.
- Perform any necessary data validation or processing on the transactions.
- Save the transactions in your database or trigger other relevant business logic.