Arguments

input
UpdateCartSelectedShippingOptionsInput!
required

The input object contains the unique identifier (ID) for the cart and an array of shipping options associated with a store the shipping belongs to.

Returns

CartResponse.*
CartResponse

Any requested field from the CartResponse object.

Usage

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

const ryeClient = new RyeClient({
  authHeader: "<AUTH_HEADER>",
  shopperIp: "<SHOPPER_IP>",
});

const result = await ryeClient.updateCartSelectedShippingOptions({
  input: {
    id: "<CART_ID>",
    shippingOptions: [
      {
        shippingId: "55cfdaa8c7702fb7f57be90",
        store: "rye-dev-store.myshopify.com",
      },
    ],
  },
});