gpt4 book ai didi

payment-gateway - 将商家详细信息添加到 "Buyer"帐户

转载 作者:行者123 更新时间:2023-12-04 07:18:42 24 4
gpt4 key购买 nike

我在 C# 中使用 REST API,所以我不确定如果我共享我的代码会有多大帮助。

我有一个帐户,其唯一的角色买家,并且只关联了一张信用卡。

我想通过关联银行账户和必要的商家信息,将 merchant 角色添加到此 account

如果我有以下帐户:

{
"holds_uri": "/v1/marketplaces/MyMarket/accounts/MyAccount/holds",
"name": "John Smith",
"roles": [
"buyer"
],
"created_at": "2012-11-06T02:54:03.300028Z",
"uri": "/v1/marketplaces/MyMarket/accounts/MyAccount",
"bank_accounts_uri": "/v1/marketplaces/MyMarket/accounts/MyAccount/bank_accounts",
"refunds_uri": "/v1/marketplaces/MyMarket/accounts/MyAccount/refunds",
"meta": {},
"debits_uri": "/v1/marketplaces/MyMarket/accounts/MyAccount/debits",
"transactions_uri": "/v1/marketplaces/MyMarket/accounts/MyAccount/transactions",
"email_address": "john@smith.com",
"id": "MyAccount",
"credits_uri": "/v1/marketplaces/MyMarket/accounts/MyAccount/credits",
"cards_uri": "/v1/marketplaces/MyMarket/accounts/MyAccount/cards"
}

我知道我可以POST以下银行账户信息到accountbank_account_uri,将银行账户链接到帐号:

{
"name": "WHC III Checking",
"account_number": "12341234",
"bank_code": "321174851"
}

POST 新的银行账户信息到accountbank_account_uri

如何使用 Balanced Payments REST APImerchant 角色添加到现有的 buyer account

最佳答案

我在 BalancedPayments IRC channel 上找到了一些帮助。

本文展示了如何:Promote a Buyer Account to a Merchant

您需要向account_uri提交PUT请求,正文中包含商户详情

PUT /v1/marketplaces/MyMarket/accounts/MyAccount

{
"merchant": {
"phone_number": "+19046281796",
"city": "San Francisco",
"name": "jo",
"dob": "1984-01",
"state": "CA",
"postal_code": "94110",
"type": "person",
"street_address": "Somewhere over the rainbow",
"tax_id": "013825400"
}
}

关于payment-gateway - 将商家详细信息添加到 "Buyer"帐户,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13244032/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com