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.

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({
  authHeader: "<AUTH_HEADER>",
  shopperIp: "<SHOPPER_IP>",
});

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