Types > ReturnPolicyCreate
Commerce APITypesReturnPolicyCreate
ReturnPolicyCreate

Description

Topic: Return Policies

Fields

condition: ReturnPolicyConditionCreate


currency: String

Currency code used for all prices defined in the policy

Example: "USD"


enabled: Boolean

Whether this return policy is enabled or not

Example: false


inspection_ids: [String!]


name: String!

Name of the return policy

Example: "Domestic (USA) Returns"

Valid when: name's length doesn't exceed 250 characters


priority: Int

Priority of the policy (policy with higher priority is to be evaluated first)

Example: 0


refund_option: ReturnPolicyRefundOption

What kind of refund method is allowed


shipping_options: [ReturnPolicyShippingOptionCreate!]


Used By

Mutations

returnPoliciesCreate

Preview (typescript)

interface ReturnPolicyCreate {
condition?: ReturnPolicyConditionCreate | null
currency?: string
enabled?: boolean
inspection_ids?: string[]
name: string
priority?: number
refund_option?: ReturnPolicyRefundOption | null
shipping_options?: ReturnPolicyShippingOptionCreate[]
}