Get Financial Events discrepancy #79
Replies: 3 comments
-
Hello @IvanMConnex
You need to use role not user and the same role should connected to app in amazon SellingPartnerApiDeveloperGuide
I can work with you to fix all problem if its exit in my SDK , please send all details to my email and i will check
I start API 4 months ago and at the time i only use last version of SP-API endpoint , var list=amazonConnection.Financial.ListFinancialEvents(new ParameterListFinancialEvents()
{
PostedAfter=DateTime.UtcNow.AddDays(-15)
});
here sample code with pure c# no dependency at any project i use it for test you can also use it to test the problem Please contact me if you want more information |
Beta Was this translation helpful? Give feedback.
-
I can confirm this code work perfect with me , double check it and let me know if you need any help var list=amazonConnection.Financial.ListFinancialEvents(new ParameterListFinancialEvents()
{
PostedAfter=DateTime.UtcNow.AddDays(-15)
}); |
Beta Was this translation helpful? Give feedback.
-
Also you can try to user this report ReportManager reportManager = new ReportManager(amazonConnection);
var settlementOrder = reportManager.GetSettlementOrder(90); //GET_V2_SETTLEMENT_REPORT_DATA_FLAT_FILE_V2 |
Beta Was this translation helpful? Give feedback.
-
Hello, how are you doing today? My name is Ivan, and I am with Sync with Connex.
We've been using your SDK for our Amazon integration, and we wanted to get one of our customer's FinancialEvents as part of the buildout, under FinancialService. However, we received errors pertaining to access with ARNs, along the lines of "User: arn:aws:iam::11111:user/sync is not authorized to perform: sts:AssumeRole on resource: amzn1.sellerapps.app.abc123".
We tried to use your SDK and its AuthorizationService to address it, but to no avail, and it was unclear where we need to put in the ARN information and other fields.
Additionally, we actually have our own internal API based off of Amazon's official new API that is working, but not all of the components are operating the way we need them to, hence our interest in your SDK.
I compared the Requests and Responses made by both our company's API and your SDK, and we found that yours obtains FinancialEvents very differently than ours - for one thing, we use GET requests, while you use POST ones.
My 2nd question is essentially why does our GET request work and your POST one doesn't? Which Amazon API version are you using? We're using 2020, but I do recall there was a 2021 version that Amazon was intent on implementing as well. Will the 2020 version soon be deprecated?
We also appear to be sending the same type of Auth calls before trying to get the FinancialEvents using our API and your SDK, so there shouldn't be a problem there.
AmazonRESTOriginalFinancialEventRq2.txt
AmazonRESTSharpFinancialEventRq2.txt
Please find our successful GET request and your POST one attached to this message. We look forward to hearing from you. Thank you, and have a good day.
Beta Was this translation helpful? Give feedback.
All reactions