Common objects
You can use common objects to access common Shipping Discount API objects.
In this section
Anchor link to section titled "In this section"Attribute — Represents a generic custom attribute, such as whether an order is a customer’s first.
BuyerIdentity — Represents information about the buyer that is interacting with the cart.
Cart — A cart represents the merchandise that a buyer intends to purchase, and the cost associated with the cart.
CartCost — The cost that the buyer will pay at checkout.
CartDeliveryGroup — Information about the options available for one or more line items to be delivered to a specific address.
CartDeliveryOption — Information about a delivery option.
CartLine — Represents information about the merchandise in the cart.
CartLineCost — The cost of the merchandise line that the buyer will pay at checkout.
CollectionMembership — Represents whether the product is a member of the given collection.
Company — Represents information about a company which is also a customer of the shop.
CompanyContact — A company’s main point of contact.
CompanyLocation — A company’s location.
Country — A country.
CountryCode — The code designating a country/region, which generally follows ISO 3166-1 alpha-2 guidelines. If a territory doesn’t have a country code value in the
CountryCode
enum, then it might be considered a subdivision of another country. For example, the territories associated with Spain are represented by the country codeES
, and the territories associated with the United States of America are represented by the country codeUS
.CurrencyCode — The three-letter currency codes that represent the world currencies used in stores. These include standard ISO 4217 codes, legacy codes, and non-standard codes.
CustomProduct — A custom product.
Customer — Represents a customer with the shop.
DeliverableCartLine — Represents information about the merchandise in the cart.
DeliveryGroupTarget — The target delivery group.
DeliveryMethod — List of different delivery method types.
DeliveryOptionTarget — The target delivery option.
Discount — The discount to be applied.
DiscountNode — A discount wrapper node.
FixedAmount — A fixed amount value.
GateConfiguration — Represents a gate configuration.
GateSubject — Represents a connection from a subject to a gate configuration.
HasGates — Gate subjects associated to the specified resource.
HasMetafields — Represents information about the metafields associated to the specified resource.
HasTagResponse — Represents whether the current object has the given tag.
Language — A language.
LanguageCode — Language codes supported by Shopify.
LocalTime — Represents limited information about the current time relative to the parent object.
Localization — Information about the localized experiences configured for the shop.
MailingAddress — Represents a mailing address.
Market — A market is a group of one or more regions that you want to target for international sales. By creating a market, you can configure a distinct, localized shopping experience for customers from a specific area of the world. For example, you can change currency, configure international pricing, or add market-specific domains or subfolders.
MarketRegion — Represents a region.
MarketRegionCountry — A country which comprises a market.
Merchandise — The merchandise to be purchased at checkout.
Metafield — Metafields enable you to attach additional information to a Shopify resource, such as a Product or a Collection. For more information about the Shopify resources that you can attach metafields to, refer to HasMetafields.
MoneyV2 — A monetary value with currency.
Percentage — A percentage value.
Product — Represents a product.
ProductVariant — Represents a product variant.
PurchasingCompany — Represents information about the buyer that is interacting with the cart.
SellingPlan — Represents how products and variants can be sold and purchased.
SellingPlanAllocation — Represents an association between a variant and a selling plan. Selling plan allocations describe the options offered for each variant, and the price of the variant when purchased with a selling plan.
SellingPlanAllocationPriceAdjustment — The resulting prices for variants when they’re purchased with a specific selling plan.
Shop — Information about the shop.
Target — The target of the discount.
Value — The discount value.
WeightUnit — Units of measurement for weight.