amzn / selling-partner-api-models

This repository contains OpenAPI models for developers to use when developing software to call Selling Partner APIs.
Apache License 2.0
580 stars 730 forks source link

How to use the sp-api in EU #2568

Closed iAccidentallyGitHub closed 11 months ago

iAccidentallyGitHub commented 1 year ago

Hello,

I'm trying to integrate sp-api into our .NET solution in order to upload invoices to Amazon in Germany. I found this guide: https://developer-docs.amazon.com/sp-api-blog/docs/automate-your-sp-api-calls-using-the-c-sdk I have followed it up to step 5 -I have cloned the selling-partner-api-models by running git clone https://github.com/amzn/selling-partner-api-models Step 6 says to take a JSON file from the subfolders and copy it to to C:\SwaggerToCL. However, when I looked at the JSON files, I noticed they are specific for North America. They all contain the following string: ellingpartnerapi-na.amazon.com while some of them even appear to be specific to Brazil, containing the following:

"paths": {
    "/fba/outbound/brazil/v0/shipments/{shipmentId}": {

The guide doesn't contain any region specific instructions.

How can I make it work for Germany? I suppose I could replace "https://sellingpartnerapi-na.amazon.com/" with "https://sellingpartnerapi-eu.amazon.com/" (according to this page https://developer-docs.amazon.com/sp-api/docs/sp-api-endpoints) but I have no idea what to do about "/fba/outbound/brazil/v0/shipments/{shipmentId}". Or do I not need that one for Germany?

Or am I missing something, and this whole thing is unusable for Europe?

Also, step 6 of the guide says "Navigate to the selling-partner-api-models\models folder in your local copy of the repository and copy a JSON file from the models subfolders into C:\SwaggerToCL. This blog post uses the Sellers.json file." I don't quite understand this. Do I get different parts of the API, based on which file I choose? If so, which file do I need in order to be able to upload invoices? (I'm assuming uploading invoices is possible based on this https://github.com/amzn/selling-partner-api-models/issues/1042 )

iAccidentallyGitHub commented 1 year ago

Also, is there someone I could talk to about raising the version of .NET for the generated C# solution? It gave me .NET framework 4.7.2. and I had to spend considerable effort upgrading it to .NET 5.0

skrzyh commented 1 year ago

For upload invoice you need use https://github.com/amzn/selling-partner-api-models/blob/main/models/feeds-api-model/feeds_2021-06-30.json type UPLOAD_VAT_INVOICE You found more https://developer-docs.amazon.com/sp-api/docs/option-3-upload-invoices-through-sp-api-or-seller-central

github-actions[bot] commented 11 months ago

This is a very old issue that is probably not getting as much attention as it deserves. We encourage you to check if this is still an issue after the latest release and if you find that this is still a problem, please feel free to open a new issue and make a reference to this one.

github-actions[bot] commented 11 months ago

closed for inactivity