--- displayed_sidebar: entitiesSidebar --- import ParameterTypes from "@site/src/components/ParameterTypes" # ShippingProfile A Shipping Profile has a set of defined Shipping Options that can be used to fulfill a given set of Products. For example, gift cards are shipped differently than physical products, so a shipping profile with the type `gift\_card` groups together the shipping options that can only be used for gift cards. ## Properties `", "description": "An optional key-value map with additional details", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "name", "type": "`string`", "description": "The name given to the Shipping profile - this may be displayed to the Customer.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "products", "type": "[Product](Product.mdx)[]", "description": "The details of the products that the Shipping Profile defines Shipping Options for. Available if the relation `products` is expanded.", "optional": false, "defaultValue": "", "expandable": true, "children": [ { "name": "categories", "type": "[ProductCategory](ProductCategory.mdx)[]", "description": "The details of the product categories that this product belongs to.", "optional": false, "defaultValue": "", "expandable": true, "featureFlag": "product_categories", "children": [] }, { "name": "collection", "type": "[ProductCollection](ProductCollection.mdx)", "description": "The details of the product collection that the product belongs to.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "collection_id", "type": "``null`` \\| `string`", "description": "The ID of the product collection that the product belongs to.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "created_at", "type": "`Date`", "description": "The date with timezone at which the resource was created.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "deleted_at", "type": "``null`` \\| `Date`", "description": "The date with timezone at which the resource was deleted.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "description", "type": "``null`` \\| `string`", "description": "A short description of the Product.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "discountable", "type": "`boolean`", "description": "Whether the Product can be discounted. Discounts will not apply to Line Items of this Product when this flag is set to `false`.", "optional": false, "defaultValue": "true", "expandable": false, "children": [] }, { "name": "external_id", "type": "``null`` \\| `string`", "description": "The external ID of the product", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "handle", "type": "``null`` \\| `string`", "description": "A unique identifier for the Product (e.g. for slug structure).", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "height", "type": "``null`` \\| `number`", "description": "The height of the Product Variant. May be used in shipping rate calculations.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "hs_code", "type": "``null`` \\| `string`", "description": "The Harmonized System code of the Product Variant. May be used by Fulfillment Providers to pass customs information to shipping carriers.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "id", "type": "`string`", "description": "The product's ID", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "images", "type": "[Image](Image.mdx)[]", "description": "The details of the product's images.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "is_giftcard", "type": "`boolean`", "description": "Whether the Product represents a Gift Card. Products that represent Gift Cards will automatically generate a redeemable Gift Card code once they are purchased.", "optional": false, "defaultValue": "false", "expandable": false, "children": [] }, { "name": "length", "type": "``null`` \\| `number`", "description": "The length of the Product Variant. May be used in shipping rate calculations.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "material", "type": "``null`` \\| `string`", "description": "The material and composition that the Product Variant is made of, May be used by Fulfillment Providers to pass customs information to shipping carriers.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "metadata", "type": "``null`` \\| `Record`", "description": "An optional key-value map with additional details", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "mid_code", "type": "``null`` \\| `string`", "description": "The Manufacturers Identification code that identifies the manufacturer of the Product Variant. May be used by Fulfillment Providers to pass customs information to shipping carriers.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "options", "type": "[ProductOption](ProductOption.mdx)[]", "description": "The details of the Product Options that are defined for the Product. The product's variants will have a unique combination of values of the product's options.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "origin_country", "type": "``null`` \\| `string`", "description": "The country in which the Product Variant was produced. May be used by Fulfillment Providers to pass customs information to shipping carriers.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "profile", "type": "[ShippingProfile](ShippingProfile.mdx)", "description": "The details of the shipping profile that the product belongs to. The shipping profile has a set of defined shipping options that can be used to fulfill the product.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "profile_id", "type": "`string`", "description": "The ID of the shipping profile that the product belongs to. The shipping profile has a set of defined shipping options that can be used to fulfill the product.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "profiles", "type": "[ShippingProfile](ShippingProfile.mdx)[]", "description": "Available if the relation `profiles` is expanded.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "sales_channels", "type": "[SalesChannel](SalesChannel.mdx)[]", "description": "The details of the sales channels this product is available in.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "status", "type": "[ProductStatus](../enums/ProductStatus.mdx)", "description": "The status of the product", "optional": false, "defaultValue": "draft", "expandable": false, "children": [] }, { "name": "subtitle", "type": "``null`` \\| `string`", "description": "An optional subtitle that can be used to further specify the Product.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "tags", "type": "[ProductTag](ProductTag.mdx)[]", "description": "The details of the product tags used in this product.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "thumbnail", "type": "``null`` \\| `string`", "description": "A URL to an image file that can be used to identify the Product.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "title", "type": "`string`", "description": "A title that can be displayed for easy identification of the Product.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "type", "type": "[ProductType](ProductType.mdx)", "description": "The details of the product type that the product belongs to.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "type_id", "type": "``null`` \\| `string`", "description": "The ID of the product type that the product belongs to.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "updated_at", "type": "`Date`", "description": "The date with timezone at which the resource was updated.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "variants", "type": "[ProductVariant](ProductVariant.mdx)[]", "description": "The details of the Product Variants that belong to the Product. Each will have a unique combination of values of the product's options.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "weight", "type": "``null`` \\| `number`", "description": "The weight of the Product Variant. May be used in shipping rate calculations.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "width", "type": "``null`` \\| `number`", "description": "The width of the Product Variant. May be used in shipping rate calculations.", "optional": false, "defaultValue": "", "expandable": false, "children": [] } ] }, { "name": "shipping_options", "type": "[ShippingOption](ShippingOption.mdx)[]", "description": "The details of the shipping options that can be used to create shipping methods for the Products in the Shipping Profile.", "optional": false, "defaultValue": "", "expandable": true, "children": [ { "name": "admin_only", "type": "`boolean`", "description": "Flag to indicate if the Shipping Option usage is restricted to admin users.", "optional": false, "defaultValue": "false", "expandable": false, "children": [] }, { "name": "amount", "type": "``null`` \\| `number`", "description": "The amount to charge for shipping when the Shipping Option price type is `flat\\_rate`.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "created_at", "type": "`Date`", "description": "The date with timezone at which the resource was created.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "data", "type": "`Record`", "description": "The data needed for the Fulfillment Provider to identify the Shipping Option.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "deleted_at", "type": "``null`` \\| `Date`", "description": "The date with timezone at which the resource was deleted.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "id", "type": "`string`", "description": "The shipping option's ID", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "includes_tax", "type": "`boolean`", "description": "Whether the shipping option price include tax", "optional": false, "defaultValue": "false", "expandable": false, "featureFlag": "tax_inclusive_pricing", "children": [] }, { "name": "is_return", "type": "`boolean`", "description": "Flag to indicate if the Shipping Option can be used for Return shipments.", "optional": false, "defaultValue": "false", "expandable": false, "children": [] }, { "name": "metadata", "type": "`Record`", "description": "An optional key-value map with additional details", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "name", "type": "`string`", "description": "The name given to the Shipping Option - this may be displayed to the Customer.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "price_type", "type": "[ShippingOptionPriceType](../enums/ShippingOptionPriceType.mdx)", "description": "The type of pricing calculation that is used when creatin Shipping Methods from the Shipping Option. Can be `flat\\_rate` for fixed prices or `calculated` if the Fulfillment Provider can provide price calulations.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "profile", "type": "[ShippingProfile](ShippingProfile.mdx)", "description": "The details of the shipping profile that the shipping option belongs to.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "profile_id", "type": "`string`", "description": "The ID of the Shipping Profile that the shipping option belongs to.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "provider", "type": "[FulfillmentProvider](FulfillmentProvider.mdx)", "description": "The details of the fulfillment provider that will be used to later to process the shipping method created from this shipping option and its fulfillments.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "provider_id", "type": "`string`", "description": "The ID of the fulfillment provider that will be used to later to process the shipping method created from this shipping option and its fulfillments.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "region", "type": "[Region](Region.mdx)", "description": "The details of the region this shipping option can be used in.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "region_id", "type": "`string`", "description": "The ID of the region this shipping option can be used in.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "requirements", "type": "[ShippingOptionRequirement](ShippingOptionRequirement.mdx)[]", "description": "The details of the requirements that must be satisfied for the Shipping Option to be available for usage in a Cart.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "updated_at", "type": "`Date`", "description": "The date with timezone at which the resource was updated.", "optional": false, "defaultValue": "", "expandable": false, "children": [] } ] }, { "name": "type", "type": "[ShippingProfileType](../enums/ShippingProfileType.mdx)", "description": "The type of the Shipping Profile, may be `default`, `gift\\_card` or `custom`.", "optional": false, "defaultValue": "", "expandable": false, "children": [ { "name": "CUSTOM", "type": "``\"custom\"``", "description": "The profile used to ship custom items.", "optional": true, "defaultValue": "", "expandable": false, "children": [] }, { "name": "DEFAULT", "type": "``\"default\"``", "description": "The default profile used to ship item.", "optional": true, "defaultValue": "", "expandable": false, "children": [] }, { "name": "GIFT_CARD", "type": "``\"gift_card\"``", "description": "The profile used to ship gift cards.", "optional": true, "defaultValue": "", "expandable": false, "children": [] } ] }, { "name": "updated_at", "type": "`Date`", "description": "The date with timezone at which the resource was updated.", "optional": false, "defaultValue": "", "expandable": false, "children": [] } ]} />