Creating Transfer Transaction via API
Teru
Member Posts: 5
I'm able to create regular transaction via API. However, when I insert a transfer, it returns an error 'This value is invalid'.
Here is an example of inputMoneyTransactionCreate:
{ "businessId":"ID", "externalId":"1234", "date":"2019-10-27", "description":"Transfer PayPal to Bank", "anchor":{ "accountId":"PayPal AccountID", "amount":1261.64, "direction":"WITHDRAWAL" }, "lineItems":[{ "accountId":"Bank AccountID", "amount":1261.64, "balance":"DEBIT", "taxes":[] }] }
Here is the response:
{ "path":null, "code":"UNKNOWN", "message":"This value is invalid." }
0
Comments
Hey @Teru . As some of these technical support API requests are a little bit over our head as regular support agents, I'd encourage you to reach out in a ticket through the form linked below, and someone from our API team should be able to get back to you directly. Thanks
https://developer.waveapps.com/hc/en-us/requests/new
Hi @Teru,
Thanks for posting this. It's a great question.
If you have performed a transfer directly inside Wave, you'll know that what the system does is create two transactions: money leaving the 'from' account, and money arriving in the 'to' account. Under the hood, these transactions actually post value to, then withdraw value from, a hidden 'transfer clearing account' for the individual transfer.
Right now, we are not able to provide for transfers via the API, although this will become possible towards the middle of next year after some changes on how transfers are created within Wave itself. In the meantime, however, you can achieve a transfer in the same way that Wave does, by creating two transactions.
Here are the steps:
Some notes:
Hope that helps, Paul