1 {"slug":"/references/fulfillment/models/ServiceZone","title":"ServiceZone - Fulfillment Module Data Models Reference","frontmatter":{"displayed_sidebar":"fulfillmentModelReference","slug":"/references/fulfillment/models/ServiceZone","sidebar_label":"ServiceZone"},"toc":[],"blocks":[{"kind":"markdown","html":"This documentation provides a reference to the ServiceZone data model. It belongs to the Fulfillment Module."},{"kind":"sourceCodeLink","link":"https://github.com/medusajs/medusa/blob/020565398e436a2bc65777a3b1ad347b4735d6df/packages/modules/fulfillment/src/models/service-zone.ts#L27"},{"kind":"typeList","sectionTitle":"ServiceZone","types":[{"name":"id","type":"PrimaryKeyModifier&#60;IdProperty&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"name","type":"[TextProperty](/references/utils/classes/utils.TextProperty)","description":"text / keyword — the only kinds an engine can match as free text.","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"$dataType","type":"`string`","description":"A type-only property to infer the JavaScript data-type\nof the schema property","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"#retrievable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#providerOptions","type":"`Record<string, Record&#60;string, unknown&#62;>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#filterable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#sortable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#facetable","type":"`boolean` \\| `object`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[{"name":"types","type":"[SearchFacetKind](/references/types/SearchTypes/types/types.SearchTypes.SearchFacetKind)[]","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"#array","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#searchable","type":"`boolean` \\| `object`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[{"name":"weight","type":"`number`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"dataType","type":"`object`","description":"The runtime dataType for the schema. It is not the same as\nthe \"$dataType\".","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"name","type":"`\"text\"`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"options","type":"`Record<string, any>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]}]},{"name":"fulfillment_set","type":"BelongsTo&#60;[FulfillmentSet](/references/fulfillment/models/FulfillmentSet)&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"id","type":"PrimaryKeyModifier&#60;IdProperty&#62;","description":"The ID of the fulfillment set.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"name","type":"[TextProperty](/references/utils/classes/utils.TextProperty)","description":"The name of the fulfillment set","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"$dataType","type":"`string`","description":"A type-only property to infer the JavaScript data-type\nof the schema property","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"#retrievable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#providerOptions","type":"`Record<string, Record&#60;string, unknown&#62;>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#filterable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#sortable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#facetable","type":"`boolean` \\| `object`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#array","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#searchable","type":"`boolean` \\| `object`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"dataType","type":"`object`","description":"The runtime dataType for the schema. It is not the same as\nthe \"$dataType\".","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"type","type":"[TextProperty](/references/utils/classes/utils.TextProperty)","description":"The type of the fulfillment set","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"$dataType","type":"`string`","description":"A type-only property to infer the JavaScript data-type\nof the schema property","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"#retrievable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#providerOptions","type":"`Record<string, Record&#60;string, unknown&#62;>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#filterable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#sortable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#facetable","type":"`boolean` \\| `object`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#array","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#searchable","type":"`boolean` \\| `object`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"dataType","type":"`object`","description":"The runtime dataType for the schema. It is not the same as\nthe \"$dataType\".","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"service_zones","type":"HasMany&#60;[ServiceZone](/references/fulfillment/models/ServiceZone)&#62;","description":"The associated service zones.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"PrimaryKeyModifier&#60;IdProperty&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"name","type":"[TextProperty](/references/utils/classes/utils.TextProperty)","description":"text / keyword — the only kinds an engine can match as free text.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"fulfillment_set","type":"BelongsTo&#60;[FulfillmentSet](/references/fulfillment/models/FulfillmentSet)&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"geo_zones","type":"HasMany&#60;[GeoZone](/references/fulfillment/models/GeoZone)&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"shipping_options","type":"HasMany&#60;[ShippingOption](/references/fulfillment/models/ShippingOption)&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"metadata","type":"`JSONProperty`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"metadata","type":"JSONProperty&#60;NoInfer&#60;Record&#60;string, unknown&#62;&#62;&#62;","description":"Holds custom data in key-value pairs.","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"geo_zones","type":"HasMany&#60;[GeoZone](/references/fulfillment/models/GeoZone)&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"id","type":"PrimaryKeyModifier&#60;IdProperty&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"type","type":"[TextProperty](/references/utils/classes/utils.TextProperty)","description":"text / keyword — the only kinds an engine can match as free text.","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"$dataType","type":"`string`","description":"A type-only property to infer the JavaScript data-type\nof the schema property","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"#retrievable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#providerOptions","type":"`Record<string, Record&#60;string, unknown&#62;>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#filterable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#sortable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#facetable","type":"`boolean` \\| `object`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#array","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#searchable","type":"`boolean` \\| `object`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"dataType","type":"`object`","description":"The runtime dataType for the schema. It is not the same as\nthe \"$dataType\".","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"country_code","type":"[TextProperty](/references/utils/classes/utils.TextProperty)","description":"text / keyword — the only kinds an engine can match as free text.","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"$dataType","type":"`string`","description":"A type-only property to infer the JavaScript data-type\nof the schema property","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"#retrievable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#providerOptions","type":"`Record<string, Record&#60;string, unknown&#62;>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#filterable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#sortable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#facetable","type":"`boolean` \\| `object`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#array","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#searchable","type":"`boolean` \\| `object`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"dataType","type":"`object`","description":"The runtime dataType for the schema. It is not the same as\nthe \"$dataType\".","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"province_code","type":"[TextProperty](/references/utils/classes/utils.TextProperty)","description":"text / keyword — the only kinds an engine can match as free text.","optional":true,"defaultValue":"","expandable":false,"children":[{"name":"$dataType","type":"`string`","description":"A type-only property to infer the JavaScript data-type\nof the schema property","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"#retrievable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#providerOptions","type":"`Record<string, Record&#60;string, unknown&#62;>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#filterable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#sortable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#facetable","type":"`boolean` \\| `object`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#array","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#searchable","type":"`boolean` \\| `object`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"dataType","type":"`object`","description":"The runtime dataType for the schema. It is not the same as\nthe \"$dataType\".","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"city","type":"[TextProperty](/references/utils/classes/utils.TextProperty)","description":"text / keyword — the only kinds an engine can match as free text.","optional":true,"defaultValue":"","expandable":false,"children":[{"name":"$dataType","type":"`string`","description":"A type-only property to infer the JavaScript data-type\nof the schema property","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"#retrievable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#providerOptions","type":"`Record<string, Record&#60;string, unknown&#62;>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#filterable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#sortable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#facetable","type":"`boolean` \\| `object`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#array","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#searchable","type":"`boolean` \\| `object`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"dataType","type":"`object`","description":"The runtime dataType for the schema. It is not the same as\nthe \"$dataType\".","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"postal_expression","type":"`JSONProperty`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"service_zone","type":"BelongsTo&#60;[ServiceZone](/references/fulfillment/models/ServiceZone)&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"id","type":"PrimaryKeyModifier&#60;IdProperty&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"name","type":"[TextProperty](/references/utils/classes/utils.TextProperty)","description":"text / keyword — the only kinds an engine can match as free text.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"fulfillment_set","type":"BelongsTo&#60;[FulfillmentSet](/references/fulfillment/models/FulfillmentSet)&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"geo_zones","type":"HasMany&#60;[GeoZone](/references/fulfillment/models/GeoZone)&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"shipping_options","type":"HasMany&#60;[ShippingOption](/references/fulfillment/models/ShippingOption)&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"metadata","type":"`JSONProperty`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"metadata","type":"`JSONProperty`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"shipping_options","type":"HasMany&#60;[ShippingOption](/references/fulfillment/models/ShippingOption)&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"id","type":"PrimaryKeyModifier&#60;IdProperty&#62;","description":"The ID of the shipping option.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"name","type":"[TextProperty](/references/utils/classes/utils.TextProperty)","description":"The name of the shipping option","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"$dataType","type":"`string`","description":"A type-only property to infer the JavaScript data-type\nof the schema property","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"#retrievable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#providerOptions","type":"`Record<string, Record&#60;string, unknown&#62;>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#filterable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#sortable","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#facetable","type":"`boolean` \\| `object`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#array","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"#searchable","type":"`boolean` \\| `object`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"dataType","type":"`object`","description":"The runtime dataType for the schema. It is not the same as\nthe \"$dataType\".","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"price_type","type":"EnumProperty&#60;typeof [ShippingOptionPriceType](/references/utils/FulfillmentUtils/enums/utils.FulfillmentUtils.ShippingOptionPriceType)&#62;","description":"The price type of the shipping option","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"data","type":"JSONProperty&#60;NoInfer&#60;Record&#60;string, unknown&#62;&#62;&#62;","description":"The data of the shipping option useful for the associated fulfillment provider. Learn more in [this documentation](https://docs.medusajs.com/resources/commerce-modules/fulfillment/shipping-option#data-property)","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"metadata","type":"JSONProperty&#60;NoInfer&#60;Record&#60;string, unknown&#62;&#62;&#62;","description":"Holds custom data in key-value pairs.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"service_zone","type":"BelongsTo&#60;[ServiceZone](/references/fulfillment/models/ServiceZone)&#62;","description":"The associated service zone.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"PrimaryKeyModifier&#60;IdProperty&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"name","type":"[TextProperty](/references/utils/classes/utils.TextProperty)","description":"text / keyword — the only kinds an engine can match as free text.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"fulfillment_set","type":"BelongsTo&#60;[FulfillmentSet](/references/fulfillment/models/FulfillmentSet)&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"geo_zones","type":"HasMany&#60;[GeoZone](/references/fulfillment/models/GeoZone)&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"shipping_options","type":"HasMany&#60;[ShippingOption](/references/fulfillment/models/ShippingOption)&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"metadata","type":"`JSONProperty`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"shipping_profile","type":"BelongsTo&#60;[ShippingProfile](/references/fulfillment/models/ShippingProfile)&#62;","description":"The associated shipping profile.","optional":true,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"PrimaryKeyModifier&#60;IdProperty&#62;","description":"The ID of the shipping profile.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"name","type":"[TextProperty](/references/utils/classes/utils.TextProperty)","description":"The name of the shipping profile","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"type","type":"[TextProperty](/references/utils/classes/utils.TextProperty)","description":"The type of the shipping profile","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"shipping_options","type":"HasMany&#60;[ShippingOption](/references/fulfillment/models/ShippingOption)&#62;","description":"The associated shipping options.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"metadata","type":"JSONProperty&#60;NoInfer&#60;Record&#60;string, unknown&#62;&#62;&#62;","description":"Holds custom data in key-value pairs.","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"provider","type":"BelongsTo&#60;[FulfillmentProvider](/references/fulfillment/models/FulfillmentProvider)&#62;","description":"The associated provider.","optional":true,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"PrimaryKeyModifier&#60;IdProperty&#62;","description":"The ID of the fulfillment provider.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"is_enabled","type":"[BooleanProperty](/references/utils/classes/utils.BooleanProperty)","description":"Whether the fulfillment provider is enabled.","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"type","type":"BelongsTo&#60;[ShippingOptionType](/references/fulfillment/models/ShippingOptionType)&#62;","description":"The associated type.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"PrimaryKeyModifier&#60;IdProperty&#62;","description":"The ID of the shipping option type.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"label","type":"[TextProperty](/references/utils/classes/utils.TextProperty)","description":"The label of the shipping option type","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"description","type":"[TextProperty](/references/utils/classes/utils.TextProperty)","description":"The description of the shipping option type","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"code","type":"[TextProperty](/references/utils/classes/utils.TextProperty)","description":"The code of the shipping option type","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"shipping_options","type":"HasMany&#60;[ShippingOption](/references/fulfillment/models/ShippingOption)&#62;","description":"The associated shipping options.","optional":false,"defaultValue":"","expandable":true,"children":[]}]},{"name":"rules","type":"HasMany&#60;[ShippingOptionRule](/references/fulfillment/models/ShippingOptionRule)&#62;","description":"The associated rules.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"PrimaryKeyModifier&#60;IdProperty&#62;","description":"The ID of the shipping option rule.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"attribute","type":"[TextProperty](/references/utils/classes/utils.TextProperty)","description":"The name of a property or table that the rule applies to.","optional":false,"defaultValue":"","example":"customer_group","expandable":false,"children":[]},{"name":"operator","type":"EnumProperty&#60;typeof RuleOperator&#62;","description":"The operator used in the condition.","optional":false,"defaultValue":"","example":"eq","expandable":false,"children":[]},{"name":"value","type":"JSONProperty&#60;NoInfer&#60;Record&#60;string, unknown&#62;&#62;&#62;","description":"The value of the shipping option rule","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"shipping_option","type":"BelongsTo&#60;[ShippingOption](/references/fulfillment/models/ShippingOption)&#62;","description":"The associated shipping option.","optional":false,"defaultValue":"","expandable":true,"children":[]}]},{"name":"fulfillments","type":"HasMany&#60;[Fulfillment](/references/fulfillment/models/Fulfillment)&#62;","description":"The associated fulfillments.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"PrimaryKeyModifier&#60;IdProperty&#62;","description":"The ID of the fulfillment.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"location_id","type":"[TextProperty](/references/utils/classes/utils.TextProperty)","description":"The ID of the location to fulfill items from.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"packed_at","type":"`DateTimeProperty`","description":"The date the fulfillment items were packed.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"shipped_at","type":"`DateTimeProperty`","description":"The date the fulfillment items were shipped.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"marked_shipped_by","type":"[TextProperty](/references/utils/classes/utils.TextProperty)","description":"The ID of the user that marked this fulfillment as shipped.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"created_by","type":"[TextProperty](/references/utils/classes/utils.TextProperty)","description":"The ID of the user that created this fulfillment.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"delivered_at","type":"`DateTimeProperty`","description":"The date the fulfillment items were delivered.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"canceled_at","type":"`DateTimeProperty`","description":"The date the fulfillment was canceled.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"data","type":"JSONProperty&#60;NoInfer&#60;Record&#60;string, unknown&#62;&#62;&#62;","description":"The data of the fulfillment useful for the associated fulfillment provider. Learn more in [this documentation](https://docs.medusajs.com/resources/commerce-modules/fulfillment/item-fulfillment#data-property)","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"requires_shipping","type":"[BooleanProperty](/references/utils/classes/utils.BooleanProperty)","description":"Whether the fulfillment item requires shipping.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"items","type":"HasMany&#60;[FulfillmentItem](/references/fulfillment/models/FulfillmentItem)&#62;","description":"The associated items.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"labels","type":"HasMany&#60;[FulfillmentLabel](/references/fulfillment/models/FulfillmentLabel)&#62;","description":"The associated labels.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"provider","type":"HasOneWithForeignKey&#60;[FulfillmentProvider](/references/fulfillment/models/FulfillmentProvider)&#62;","description":"The associated provider.","optional":true,"defaultValue":"","expandable":true,"children":[]},{"name":"shipping_option","type":"BelongsTo&#60;[ShippingOption](/references/fulfillment/models/ShippingOption)&#62;","description":"The associated shipping option.","optional":true,"defaultValue":"","expandable":true,"children":[]},{"name":"delivery_address","type":"HasOneWithForeignKey&#60;[FulfillmentAddress](/references/fulfillment/models/FulfillmentAddress)&#62;","description":"The associated delivery address.","optional":true,"defaultValue":"","expandable":true,"children":[]},{"name":"metadata","type":"JSONProperty&#60;NoInfer&#60;Record&#60;string, unknown&#62;&#62;&#62;","description":"Holds custom data in key-value pairs.","optional":true,"defaultValue":"","expandable":false,"children":[]}]}]},{"name":"metadata","type":"`JSONProperty`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]}]}