Shipping
Shipping policy collections
Shipping
shipping-policies
Stores shipping fee policies. Supports free shipping thresholds and regional surcharges (Jeju/island areas).
| Field | Type | Description | Required |
|---|---|---|---|
title | text | Policy name | ✓ |
baseFee | number | Base shipping fee (default: 3,000, step: 100) | ✓ |
freeShippingThreshold | number | Free shipping threshold amount (step: 100) | |
jejuExtraFee | number | Jeju extra fee (default: 3,000, step: 100) | |
islandExtraFee | number | Island area extra fee (default: 5,000, step: 100) | |
isDefault | checkbox | Default 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
})