Apple Pay Register domain API issue - safari

We tried to register domain using this endpoint https://apple-pay-gateway.apple.com/paymentservices/registerMerchant and the request is:
{
"domainNames": ["domain-name"],
"encryptTo": "merchant-id",
"partnerInternalMerchantIdentifier": "merchant-id",
"partnerMerchantName": "merchant-name"
}
but we get this response:
{
"statusMessage": "Payment Services Exception The number of domains for the merchant `merchant-id` the allowed limit99",
"statusCode": "400"
}
but we just send one domain.
If anyone face this issue before, can you please tell us how to fix it?
Thanks.

Related

Microsoft graph api: Some users get a 403 when using my app, others don't, why?

Problem
I get
Microsoft\Graph\Exception\GraphException: [0]: Received 403 for call
to
https://graph.microsoft.com/beta/me/chats/[id]#unq.gbl.spaces/members
I fail to understand why.
Research
permissions in Azure
how the exception appears in my queue
Additional information
Just to be clear: this same request with other users of our company is working, so it's not something that always fails. It might be worth noting that the permissions starting with Chat are from the beta version of the graph api. Also retrieving info about the user (ownUser getGivenName) is working for all users.
App scopes
The scopes defined in the application are:
openid
profile
offline_access
user.read
mailboxsettings.read
calendars.readwrite
Chat.ReadBasic
Chat.Read
Chat.ReadWrite
Response of the server
The response completely:
{
"error": {
"code": "Forbidden",
"message": "Forbidden",
"innerError": {
"date": "2021-05-04T12:05:41",
"request-id": "xxxxxxx-f7ea-4912-a23b-676002d0912d",
"client-request-id": "xxxxxxx-f7ea-4912-a23b-676002d0912d"
}
}
}
The response headers also don't reveal anything:
Also tried
I also tried re-visiting https://login.microsoftonline.com/common/adminconsent?client_id=[id] and give my (admin) consent, however this doesn't change anything.
JWT token
Also I decoded both a working users jwt token and a non-working one and they have the same scp (scopes) configured. Here is the diff
used endpoints
/me/chats
/me
/me/chats/$chatId/messages
/me/chats/$chatId/members
Just some observations and workarounds to help out others who come on this post through google:
Only the /me/chats/$chatId/members fails, without an apparant reason. It might be a mistake in in the beta implementation. Maybe it's better to use the $expand argument to see them to mitigate this problem.
for another subgroup of users retrieving all the chats with the endpoint /me/chats with the php sdk also fails with the recommended code
public function listChats(): array
{
$graph = $this->getGraph();
$chats = [];
$response = $graph->setApiVersion("beta")
->createCollectionRequest("GET", "/me/chats")
->setReturnType(Chat::class);
while (!$response->isEnd()) {
$chats = array_merge($chats, $response->getPage());
}
return $chats;
}
because the while loop never stops. #odata.nextLink is always present in the response for these users. Probably also a bug as by design the sdk checks if it's present.
$maxRequests = 10;
while (!$response->isEnd() && $maxRequests > 0) {
$chats = array_merge($chats, $response->getPage());
$maxRequests--;
}

Ebay Inventory API "Get Inventory Item " 404 Not Found

When I am tryping to request on ebay inventory API using API Exploler. I am geting the Call Respond Statud code 404.
and Following error message. can anyone help me to solve the issue
{"errors": [
{
"errorId": 25710,
"domain": "API_INVENTORY",
"subdomain": "Selling",
"category": "REQUEST",
"message": "We didn't find the entity you are requesting. Please verify the request"
} ]}
That message means there is an issue either with the item, or the SKU. Maybe you typed the SKU incorrectly. Maybe you're looking in the account of the wrong user.
But my guess... The SKU was of an item that wasn't created with the API, and was instead created manually using eBay's front end. That command only works on items also created by similar commands.

"integrationuser" is not an Active user in KissFlow

I am using kissflow API to attach file but I am getting this error
{
"error": "ValidationError The user integrationuser#xxxxxxx is not an
Active user" }
I am using this url with data {Name:'xxxxx','Url':'xxxxxx'} as suggested in Doc
https://sxxxxxxxxx.appspot.com/api/1/Print Quotation/Sxxxxxx9/attachment/create
I already created request for this with this url
http://sxxxxxxxxx8.appspot.com/api/1/PrintQuotation/create
And got success result with id and subject
{
.......
Id": "d442c98a-bca2-11e8-9ac6-c7734a25d32a",
"Subject": "Request from integrationuser#ap9d9afe30_96bd_11e8_a251_0e8f5e2360a0"
}
Please help me to understand why this error comes.
Note : I am using test account.
And there is no such user with name integrationuser in Users
I got the same error, in my case im using a real account.
SOLUTION 1 :
Create a valid account for use in integrations e.g. integration#companydomain.com
Add the header "email_id" with the email of this user "integration#companydomain.com"
It works for me with a valid account.
However i need to pay by a license for it =P.
I'm talking with support for a better solution using default integrationuser, i will post here the answer from support for clarify this situation.
You can see this solution on documentation here :
https://help.kissflow.com/tips-and-tricks/api-documentation/rest-api-points

Error on Paysafe Card Payment API?

This may sound stupid but I keep getting this error for every request that I make for the Card Payments API.
{
"error": {
"code": "5270",
"message": "The credentials provided with the request do not have permission to access the data requested.",
"links": [
{
"rel": "errorinfo",
"href": "https://developer.optimalpayments.com/en/documentation/cardpayments/error-5270"
}
]
}
}
The error seems to indicate that I do not have permission to do something. Is this an access issue as I think I am using the proper key? Has anyone ever seen this error with Paysafe?
#Crazyshezy is correct. Write to Paysafe with the key that you are using and they will be able to isolate what permissions that you have or may not have with your API key.
i was getting same error. It was due to card expiry year. It should be 4 digit year(e.g 2017) but i was sending 2 digit year(17).

Can't create replies to some existing youtube comments

I have a software, which allows you to create a reply to a comment on your youtube video. Therefore I use the youtube API v3 comments.insert method.
POST https://www.googleapis.com/youtube/v3/comments?part=id%2Csnippet&access_token=[access_token]
{
"snippet": {
"parentId": "parentId",
"textOriginal": "test message"
}
}
Most of the time the requests are successful. But for some comments I can't create replies this way. The API always returns:
{
"error": {
"errors": [
{
"domain": "youtube.comment",
"reason": "processingFailure",
"message": "The API server failed to successfully process the request. While this can be a transient error, it usually indicates that the requests input is invalid. Check the structure of the <code>comment</code> resource in the request body to ensure that it is valid.",
"locationType": "other",
"location": "body"
}
],
"code": 400,
"message": "The API server failed to successfully process the request. While this can be a transient error, it usually indicates that the requests input is invalid. Check the structure of the <code>comment</code> resource in the request body to ensure that it is valid."
}
}
I'm using a valid access token and the parentId is valid, too, because I can retrieve it through the API.
I took a look at the successful and failing requests, but didn't find any difference. So I assume that the request input isn't invalid as it is mentioned in the error message.
In my opinion this error isn't a transient error, because the same requests are still failing after some days.
I also tried to create a reply on such a comment through the API Explorer but the result was the same.
Does anyone have the same problems or am I doing something wrong?
When I go to the video and look at the comments directly, the comment with ID z13tjxdqnuygy1lga04cilcqxqipg1zbtbs has a "reply" option under it, while the comment with ID z13rgftjgw3bulyou04ccfnbjofztxg54yo0k does not. It seems that the user posted the comment via their Google+ page and disabled replies to their posts.