使用createAccountHolders API时的401错误

huangapple go评论55阅读模式
英文:

401 when using createAccountHolders api

问题

I get 401 and no error message when I want to create an account holder ?

我想创建一个账户持有者时,为什么会出现401错误而没有错误消息?

I make a request with https://reqbin.com

我使用https://reqbin.com进行了请求。

URL: https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder

URL: https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder

headers:

头部:

x-API-key: xxx

x-API-key: xxx

method: POST,

方法:POST,

content (body)

内容(正文)

{
"accountHolderCode":"TestAccountHolder5691",
"accountHolderDetails":{
"address": {
"country": "DE"
},
"email":"test@dasdas.com",
"individualDetails":{
"name":{
"firstName":"First name",
"gender":"MALE",
"lastName":"Last Name"
}
}
},
"createDefaultAccount":true,
"legalEntity":"Individual"
}

{
"accountHolderCode":"TestAccountHolder5691",
"accountHolderDetails":{
"address": {
"country": "DE"
},
"email":"test@dasdas.com",
"individualDetails":{
"name":{
"firstName":"First name",
"gender":"MALE",
"lastName":"Last Name"
}
}
},
"createDefaultAccount":true,
"legalEntity":"Individual"
}

英文:

Why I get 401 and no error message when I want to create an account holder ?

I make a request with https://reqbin.com

URL: https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder
headers:
x-API-key: xxx

method: POST,

content (body)
{
   "accountHolderCode":"TestAccountHolder5691",
   "accountHolderDetails":{
      "address": {
        "country": "DE"
      },
      "email":"test@dasdas.com",
      "individualDetails":{
         "name":{
            "firstName":"First name",
            "gender":"MALE",
            "lastName":"Last Name"
         }
      }
   },
   "createDefaultAccount":true,
   "legalEntity":"Individual"
}

答案1

得分: 3

CAL API所需的API密钥与用于处理付款的API密钥不同。

Marketplace的API凭据通常具有以下格式:@MarketPlace.,不幸的是,您无法通过Customer Area web应用程序创建它。请联系Adyen支持以请求创建凭据:然后您可以在CA中自行管理它们(即生成API密钥、配置Basic Auth)。

英文:

The API Key required by the CAL api is different from the API key used for processing payments.

The API credentials for marketplace have typically the format <username>@MarketPlace.<account code> and unfortunately you cannot create that via the Customer Area web app.
Reach out to Adyen Support to request the creation of the credential: you can then manage them (i.e. generate API key, config Basic Auth) yourself in the CA.

huangapple
  • 本文由 发表于 2023年5月6日 22:32:50
  • 转载请务必保留本文链接:https://go.coder-hub.com/76189447.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定