Policy
A policy that can be manually added by a shop operator through the dashboard.
type Policy implements Node, ObjectWithMetadata {
id: ID!
metadata: [MetadataItem!]!
privateMetadata: [MetadataItem!]!
slug: String!
title: String!
content: String!
contentHtml: String!
isPublished: Boolean!
publicationDate: Date
seoTitle: String
seoDescription: String
createdAt: DateTime!
updatedAt: DateTime!
isDefault: Boolean!
returnTerms: ReturnPolicyTerms
restockingFeeTerms: RestockingFeePolicyTerms
shippingTerms: ShippingPolicyTerms
category: PolicyCategory!
seller: Seller
}
Fields
Policy.id ● ID! non-null scalar
The Globally Unique ID of this object
Policy.metadata ● [MetadataItem!]! non-null object
List of public metadata items. Can be accessed without permissions.
Policy.privateMetadata ● [MetadataItem!]! non-null object
List of private metadata items. Requires proper staff permissions to access.
Policy.slug ● String! non-null scalar
Policy.title ● String! non-null scalar
Policy.content ● String! non-null scalar
Policy.contentHtml ● String! non-null scalar
Policy.isPublished ● Boolean! non-null scalar
Policy.publicationDate ● Date scalar
Policy.seoTitle ● String scalar
Policy.seoDescription ● String scalar
Policy.createdAt ● DateTime! non-null scalar
Policy.updatedAt ● DateTime! non-null scalar
Policy.isDefault ● Boolean! non-null scalar
Whether this is its seller's default policy of its kind: what a product or variant with no policy of that kind of its own falls back to.
Policy.returnTerms ● ReturnPolicyTerms object
The terms of a RETURNS_AND_REFUNDS policy; null otherwise.
Policy.restockingFeeTerms ● RestockingFeePolicyTerms object
The terms of a RESTOCKING_FEE policy; null otherwise.
Policy.shippingTerms ● ShippingPolicyTerms object
The terms of a SHIPPING_POLICY policy; null otherwise.
Policy.category ● PolicyCategory! non-null enum
The category of this policy
Policy.seller ● Seller object
The seller that owns this policy, or null for marketplace-level policies.
Interfaces
Node interface
An object with a Globally Unique ID
ObjectWithMetadata interface
An object that supports metadata.
Returned By
policy query
Member Of
MenuItem object ● PolicyCountableEdge object ● PolicyCreate object ● PolicyDelete object ● PolicyUpdate object