01 Software

Shipping

Shipping policy collections

Shipping

shipping-policies

Stores shipping fee policies. Supports free shipping thresholds and regional surcharges (Jeju/island areas).

FieldTypeDescriptionRequired
titletextPolicy name
baseFeenumberBase shipping fee (default: 3,000, step: 100)
freeShippingThresholdnumberFree shipping threshold amount (step: 100)
jejuExtraFeenumberJeju extra fee (default: 3,000, step: 100)
islandExtraFeenumberIsland area extra fee (default: 5,000, step: 100)
isDefaultcheckboxDefault policy (default: false)

Products can be linked to a shipping policy via the shippingPolicy field.

// Create a shipping policy
const policy = await client.from('shipping-policies').create({
  title: 'Standard Shipping',
  baseFee: 3000,
  freeShippingThreshold: 50000,
  jejuExtraFee: 3000,
  islandExtraFee: 5000,
  isDefault: true
})

// Get default shipping policy
const response = await client.from('shipping-policies').find({
  where: { isDefault: { equals: true } }
})

// Link shipping policy to product
await client.from('products').update(productId, {
  shippingPolicy: policyId
})

On this page