selling-partner-api-sdk icon indicating copy to clipboard operation
selling-partner-api-sdk copied to clipboard

Using Shipping API v2

Open Antonio0001999 opened this issue 2 years ago • 6 comments

Hello. This library is the closest I have been to make Amazon's Shipping API work, but the ShippingAPIClient class only allows to make calls to Shipping API v1, would it be possible to make it work for Shipping API v2?

Many thanks.

Antonio0001999 avatar Sep 14 '22 08:09 Antonio0001999

Could you please point to the docs for the source?

@nguyentoanit Please add this, if we are indeed missing this model.

moltar avatar Sep 14 '22 08:09 moltar

The Shipping API v2 I'm talking about is at https://developer-docs.amazon.com/amazon-shipping/docs/shipping-api-v2-reference

This is the docs I tried to follow, is it part of the same API or I'm confused? Any help on this would be helpful, thanks.

Antonio0001999 avatar Sep 14 '22 08:09 Antonio0001999

@Antonio0001999 : They only added them into documentation site, not model repository.

We were using models from API model's repo to generate classes automatically. Therefore, we cannot make a call to Shipping API v2 from this SDK so far.

Also, I opened an issue to ask them about this.

nguyentoanit avatar Sep 14 '22 08:09 nguyentoanit

Many thanks for your time. Please, let me know if you are able to add it in the future.

Antonio0001999 avatar Sep 14 '22 08:09 Antonio0001999

@moltar : Should we generate API models from external sources? Like this Shipping API v2 model?

nguyentoanit avatar Sep 14 '22 08:09 nguyentoanit

Should we generate API models from external sources?

Let's hold off and see what they reply in the issue you created.

@Antonio0001999 Please :+1: the issue @nguyentoanit created to give it more juice 😁

moltar avatar Sep 14 '22 09:09 moltar

@Antonio0001999 We implemented v2 shipping about a year ago. We also made a bunch of selling partner helpers for reports and feeds in our fork. https://github.com/whitebox-co/selling-partner-api-sdk

optikalefx avatar Dec 17 '22 19:12 optikalefx

And @moltar @nguyentoanit the OpenAPI Spec is here https://github.com/whitebox-co/selling-partner-api-sdk/blob/master/models/shipping-api-model-v2/shippingV2.json

optikalefx avatar Dec 17 '22 19:12 optikalefx

:tada: This issue has been resolved in version 7.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

github-actions[bot] avatar Apr 03 '24 14:04 github-actions[bot]