How to get product price from google play store in a React project? - reactjs

I need to pull the price of an application from the google playstore, specifically I need an in-app purchase price.
ie: the app is free to download but has the option to purchase a premium version.
I have tried using the following:
https://developers.google.com/android-publisher/api-ref/rest/v3/purchases.products/get but I am unsure of how to generate the token parameter. I have the packageName and productId
If I can get the price in the user's currency, it would be ideal.
Thank you.

Related

openSea NFT SDK, how to buy and sell an NFT using the api

I recently stumbled upon the OpenSeaSDK and I want to use it to buy and sell NFTs using it. But I couldn't find a single request to sell or buy, everything is in the Order keyword and they don't show how to use it easily.
Can someone point me to a tutorial or maybe a simple script that I can understand this with?
This is definitely possible in OpenSea -- I'm doing it right now! Here's the code example I'm working off that has how to use the createSellOrder API to create NFT listings with a fixed price or for auctions (the word Order means marketplace listing in their SDK).
https://github.com/ProjectOpenSea/opensea-creatures/blob/3acbd744425c9136899cd105df9591f84f9cea88/scripts/sell.js

How to get Buybox price from amazon using MWS or Product Advertising API?

I want to get product Buybox price based on product ASIN.
Is there any API available in Amazon ?
The ItemLookup call of the Product Advertising API has a ResponseGroup named Offers which will allow you to get the buy box price (or, if nobody has the buy box, it will return the lowest offer).
According to this question it seems there is no way to tell if a returned price is actually the buy box price or just the lowest offer.
Alternatively, if you are a seller on Amazon, you could also use the GetCompetitivePricingForSKU call of the MWS Products API.

Amazon MWS "Flat File Price and Quantity Update Feed"

I want to use the feed api to submit the stock and price of my products to Amazon Marketplaces in EU.
Using the FeedType _POST_FLAT_FILE_PRICEANDQUANTITYONLY_UPDATE_DATA_ with the appropriate CSV seems to work.
Since I have different prices for the marketplaces I was wondering how to set the right currency? Right now it just autoconverts my € prices to GBP.
Amazon MWS seems to ignore whatever currency you supply and use the currency of the marketplace. See this SO question for details: Amazon MWS API - Currency

Is it possible to get merchant prices using Amazon Marketplace Web service?

I am currently exploring Amazon Marketplace Web Service to see if I can get a list of Merchant prices (Item Price and Shipping Price) if I give an ASIN as input. Here are operations I came across which may be helpful
GetCompetitivePricingForSKU
GetCompetitivePricingForASIN
and
GetLowestOfferListingsForSKU
GetLowestOfferListingsForASIN
The GetLowestOfferListing based on SKU and ASIN returns the lowest price offer listings for a specific product. I was thinking that GetCompetitivePricing for SKU and ASIN would return pricing information for all merchants but it returns only the lowest priced merchant information.
Is there a way using Amazon MWS to get a list of all merchants with their sale and shipping price if I give ASIN or SKU as input?
Amazon used to have this feature using the PA-API for sellers when sellers were using a whitelisted account, as of 31st Aug 2012 Amazon removed the OfferFull response group and forced sellers to move to the MWS api.
MWS does not have this feature and from what I can find out, It has been removed and will never return.

Amazon MWS sandbox

I intend to develop a client for Amazon's Marketplace webservices (MWS). My requirements would be to update the order, synchronize the order status, get the order details using the APIs they have.
However, I could not find a Sandbox environment to test these scenarios. Amazon has a payment Sandbox I understand, but is there a sandbox available to test these web-services? If not, are there any pointers on how to go about testing the above mentioned scenarios with Amazon MWS?
UPDATE
As seen in the comments to this post, Amazon no longer provides a staging / test environment.
I just had a conversation via sellercentral ticket with an amazon employee.
They said:
We can provide you with a free Seller Central test account to be used in ungated categories only, which are the Amazon categories that do not require approval to sell in. For a list of ungated categories, please scroll down to the middle of the page here: http://www.amazonservices.com/content/sell-on-amazon.htm.
For orders:
After you’ve logged into the staging site, you then need to log into a real Amazon buyer account (not your staging account) to buy items. Then, navigate to the offers you’ve created. If you want to buy anything from your staging account (in order to test MWS order functionality) you will be using real credit card data, so make sure your offers are priced at only one cent, and your shipping is also set to one cent. These offers will not be visible on Amazon .com. Do not buy from any other sellers on the staging site.
So (conclusion): Just file a ticket** and tell them you want a seller central test account like this!
First register** for an account that you can access seller central with (please note, that some kind of accounts have a monthly fee, so choose a "per sale" plan. This fee won't be charged with your test account), then you can file the ticket (click the link above).
All resources about the MWS API are here.
** Replace ".com" with your local Domain for the Amazon Site you want a test (staging) account for.
You can use the scratchpad of Amazon:
scratchpad
good luck

Resources