【问题标题】:Quickbooks API - How to create a charge using stored bank accountQuickbooks API - 如何使用存储的银行账户创建费用
【发布时间】:2017-12-27 11:51:19
【问题描述】:

我正在使用 QuickBooks Online。使用支付 API,我已将客户的银行账户信息存储到 Quickbooks。现在我想使用支付 API 对存储的银行账户进行收费。我找不到办法做到这一点。我知道如何使用存储的信用卡创建费用,但在拨打/quickbooks/v4/payments/charges api 电话时找不到提供银行账户信息的方法。

可以对存储的银行帐户进行收费吗?

【问题讨论】:

    标签: java quickbooks-online intuit


    【解决方案1】:

    阅读eChecks / debits 上的文档:

    具体来说,本节:

    创建借记

    请求网址

    沙盒基础 URL:https://sandbox.api.intuit.com

    生产基地网址:https://api.intuit.com

    操作:

    POST /quickbooks/v4/payments/echecks

    内容类型:application/json

    要处理电子支票,您需要创建一个新的借记对象。

    它显示了一个这样的例子:

    {  
      "amount":"1.11",
      "bankAccount":{  
          "name":"Fname LName",
          "routingNumber":"490000018",
          "accountNumber":"11000000333456781",
          "accountType":"PERSONAL_CHECKING",
          "phone":"1234567890"
      },
      "context":{  
          "deviceInfo":{  
            "id":"1",
            "type":"type",
            "longitude":"longitude",
            "latitude":"",
            "phoneNumber":"phonenu",
            "macAddress":"macaddress",
            "ipAddress":"34"
          }
      },
      "paymentMode":"WEB",
      "checkNumber":"12345678",
      "description":"Check Auth test call"
    }
    

    连同一张纸条,上面写着:

    bankAccountOnFile:
    required if neither bankAccount nor token are specified
    string 
    The bank account details that have been previously stored on file.
    

    TLDR:使用create a debit 端点并在请求中指定bankAccountOnFile id 值。

    【讨论】:

    • 非常感谢基思。我会尝试并返回。
    • 按预期工作。谢谢
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-08-11
    • 2014-08-27
    • 1970-01-01
    • 1970-01-01
    • 2018-11-01
    • 2016-07-18
    • 1970-01-01
    相关资源
    最近更新 更多