我正在使用QuickBooks Online。使用付款API我已将客户的银行帐户信息存储到Quickbooks。现在,我想使用付款API对存储的银行帐户进行收费。我找不到办法做到这一点。我知道如何使用存储的信用卡创建费用,但在制作/quickbooks/v4/payments/charges
api电话时,我无法找到提供银行帐户信息的方法。
是否可以针对存储的银行帐户创建费用?
阅读eChecks
/ debits
上的文档:
具体来说,这部分:
创建借记卡
请求网址
沙箱基本网址: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
值。