product Options MPN (manufacturer part number)- NOT SHOWING UP IN API.
We pull the product data through BigCommerce API and the MPN values for the product options is not come through.
Just to be clear the MPN under other details tab can be seen but the OPTIONS MPN's are not coming through. Recently Bigcommerce added the ability to assignee MPN's to options but it seems that it is not available in the API.
My question is am i doing something wrong or is this date just not available yet and are there plans to add this info in the IPA calls.
The 'MPN' that is available with the Catalog API - GET /catalog/products/{product_id} is only the product's mpn, if your product has variants, these mpn values can be accessed via GET /catalog/products/{product_id}/variants.
These should help!
Get Product with product MPN,
Get Variants with variant MPN
Related
I am trying to get and sync Shopify products to my own database and after that, we will show those products in our mobile application what I want to do is I want to filter products that only enable to sp-tools-shopify-connector under sales channel and app section how can I filter this using Shopify API
If you are using Storefront API, you don't need to filter anything, as Shopify will only show products with your sales channel enabled in product settings.
You can always filter or remove lines in the exported CSV before you import.
On this page https://stencil.bigcommerce.com/docs/product-resources BigCommerce has mentioned that Product Object has "Options" but in the theme, I am not able to retrieve anything from options property. I am trying to access this in Category Page.
I want to do above because I have to add product attributes on product listing page "templates\components\products\card.html". I need this here because I have to remove quick view option and directly put the product option under product title on this page. Over here I am able to get product's id, name, sku etc but not getting any properties from product options.
I have already asked to BigCommerce Support team and they don't have any solutions and referred me to check here.
The category page calls the common product card model, which does not include the product options property:
https://stencil.bigcommerce.com/docs/common-product-card-model
To get product option data on the category page, you'll need to call the API. One lightweight solution for handling this is to use AWS Lambda with Amazon API Gateway. API Gateway defines an endpoint URL that you can use to trigger a Lambda function that runs a request to the BigCommerce API for product data.
https://docs.aws.amazon.com/lambda/latest/dg/with-on-demand-https.html
I want to show the images of products in an order for the plugin I'm developing. But with the response returned for orders(from shopify admin API), in it line_items doesn't contain a product object or any other object that have the link for shopify cdn link of a product image, but the product id.
What I'm planning now is to call the admin api again with product id to get images which looks costly as I have to do it to all the items in an order and do that for all orders.
My question is whether any other way to derive the cdn link for product image given the product id or what could be the best approach for this?
Thanks in advance.
Let check the shopify Product API Docs. You can get a list of products by Product API, which is not costly.
Get a list of specific products
GET /admin/products.json?ids=632910392,921728736
It is necessary to modify Shopify products API as per my client requirement.
For example the below products API is available in Shopify API reference document.
GET /admin/products.json
I am able to get list of products from above API. But i want to filter products based on price by sending price as input parameter and get related products as a response.
For that post API is needed. Do shopify team provide Products API for filtering products by sending input parameter as that is not available in API reference?
Kindly give me the information. Thanks in advance
No, there is no way to filter on a price range using /admin/products.json. You can page through all of the products, 250 at a time, and find the products that meet your criteria that way.
We are trying to implement the v2 API in BigCommerce to be able to add products to BigCommerce from our system.
It seems that you cannot set the Product SKU field when adding a product. This makes the product API totally meaningless. Is this by design?
How are we supposed to know if a product is already added if it does not have a SKU? SKU should be updateable for ADD product case, it can be ready only for UPDATE product case. I think this is a serious bug in the API.
https://developer.bigcommerce.com/api/stores/v2/products#create-product
Please advise how to add product with API with SKU.
If you look at the API documentation for the SKU resource under Create Product, https://developer.bigcommerce.com/api/stores/v2/products/skus#create-product-sku, you will see that you first have to add the base SKU or the parent and then the options, or Skus. The call to add the Sku must contain the parent product ID, POST /api/v2/products/{product_id}/skus. You cannot do it in one API call to my knowledge