You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.
Hey @jlongster ! I'm trying to work on this. I can currently import accounts and categories (tho not sorted yet, for some reason) but the issue I'm having is with payees. I can't seem to set transfer_acct. I don't know if there's maybe something wrong with the API or something wrong with my code:
let api = require('@actual-app/api');
const fs = require('fs')
async function run() {
let id = await api.createPayee({
name: "Test - Tarjeta",
transfer_acct: "86cf22d5-3ca1-434f-be14-489032bf3fea"
});
console.log(await api.getPayees());
}
api.runWithBudget('My-Finances-a8f9d08', run);
The docs don't explain this well, but you cannot directly create a transfer payee. Those are considered "internal" and need to be in sync with the list of accounts, otherwise weird things might happen.
When you create an account, a transfer payee is automatically created for that account. So you just need to create the account and that's it. It looks like you've already created that account and the transfer payee already exists:
Right, that makes sense. I'll have to pull the existing transfer payees and use them for the transactions, something similar to what you did on import-ynab4. Thanks!
Hey @jlongster ! I'm trying to work on this. I can currently import accounts and categories (tho not sorted yet, for some reason) but the issue I'm having is with payees. I can't seem to set transfer_acct. I don't know if there's maybe something wrong with the API or something wrong with my code:
And the console logs:
Any help would be awesome. Thanks!
The text was updated successfully, but these errors were encountered: