ShippingMethodType Object
Shipping method are the methods you'll use to get customer's orders to them. They are directly exposed to the customers.
type ShippingMethodType implements Node, ObjectWithMetadata {
id: ID!
privateMetadata: [MetadataItem!]!
privateMetafield(
key: String!
): String
privateMetafields(
keys: [String!]
): Metadata
metadata: [MetadataItem!]!
metafield(
key: String!
): String
metafields(
keys: [String!]
): Metadata
name: String!
description: JSONString
type: ShippingMethodTypeEnum
translation(
languageCode: LanguageCodeEnum!
): ShippingMethodTranslation
channelListings: [ShippingMethodChannelListing!]
maximumOrderPrice: Money
minimumOrderPrice: Money
postalCodeRules: [ShippingMethodPostalCodeRule!]
excludedProducts(
before: String
after: String
first: Int
last: Int
): ProductCountableConnection
minimumOrderWeight: Weight
maximumOrderWeight: Weight
maximumDeliveryDays: Int
minimumDeliveryDays: Int
taxClass: TaxClass
}
Fields
ShippingMethodType.id
● ID!
non-null scalar miscellaneous
Shipping method ID.
ShippingMethodType.privateMetadata
● [MetadataItem!]!
non-null object miscellaneous
List of private metadata items. Requires staff permissions to access.
ShippingMethodType.privateMetafield
● String
scalar miscellaneous
A single key from private metadata. Requires staff permissions to access.
Tip: Use GraphQL aliases to fetch multiple keys.
ShippingMethodType.privateMetafield.key
● String!
non-null scalar miscellaneous
ShippingMethodType.privateMetafields
● Metadata
scalar miscellaneous
Private metadata. Requires staff permissions to access. Use keys
to control which fields you want to include. The default is to include everything.
ShippingMethodType.privateMetafields.keys
● [String!]
list scalar miscellaneous
ShippingMethodType.metadata
● [MetadataItem!]!
non-null object miscellaneous
List of public metadata items. Can be accessed without permissions.
ShippingMethodType.metafield
● String
scalar miscellaneous
A single key from public metadata.
Tip: Use GraphQL aliases to fetch multiple keys.
ShippingMethodType.metafield.key
● String!
non-null scalar miscellaneous
ShippingMethodType.metafields
● Metadata
scalar miscellaneous
Public metadata. Use keys
to control which fields you want to include. The default is to include everything.
ShippingMethodType.metafields.keys
● [String!]
list scalar miscellaneous
ShippingMethodType.name
● String!
non-null scalar miscellaneous
Shipping method name.
ShippingMethodType.description
● JSONString
scalar miscellaneous
Shipping method description.
Rich text format. For reference see https://editorjs.io/
ShippingMethodType.type
● ShippingMethodTypeEnum
enum shipping
Type of the shipping method.
ShippingMethodType.translation
● ShippingMethodTranslation
object shipping
Returns translated shipping method fields for the given language code.
ShippingMethodType.translation.languageCode
● LanguageCodeEnum!
non-null enum miscellaneous
A language code to return the translation for shipping method.
ShippingMethodType.channelListings
● [ShippingMethodChannelListing!]
list object shipping
List of channels available for the method.
ShippingMethodType.maximumOrderPrice
● Money
object miscellaneous
The price of the cheapest variant (including discounts).
ShippingMethodType.minimumOrderPrice
● Money
object miscellaneous
The price of the cheapest variant (including discounts).
ShippingMethodType.postalCodeRules
● [ShippingMethodPostalCodeRule!]
list object shipping
Postal code ranges rule of exclusion or inclusion of the shipping method.
ShippingMethodType.excludedProducts
● ProductCountableConnection
object products
List of excluded products for the shipping method.
ShippingMethodType.excludedProducts.before
● String
scalar miscellaneous
Return the elements in the list that come before the specified cursor.
ShippingMethodType.excludedProducts.after
● String
scalar miscellaneous
Return the elements in the list that come after the specified cursor.
ShippingMethodType.excludedProducts.first
● Int
scalar miscellaneous
Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.
ShippingMethodType.excludedProducts.last
● Int
scalar miscellaneous
Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.
ShippingMethodType.minimumOrderWeight
● Weight
object miscellaneous
Minimum order weight to use this shipping method.
ShippingMethodType.maximumOrderWeight
● Weight
object miscellaneous
Maximum order weight to use this shipping method.
ShippingMethodType.maximumDeliveryDays
● Int
scalar miscellaneous
Maximum number of days for delivery.
ShippingMethodType.minimumDeliveryDays
● Int
scalar miscellaneous
Minimal number of days for delivery.
ShippingMethodType.taxClass
● TaxClass
object taxes
Tax class assigned to this shipping method.
Interfaces
Node
interface miscellaneous
An object with an ID
ObjectWithMetadata
interface miscellaneous
Member Of
ShippingMethodChannelListingUpdate
object ● ShippingMethodTranslatableContent
object ● ShippingPriceCreate
object ● ShippingPriceCreated
object ● ShippingPriceDelete
object ● ShippingPriceDeleted
object ● ShippingPriceExcludeProducts
object ● ShippingPriceRemoveProductFromExclude
object ● ShippingPriceTranslate
object ● ShippingPriceUpdate
object ● ShippingPriceUpdated
object ● ShippingZone
object