ShippingMethod
ObjectRepresents a shipping method.
Fields
- ChannelConnection!
channels Gets a list of channels associated with the specified shipping zone.
- String
description The description of the shipping method.
- ID!
id The unique identifier for the shipping method.
- [MetadataItem!]!
metadata Gets the metadata associated with the shipping method.
- String!
name The name of the shipping method.
- String
predicate The predicate of the shipping method, which defines the conditions under which the shipping method is applicable.
Thor predicates are boolean expressions. Cart discounts and shipping rules evaluate against cart context; product discounts evaluate against price and product context. Cart predicate language and product predicate language.- ShippingMethodRateConnection!
rates A list of shipping method rates associated with the shipping method.
- ShippingZoneConnection!
shippingZones A list of shipping zones associated with the shipping method.
- String
sku The SKU of the shipping method.
Queries
Retrieves a shipping method by its ID.
Retrieves a paginated list of shipping methods.
Mutations
Creates a new shipping method with the specified name and SKU.
Deletes a shipping method by its ID.
Adds a shipping method rate to an existing shipping method.
Deletes a shipping method rate from an existing shipping method by its ID.
Reorders rates within a shipping method.
Updates an existing shipping method with the specified ID.