balanced / balanced-api

Balanced API specification.
220 stars 72 forks source link

Support marketplace settlement of a seller's negative Account balance #742

Open jbrowning opened 9 years ago

jbrowning commented 9 years ago

I'm planning a migration to the new Order,Account, and Settlement constructs and I'm considering the following payout/refund scenario. This is based on the documentation located here and here.

Seller

Marketplace

This scenario is alluded to in @mjallday's comment here: https://github.com/balanced/balanced-api/pull/707#issuecomment-62575260 but, based on my back-and-forth with support, this flow does not seem to have been sufficiently resolved.

The solution that support has suggested is to create an new Debit against the Order with my marketplace BankAccount to fill the Order amount_escrowed and then create a Credit to bring the seller's Account balance back to 0. Remember, my marketplace does not take a transaction fee. This is a hack. This is not a scalable solution.

There was mention in #707 of https://github.com/balanced/balanced-api-private/issues/13 helping in this regard but I of course cannot see what that issue contains. :wink:

I propose an API which allows the marketplace to settle any seller negative Account balances.

kyungmin commented 9 years ago

@jbrowning Thanks for creating this issue. We are definitely aware of this scenario and happy to share our plan to allow marketplaces to add funds to orders. We are also interested in hearing your experience with Settlements so far. Would you be willing provide some early feedback over Google Hangouts?

jbrowning commented 9 years ago

@kyungmin I'd be glad to. You can find my contact info in support request #19918.