Skip to main content

PolicyInput

Fields required to create or update a policy.

input PolicyInput {
slug: String
title: String
contentHtml: String
isPublished: Boolean
publicationDate: String
seo: SeoInput
seller: ID
category: PolicyCategory
isDefault: Boolean
returnTerms: ReturnPolicyTermsInput
restockingFeeTerms: RestockingFeePolicyTermsInput
shippingTerms: ShippingPolicyTermsInput
}

Fields​

PolicyInput.slug ● String scalar​

Policy internal name.

PolicyInput.title ● String scalar​

Policy title.

PolicyInput.contentHtml ● String scalar​

Policy content (HTML).

PolicyInput.isPublished ● Boolean scalar​

Determines if the policy is visible in the storefront.

PolicyInput.publicationDate ● String scalar​

Publication date. ISO 8601 standard.

PolicyInput.seo ● SeoInput input​

Search engine optimization fields.

PolicyInput.seller ● ID scalar​

Seller that owns this policy. If omitted, defaults to the calling seller user's own seller; MPO staff may omit it to create a marketplace-level policy.

PolicyInput.category ● PolicyCategory enum​

The kind of policy. Defaults to CUSTOM on create. A seller can hold several RETURNS_AND_REFUNDS, SHIPPING_POLICY and RESTOCKING_FEE policies, and one of each other preset kind. Cannot change while the policy is its seller's default.

PolicyInput.isDefault ● Boolean scalar​

Make this policy its seller's default of its kind, replacing the previous one, or (false) unset it. Only a seller's RETURNS_AND_REFUNDS, SHIPPING_POLICY or RESTOCKING_FEE policy can be a default. When omitted, a policy created in, reclassified to or moved to one of those kinds becomes its seller's default if the seller has no default of that kind (its first, or the first after the default was unset). A plain edit never makes a policy the default. Deleting a default makes the seller's oldest remaining policy of that kind the default.

PolicyInput.returnTerms ● ReturnPolicyTermsInput input​

Terms of a RETURNS_AND_REFUNDS policy. Omit to keep the policy's terms, null to clear them, or give them to replace them whole. Only on a policy of the matching category. Display only: no return, refund or checkout rule reads them.

PolicyInput.restockingFeeTerms ● RestockingFeePolicyTermsInput input​

Terms of a RESTOCKING_FEE policy. Omit to keep the policy's terms, null to clear them, or give them to replace them whole. Only on a policy of the matching category. Display only: no return, refund or checkout rule reads them.

PolicyInput.shippingTerms ● ShippingPolicyTermsInput input​

Terms of a SHIPPING_POLICY policy. Omit to keep the policy's terms, null to clear them, or give them to replace them whole. Only on a policy of the matching category. Display only: no return, refund or checkout rule reads them.

Member Of​

policyCreate mutation ● policyUpdate mutation

Was this page helpful?