Is there any way I can write a GraphQL query to fetch Shopify product reviews - graphql

I am using Shopify as backend and GatsbyJs as frontend to create an e-commerce website. I am using GraphQL to query products, variants and blogs which is working fine. Now I want to show product reviews on my frontend and let customers write reviews too. For this I have used Product Review app in Shopify and now I am able to view/write reviews in Shopify, but I want to do this through Gatsby (my frontend), which I am unable to do as I cant find the approriate query in GraphQL. Is there any way I can do it or do I need something other than GraphQL.

Related

Fetch Public App Details Using Shopify Storefront API

I have one scenario where I want to access third-party apps/public apps(shopthru) data using Shopify storefront API.
In my case, I am using shopthru app and I want to fetch data about the created campaign, campaign conditions (like discount for specific walletaddress, or POAP NFT).
I want to know if is it possible to get third party app / public app details using shopify storefront API.
This is not possible. Shopify Apps doesn't integrate and extend Shopify Storefront API. You can try to find out what URL of app is by inspecting iframe, pull out accesstoken from your request and using curl try to extract data but this is very hackish and unstable way.
Other option would be to contact App Developer and ask him to expose some endpoints.
If App is changing your store behavior, you can try to fetch data using GraphQL Admin API and find desired details in discounts object:
https://shopify.dev/apps/discounts/existing
https://shopify.dev/api/admin-graphql/2022-10/queries/codeDiscountNode

Shopify Graphql API - draftOrderCreate redirect to Checkout with Discount Code Field

If you are familiar with Shopify draftOrderCreate API, you know that when retrieving the invoice_url via the graphql mutation, it will redirect you to the checkout page but there will be no DISCOUNT CODE Field, and Shopify docs are clear with this, but upon checking some apps (https://apps.shopify.com/draft-helper) it is possible, but on the said app, you will manually generate the checkout link.
Here's a photo of what that app is doing
I am wondering how do i integrate this automatically via graphql. When checking the Console (Network) it seems like he is only passing the draft order id as payload.
When you create a Draft Order, you can provide a discount. So if you do that, and then send the invoice, the discount should be applied correctly.

List ebay Items using API on my Mobile App with products affiliate link

I have a Mobile APP that is developed in Flutter. I want to add a section in my app called "shop". In that section I am planning to list the items from Ebay with my affiliate code, so that if anyone buy any products there I get a small amount of commission.
My App backend is written in Php Laravel. I don't have too much Idea about Ebay API. can you please suggest me the right path? the API that will give me the list of items with a specific category and items buy link should be included with my affiliate code. So that I can list those items on my shop section.

Wholesaler uses Magento SOAP API v2 - does this mean I'm restricted to using Magento?

I've recently got in contact with a wholesaler who stocks products matching my site.
They offer an API to process orders, and automatically check their stock - which is appealing to me as it would save me time.
They have provided me PHP code, but the references are to Magentos SOAP API v2.
Is it possible to use Shopify instead of Magento, or am I stuck using Magento for my site?
Thanks for your time

What is different between magento extension and rest api?

What is different between magento extension and rest api?
What is the use of mageto extension and api file?
I am beginner in magento.Anyone plese help me.
Magento Rest API is magento feature to provide us facility to get and set data in magento from third party applications using Rest API. In Magento Rest API there are many functions to get Products data, Customers Data, Orders Data etc. You can check documentation using the below link:
http://devdocs.magento.com/guides/m1x/api/rest/introduction.html
Magento extensions are third party modules that we install to enhance magento by default functionality like ajax add to cart OR add new feature in magento like reward point etc.

Resources