Skip to main content

PolicyVersionInput

Changes to a draft or scheduled policy version. A version that has taken effect never changes: write a new one with policyUpdate.

input PolicyVersionInput {
title: String
contentHtml: String
effectiveAt: DateTime
draft: Boolean
returnTerms: ReturnPolicyTermsInput
restockingFeeTerms: RestockingFeePolicyTermsInput
shippingTerms: ShippingPolicyTermsInput
}

Fields​

PolicyVersionInput.title ● String scalar​

Version title.

PolicyVersionInput.contentHtml ● String scalar​

Version content (HTML).

PolicyVersionInput.effectiveAt ● DateTime scalar​

Publish or reschedule it: a future moment schedules it, a past one means now.

PolicyVersionInput.draft ● Boolean scalar​

Make it a draft again (takes precedence over effectiveAt).

PolicyVersionInput.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.

PolicyVersionInput.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.

PolicyVersionInput.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​

policyVersionUpdate mutation

Was this page helpful?