--- displayed_sidebar: entitiesSidebar --- import ParameterTypes from "@site/src/components/ParameterTypes" # MoneyAmount A Money Amount represent a price amount, for example, a product variant's price or a price in a price list. Each Money Amount either has a Currency or Region associated with it to indicate the pricing in a given Currency or, for fully region-based pricing, the given price in a specific Region. If region-based pricing is used, the amount will be in the currency defined for the Region. ## Properties `", "description": "An optional key-value map with additional details", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "name", "type": "`string`", "description": "The name of the region as displayed to the customer. If the Region only has one country it is recommended to write the country name.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "payment_providers", "type": "[PaymentProvider](PaymentProvider.mdx)[]", "description": "The details of the payment providers that can be used to process payments in the region.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "tax_code", "type": "`string`", "description": "The tax code used on purchases in the Region. This may be used by other systems for accounting purposes.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "tax_provider", "type": "[TaxProvider](TaxProvider.mdx)", "description": "The details of the tax provider used in the region.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "tax_provider_id", "type": "``null`` \\| `string`", "description": "The ID of the tax provider used in this region", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "tax_rate", "type": "`number`", "description": "The tax rate that should be charged on purchases in the Region.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "tax_rates", "type": "``null`` \\| [TaxRate](TaxRate.mdx)[]", "description": "The details of the tax rates used in the region, aside from the default rate.", "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": "region_id", "type": "`string`", "description": "The region's ID", "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": "variant", "type": "[ProductVariant](ProductVariant.mdx)", "description": "The details of the product variant that the money amount may belong to.", "optional": false, "defaultValue": "", "expandable": true, "children": [ { "name": "allow_backorder", "type": "`boolean`", "description": "Whether the Product Variant should be purchasable when `inventory\\_quantity` is 0.", "optional": false, "defaultValue": "false", "expandable": false, "children": [] }, { "name": "barcode", "type": "``null`` \\| `string`", "description": "A generic field for a GTIN number that can be used to identify the Product Variant.", "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": "ean", "type": "``null`` \\| `string`", "description": "An EAN barcode number that can be used to identify the Product Variant.", "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 variant's ID", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "inventory_items", "type": "[ProductVariantInventoryItem](ProductVariantInventoryItem.mdx)[]", "description": "The details inventory items of the product variant.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "inventory_quantity", "type": "`number`", "description": "The current quantity of the item that is stocked.", "optional": false, "defaultValue": "", "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": "manage_inventory", "type": "`boolean`", "description": "Whether Medusa should manage inventory for the Product Variant.", "optional": false, "defaultValue": "true", "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": "[ProductOptionValue](ProductOptionValue.mdx)[]", "description": "The details of the product options that this product variant defines values for.", "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": "prices", "type": "[MoneyAmount](MoneyAmount.mdx)[]", "description": "The details of the prices of the Product Variant, each represented as a Money Amount. Each Money Amount represents a price in a given currency or a specific Region.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "product", "type": "[Product](Product.mdx)", "description": "The details of the product that the product variant belongs to.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "product_id", "type": "`string`", "description": "The ID of the product that the product variant belongs to.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "purchasable", "type": "`boolean`", "description": "Only used with the inventory modules. A boolean value indicating whether the Product Variant is purchasable. A variant is purchasable if: - inventory is not managed - it has no inventory items - it is in stock - it is backorderable.", "optional": true, "defaultValue": "", "expandable": false, "children": [] }, { "name": "sku", "type": "``null`` \\| `string`", "description": "The unique stock keeping unit used to identify the Product Variant. This will usually be a unique identifer for the item that is to be shipped, and can be referenced across multiple systems.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "title", "type": "`string`", "description": "A title that can be displayed for easy identification of the Product Variant.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "upc", "type": "``null`` \\| `string`", "description": "A UPC barcode number that can be used to identify the Product Variant.", "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": "variant_rank", "type": "``null`` \\| `number`", "description": "The ranking of this variant", "optional": false, "defaultValue": "0", "expandable": false, "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": "variant_id", "type": "`string`", "description": "The ID of the Product Variant contained in the Line Item.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "variants", "type": "[ProductVariant](ProductVariant.mdx)[]", "description": "", "optional": false, "defaultValue": "", "expandable": false, "children": [ { "name": "allow_backorder", "type": "`boolean`", "description": "Whether the Product Variant should be purchasable when `inventory\\_quantity` is 0.", "optional": false, "defaultValue": "false", "expandable": false, "children": [] }, { "name": "barcode", "type": "``null`` \\| `string`", "description": "A generic field for a GTIN number that can be used to identify the Product Variant.", "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": "ean", "type": "``null`` \\| `string`", "description": "An EAN barcode number that can be used to identify the Product Variant.", "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 variant's ID", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "inventory_items", "type": "[ProductVariantInventoryItem](ProductVariantInventoryItem.mdx)[]", "description": "The details inventory items of the product variant.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "inventory_quantity", "type": "`number`", "description": "The current quantity of the item that is stocked.", "optional": false, "defaultValue": "", "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": "manage_inventory", "type": "`boolean`", "description": "Whether Medusa should manage inventory for the Product Variant.", "optional": false, "defaultValue": "true", "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": "[ProductOptionValue](ProductOptionValue.mdx)[]", "description": "The details of the product options that this product variant defines values for.", "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": "prices", "type": "[MoneyAmount](MoneyAmount.mdx)[]", "description": "The details of the prices of the Product Variant, each represented as a Money Amount. Each Money Amount represents a price in a given currency or a specific Region.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "product", "type": "[Product](Product.mdx)", "description": "The details of the product that the product variant belongs to.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "product_id", "type": "`string`", "description": "The ID of the product that the product variant belongs to.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "purchasable", "type": "`boolean`", "description": "Only used with the inventory modules. A boolean value indicating whether the Product Variant is purchasable. A variant is purchasable if: - inventory is not managed - it has no inventory items - it is in stock - it is backorderable.", "optional": true, "defaultValue": "", "expandable": false, "children": [] }, { "name": "sku", "type": "``null`` \\| `string`", "description": "The unique stock keeping unit used to identify the Product Variant. This will usually be a unique identifer for the item that is to be shipped, and can be referenced across multiple systems.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "title", "type": "`string`", "description": "A title that can be displayed for easy identification of the Product Variant.", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "upc", "type": "``null`` \\| `string`", "description": "A UPC barcode number that can be used to identify the Product Variant.", "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": "variant_rank", "type": "``null`` \\| `number`", "description": "The ranking of this variant", "optional": false, "defaultValue": "0", "expandable": false, "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": [] } ] } ]} />