Transferring funds from one account to another

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.

4,591 Views
Message 1 of 4
Report
3 REPLIES 3
Admin

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. 

 

Square Champions Logo
Isabelle
Square Community Manager
Learn about the Square Champions program here.
4,522 Views
Message 2 of 4
Report

@isabelle 

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.

4,478 Views
Message 3 of 4
Report
Admin

Ah - okay @cubittus

 

Would you mind reaching out to our API team here? That way they can offer you direct support. Feel free to circle back to this thread to share your findings for other sellers that may be wondering the same thing. 

Square Champions Logo
Isabelle
Square Community Manager
Learn about the Square Champions program here.
4,428 Views
Message 4 of 4
Report