【问题标题】:Right way to credit to marketplace owner's bank account via Balanced Payouts API通过 Balanced Payouts API 记入市场所有者银行账户的正确方法
【发布时间】:2013-09-06 07:30:15
【问题描述】:

如何通过平衡支付 API 从我的市场托管账户向我自己的银行账户发起贷记?

我是否应该通过仪表板创建一个代表我的网站的客户,将我的银行帐户附加到该客户,然后发送信用证?有没有更容易通过 API 做到这一点?

【问题讨论】:

    标签: balanced-payments


    【解决方案1】:

    每个市场都应该有一个代表市场所有者的 owner_customer 对象。您需要将银行帐户添加到此对象中,然后您就可以发出简单的信用。

    我不确定您使用的是什么客户端库,但在 balance-ruby 中,这看起来像:

    marketplace.owner_customer.add_bank_account(bank_account.uri)
    marketplace.in_escrow
    => 32065655
    marketplace.owner_customer.credit(
        :amount => 100000,
        :description => "Collect revenue",
        :destination_uri => bank_account.uri # without destination_uri, defaults to most recent bank account
    )
    marketplace.reload
    marketplace.in_escrow
    => 31965655
    

    您还可以通过仪表板设置添加银行帐户,然后将该银行帐户 URI 用作信用中的destination_uri。

    【讨论】:

    • 不是marketplace.customer 而不是marketplace.owner_customer 吗? owner_customer 不适合我
    • letronje - 绝对是owner_customer。你遇到了什么错误?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-01-05
    • 1970-01-01
    • 1970-01-01
    • 2013-02-11
    • 2012-06-14
    相关资源
    最近更新 更多