英文:
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凭据通常具有以下格式:
英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论