Hello,
I am trying to build an application through which merchants can sell products.
As I understand, the application can collect a fee from each transaction using Square services using "app_fee_money".
The application is in sandbox mode, but I am facing the following problem:
When an order is placed, the app needs to transfer funds to one or more accounts at once. So for example, a user can checkout with items from multiple vendors. How can the app transfer the funds to each vendor and keep a percentage from each vendor for itself?
So having account A and other account B. Can account A using it's API key transfer money to locationId from account B - both using sandbox settings.
Also, can the transfer happen using production credentials to transfer using account A api key to transfer to locationId from account B?
With our current implementation, it works to pay with API from account A to location from the same account. But it returns this error when changing locationId with one from account B:
[Error] Status:403, Messages: [
{
"code": "FORBIDDEN",
"detail": "You have insufficient permissions to perform that action.",
"category": "AUTHENTICATION_ERROR"
}
Are there any tutorials or examples that can be used? The backend is NodeJs.
Hey @cubittus! ✨
Thanks for posting in the Seller Community. Bit out of my realm here - so I reached out to our API team for some insight.
There's no way to transfer money from one account to the other today. Also, if the order consists of items from more than one merchant, basically they will need to call CreatePayment for each merchant (there's no way to do it once for more than one merchant).
I hope that makes sense. If not, I can ask for more clarity.
Thanks for reply. We are not transfering money from one account to another.
We want to use API from one acccount (A) to transfer money to locationId of another account (B), if that makes sense.
Basically:
Client uses our application with API credentials as account A.
Application will call API for payment endpoint with locationId property of account B. These funds go directly to B account.
Square Community