I’m reaching out for assistance with an issue I’m experiencing while using the Dwolla API to create a funding source. I’m using the createFundingSource endpoint to create a new funding source for a customer, but I’m receiving a 400 error with the message “InvalidExchangeToken”
Here is the code snippet that is causing the issue:
Thanks for the IDs! We were able to dig into the API logs for creating that exchange and it seems the partnerId you are using on Mastercard/Finicity’s to create the exchange might be incorrect. The correct ID would be this value for both Sandbox and Prod - 2445583946651.
For reference, here’s what we found was used to create an exchange:
I’ve tried the id you’ve sent, but with this new id don’t works anything, not event creating the finicity customer.
Can we schedule a call to solve this?
spencer
(Spencer Hunter - Lead Developer Advocate @ Dwolla)
6
Hi @Pedro_Rique , I’m not seeing in our API request logs that you attempted to recreate the exchange based on the recommendation that @shreya provided above. Would you be able to recreate the exchange (with the updated partnerId) and then attempt to recreate the funding source using that exchange? This sample app can also be used as a reference to how this flow can be done.
I could not get to this part, because it blocked me in the finicity customer creation. Without the finicity customer id, i can’t do anything with dwolla.
One thing that I thought was, that I changed the partner id, but not the partnet secret. What should be this secret and where can I get it?
Hi @Pedro_Rique – I think there might have been a misunderstanding. Did you mean you changed the Partner ID as in your Sandbox account credentials on Mastercard’s Dashboard?
Yeah, i was doing this. But i did not mention that we are using the Third Party Access. So now i’ve updated the thirdPartyPartnerId, to the one that you sent, 2445583946651.
Hi @Pedro_Rique – looking into this, it does appear to be an anomaly, since that error should be returned if the API can’t find the Customer ID, but I do see that it exists and that you’re calling the API correctly.
I’ve shared this with the extended Dev team to help troubleshoot. I’ll keep you updated on what we find!
In the meantime, are you able to add funding-sources via Mastercard Secure Exchange solution for other customers at all?
Hi @Pedro_Rique – We were able to recreate the same error when testing in Sandbox. It appears we are getting an error from Mastercard when we attempt to call their API. The error that we’re sending back from our API is obviously not well handled. Apologies for that! This is the first time we’re running into this issue.
We are currently actively investigating and reaching out to our partner Mastercard (Finicity) to figure things out. We’ll keep you posted!
Hi @Pedro_Rique - I believe this might be due to passing multiple products in the array. We don’t currently have the ability to fetch the balance and the account owner identity via Mastercard (Finicity).
Do you get the same error when you supply just moneyTransferDetails in products array?