I am able to create customers, however, when I try to get the avi-token, I get the following error:
Error: {“code”:“NotFound”,“message”:“The requested resource was not found.”}
at errorFrom (/srv/node_modules/dwolla-v2/src/dwolla/Token.js:49:15)
at /srv/node_modules/dwolla-v2/src/dwolla/Token.js:70:29
I am not sure what I am doing wrong? Here is my code:
const user = await getUser(req.user.uid);
const url = user.dwollaId;
return dwo
.post(`https://api-sandbox.dwolla.com/customers/{id}/iav-token}`)
.then(res => res.body.token)
.catch(err => console.log(err))
}