Skip to main content

Arguments

input
CartSubmitInput!
required
The input object contains the unique identifier (ID) for the cart and the billing address information of the buyer. See CartSubmitInput

Returns

SubmitCartResult.*
SubmitCartResult
Any requested field from the SubmitCartResult object.

Usage

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

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

const result = await ryeClient.submitCart({
  input: {
    id: "<CART_ID>",
    billingAddress: {
      firstName: "<FIRST_NAME>",
      lastName: "<LAST_NAME>",
      email: "<EMAIL>",
      phone: "<PHONE>",
      address1: "<ADDRESS_1>",
      address2: "<ADDRESS_2>",
      city: "<CITY>",
      provinceCode: "<PROVINCE_CODE>",
      countryCode: "<COUNTRY_CODE>",
      postalCode: "<POSTAL_CODE>",
    },
  },
});