AmazonProduct and ShopifyProduct returned by this query have similarities and differences that are compared in detail here


Arguments

input
ProductByIDInput!
required

An object containing the product ID.

includeAdditionalProductDetails
Boolean

Set to false by default. If set to true, the query will return additional fields specific to the marketplace the product is from. For example, if the product is from Amazon, the query will return fields specific to Amazon products.

Returns

Product
Product

Any requested field from an object which implements the Product interface.

The query returns null if the product is not found in the inventory

Usage

import { RyeClient, Marketplace } from "@rye-api/rye-sdk";

const ryeClient = new RyeClient("<AUTH_HEADER>", "<SHOPPER_IP>");

const result = await ryeClient.getProductById({
  input: {
    id: "B007W3DDUW",
    marketplace: "AMAZON",
  },
});