{"components":{"examples":{"database_error":{"summary":"Database Error","value":{"code":"api_error","message":"An error occured while hashing password","type":"database_error"}},"default_error":{"summary":"Default Error","value":{"code":"unknown_error","message":"An unknown error occurred.","type":"unknown_error"}},"invalid_argument_error":{"summary":"Invalid Argument Error","value":{"message":"cart.total must be defined","type":"unexpected_state"}},"invalid_data_error":{"summary":"Invalid Data Error","value":{"message":"first_name must be a string","type":"invalid_data"}},"not_allowed_error":{"summary":"Not Allowed Error","value":{"message":"Discount must be set to dynamic","type":"not_allowed"}},"unexpected_state_error":{"summary":"Unexpected State Error","value":{"message":"cart.total must be defined","type":"unexpected_state"}}},"responses":{"400_error":{"content":{"application/json":{"examples":{"invalid_data":{"$ref":"#/components/examples/invalid_data_error"},"not_allowed":{"$ref":"#/components/examples/not_allowed_error"}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Client Error"},"500_error":{"content":{"application/json":{"examples":{"database":{"$ref":"#/components/examples/database_error"},"default_error":{"$ref":"#/components/examples/default_error"},"invalid_argument":{"$ref":"#/components/examples/invalid_argument_error"},"unexpected_state":{"$ref":"#/components/examples/unexpected_state_error"}},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Server Error"},"SedraBadRequest":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SedraError"}}},"description":"Invalid input"},"SedraConflict":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SedraError"}}},"description":"Invalid state or replayed request"},"SedraForbidden":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SedraError"}}},"description":"Authenticated but not allowed"},"SedraNotFound":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SedraError"}}},"description":"Not found (also returned for items that belong to another business)"},"SedraRateLimited":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SedraError"}}},"description":"Too many requests"},"SedraUnauthorized":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SedraError"}}},"description":"Missing, invalid, expired or revoked credentials"},"invalid_request_error":{"content":{"application/json":{"example":{"code":"invalid_request_error","message":"Discount with code TEST already exists.","type":"duplicate_error"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Invalid Request Error"},"invalid_state_error":{"content":{"application/json":{"example":{"code":"unknown_error","message":"The request conflicted with another request. You may retry the request with the provided Idempotency-Key.","type":"QueryRunnerAlreadyReleasedError"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Invalid State Error"},"not_found_error":{"content":{"application/json":{"example":{"message":"Entity with id 1 was not found","type":"not_found"},"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not Found Error"},"unauthorized":{"content":{"text/plain":{"schema":{"default":"Unauthorized","example":"Unauthorized","type":"string"}}},"description":"User is not authorized. Must log in first"}},"schemas":{"AdminPaymentProvider":{"description":"The payment provider's details.","properties":{"id":{"description":"The payment provider's ID.","title":"id","type":"string"},"is_enabled":{"description":"Whether the payment provider is enabled.","title":"is_enabled","type":"boolean"}},"required":["is_enabled","id"],"type":"object","x-schemaName":"AdminPaymentProvider"},"AdminProductCategory":{"description":"The product category's details.","properties":{"category_children":{"description":"The category's children.","items":{"type":"object"},"type":"array"},"created_at":{"description":"The date the category was created.","format":"date-time","title":"created_at","type":"string"},"deleted_at":{"description":"The date the category was deleted.","format":"date-time","title":"deleted_at","type":"string"},"description":{"description":"The category's description.","title":"description","type":"string"},"handle":{"description":"The category's unique handle.","title":"handle","type":"string"},"id":{"description":"The category's ID.","title":"id","type":"string"},"is_active":{"description":"Whether the category is active. If disabled, the category isn't shown in the storefront.","title":"is_active","type":"boolean"},"is_internal":{"description":"Whether the category is internal. If enabled, the category is only seen by admin users.","title":"is_internal","type":"boolean"},"metadata":{"description":"The category's metadata, can hold custom key-value pairs.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/admin#manage-metadata"},"type":"object"},"name":{"description":"The category's name.","title":"name","type":"string"},"parent_category":{"type":"object"},"parent_category_id":{"description":"The ID of the category's parent.","title":"parent_category_id","type":"string"},"products":{"description":"The category's products.","items":{"type":"object"},"type":"array"},"rank":{"description":"The category's rank among sibling categories.","title":"rank","type":"number"},"updated_at":{"description":"The date the category was updated.","format":"date-time","title":"updated_at","type":"string"}},"required":["category_children","parent_category","name","description","id","created_at","updated_at","handle","deleted_at","is_active","is_internal","rank","parent_category_id"],"type":"object","x-schemaName":"AdminProductCategory"},"AuthCallbackResponse":{"description":"The authentication's details.","properties":{"location":{"description":"The location to redirect the user to for further authentication with the third-party provider.","title":"location","type":"string"}},"required":["location"],"type":"object","x-schemaName":"AuthCallbackResponse"},"AuthResponse":{"description":"The authentication's details.","properties":{"token":{"description":"The JWT token used for registration or authentication.","title":"token","type":"string"}},"required":["token"],"type":"object","x-schemaName":"AuthResponse"},"BaseCalculatedPriceSet":{"description":"The calculated price's details.","properties":{"calculated_amount":{"description":"The amount of the calculated price, or `null` if there isn't a calculated price. This is the amount shown to the customer.","title":"calculated_amount","type":"number"},"calculated_amount_with_tax":{"description":"The calculated price's amount with taxes applied.","title":"calculated_amount_with_tax","type":"number"},"calculated_amount_without_tax":{"description":"The calculated price's amount without taxes applied.","title":"calculated_amount_without_tax","type":"number"},"calculated_price":{"description":"The calculated price's details.","type":"object"},"currency_code":{"description":"The calculated price's currency code.","example":"usd","title":"currency_code","type":"string"},"id":{"description":"The calculated price's ID.","title":"id","type":"string"},"is_calculated_price_price_list":{"description":"Whether the calculated price belongs to a price list.","title":"is_calculated_price_price_list","type":"boolean"},"is_calculated_price_tax_inclusive":{"description":"Whether the calculated price is tax inclusive.","title":"is_calculated_price_tax_inclusive","type":"boolean"},"is_original_price_price_list":{"description":"Whether the original price belongs to a price list.","title":"is_original_price_price_list","type":"boolean"},"is_original_price_tax_inclusive":{"description":"Whether the original price is tax inclusive.","title":"is_original_price_tax_inclusive","type":"boolean"},"original_amount":{"description":"The amount of the original price, or `null` if there isn't an original price. This amount is useful to compare with the `calculated_amount`, such as to check for discounted value.","title":"original_amount","type":"number"},"original_amount_with_tax":{"description":"The amount of the original price with taxes applied.","title":"original_amount_with_tax","type":"number"},"original_amount_without_tax":{"description":"The amount of the original price without taxes.","title":"original_amount_without_tax","type":"number"},"original_price":{"description":"The original price's details.","type":"object"}},"required":["id","calculated_amount","original_amount","original_amount_with_tax","original_amount_without_tax","currency_code"],"type":"object","x-schemaName":"BaseCalculatedPriceSet"},"BaseCapture":{"description":"The details of a captured payment.","properties":{"amount":{"description":"The captured amount.","title":"amount","type":"number"},"created_at":{"description":"The date the capture was created.","format":"date-time","title":"created_at","type":"string"},"created_by":{"description":"The ID of the user that captured the payment.","title":"created_by","type":"string"},"id":{"description":"The payment capture's ID.","title":"id","type":"string"},"payment":{"type":"object"}},"required":["id","amount","created_at","payment"],"type":"object","x-schemaName":"BaseCapture"},"BaseCart":{"description":"The item's cart.","properties":{"billing_address":{"$ref":"#/components/schemas/BaseCartAddress"},"completed_at":{"description":"The date the cart was completed.","format":"date-time","title":"completed_at","type":"string"},"created_at":{"description":"The cart's created at.","format":"date-time","title":"created_at","type":"string"},"currency_code":{"description":"The cart's currency code.","title":"currency_code","type":"string"},"customer_id":{"description":"The cart's customer id.","title":"customer_id","type":"string"},"discount_tax_total":{"description":"The total amount of discounts applied to the cart's tax. Represents the tax portion of discounts.","title":"discount_tax_total","type":"number"},"discount_total":{"description":"The total amount of discounts applied to the cart, including the tax portion of discounts.","title":"discount_total","type":"number"},"email":{"description":"The cart's email.","format":"email","title":"email","type":"string"},"gift_card_tax_total":{"description":"The cart's gift card tax total.","title":"gift_card_tax_total","type":"number"},"gift_card_total":{"description":"The cart's gift card total.","title":"gift_card_total","type":"number"},"id":{"description":"The cart's ID.","title":"id","type":"string"},"item_subtotal":{"description":"The sum of all line items' subtotals before discounts, excluding taxes.","title":"item_subtotal","type":"number"},"item_tax_total":{"description":"The sum of all line items' tax totals after discounts.","title":"item_tax_total","type":"number"},"item_total":{"description":"The sum of all line items' totals after discounts, including taxes.","title":"item_total","type":"number"},"items":{"description":"The cart's items.","items":{"type":"object"},"type":"array"},"metadata":{"description":"The cart's metadata.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/store#manage-metadata"},"type":"object"},"original_item_subtotal":{"description":"The sum of all line items' original subtotals before discounts, excluding taxes.","title":"original_item_subtotal","type":"number"},"original_item_tax_total":{"description":"The sum of all line items' original tax totals before discounts.","title":"original_item_tax_total","type":"number"},"original_item_total":{"description":"The sum of all line items' original totals before discounts, including taxes.","title":"original_item_total","type":"number"},"original_shipping_subtotal":{"description":"The sum of all shipping methods' original subtotals before discounts, excluding taxes.","title":"original_shipping_subtotal","type":"number"},"original_shipping_tax_total":{"description":"The sum of all shipping methods' original tax totals before discounts.","title":"original_shipping_tax_total","type":"number"},"original_shipping_total":{"description":"The sum of all shipping methods' original totals before discounts, including taxes.","title":"original_shipping_total","type":"number"},"original_subtotal":{"description":"The cart's subtotal before discounts, excluding taxes. Calculated as the sum of `original_item_subtotal` and `original_shipping_subtotal`.","title":"original_subtotal","type":"number"},"original_tax_total":{"description":"The cart's tax total before discounts. Calculated as the sum of `original_item_tax_total` and `original_shipping_tax_total`.","title":"original_tax_total","type":"number"},"original_total":{"description":"The cart's total before discounts, including taxes. Calculated as the sum of `original_item_total` and `original_shipping_total`.","title":"original_total","type":"number"},"payment_collection":{"$ref":"#/components/schemas/BasePaymentCollection"},"region":{"$ref":"#/components/schemas/BaseRegion"},"region_id":{"description":"The cart's region id.","title":"region_id","type":"string"},"sales_channel_id":{"description":"The cart's sales channel id.","title":"sales_channel_id","type":"string"},"shipping_address":{"$ref":"#/components/schemas/BaseCartAddress"},"shipping_methods":{"description":"The cart's shipping methods.","items":{"$ref":"#/components/schemas/BaseCartShippingMethod"},"type":"array"},"shipping_subtotal":{"description":"The sum of all shipping methods' subtotals before discounts, excluding taxes.","title":"shipping_subtotal","type":"number"},"shipping_tax_total":{"description":"The sum of all shipping methods' tax totals after discounts.","title":"shipping_tax_total","type":"number"},"shipping_total":{"description":"The sum of all shipping methods' totals after discounts, including taxes.","title":"shipping_total","type":"number"},"subtotal":{"description":"The cart's subtotal before discounts, excluding taxes. Calculated as the sum of `item_subtotal` and `shipping_subtotal`.","title":"subtotal","type":"number"},"tax_total":{"description":"The cart's tax total after discounts. Calculated as the sum of `item_tax_total` and `shipping_tax_total`.","title":"tax_total","type":"number"},"total":{"description":"The cart's final total after discounts and credit lines, including taxes.","title":"total","type":"number"},"updated_at":{"description":"The cart's updated at.","format":"date-time","title":"updated_at","type":"string"}},"required":["id","currency_code","original_item_total","original_item_subtotal","original_item_tax_total","item_total","item_subtotal","item_tax_total","original_total","original_subtotal","original_tax_total","total","subtotal","tax_total","discount_total","discount_tax_total","gift_card_total","gift_card_tax_total","shipping_total","shipping_subtotal","shipping_tax_total","original_shipping_total","original_shipping_subtotal","original_shipping_tax_total"],"type":"object","x-schemaName":"BaseCart"},"BaseCartAddress":{"description":"The cart's shipping address.","type":"object","x-schemaName":"BaseCartAddress"},"BaseCartLineItem":{"description":"The tax line's item.","properties":{"adjustments":{"description":"The item's adjustments.","items":{"$ref":"#/components/schemas/BaseLineItemAdjustment"},"type":"array"},"cart":{"$ref":"#/components/schemas/BaseCart"},"cart_id":{"description":"The item's cart id.","title":"cart_id","type":"string"},"compare_at_unit_price":{"description":"The item's compare at unit price.","title":"compare_at_unit_price","type":"number"},"created_at":{"description":"The item's created at.","format":"date-time","title":"created_at","type":"string"},"deleted_at":{"description":"The item's deleted at.","format":"date-time","title":"deleted_at","type":"string"},"discount_tax_total":{"description":"The total amount of discounts applied to the line item's tax. Represents the tax portion of discounts.","title":"discount_tax_total","type":"number"},"discount_total":{"description":"The total amount of discounts applied to the line item, including the tax portion of discounts.","title":"discount_total","type":"number"},"id":{"description":"The item's ID.","title":"id","type":"string"},"is_discountable":{"description":"The item's is discountable.","title":"is_discountable","type":"boolean"},"is_tax_inclusive":{"description":"The item's is tax inclusive.","title":"is_tax_inclusive","type":"boolean"},"item_subtotal":{"description":"The line item's subtotal before discounts, excluding taxes.","title":"item_subtotal","type":"number"},"item_tax_total":{"description":"The line item's tax total after discounts.","title":"item_tax_total","type":"number"},"item_total":{"description":"The line item's total after discounts, including taxes.","title":"item_total","type":"number"},"metadata":{"description":"The item's metadata.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/store#manage-metadata"},"type":"object"},"original_subtotal":{"description":"The line item's original subtotal before discounts, excluding taxes.","title":"original_subtotal","type":"number"},"original_tax_total":{"description":"The line item's original tax total before discounts.","title":"original_tax_total","type":"number"},"original_total":{"description":"The line item's original total before discounts, including taxes.","title":"original_total","type":"number"},"product":{"$ref":"#/components/schemas/BaseProduct"},"product_collection":{"description":"The item's product collection.","title":"product_collection","type":"string"},"product_description":{"description":"The item's product description.","title":"product_description","type":"string"},"product_handle":{"description":"The item's product handle.","title":"product_handle","type":"string"},"product_id":{"description":"The item's product id.","title":"product_id","type":"string"},"product_subtitle":{"description":"The item's product subtitle.","title":"product_subtitle","type":"string"},"product_title":{"description":"The item's product title.","title":"product_title","type":"string"},"product_type":{"description":"The item's product type.","title":"product_type","type":"string"},"quantity":{"description":"The item's quantity.","title":"quantity","type":"number"},"requires_shipping":{"description":"The item's requires shipping.","title":"requires_shipping","type":"boolean"},"subtitle":{"description":"The item's subtitle.","title":"subtitle","type":"string"},"subtotal":{"description":"The line item's subtotal before discounts, excluding taxes.","title":"subtotal","type":"number"},"tax_lines":{"description":"The item's tax lines.","items":{"type":"object"},"type":"array"},"tax_total":{"description":"The line item's tax total after discounts.","title":"tax_total","type":"number"},"thumbnail":{"description":"The item's thumbnail.","title":"thumbnail","type":"string"},"title":{"description":"The item's title.","title":"title","type":"string"},"total":{"description":"The line item's total after discounts, including taxes.","title":"total","type":"number"},"unit_price":{"description":"The item's unit price.","title":"unit_price","type":"number"},"updated_at":{"description":"The item's updated at.","format":"date-time","title":"updated_at","type":"string"},"variant":{"$ref":"#/components/schemas/BaseProductVariant"},"variant_barcode":{"description":"The item's variant barcode.","title":"variant_barcode","type":"string"},"variant_id":{"description":"The item's variant id.","title":"variant_id","type":"string"},"variant_option_values":{"description":"The item's variant option values.","type":"object"},"variant_sku":{"description":"The item's variant sku.","title":"variant_sku","type":"string"},"variant_title":{"description":"The item's variant title.","title":"variant_title","type":"string"}},"required":["id","title","quantity","requires_shipping","is_discountable","is_tax_inclusive","unit_price","cart","cart_id"],"type":"object","x-schemaName":"BaseCartLineItem"},"BaseCartShippingMethod":{"description":"A cart's shipping method.","properties":{"adjustments":{"description":"The shipping method's adjustments, such as applied promotions.","items":{"$ref":"#/components/schemas/BaseShippingMethodAdjustment"},"type":"array"},"amount":{"description":"The shipping method's amount.","title":"amount","type":"number"},"cart_id":{"description":"The ID of the cart this shipping method belongs to.","title":"cart_id","type":"string"},"created_at":{"description":"The date the shipping method was created.","format":"date-time","title":"created_at","type":"string"},"data":{"description":"The shipping method's data, useful for fulfillment handling by third-party services.","externalDocs":{"url":"https://docs.medusajs.com/resources/commerce-modules/cart/concepts#data-property"},"type":"object"},"description":{"description":"The shipping method's description.","title":"description","type":"string"},"discount_tax_total":{"description":"The total amount of discounts applied to the shipping method's tax. Represents the tax portion of discounts.","title":"discount_tax_total","type":"number"},"discount_total":{"description":"The total amount of discounts applied to the shipping method, including the tax portion of discounts.","title":"discount_total","type":"number"},"id":{"description":"The shipping method's ID.","title":"id","type":"string"},"is_tax_inclusive":{"description":"Whether the shipping method's amount is tax inclusive.","title":"is_tax_inclusive","type":"boolean"},"metadata":{"description":"The shipping method's metadata, can hold custom key-value pairs.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/store#manage-metadata"},"type":"object"},"name":{"description":"The shipping method's name.","title":"name","type":"string"},"original_subtotal":{"description":"The shipping method's original subtotal before discounts, excluding taxes.","title":"original_subtotal","type":"number"},"original_tax_total":{"description":"The shipping method's original tax total before discounts.","title":"original_tax_total","type":"number"},"original_total":{"description":"The shipping method's original total before discounts, including taxes.","title":"original_total","type":"number"},"shipping_option_id":{"description":"The ID of the shipping option this method was created from.","title":"shipping_option_id","type":"string"},"subtotal":{"description":"The shipping method's subtotal before discounts, excluding taxes.","title":"subtotal","type":"number"},"tax_lines":{"description":"The shipping method's tax lines.","items":{"$ref":"#/components/schemas/BaseShippingMethodTaxLine"},"type":"array"},"tax_total":{"description":"The shipping method's tax total after discounts.","title":"tax_total","type":"number"},"total":{"description":"The shipping method's total after discounts, including taxes.","title":"total","type":"number"},"updated_at":{"description":"The date the shipping method was updated.","format":"date-time","title":"updated_at","type":"string"}},"required":["id","cart_id","name","amount","is_tax_inclusive","created_at","updated_at"],"type":"object","x-schemaName":"BaseCartShippingMethod"},"BaseCollection":{"description":"The product collection's details.","properties":{"created_at":{"description":"The collection's creation date.","format":"date-time","title":"created_at","type":"string"},"deleted_at":{"description":"The collection's deletion date.","format":"date-time","title":"deleted_at","type":"string"},"external_id":{"description":"The collection's external ID used to link it with external systems.","title":"external_id","type":"string"},"handle":{"description":"The collection's handle.","title":"handle","type":"string"},"id":{"description":"The collection's ID.","title":"id","type":"string"},"metadata":{"description":"The collection's metadata, used to store custom key-value pairs.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/store#manage-metadata"},"type":"object"},"products":{"description":"The collection's products.","items":{"type":"object"},"type":"array"},"title":{"description":"The collection's title.","title":"title","type":"string"},"updated_at":{"description":"The collection's update date.","format":"date-time","title":"updated_at","type":"string"}},"required":["id","title","handle","created_at","updated_at","deleted_at","metadata"],"type":"object","x-schemaName":"BaseCollection"},"BaseFulfillmentProvider":{"description":"The fulfillment provider's details.","properties":{"id":{"description":"The provider's ID.","title":"id","type":"string"},"is_enabled":{"description":"Whether the provider is enabled.","title":"is_enabled","type":"boolean"}},"required":["id","is_enabled"],"type":"object","x-schemaName":"BaseFulfillmentProvider"},"BaseLineItemAdjustment":{"description":"The adjustment's details.","properties":{"amount":{"description":"The adjustment's amount.","title":"amount","type":"number"},"cart_id":{"description":"The ID of the cart this adjustment belongs to.","title":"cart_id","type":"string"},"code":{"description":"The adjustment's code.","title":"code","type":"string"},"created_at":{"description":"The date the adjustment was created.","format":"date-time","title":"created_at","type":"string"},"description":{"description":"The adjustment's description.","title":"description","type":"string"},"id":{"description":"The adjustment's ID.","title":"id","type":"string"},"item":{"type":"object"},"item_id":{"description":"The ID of the item this adjustment applies on.","title":"item_id","type":"string"},"promotion_id":{"description":"The ID of the promotion applied by this adjustment.","title":"promotion_id","type":"string"},"provider_id":{"description":"The adjustment's provider ID.","title":"provider_id","type":"string"},"updated_at":{"description":"The date the adjustment was updated.","format":"date-time","title":"updated_at","type":"string"}},"required":["item","item_id","id","amount","cart_id","created_at","updated_at"],"type":"object","x-schemaName":"BaseLineItemAdjustment"},"BaseLineItemTaxLine":{"description":"The tax line's details.","properties":{"code":{"description":"The code that the tax rate is identified by.","title":"code","type":"string"},"created_at":{"description":"The date the tax line was created.","format":"date-time","title":"created_at","type":"string"},"description":{"description":"The tax line's description.","title":"description","type":"string"},"id":{"description":"The tax line's ID.","title":"id","type":"string"},"item":{"$ref":"#/components/schemas/BaseCartLineItem"},"item_id":{"description":"The ID of the line item this tax line belongs to.","title":"item_id","type":"string"},"provider_id":{"description":"The ID of the tax provider used to calculate the tax line.","title":"provider_id","type":"string"},"rate":{"description":"The charged rate.","title":"rate","type":"number"},"subtotal":{"description":"The item's total excluding taxes, including promotions.","title":"subtotal","type":"number"},"tax_rate_id":{"description":"The ID of the applied tax rate.","title":"tax_rate_id","type":"string"},"total":{"description":"The item's total including taxes and promotions.","title":"total","type":"number"},"updated_at":{"description":"The date the tax line was updated.","format":"date-time","title":"updated_at","type":"string"}},"required":["item","item_id","total","subtotal","id","code","rate","created_at","updated_at"],"type":"object","x-schemaName":"BaseLineItemTaxLine"},"BaseOrderItemDetail":{"description":"The item's detail.","properties":{"created_at":{"description":"The date the detail was created.","format":"date-time","title":"created_at","type":"string"},"delivered_quantity":{"description":"The item's delivered quantity.","title":"fulfilled_quantity","type":"number"},"fulfilled_quantity":{"description":"The item's fulfilled quantity.","title":"fulfilled_quantity","type":"number"},"id":{"description":"the detail's ID.","title":"id","type":"string"},"item":{"type":"object"},"item_id":{"description":"the ID of the associated line item.","title":"id","type":"string"},"metadata":{"description":"The item's metadata, can hold custom key-value pairs.","title":"metadata","type":"object"},"quantity":{"description":"The item's quantity.","title":"quantity","type":"number"},"return_dismissed_quantity":{"description":"The item's quantity that's returned but damaged. So, it's not added to the underlying variant's stocked quantity.","title":"return_dismissed_quantity","type":"number"},"return_received_quantity":{"description":"The item's quantity that's returned and added to the underlying variant's stocked quantity.","title":"return_received_quantity","type":"number"},"return_requested_quantity":{"description":"The item's quantity that's requested to be returned.","title":"return_requested_quantity","type":"number"},"shipped_quantity":{"description":"The item's shipped quantity.","title":"shipped_quantity","type":"number"},"updated_at":{"description":"The date the detail was updated.","format":"date-time","title":"updated_at","type":"string"},"written_off_quantity":{"description":"The item's quantity that's removed from the order.","title":"written_off_quantity","type":"number"}},"required":["id","item_id","item","quantity","fulfilled_quantity","delivered_quantity","shipped_quantity","return_requested_quantity","return_received_quantity","return_dismissed_quantity","written_off_quantity","metadata","created_at","updated_at"],"type":"object","x-schemaName":"BaseOrderItemDetail"},"BaseOrderLineItemAdjustment":{"description":"The adjustment's details.","properties":{"amount":{"description":"The adjustment's amount.","title":"amount","type":"number"},"code":{"description":"The adjustment's code.","title":"code","type":"string"},"created_at":{"description":"The date the adjustment was created.","format":"date-time","title":"created_at","type":"string"},"description":{"description":"The adjustment's description.","title":"description","type":"string"},"id":{"description":"The adjustment's ID.","title":"id","type":"string"},"item":{"type":"object"},"item_id":{"description":"The ID of the item this adjustment applies to.","title":"item_id","type":"string"},"order_id":{"description":"The ID of the associated order.","title":"order_id","type":"string"},"promotion_id":{"description":"The ID of the promotion that this applies on the order's item.","title":"promotion_id","type":"string"},"provider_id":{"description":"The adjustment's provider ID.","title":"provider_id","type":"string"},"updated_at":{"description":"The date the adjustment was updated.","format":"date-time","title":"updated_at","type":"string"}},"required":["item","item_id","id","amount","order_id","created_at","updated_at"],"type":"object","x-schemaName":"BaseOrderLineItemAdjustment"},"BaseOrderLineItemTaxLine":{"description":"The tax line's tax lines.","properties":{"code":{"description":"The code that the tax rate is identified by.","title":"code","type":"string"},"created_at":{"description":"The date the tax line was created.","format":"date-time","title":"created_at","type":"string"},"description":{"description":"The tax line's description.","title":"description","type":"string"},"id":{"description":"The tax line's ID.","title":"id","type":"string"},"item":{"type":"object"},"item_id":{"description":"The ID of the associated line item.","title":"item_id","type":"string"},"provider_id":{"description":"The ID of the tax provider used to calculate the tax line.","title":"provider_id","type":"string"},"rate":{"description":"The rate to charge.","title":"rate","type":"number"},"subtotal":{"description":"The tax line's subtotal excluding promotions.","title":"subtotal","type":"number"},"tax_rate_id":{"description":"The ID of the applied tax rate.","title":"tax_rate_id","type":"string"},"total":{"description":"The tax line's total including promotions.","title":"total","type":"number"},"updated_at":{"description":"The date the tax line was updated.","format":"date-time","title":"updated_at","type":"string"}},"required":["item","item_id","total","subtotal","id","code","rate","created_at","updated_at"],"type":"object","x-schemaName":"BaseOrderLineItemTaxLine"},"BaseOrderShippingDetail":{"description":"Details of changes to a shipping method.","properties":{"claim_id":{"description":"The ID of the associated claim.","title":"claim_id","type":"string"},"created_at":{"description":"The date the shipping method change was created.","format":"date-time","title":"created_at","type":"string"},"exchange_id":{"description":"The ID of the associated exchange.","title":"exchange_id","type":"string"},"id":{"description":"The ID of the new changes to the shipping method.","title":"id","type":"string"},"return_id":{"description":"The ID of the associated return.","title":"return_id","type":"string"},"shipping_method":{"type":"object"},"shipping_method_id":{"description":"The ID of the shipping method.","title":"shipping_method_id","type":"string"},"updated_at":{"description":"The date the shipping method change was updated.","format":"date-time","title":"updated_at","type":"string"}},"required":["id","shipping_method_id","shipping_method","created_at","updated_at"],"type":"object","x-schemaName":"BaseOrderShippingDetail"},"BaseOrderShippingMethodAdjustment":{"description":"The adjustment's adjustments.","properties":{"amount":{"description":"The adjustment's amount.","title":"amount","type":"number"},"code":{"description":"The adjustment's code.","title":"code","type":"string"},"created_at":{"description":"The date the adjustment was created.","format":"date-time","title":"created_at","type":"string"},"description":{"description":"The adjustment's description.","title":"description","type":"string"},"id":{"description":"The adjustment's ID.","title":"id","type":"string"},"order_id":{"description":"The ID of the associated order.","title":"order_id","type":"string"},"promotion_id":{"description":"The ID of the promotion applied by this adjustment.","title":"promotion_id","type":"string"},"provider_id":{"description":"The adjustment's provider ID.","title":"provider_id","type":"string"},"shipping_method":{"type":"object"},"shipping_method_id":{"description":"The ID of the shipping method this adjustment applies on.","title":"shipping_method_id","type":"string"},"updated_at":{"description":"The date the adjustment was updated.","format":"date-time","title":"updated_at","type":"string"}},"required":["shipping_method","shipping_method_id","id","amount","order_id","created_at","updated_at"],"type":"object","x-schemaName":"BaseOrderShippingMethodAdjustment"},"BaseOrderShippingMethodTaxLine":{"description":"The tax line's details.","properties":{"code":{"description":"The code that the tax rate is identified by.","title":"code","type":"string"},"created_at":{"description":"The date the tax line was created.","format":"date-time","title":"created_at","type":"string"},"description":{"description":"The tax line's description.","title":"description","type":"string"},"id":{"description":"The tax line's ID.","title":"id","type":"string"},"provider_id":{"description":"The ID of the tax provider handling the tax calculation.","title":"provider_id","type":"string"},"rate":{"description":"The rate to charge.","title":"rate","type":"number"},"shipping_method":{"type":"object"},"shipping_method_id":{"description":"The ID of the shipping method this tax line belongs to.","title":"shipping_method_id","type":"string"},"subtotal":{"description":"The shipping method's total excluding taxes, including promotions.","title":"subtotal","type":"number"},"tax_rate_id":{"description":"The ID of the applied tax rate.","title":"tax_rate_id","type":"string"},"total":{"description":"The shipping method's total including taxes and promotions.","title":"total","type":"number"},"updated_at":{"description":"The date the tax line was updated.","format":"date-time","title":"updated_at","type":"string"}},"required":["shipping_method","shipping_method_id","total","subtotal","id","code","rate","created_at","updated_at"],"type":"object","x-schemaName":"BaseOrderShippingMethodTaxLine"},"BaseOrderSummary":{"description":"The order's summary details.","properties":{"accounting_total":{"description":"The order's total without the credit-line total.","title":"accounting_total","type":"number"},"current_order_total":{"description":"The order's current total, could be the total after a change in the order.","title":"current_order_total","type":"number"},"original_order_total":{"description":"The order's original total.","title":"original_order_total","type":"number"},"paid_total":{"description":"The total amount paid.","title":"paid_total","type":"number"},"pending_difference":{"description":"The difference pending to be processed. If negative, the customer needs a refund. Otherwise, additional payment is required from the customer.","title":"pending_difference","type":"number"},"refunded_total":{"description":"The total amount refunded.","title":"refunded_total","type":"number"},"transaction_total":{"description":"The total of the transactions made on the order.","title":"transaction_total","type":"number"}},"required":["pending_difference","current_order_total","original_order_total","transaction_total","paid_total","refunded_total","accounting_total"],"type":"object","x-schemaName":"BaseOrderSummary"},"BaseOrderTransaction":{"description":"An order transaction's details.","properties":{"amount":{"description":"The transaction's amount.","title":"amount","type":"number"},"created_at":{"description":"The date that the transaction was created.","format":"date-time","title":"created_at","type":"string"},"currency_code":{"description":"The transaction's currency code.","example":"usd","title":"currency_code","type":"string"},"id":{"description":"The transaction's ID.","title":"id","type":"string"},"metadata":{"description":"The transaction's metadata, can hold custom key-value pairs.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/store#manage-metadata"},"type":"object"},"order_id":{"description":"The ID of the order this transaction belongs to.","title":"order_id","type":"string"},"reference":{"description":"The name of a table that this transaction references. If this transaction is for captured payment, its value is `capture`. If this transaction is for refunded payment, its value is `refund`.","enum":["capture","refund"],"title":"reference","type":"string"},"reference_id":{"description":"The ID of the referenced record in the referenced table.","title":"reference_id","type":"string"},"updated_at":{"description":"The date that the transaction was updated.","format":"date-time","title":"updated_at","type":"string"}},"required":["id","order_id","amount","currency_code","reference","reference_id","metadata","created_at","updated_at"],"type":"object","x-schemaName":"BaseOrderTransaction"},"BasePayment":{"description":"The payment's details.","properties":{"amount":{"description":"The payment's amount.","title":"amount","type":"number"},"authorized_amount":{"description":"The amount authorized of the payment.","title":"authorized_amount","type":"number"},"canceled_at":{"description":"The date the payment was canceled.","format":"date-time","title":"canceled_at","type":"string"},"captured_amount":{"description":"The captured amount of the payment.","title":"captured_amount","type":"number"},"captured_at":{"description":"The date the payment was captured.","format":"date-time","title":"captured_at","type":"string"},"captures":{"description":"The details of payment captures.","items":{"$ref":"#/components/schemas/BaseCapture"},"type":"array"},"created_at":{"description":"The date the payment was created.","format":"date-time","title":"created_at","type":"string"},"currency_code":{"description":"The payment's currency code.","title":"currency_code","type":"string"},"data":{"description":"The payment's data, useful for processing by the payment provider.","externalDocs":{"url":"https://docs.medusajs.com/resources/commerce-modules/payment/payment#whats-a-payment"},"type":"object"},"id":{"description":"The payment's ID.","title":"id","type":"string"},"payment_collection":{"type":"object"},"payment_session":{"type":"object"},"provider_id":{"description":"The ID of the payment provider used to process this payment.","title":"provider_id","type":"string"},"refunded_amount":{"description":"The refunded amount of the payment.","title":"captured_amount","type":"number"},"refunds":{"description":"The details of payment refunds.","items":{"$ref":"#/components/schemas/BaseRefund"},"type":"array"},"updated_at":{"description":"The date the payment was updated.","format":"date-time","title":"updated_at","type":"string"}},"required":["id","amount","currency_code","provider_id"],"type":"object","x-schemaName":"BasePayment"},"BasePaymentCollection":{"description":"The payment collection's details.","properties":{"amount":{"description":"The total amount to be paid.","title":"amount","type":"number"},"authorized_amount":{"description":"The total authorized amount of the collection's payments.","title":"authorized_amount","type":"number"},"captured_amount":{"description":"The total captured amount of the collection's payments.","title":"captured_amount","type":"number"},"completed_at":{"description":"The date the payment collection was completed.","format":"date-time","title":"completed_at","type":"string"},"created_at":{"description":"The date the payment collection was created.","format":"date-time","title":"created_at","type":"string"},"currency_code":{"description":"The payment collection's currency code.","title":"currency_code","type":"string"},"id":{"description":"The payment collection's ID.","title":"id","type":"string"},"metadata":{"description":"The payment collection's metadata, can hold custom key-value pairs.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/store#manage-metadata"},"type":"object"},"payment_providers":{"description":"The payment provider used to process the collection's payments and sessions.","items":{"$ref":"#/components/schemas/BasePaymentProvider"},"type":"array"},"payment_sessions":{"description":"The payment collection's payment sessions.","items":{"$ref":"#/components/schemas/BasePaymentSession"},"type":"array"},"payments":{"description":"The payment collection's payments.","items":{"$ref":"#/components/schemas/BasePayment"},"type":"array"},"refunded_amount":{"description":"The total refunded amount of the collection's payments.","title":"refunded_amount","type":"number"},"status":{"description":"The payment collection's status.","enum":["canceled","not_paid","awaiting","authorized","partially_authorized","completed","failed"],"type":"string"},"updated_at":{"description":"The date the payment collection was updated.","format":"date-time","title":"updated_at","type":"string"}},"required":["id","currency_code","amount","status","payment_providers"],"type":"object","x-schemaName":"BasePaymentCollection"},"BasePaymentProvider":{"description":"The payment provider's details.","properties":{"id":{"description":"The payment provider's ID.","title":"id","type":"string"}},"required":["id"],"type":"object","x-schemaName":"BasePaymentProvider"},"BasePaymentSession":{"description":"The payment session's details.","properties":{"amount":{"description":"The payment session's amount.","title":"amount","type":"number"},"authorized_at":{"description":"The date the payment session was authorized.","format":"date-time","title":"authorized_at","type":"string"},"context":{"description":"The context around the payment, such as the customer's details.","example":{"customer":{"id":"cus_123"}},"type":"object"},"currency_code":{"description":"The payment session's currency code.","example":"usd","title":"currency_code","type":"string"},"data":{"description":"The payment session's data, useful for the payment provider processing the payment.","externalDocs":{"url":"https://docs.medusajs.com/resources/commerce-modules/payment/payment-session#data-property"},"type":"object"},"id":{"description":"The payment session's ID.","title":"id","type":"string"},"payment":{"$ref":"#/components/schemas/BasePayment"},"payment_collection":{"type":"object"},"provider_id":{"description":"The ID of the payment provider processing this session.","title":"provider_id","type":"string"},"status":{"description":"The payment session's status.","enum":["error","authorized","canceled","captured","pending","requires_more"],"type":"string"}},"required":["id","amount","currency_code","provider_id","data","status"],"type":"object","x-schemaName":"BasePaymentSession"},"BaseProduct":{"description":"The product's details.","properties":{"categories":{"description":"The product's categories.","items":{"$ref":"#/components/schemas/BaseProductCategory"},"type":"array"},"collection":{"$ref":"#/components/schemas/BaseCollection"},"collection_id":{"description":"The ID of the collection that the product belongs to.","title":"collection_id","type":"string"},"created_at":{"description":"The date the product was created.","format":"date-time","title":"created_at","type":"string"},"deleted_at":{"description":"The date the product was deleted.","format":"date-time","title":"deleted_at","type":"string"},"description":{"description":"The product's description.","title":"description","type":"string"},"discountable":{"description":"Whether discounts can be applied on the product.","title":"discountable","type":"boolean"},"external_id":{"description":"The ID of a product in an external system, such as an ERP or CMS.","title":"external_id","type":"string"},"handle":{"description":"The product's unique handle.","title":"handle","type":"string"},"height":{"description":"The product's height.","title":"height","type":"number"},"hs_code":{"description":"The product's HS code.","title":"hs_code","type":"string"},"id":{"description":"The product's ID.","title":"id","type":"string"},"images":{"description":"The product's images.","items":{"$ref":"#/components/schemas/BaseProductImage"},"type":"array"},"is_giftcard":{"description":"Whether the product is a gift card.","title":"is_giftcard","type":"boolean"},"length":{"description":"The product's length.","title":"length","type":"number"},"material":{"description":"The product's material.","title":"material","type":"string"},"metadata":{"description":"The product's metadata, can hold custom key-value pairs.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/store#manage-metadata"},"type":"object"},"mid_code":{"description":"The product's MID code.","title":"mid_code","type":"string"},"options":{"description":"The product's options.","items":{"$ref":"#/components/schemas/BaseProductOption"},"type":"array"},"origin_country":{"description":"The product's origin country.","title":"origin_country","type":"string"},"status":{"description":"The product's status.","enum":["draft","proposed","published","rejected"],"type":"string"},"subtitle":{"description":"The product's subtitle.","title":"subtitle","type":"string"},"tags":{"description":"The product's tags.","items":{"$ref":"#/components/schemas/BaseProductTag"},"type":"array"},"thumbnail":{"description":"The product's thumbnail.","title":"thumbnail","type":"string"},"title":{"description":"The product's title.","title":"title","type":"string"},"type":{"$ref":"#/components/schemas/BaseProductType"},"type_id":{"description":"The ID of the product's type.","title":"type_id","type":"string"},"updated_at":{"description":"The date the product was updated.","format":"date-time","title":"updated_at","type":"string"},"variants":{"description":"The product's variants.","items":{"type":"object"},"type":"array"},"weight":{"description":"The product's weight.","title":"weight","type":"number"},"width":{"description":"The product's width.","title":"width","type":"number"}},"required":["id","title","handle","subtitle","description","is_giftcard","status","thumbnail","width","weight","length","height","origin_country","hs_code","mid_code","material","collection_id","type_id","variants","options","images","discountable","external_id","created_at","updated_at","deleted_at"],"type":"object","x-schemaName":"BaseProduct"},"BaseProductCategory":{"description":"The product category's details.","properties":{"category_children":{"description":"The category's children.","items":{"$ref":"#/components/schemas/AdminProductCategory"},"type":"array"},"created_at":{"description":"The date the category was created.","format":"date-time","title":"created_at","type":"string"},"deleted_at":{"description":"The date the category was deleted.","format":"date-time","title":"deleted_at","type":"string"},"description":{"description":"The category's description.","title":"description","type":"string"},"handle":{"description":"The category's unique handle.","title":"handle","type":"string"},"id":{"description":"The category's ID.","title":"id","type":"string"},"is_active":{"description":"Whether the category is active. If disabled, the category isn't shown in the storefront.","title":"is_active","type":"boolean"},"is_internal":{"description":"Whether the category is internal. If enabled, the category is only seen by admin users.","title":"is_internal","type":"boolean"},"metadata":{"description":"The category's metadata, can hold custom key-value pairs.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/admin#manage-metadata"},"type":"object"},"name":{"description":"The category's name.","title":"name","type":"string"},"parent_category":{"$ref":"#/components/schemas/AdminProductCategory"},"parent_category_id":{"description":"The ID of the category's parent.","title":"parent_category_id","type":"string"},"products":{"description":"The category's products.","items":{"type":"object"},"type":"array"},"rank":{"description":"The category's rank among sibling categories.","title":"rank","type":"number"},"updated_at":{"description":"The date the category was updated.","format":"date-time","title":"updated_at","type":"string"}},"required":["id","name","description","handle","is_active","is_internal","rank","parent_category_id","parent_category","category_children","created_at","updated_at","deleted_at"],"type":"object","x-schemaName":"BaseProductCategory"},"BaseProductImage":{"description":"The image's details.","properties":{"created_at":{"description":"The date the image was created.","format":"date-time","title":"created_at","type":"string"},"deleted_at":{"description":"The date the image was deleted.","format":"date-time","title":"deleted_at","type":"string"},"id":{"description":"The image's ID.","title":"id","type":"string"},"metadata":{"description":"The image's metadata, can hold custom key-value pairs.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/admin#manage-metadata"},"type":"object"},"rank":{"description":"The image's rank among its sibling images.","title":"rank","type":"number"},"updated_at":{"description":"The date the image was updated.","format":"date-time","title":"updated_at","type":"string"},"url":{"description":"The image's URL.","title":"url","type":"string"}},"required":["id","url","rank"],"type":"object","x-schemaName":"BaseProductImage"},"BaseProductOption":{"description":"The product option's details.","properties":{"created_at":{"description":"The date the product option was created.","format":"date-time","title":"created_at","type":"string"},"deleted_at":{"description":"The date the product option was deleted.","format":"date-time","title":"deleted_at","type":"string"},"id":{"description":"The product option's ID.","title":"id","type":"string"},"is_exclusive":{"description":"Whether the option is exclusive to a product.","title":"is_exclusive","type":"boolean"},"metadata":{"description":"The product option's metadata, can hold custom key-value pairs.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/store#manage-metadata"},"type":"object"},"products":{"description":"The products that use the option.","items":{"type":"object"},"type":"array"},"title":{"description":"The product option's title.","title":"title","type":"string"},"updated_at":{"description":"The date the product option was updated.","format":"date-time","title":"updated_at","type":"string"},"values":{"description":"The product option's values.","items":{"$ref":"#/components/schemas/BaseProductOptionValue"},"type":"array"}},"required":["id","title","is_exclusive"],"type":"object","x-schemaName":"BaseProductOption"},"BaseProductOptionValue":{"description":"The product option value's details.","properties":{"created_at":{"description":"The date the value was created.","format":"date-time","title":"created_at","type":"string"},"deleted_at":{"description":"The date the value was deleted.","format":"date-time","title":"deleted_at","type":"string"},"id":{"description":"The value's ID.","title":"id","type":"string"},"metadata":{"description":"The value's metadata, can hold custom key-value pairs.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/store#manage-metadata"},"type":"object"},"option":{"type":"object"},"option_id":{"description":"The ID of the option this value belongs to.","title":"option_id","type":"string"},"rank":{"description":"The rank of the value among other option values.","title":"rank","type":"number"},"updated_at":{"description":"The date the value was updated.","format":"date-time","title":"updated_at","type":"string"},"value":{"description":"The value.","title":"value","type":"string"}},"required":["id","value"],"type":"object","x-schemaName":"BaseProductOptionValue"},"BaseProductTag":{"description":"The product tag's details.","properties":{"created_at":{"description":"The date the tag was created.","format":"date-time","title":"created_at","type":"string"},"deleted_at":{"description":"The date the tag was deleted.","format":"date-time","title":"deleted_at","type":"string"},"external_id":{"description":"The tag's external ID used to link it with external systems.","title":"external_id","type":"string"},"id":{"description":"The tag's ID.","title":"id","type":"string"},"metadata":{"description":"The tag's metadata, can hold custom key-value pairs.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/store#manage-metadata"},"type":"object"},"updated_at":{"description":"The date the tag was updated.","format":"date-time","title":"updated_at","type":"string"},"value":{"description":"The tag's value.","title":"value","type":"string"}},"required":["id","value","created_at","updated_at"],"type":"object","x-schemaName":"BaseProductTag"},"BaseProductType":{"description":"The product type's details.","properties":{"created_at":{"description":"The date the type was created.","format":"date-time","title":"created_at","type":"string"},"deleted_at":{"description":"The date the type was deleted.","format":"date-time","title":"deleted_at","type":"string"},"external_id":{"description":"The type's external ID used to link it with external systems.","title":"external_id","type":"string"},"id":{"description":"The type's ID.","title":"id","type":"string"},"metadata":{"description":"The type's metadata, can hold custom key-value pairs.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/store#manage-metadata"},"type":"object"},"updated_at":{"description":"The date the type was updated.","format":"date-time","title":"updated_at","type":"string"},"value":{"description":"The type's value.","title":"value","type":"string"}},"required":["id","value","created_at","updated_at"],"type":"object","x-schemaName":"BaseProductType"},"BaseProductVariant":{"description":"The product variant's details.","properties":{"allow_backorder":{"description":"Whether the variant can be ordered even if it's out of stock.","title":"allow_backorder","type":"boolean"},"barcode":{"description":"The variant's barcode.","title":"barcode","type":"string"},"calculated_price":{"$ref":"#/components/schemas/BaseCalculatedPriceSet"},"created_at":{"description":"The date the variant was created.","format":"date-time","title":"created_at","type":"string"},"deleted_at":{"description":"The date the variant was deleted.","format":"date-time","title":"deleted_at","type":"string"},"ean":{"description":"The variant's EAN code.","title":"ean","type":"string"},"height":{"description":"The variant's height.","title":"height","type":"number"},"hs_code":{"description":"The variant's HS code.","title":"hs_code","type":"string"},"id":{"description":"The variant's ID.","title":"id","type":"string"},"images":{"description":"The variant's images.","items":{"$ref":"#/components/schemas/BaseProductImage"},"type":"array"},"inventory_quantity":{"description":"The variant's inventory quantity. This is only included if you pass in the `fields` query parameter a `+variants.inventory_quantity` parameter.","title":"inventory_quantity","type":"number"},"length":{"description":"The variant's length.","title":"length","type":"number"},"manage_inventory":{"description":"Whether the Medusa application manages the variant's inventory quantity and availablility. If disabled, the variant is always considered in stock.","title":"manage_inventory","type":"boolean"},"material":{"description":"The variant's material.","title":"material","type":"string"},"metadata":{"description":"The variant's metadata, can hold custom key-value pairs.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/store#manage-metadata"},"type":"object"},"mid_code":{"description":"The variant's MID code.","title":"mid_code","type":"string"},"options":{"description":"The variant's option values.","items":{"$ref":"#/components/schemas/BaseProductOptionValue"},"type":"array"},"origin_country":{"description":"The variant's origin country.","title":"origin_country","type":"string"},"product":{"$ref":"#/components/schemas/BaseProduct"},"product_id":{"description":"The ID of the product that the variant belongs to.","title":"product_id","type":"string"},"sku":{"description":"The variant's SKU.","title":"sku","type":"string"},"thumbnail":{"description":"The variant's thumbnail.","title":"thumbnail","type":"string"},"title":{"description":"The variant's title.","title":"title","type":"string"},"upc":{"description":"The variant's UPC.","title":"upc","type":"string"},"updated_at":{"description":"The date the variant was updated.","format":"date-time","title":"updated_at","type":"string"},"variant_rank":{"description":"The variant's rank among its sibling variants.","title":"variant_rank","type":"number"},"weight":{"description":"The variant's weight.","title":"weight","type":"number"},"width":{"description":"The variant's width.","title":"width","type":"number"}},"required":["id","title","sku","barcode","ean","upc","thumbnail","allow_backorder","manage_inventory","hs_code","origin_country","mid_code","material","weight","length","height","width","options","created_at","updated_at","deleted_at"],"type":"object","x-schemaName":"BaseProductVariant"},"BaseRefund":{"description":"The refund's details.","properties":{"amount":{"description":"The refund's amount.","title":"amount","type":"number"},"created_at":{"description":"The date the refund was created.","format":"date-time","title":"created_at","type":"string"},"created_by":{"description":"The ID of the user that created the refund.","title":"created_by","type":"string"},"id":{"description":"The refund's ID.","title":"id","type":"string"},"idempotency_key":{"description":"The refund's idempotency key.","title":"idempotency_key","type":"string"},"note":{"description":"More details about the refund.","title":"note","type":"string"},"payment":{"type":"object"},"refund_reason":{"$ref":"#/components/schemas/BaseRefundReason"},"refund_reason_id":{"description":"The ID of the refund reason.","title":"refund_reason_id","type":"string"}},"required":["id","amount","created_at","payment"],"type":"object","x-schemaName":"BaseRefund"},"BaseRefundReason":{"description":"The refund reason's details.","properties":{"code":{"description":"The refund reason's code.","title":"code","type":"string"},"created_at":{"description":"The date the refund reason was created.","format":"date-time","title":"created_at","type":"string"},"description":{"description":"The refund reason's description.","title":"description","type":"string"},"id":{"description":"The refund reason's ID.","title":"id","type":"string"},"label":{"description":"The refund reason's label.","title":"label","type":"string"},"metadata":{"description":"The refund reason's metadata, can hold custom key-value pairs.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/store#manage-metadata"},"type":"object"},"updated_at":{"description":"The date the refund reason was updated.","format":"date-time","title":"updated_at","type":"string"}},"required":["id","label","code","created_at","updated_at"],"type":"object","x-schemaName":"BaseRefundReason"},"BaseRegion":{"description":"The region's details.","properties":{"automatic_taxes":{"description":"The region's automatic taxes.","title":"automatic_taxes","type":"boolean"},"countries":{"description":"The region's countries.","items":{"$ref":"#/components/schemas/BaseRegionCountry"},"type":"array"},"created_at":{"description":"The region's created at.","format":"date-time","title":"created_at","type":"string"},"currency_code":{"description":"The region's currency code.","title":"currency_code","type":"string"},"id":{"description":"The region's ID.","title":"id","type":"string"},"metadata":{"description":"The region's metadata.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/store#manage-metadata"},"type":"object"},"name":{"description":"The region's name.","title":"name","type":"string"},"payment_providers":{"description":"The region's payment providers.","items":{"$ref":"#/components/schemas/AdminPaymentProvider"},"type":"array"},"updated_at":{"description":"The region's updated at.","format":"date-time","title":"updated_at","type":"string"}},"required":["id","name","currency_code"],"type":"object","x-schemaName":"BaseRegion"},"BaseRegionCountry":{"description":"The country's details.","properties":{"display_name":{"description":"The country's display name.","title":"display_name","type":"string"},"id":{"description":"The country's ID.","title":"id","type":"string"},"iso_2":{"description":"The country's iso 2.","example":"us","title":"iso_2","type":"string"},"iso_3":{"description":"The country's iso 3.","example":"usa","title":"iso_3","type":"string"},"name":{"description":"The country's name.","title":"name","type":"string"},"num_code":{"description":"The country's num code.","example":840,"title":"num_code","type":"string"}},"required":["id"],"type":"object","x-schemaName":"BaseRegionCountry"},"BaseShippingMethodAdjustment":{"description":"The adjustment's details.","properties":{"amount":{"description":"The adjustment's amount.","title":"amount","type":"number"},"cart_id":{"description":"The ID of the associated cart.","title":"cart_id","type":"string"},"code":{"description":"The adjustment's code.","title":"code","type":"string"},"created_at":{"description":"The date the adjustment was created.","format":"date-time","title":"created_at","type":"string"},"description":{"description":"The adjustment's description.","title":"description","type":"string"},"id":{"description":"The adjustment's ID.","title":"id","type":"string"},"promotion_id":{"description":"The ID of the applied promotion.","title":"promotion_id","type":"string"},"provider_id":{"description":"The adjustment's provider ID.","title":"provider_id","type":"string"},"shipping_method":{"type":"object"},"shipping_method_id":{"description":"The ID of the shipping method this adjustment applies on.","title":"shipping_method_id","type":"string"},"updated_at":{"description":"The date the adjustment was updated.","format":"date-time","title":"updated_at","type":"string"}},"required":["shipping_method","shipping_method_id","id","amount","cart_id","created_at","updated_at"],"type":"object","x-schemaName":"BaseShippingMethodAdjustment"},"BaseShippingMethodTaxLine":{"description":"The tax line's details","properties":{"code":{"description":"The code that the tax rate is identified by.","title":"code","type":"string"},"created_at":{"description":"The date the tax line was created.","format":"date-time","title":"created_at","type":"string"},"description":{"description":"The tax line's description.","title":"description","type":"string"},"id":{"description":"The tax line's ID.","title":"id","type":"string"},"provider_id":{"description":"The ID of the tax provider used to calculate the tax line.","title":"provider_id","type":"string"},"rate":{"description":"The charged rate.","title":"rate","type":"number"},"shipping_method":{"type":"object"},"shipping_method_id":{"description":"The ID of the shipping method this tax line belongs to.","title":"shipping_method_id","type":"string"},"subtotal":{"description":"The method's total excluding taxes, including promotions.","title":"subtotal","type":"number"},"tax_rate_id":{"description":"The ID of the applied tax rate.","title":"tax_rate_id","type":"string"},"total":{"description":"The method's total including taxes and promotions.","title":"total","type":"number"},"updated_at":{"description":"The date the tax line was updated.","format":"date-time","title":"updated_at","type":"string"}},"required":["shipping_method","shipping_method_id","total","subtotal","id","code","rate","created_at","updated_at"],"type":"object","x-schemaName":"BaseShippingMethodTaxLine"},"CreateAddress":{"description":"The address to create.","properties":{"address_1":{"description":"The address's first line.","title":"address_1","type":"string"},"address_2":{"description":"The address's second line.","title":"address_2","type":"string"},"city":{"description":"The address's city.","title":"city","type":"string"},"company":{"description":"The address's company.","title":"company","type":"string"},"country_code":{"description":"The address's country code.","example":"us","title":"country_code","type":"string"},"customer_id":{"description":"The ID of the customer this address belongs to.","title":"customer_id","type":"string"},"first_name":{"description":"The address's first name.","title":"first_name","type":"string"},"last_name":{"description":"The address's last name.","title":"last_name","type":"string"},"metadata":{"description":"The address's metadata, can hold custom key-value pairs.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/store#manage-metadata"},"type":"object"},"phone":{"description":"The address's phone.","title":"phone","type":"string"},"postal_code":{"description":"The address's postal code.","title":"postal_code","type":"string"},"province":{"description":"The address's ISO 3166-2 province code. Must be lower-case.","example":"us-ca","externalDocs":{"description":"Learn more about ISO 3166-2","url":"https://en.wikipedia.org/wiki/ISO_3166-2"},"title":"province","type":"string"}},"type":"object","x-schemaName":"CreateAddress"},"Error":{"properties":{"code":{"description":"A slug code to indicate the type of the error.","enum":["invalid_state_error","invalid_request_error","api_error","unknown_error"],"type":"string"},"message":{"description":"Description of the error that occurred.","example":"first_name must be a string","type":"string"},"type":{"description":"A slug indicating the type of the error.","enum":["QueryRunnerAlreadyReleasedError","TransactionAlreadyStartedError","TransactionNotStartedError","conflict","unauthorized","payment_authorization_error","duplicate_error","not_allowed","invalid_data","not_found","database_error","unexpected_state","invalid_argument","unknown_error"],"type":"string"}},"title":"Response Error","type":"object"},"SedraError":{"description":"Every Sedra error has this shape.","example":{"error":{"code":"forbidden","message":"Missing scope catalog:write"},"ok":false,"status":"error"},"properties":{"error":{"$ref":"#/components/schemas/SedraErrorBody"},"ok":{"const":false,"type":"boolean"},"status":{"const":"error","type":"string"}},"required":["ok","status","error"],"type":"object"},"SedraErrorBody":{"properties":{"code":{"enum":["unauthenticated","forbidden","tenant_forbidden","tenant_required","invalid_input","not_found","rate_limited","idempotency_key_required","idempotency_conflict","conflict","internal"],"type":"string"},"details":{"description":"Extra context, e.g. field errors for invalid_input or retry_after_ms for rate_limited"},"message":{"type":"string"}},"required":["code","message"],"type":"object"},"StoreAddCartShippingMethodsBase":{"description":"The shipping method's details.","properties":{"data":{"description":"Any additional data relevant for the third-party fulfillment provider to process the shipment.","externalDocs":{"description":"Learn more about the data parameter.","url":"https://docs.medusajs.com/resources/storefront-development/checkout/shipping#data-request-body-parameter"},"type":"object"},"option_id":{"description":"The ID of the shipping option to add to the cart.","title":"option_id","type":"string"}},"required":["option_id"],"type":"object","x-schemaName":"StoreAddCartShippingMethodsBase"},"StoreCalculatedPrice":{"description":"The shipping option's calculated price.","properties":{"calculated_amount":{"description":"The amount of the calculated price, or `null` if there isn't a calculated price. This is the amount shown to the customer.","title":"calculated_amount","type":"number"},"calculated_amount_with_tax":{"description":"The `calculated_amount` with taxes applied.","title":"calculated_amount_with_tax","type":"number"},"calculated_amount_without_tax":{"description":"The `calculated_amount` without taxes applied.","title":"calculated_amount_without_tax","type":"number"},"calculated_price":{"description":"The calculated price's details.","properties":{"id":{"description":"The ID of the price.","title":"id","type":"string"},"max_quantity":{"description":"The maximum quantity required in the cart for the price to apply.","title":"max_quantity","type":"number"},"min_quantity":{"description":"The minimum quantity required in the cart for the price to apply.","title":"min_quantity","type":"number"},"price_list_id":{"description":"The ID of the associated price list.","title":"price_list_id","type":"string"},"price_list_type":{"description":"The price list's type. For example, `sale` or `override`.","title":"price_list_type","type":"string"}},"required":["id","price_list_id","price_list_type","min_quantity","max_quantity"],"type":"object"},"currency_code":{"description":"The currency code of the calculated price, or `null` if there isn't a calculated price.","title":"currency_code","type":"string"},"id":{"description":"The ID of the price set from which the price was selected.","title":"id","type":"string"},"is_calculated_price_price_list":{"description":"Whether the calculated price belongs to a price list.","title":"is_calculated_price_price_list","type":"boolean"},"is_calculated_price_tax_inclusive":{"description":"Whether the calculated price is tax inclusive.","externalDocs":{"url":"https://docs.medusajs.com/resources/commerce-modules/pricing/tax-inclusive-pricing"},"title":"is_calculated_price_tax_inclusive","type":"boolean"},"is_original_price_price_list":{"description":"Whether the original price belongs to a price list.","title":"is_original_price_price_list","type":"boolean"},"is_original_price_tax_inclusive":{"description":"Whether the original price is tax inclusive.","externalDocs":{"url":"https://docs.medusajs.com/resources/commerce-modules/pricing/tax-inclusive-pricing"},"title":"is_original_price_tax_inclusive","type":"boolean"},"original_amount":{"description":"The amount of the original price, or `null` if there isn't an original price. This amount is useful to compare with the `calculated_amount`, such as to check for discounted value.","title":"original_amount","type":"number"},"original_amount_with_tax":{"description":"The original amount with taxes applied.","title":"original_amount_with_tax","type":"number"},"original_amount_without_tax":{"description":"The original amount without taxes.","title":"original_amount_without_tax","type":"number"},"original_price":{"description":"The origin price's details.","properties":{"id":{"description":"The ID of the price.","title":"id","type":"string"},"max_quantity":{"description":"The maximum quantity required in the cart for the price to apply.","title":"max_quantity","type":"number"},"min_quantity":{"description":"The minimum quantity required in the cart for the price to apply.","title":"min_quantity","type":"number"},"price_list_id":{"description":"The ID of the associated price list.","title":"price_list_id","type":"string"},"price_list_type":{"description":"The price list's type. For example, `sale` or `override`.","title":"price_list_type","type":"string"}},"required":["id","price_list_id","price_list_type","min_quantity","max_quantity"],"type":"object"}},"required":["id","calculated_amount","original_amount","original_amount_with_tax","original_amount_without_tax","currency_code"],"type":"object","x-schemaName":"StoreCalculatedPrice"},"StoreCart":{"description":"The cart's details.","properties":{"billing_address":{"$ref":"#/components/schemas/StoreCartAddress"},"completed_at":{"description":"The date the cart was completed.","format":"date-time","title":"completed_at","type":"string"},"created_at":{"description":"The date the cart was created.","format":"date-time","title":"created_at","type":"string"},"currency_code":{"description":"The cart's currency code.","example":"usd","title":"currency_code","type":"string"},"customer_id":{"description":"The ID of the customer the cart belongs to.","title":"customer_id","type":"string"},"discount_tax_total":{"description":"The total amount of discounts applied to the cart's tax. Represents the tax portion of discounts.","title":"discount_tax_total","type":"number"},"discount_total":{"description":"The total amount of discounts applied to the cart, including the tax portion of discounts.","title":"discount_total","type":"number"},"email":{"description":"The email of the customer the cart belongs to.","format":"email","title":"email","type":"string"},"gift_card_tax_total":{"description":"The total taxes applied on the gift card amount.","title":"gift_card_tax_total","type":"number"},"gift_card_total":{"description":"The total gift card amount applied on the cart.","title":"gift_card_total","type":"number"},"id":{"description":"The cart's ID.","title":"id","type":"string"},"item_subtotal":{"description":"The sum of all line items' subtotals before discounts, excluding taxes.","title":"item_subtotal","type":"number"},"item_tax_total":{"description":"The sum of all line items' tax totals after discounts.","title":"item_tax_total","type":"number"},"item_total":{"description":"The sum of all line items' totals after discounts, including taxes.","title":"item_total","type":"number"},"items":{"description":"The cart's items.","items":{"$ref":"#/components/schemas/StoreCartLineItem"},"type":"array"},"metadata":{"description":"The cart's metadata, can hold custom key-value pairs.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/store#manage-metadata"},"type":"object"},"original_item_subtotal":{"description":"The sum of all line items' original subtotals before discounts, excluding taxes.","title":"original_item_subtotal","type":"number"},"original_item_tax_total":{"description":"The sum of all line items' original tax totals before discounts.","title":"original_item_tax_total","type":"number"},"original_item_total":{"description":"The sum of all line items' original totals before discounts, including taxes.","title":"original_item_total","type":"number"},"original_shipping_subtotal":{"description":"The sum of all shipping methods' original subtotals before discounts, excluding taxes.","title":"original_shipping_subtotal","type":"number"},"original_shipping_tax_total":{"description":"The sum of all shipping methods' original tax totals before discounts.","title":"original_shipping_tax_total","type":"number"},"original_shipping_total":{"description":"The sum of all shipping methods' original totals before discounts, including taxes.","title":"original_shipping_total","type":"number"},"original_subtotal":{"description":"The cart's subtotal before discounts, excluding taxes. Calculated as the sum of `original_item_subtotal` and `original_shipping_subtotal`.","title":"original_subtotal","type":"number"},"original_tax_total":{"description":"The cart's tax total before discounts. Calculated as the sum of `original_item_tax_total` and `original_shipping_tax_total`.","title":"original_tax_total","type":"number"},"original_total":{"description":"The cart's total before discounts, including taxes. Calculated as the sum of `original_item_total` and `original_shipping_total`.","title":"original_total","type":"number"},"payment_collection":{"$ref":"#/components/schemas/StorePaymentCollection"},"promotions":{"description":"The cart's promotions.","items":{"$ref":"#/components/schemas/StoreCartPromotion"},"type":"array"},"region":{"$ref":"#/components/schemas/StoreRegion"},"region_id":{"description":"The ID of the region the cart belongs to.","title":"region_id","type":"string"},"sales_channel_id":{"description":"The ID of the cart's sales channel. The created order is associated with the same sales channel.\n\nA product's availability in a sales channel only filters the products you retrieve. Medusa doesn't reject a variant added to the cart when its product isn't available in the cart's sales channel. Refer to the guide in the external documentation to learn how to enforce that validation.\n","externalDocs":{"url":"https://docs.medusajs.com/resources/commerce-modules/cart/sales-channel-availability"},"title":"sales_channel_id","type":"string"},"shipping_address":{"$ref":"#/components/schemas/StoreCartAddress"},"shipping_methods":{"description":"The cart's shipping methods.","items":{"$ref":"#/components/schemas/StoreCartShippingMethod"},"type":"array"},"shipping_subtotal":{"description":"The sum of all shipping methods' subtotals before discounts, excluding taxes.","title":"shipping_subtotal","type":"number"},"shipping_tax_total":{"description":"The sum of all shipping methods' tax totals after discounts.","title":"shipping_tax_total","type":"number"},"shipping_total":{"description":"The sum of all shipping methods' totals after discounts, including taxes.","title":"shipping_total","type":"number"},"subtotal":{"description":"The cart's subtotal before discounts, excluding taxes. Calculated as the sum of `item_subtotal` and `shipping_subtotal`.","title":"subtotal","type":"number"},"tax_total":{"description":"The cart's tax total after discounts. Calculated as the sum of `item_tax_total` and `shipping_tax_total`.","title":"tax_total","type":"number"},"total":{"description":"The cart's final total after discounts and credit lines, including taxes.","title":"total","type":"number"},"updated_at":{"description":"The date the cart was updated.","format":"date-time","title":"updated_at","type":"string"}},"required":["promotions","id","currency_code","original_item_total","original_item_subtotal","original_item_tax_total","item_total","item_subtotal","item_tax_total","original_total","original_subtotal","original_tax_total","total","subtotal","tax_total","discount_total","discount_tax_total","gift_card_total","gift_card_tax_total","shipping_total","shipping_subtotal","shipping_tax_total","original_shipping_total","original_shipping_subtotal","original_shipping_tax_total"],"type":"object","x-schemaName":"StoreCart"},"StoreCartAddPromotion":{"description":"The promotion's details.","properties":{"promo_codes":{"description":"Promotion codes to add to the cart.","items":{"description":"A promotion code.","title":"promo_codes","type":"string"},"type":"array"}},"required":["promo_codes"],"type":"object","x-schemaName":"StoreCartAddPromotion"},"StoreCartAddress":{"description":"The address's details.","properties":{"address_1":{"description":"The address's first line.","title":"address_1","type":"string"},"address_2":{"description":"The address's second line.","title":"address_2","type":"string"},"city":{"description":"The address's city.","title":"city","type":"string"},"company":{"description":"The address's company.","title":"company","type":"string"},"country_code":{"description":"The address's country code.","example":"us","title":"country_code","type":"string"},"created_at":{"description":"The date the address was created.","format":"date-time","title":"created_at","type":"string"},"customer_id":{"description":"The ID of the customer the address belongs to.","title":"customer_id","type":"string"},"first_name":{"description":"The address's first name.","title":"first_name","type":"string"},"id":{"description":"The address's ID.","title":"id","type":"string"},"last_name":{"description":"The address's last name.","title":"last_name","type":"string"},"metadata":{"description":"The address's metadata, can hold custom key-value pairs.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/store#manage-metadata"},"type":"object"},"phone":{"description":"The address's phone.","title":"phone","type":"string"},"postal_code":{"description":"The address's postal code.","title":"postal_code","type":"string"},"province":{"description":"The address's lower-case ISO 3166-2 province code.","example":"us-ca","externalDocs":{"description":"Learn more about ISO 3166-2","url":"https://en.wikipedia.org/wiki/ISO_3166-2"},"title":"province","type":"string"},"updated_at":{"description":"The date the address was updated.","format":"date-time","title":"updated_at","type":"string"}},"required":["id","created_at","updated_at"],"type":"object","x-schemaName":"StoreCartAddress"},"StoreCartLineItem":{"description":"The item's details.","properties":{"adjustments":{"description":"The item's adjustments.","items":{"allOf":[{"$ref":"#/components/schemas/BaseLineItemAdjustment"},{"description":"The adjustment's details.","properties":{"item":{"description":"The details of the item that the adjustment belongs to.","title":"item","type":"object"}},"required":["item"],"type":"object"}],"description":"The adjustment's details."},"type":"array"},"cart":{"type":"object"},"cart_id":{"description":"The ID of the cart that the line item belongs to.","title":"cart_id","type":"string"},"compare_at_unit_price":{"description":"The original price of the item before a promotion or sale.","title":"compare_at_unit_price","type":"number"},"created_at":{"description":"The date the item was created.","format":"date-time","title":"created_at","type":"string"},"deleted_at":{"description":"The date the item was deleted.","format":"date-time","title":"deleted_at","type":"string"},"discount_tax_total":{"description":"The total amount of discounts applied to the line item's tax. Represents the tax portion of discounts. This field is only available if you expand the `items.*` relation. Learn more in the [Cart Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-cart-item-totals) guide.","title":"discount_tax_total","type":"number"},"discount_total":{"description":"The total amount of discounts applied to the line item, including the tax portion of discounts. This field is only available if you expand the `items.*` relation. Learn more in the [Cart Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-cart-item-totals) guide.","title":"discount_total","type":"number"},"id":{"description":"The item's ID.","title":"id","type":"string"},"is_discountable":{"description":"Whether the item is discountable.","title":"is_discountable","type":"boolean"},"is_tax_inclusive":{"description":"Whether the item's price includes taxes.","title":"is_tax_inclusive","type":"boolean"},"item_subtotal":{"description":"The line item's subtotal before discounts, excluding taxes. This field is only available if you expand the `items.*` relation. Learn more in the [Cart Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-cart-item-totals) guide.","title":"item_subtotal","type":"number"},"item_tax_total":{"description":"The line item's tax total after discounts. This field is only available if you expand the `items.*` relation. Learn more in the [Cart Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-cart-item-totals) guide.","title":"item_tax_total","type":"number"},"item_total":{"description":"The line item's total after discounts, including taxes. This field is only available if you expand the `items.*` relation. Learn more in the [Cart Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-cart-item-totals) guide.","title":"item_total","type":"number"},"metadata":{"description":"The item's metadata, can hold custom key-value pairs.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/store#manage-metadata"},"type":"object"},"original_subtotal":{"description":"The line item's original subtotal before discounts, excluding taxes. This field is only available if you expand the `items.*` relation. Learn more in the [Cart Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-cart-item-totals) guide.","title":"original_subtotal","type":"number"},"original_tax_total":{"description":"The line item's original tax total before discounts. This field is only available if you expand the `items.*` relation. Learn more in the [Cart Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-cart-item-totals) guide.","title":"original_tax_total","type":"number"},"original_total":{"description":"The line item's original total before discounts, including taxes. This field is only available if you expand the `items.*` relation. Learn more in the [Cart Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-cart-item-totals) guide.","title":"original_total","type":"number"},"product":{"$ref":"#/components/schemas/StoreProduct"},"product_collection":{"description":"The ID of the associated product's collection.","title":"product_collection","type":"string"},"product_description":{"description":"The item's product description.","title":"product_description","type":"string"},"product_handle":{"description":"The item's product handle.","title":"product_handle","type":"string"},"product_id":{"description":"The ID of the associated product.","title":"product_id","type":"string"},"product_subtitle":{"description":"The item's product subtitle.","title":"product_subtitle","type":"string"},"product_title":{"description":"The item's product title.","title":"product_title","type":"string"},"product_type":{"description":"The ID of the associated product's type.","title":"product_type","type":"string"},"quantity":{"description":"The item's quantity.","title":"quantity","type":"number"},"requires_shipping":{"description":"Whether the item requires shipping.","title":"requires_shipping","type":"boolean"},"subtitle":{"description":"The item's subtitle.","title":"subtitle","type":"string"},"subtotal":{"description":"The line item's subtotal before discounts, excluding taxes. This field is only available if you expand the `items.*` relation. Learn more in the [Cart Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-cart-item-totals) guide.","title":"subtotal","type":"number"},"tax_lines":{"description":"The item's tax lines.","items":{"allOf":[{"$ref":"#/components/schemas/BaseLineItemTaxLine"},{"description":"The tax line's details.","properties":{"item":{"description":"The details of the item that the tax line belongs to.","title":"item","type":"object"}},"required":["item"],"type":"object"}],"description":"The tax line's details"},"type":"array"},"tax_total":{"description":"The line item's tax total after discounts. This field is only available if you expand the `items.*` relation. Learn more in the [Cart Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-cart-item-totals) guide.","title":"tax_total","type":"number"},"thumbnail":{"description":"The item's thumbnail URL.","title":"thumbnail","type":"string"},"title":{"description":"The item's title.","title":"title","type":"string"},"total":{"description":"The line item's total after discounts, including taxes. This field is only available if you expand the `items.*` relation. Learn more in the [Cart Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-cart-item-totals) guide.","title":"total","type":"number"},"unit_price":{"description":"The price of a single quantity of the item.","title":"unit_price","type":"number"},"updated_at":{"description":"The date the item was updated.","format":"date-time","title":"updated_at","type":"string"},"variant":{"$ref":"#/components/schemas/StoreProductVariant"},"variant_barcode":{"description":"The item's variant barcode.","title":"variant_barcode","type":"string"},"variant_id":{"description":"The ID of the associated product variant.","title":"variant_id","type":"string"},"variant_option_values":{"description":"The associated variant's value for the product's options.","example":{"Color":"Red"},"type":"object"},"variant_sku":{"description":"The item's variant SKU.","title":"variant_sku","type":"string"},"variant_title":{"description":"The item's variant title.","title":"variant_title","type":"string"}},"required":["cart","title","id","requires_shipping","is_discountable","is_tax_inclusive","unit_price","quantity","cart_id"],"type":"object","x-schemaName":"StoreCartLineItem"},"StoreCartPromotion":{"description":"The promotion's promotions.","properties":{"application_method":{"description":"The promotion's application method.","properties":{"currency_code":{"description":"The application method's currency code.","title":"currency_code","type":"string"},"type":{"description":"The application method's type.","enum":["fixed","percentage"],"type":"string"},"value":{"description":"The application method's value.","title":"value","type":"string"}},"required":["value","type","currency_code"],"type":"object"},"code":{"description":"The promotion's code.","title":"code","type":"string"},"id":{"description":"The promotion's ID.","title":"id","type":"string"},"is_automatic":{"description":"The promotion's is automatic.","title":"is_automatic","type":"boolean"}},"required":["id"],"type":"object","x-schemaName":"StoreCartPromotion"},"StoreCartRemovePromotion":{"description":"The promotion code to remove from the cart.","properties":{"promo_codes":{"description":"The promotion code to remove from the cart.","items":{"description":"A promotion code to remove from the cart.","title":"promo_codes","type":"string"},"type":"array"}},"required":["promo_codes"],"type":"object","x-schemaName":"StoreCartRemovePromotion"},"StoreCartResponse":{"description":"The cart's details.","properties":{"cart":{"$ref":"#/components/schemas/StoreCart"}},"required":["cart"],"type":"object","x-schemaName":"StoreCartResponse"},"StoreCartShippingMethod":{"description":"A cart's shipping method.","properties":{"adjustments":{"description":"The shipping method's adjustments, such as applied promotions.","items":{"allOf":[{"$ref":"#/components/schemas/BaseShippingMethodAdjustment"},{"description":"The adjustment's details.","properties":{"shipping_method":{"description":"The details of the method that the adjustment belongs to.","title":"shipping_method","type":"object"}},"required":["shipping_method"],"type":"object"}],"description":"The adjustment's details."},"type":"array"},"amount":{"description":"The shipping method's amount.","title":"amount","type":"number"},"cart_id":{"description":"The ID of the cart this shipping method belongs to.","title":"cart_id","type":"string"},"created_at":{"description":"The date the shipping method was created.","format":"date-time","title":"created_at","type":"string"},"data":{"description":"The shipping method's data, useful for fulfillment handling by third-party services.","externalDocs":{"url":"https://docs.medusajs.com/resources/commerce-modules/cart/concepts#data-property"},"type":"object"},"description":{"description":"The shipping method's description.","title":"description","type":"string"},"discount_tax_total":{"description":"The total amount of discounts applied to the shipping method's tax. Represents the tax portion of discounts. This field is only available if you expand the `shipping_methods.*` relation. Learn more in the [Cart Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-shipping-method-totals) guide.","title":"discount_tax_total","type":"number"},"discount_total":{"description":"The total amount of discounts applied to the shipping method, including the tax portion of discounts. This field is only available if you expand the `shipping_methods.*` relation. Learn more in the [Cart Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-shipping-method-totals) guide.","title":"discount_total","type":"number"},"id":{"description":"The shipping method's ID.","title":"id","type":"string"},"is_tax_inclusive":{"description":"Whether the shipping method's amount is tax inclusive.","title":"is_tax_inclusive","type":"boolean"},"metadata":{"description":"The shipping method's metadata, can hold custom key-value pairs.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/store#manage-metadata"},"type":"object"},"name":{"description":"The shipping method's name.","title":"name","type":"string"},"original_subtotal":{"description":"The shipping method's original subtotal before discounts, excluding taxes. This field is only available if you expand the `shipping_methods.*` relation. Learn more in the [Cart Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-shipping-method-totals) guide.","title":"original_subtotal","type":"number"},"original_tax_total":{"description":"The shipping method's original tax total before discounts. This field is only available if you expand the `shipping_methods.*` relation. Learn more in the [Cart Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-shipping-method-totals) guide.","title":"original_tax_total","type":"number"},"original_total":{"description":"The shipping method's original total before discounts, including taxes. This field is only available if you expand the `shipping_methods.*` relation. Learn more in the [Cart Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-shipping-method-totals) guide.","title":"original_total","type":"number"},"shipping_option_id":{"description":"The ID of the shipping option this method was created from.","title":"shipping_option_id","type":"string"},"subtotal":{"description":"The shipping method's subtotal before discounts, excluding taxes. This field is only available if you expand the `shipping_methods.*` relation. Learn more in the [Cart Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-shipping-method-totals) guide.","title":"subtotal","type":"number"},"tax_lines":{"description":"The shipping method's tax lines.","items":{"allOf":[{"$ref":"#/components/schemas/BaseShippingMethodTaxLine"},{"description":"The tax line's details.","properties":{"shipping_method":{"description":"The details of the method that the tax line belongs to.","title":"shipping_method","type":"object"}},"required":["shipping_method"],"type":"object"}],"description":"The tax line's details."},"type":"array"},"tax_total":{"description":"The shipping method's tax total after discounts. This field is only available if you expand the `shipping_methods.*` relation. Learn more in the [Cart Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-shipping-method-totals) guide.","title":"tax_total","type":"number"},"total":{"description":"The shipping method's total after discounts, including taxes. This field is only available if you expand the `shipping_methods.*` relation. Learn more in the [Cart Totals](https://docs.medusajs.com/resources/storefront-development/cart/totals#retrieve-and-show-shipping-method-totals) guide.","title":"total","type":"number"},"updated_at":{"description":"The date the shipping method was updated.","format":"date-time","title":"updated_at","type":"string"}},"required":["id","cart_id","name","amount","is_tax_inclusive","created_at","updated_at"],"type":"object","x-schemaName":"StoreCartShippingMethod"},"StoreCartShippingOption":{"description":"The shipping option's details.","properties":{"amount":{"description":"The shipping option's amount for the cart. For a shipping option whose `price_type` is `calculated`, this amount is computed on the fly by the fulfillment provider against the cart.","title":"amount","type":"number"},"calculated_price":{"$ref":"#/components/schemas/StoreCalculatedPrice"},"data":{"description":"The shipping option's data, useful for the provider handling fulfillment.","externalDocs":{"url":"https://docs.medusajs.com/resources/commerce-modules/fulfillment/shipping-option#data-property"},"type":"object"},"id":{"description":"The shipping option's ID.","title":"id","type":"string"},"insufficient_inventory":{"description":"Whether the shipping option's location doesn't have sufficient quantity for any of the cart's items.","title":"insufficient_inventory","type":"boolean"},"name":{"description":"The shipping option's name.","title":"name","type":"string"},"price_type":{"description":"The shipping option's price type. If it's `flat`, the price is fixed and is set in the `prices` property. If it's `calculated`, the price is calculated on checkout by the associated fulfillment provider.","enum":["flat","calculated"],"type":"string"},"prices":{"description":"The shipping option's prices.","items":{"$ref":"#/components/schemas/StorePrice"},"type":"array"},"provider":{"description":"The fulfillment provider's details.","properties":{"id":{"description":"The provider's ID.","title":"id","type":"string"},"is_enabled":{"description":"Whether the provider is enabled.","title":"is_enabled","type":"boolean"}},"required":["id","is_enabled"],"type":"object"},"provider_id":{"description":"The ID of the fulfillment provider handling this option.","title":"provider_id","type":"string"},"service_zone_id":{"description":"The ID of the service zone the shipping option belongs to.","title":"service_zone_id","type":"string"},"shipping_profile_id":{"description":"The ID of the associated shipping profile.","title":"shipping_profile_id","type":"string"},"type":{"description":"The shipping option type's details.","properties":{"code":{"description":"The type's code.","title":"code","type":"string"},"description":{"description":"The type's description.","title":"description","type":"string"},"id":{"description":"The type's ID.","title":"id","type":"string"},"label":{"description":"The type's label.","title":"label","type":"string"}},"required":["id","label","description","code"],"type":"object"}},"required":["id","name","price_type","service_zone_id","shipping_profile_id","provider_id","data","type","provider","amount","prices","calculated_price","insufficient_inventory"],"type":"object","x-schemaName":"StoreCartShippingOption"},"StoreCollection":{"description":"The collection's details.","properties":{"created_at":{"description":"The date the collection was created.","format":"date-time","title":"created_at","type":"string"},"deleted_at":{"description":"The date the collection was deleted.","format":"date-time","title":"deleted_at","type":"string"},"external_id":{"description":"The collection's external ID used to link it with external systems.","title":"external_id","type":"string"},"handle":{"description":"The collection's handle.","title":"handle","type":"string"},"id":{"description":"The collection's ID.","title":"id","type":"string"},"metadata":{"description":"The collection's metadata, can hold custom key-value pairs.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/store#manage-metadata"},"type":"object"},"products":{"description":"The collection's products.","items":{"type":"object"},"type":"array"},"title":{"description":"The collection's title.","title":"title","type":"string"},"updated_at":{"description":"The date the collection was updated.","format":"date-time","title":"updated_at","type":"string"}},"required":["title","id","metadata","created_at","updated_at","handle","deleted_at"],"type":"object","x-schemaName":"StoreCollection"},"StoreCreateCart":{"description":"The details of the cart to be created.","properties":{"billing_address":{"$ref":"#/components/schemas/StoreCartAddress"},"currency_code":{"description":"The cart's currency code. If not provided, the region's currency is used. This affects prices in the cart, as well.","example":"usd","title":"currency_code","type":"string"},"email":{"description":"The email of the cart's customer.","format":"email","title":"email","type":"string"},"items":{"description":"The cart's items.","items":{"$ref":"#/components/schemas/StoreCartLineItem"},"type":"array"},"metadata":{"description":"The cart's metadata, can hold custom key-value pairs.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/store#manage-metadata"},"type":"object"},"region_id":{"description":"The ID of the cart's region. This affects the prices and currency of the cart.","title":"region_id","type":"string"},"sales_channel_id":{"description":"The ID of the sales channel that cart is created in. If not provided, the store's default sales channel is associated with the cart instead.\n\nA product's availability in a sales channel only filters the products you retrieve. Medusa doesn't reject a variant added to the cart when its product isn't available in the cart's sales channel. Refer to the guide in the external documentation to learn how to enforce that validation.\n","externalDocs":{"url":"https://docs.medusajs.com/resources/commerce-modules/cart/sales-channel-availability"},"title":"sales_channel_id","type":"string"},"shipping_address":{"$ref":"#/components/schemas/StoreCartAddress"}},"type":"object","x-schemaName":"StoreCreateCart"},"StoreCreateCustomer":{"description":"The details of the customer to create.","properties":{"company_name":{"description":"The customer's company name.","title":"company_name","type":"string"},"email":{"description":"The customer's email.","format":"email","title":"email","type":"string"},"first_name":{"description":"The customer's first name.","title":"first_name","type":"string"},"last_name":{"description":"The customer's last name.","title":"last_name","type":"string"},"metadata":{"description":"The customer's metadata, can hold custom key-value pairs.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/store#manage-metadata"},"type":"object"},"phone":{"description":"The customer's phone.","title":"phone","type":"string"}},"type":"object","x-schemaName":"StoreCreateCustomer"},"StoreCreateCustomerAddress":{"description":"The address's details.","properties":{"address_1":{"description":"The address's first line.","title":"address_1","type":"string"},"address_2":{"description":"The address's second line.","title":"address_2","type":"string"},"address_name":{"description":"The address's name.","title":"address_name","type":"string"},"city":{"description":"The address's city.","title":"city","type":"string"},"company":{"description":"The address's company.","title":"company","type":"string"},"country_code":{"description":"The address's country code.","title":"country_code","type":"string"},"first_name":{"description":"The customer's first name.","title":"first_name","type":"string"},"is_default_billing":{"description":"Whether the address is used by default for billing during checkout.","title":"is_default_billing","type":"boolean"},"is_default_shipping":{"description":"Whether the address is used by default for shipping during checkout.","title":"is_default_shipping","type":"boolean"},"last_name":{"description":"The customer's last name.","title":"last_name","type":"string"},"metadata":{"description":"Holds custom key-value pairs.","type":"object"},"phone":{"description":"The customer's phone.","title":"phone","type":"string"},"postal_code":{"description":"The address's postal code.","title":"postal_code","type":"string"},"province":{"description":"The address's ISO 3166-2 province code. Must be lower-case.","example":"us-ca","externalDocs":{"description":"Learn more about ISO 3166-2","url":"https://en.wikipedia.org/wiki/ISO_3166-2"},"title":"province","type":"string"}},"type":"object","x-schemaName":"StoreCreateCustomerAddress"},"StoreCreatePaymentCollection":{"description":"The details of the payment collection to create.","properties":{"cart_id":{"description":"The ID of the cart this payment collection is for.","title":"cart_id","type":"string"}},"required":["cart_id"],"type":"object","x-schemaName":"StoreCreatePaymentCollection"},"StoreCustomer":{"description":"The customer's details.","properties":{"addresses":{"description":"The customer's addresses.","items":{"$ref":"#/components/schemas/StoreCustomerAddress"},"type":"array"},"company_name":{"description":"The customer's company name.","title":"company_name","type":"string"},"created_at":{"description":"The date the customer was created.","format":"date-time","title":"created_at","type":"string"},"default_billing_address_id":{"description":"The ID of the address used for billing by default.","title":"default_billing_address_id","type":"string"},"default_shipping_address_id":{"description":"The ID of the address used for shipping by default.","title":"default_shipping_address_id","type":"string"},"deleted_at":{"description":"The date the customer was deleted.","format":"date-time","title":"deleted_at","type":"string"},"email":{"description":"The customer's email.","format":"email","title":"email","type":"string"},"first_name":{"description":"The customer's first name.","title":"first_name","type":"string"},"id":{"description":"The customer's ID.","title":"id","type":"string"},"last_name":{"description":"The customer's last name.","title":"last_name","type":"string"},"metadata":{"description":"The customer's metadata, can hold custom key-value pairs.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/store#manage-metadata"},"type":"object"},"phone":{"description":"The customer's phone.","title":"phone","type":"string"},"updated_at":{"description":"The date the customer was updated.","format":"date-time","title":"updated_at","type":"string"}},"required":["addresses","id","email","company_name","first_name","last_name","default_billing_address_id","default_shipping_address_id"],"type":"object","x-schemaName":"StoreCustomer"},"StoreCustomerAddress":{"description":"The customer address's details","properties":{"address_1":{"description":"The address's first line.","title":"address_1","type":"string"},"address_2":{"description":"The address's second line.","title":"address_2","type":"string"},"address_name":{"description":"The address's name.","title":"address_name","type":"string"},"city":{"description":"The address's city.","title":"city","type":"string"},"company":{"description":"The address's company.","title":"company","type":"string"},"country_code":{"description":"The address's country code.","example":"usd","title":"country_code","type":"string"},"created_at":{"description":"The date the address was created.","format":"date-time","title":"created_at","type":"string"},"customer_id":{"description":"The ID of the customer the address belongs to.","title":"customer_id","type":"string"},"first_name":{"description":"The address's first name.","title":"first_name","type":"string"},"id":{"description":"The address's ID.","title":"id","type":"string"},"is_default_billing":{"description":"Whether the address is used for billing by default.","title":"is_default_billing","type":"boolean"},"is_default_shipping":{"description":"Whether the address is used for shipping by default.","title":"is_default_shipping","type":"boolean"},"last_name":{"description":"The address's last name.","title":"last_name","type":"string"},"metadata":{"description":"The address's metadata, can hold custom key-value pairs.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/store#manage-metadata"},"type":"object"},"phone":{"description":"The address's phone.","title":"phone","type":"string"},"postal_code":{"description":"The address's postal code.","title":"postal_code","type":"string"},"province":{"description":"The address's lower-case ISO 3166-2 province code.","example":"us-ca","externalDocs":{"description":"Learn more about ISO 3166-2","url":"https://en.wikipedia.org/wiki/ISO_3166-2"},"title":"province","type":"string"},"updated_at":{"description":"The date the address was updated.","format":"date-time","title":"updated_at","type":"string"}},"required":["id","address_name","is_default_shipping","is_default_billing","customer_id","company","first_name","last_name","address_1","address_2","city","country_code","province","postal_code","phone","metadata","created_at","updated_at"],"type":"object","x-schemaName":"StoreCustomerAddress"},"StoreCustomerAddressListResponse":{"description":"The paginated list of customer addresses.","properties":{"addresses":{"description":"The list of addresses.","items":{"$ref":"#/components/schemas/StoreCustomerAddress"},"type":"array"},"count":{"description":"The total number of items.","title":"count","type":"number"},"estimate_count":{"deprecated":true,"description":"The estimated count retrieved from the PostgreSQL query planner, which may be inaccurate.","title":"estimate_count","type":"number","x-featureFlag":"index_engine"},"limit":{"description":"The maximum number of items returned.","title":"limit","type":"number"},"offset":{"description":"The number of items skipped before retrieving the returned items.","title":"offset","type":"number"}},"required":["limit","offset","count","addresses"],"type":"object","x-schemaName":"StoreCustomerAddressListResponse"},"StoreCustomerResponse":{"description":"The customer's details.","properties":{"customer":{"$ref":"#/components/schemas/StoreCustomer"}},"required":["customer"],"type":"object","x-schemaName":"StoreCustomerResponse"},"StoreFulfillmentAddress":{"description":"The location's address details.","properties":{"address_1":{"description":"The first line of the address.","title":"address_1","type":"string"},"address_2":{"description":"The second line of the address.","title":"address_2","type":"string"},"city":{"description":"The address's city.","title":"city","type":"string"},"company":{"description":"The address's company.","title":"company","type":"string"},"country_code":{"description":"The address's country code.","example":"us","title":"country_code","type":"string"},"created_at":{"description":"The date the address was created.","format":"date-time","title":"created_at","type":"string"},"deleted_at":{"description":"The date the address was deleted.","format":"date-time","title":"deleted_at","type":"string"},"id":{"description":"The address's ID.","title":"id","type":"string"},"metadata":{"description":"The address's metadata. Can hold custom key-value pairs.","type":"object"},"phone":{"description":"The address's phone.","title":"phone","type":"string"},"postal_code":{"description":"The address's postal code.","title":"postal_code","type":"string"},"province":{"description":"The address's province.","title":"province","type":"string"},"updated_at":{"description":"The date the address was updated.","format":"date-time","title":"updated_at","type":"string"}},"required":["id","company","address_1","address_2","city","country_code","province","postal_code","phone","metadata","created_at","updated_at","deleted_at"],"type":"object","x-schemaName":"StoreFulfillmentAddress"},"StoreInitializePaymentSession":{"description":"The payment session's details.","properties":{"data":{"description":"Any data necessary for the payment provider to process the payment.","externalDocs":{"description":"Learn more about the payment session's data property","url":"https://docs.medusajs.com/resources/commerce-modules/payment/payment-session#data-property"},"type":"object"},"provider_id":{"description":"The ID of the payment provider the customer chose.","example":"pp_stripe_stripe","title":"provider_id","type":"string"}},"required":["provider_id"],"type":"object","x-schemaName":"StoreInitializePaymentSession"},"StoreOrder":{"description":"The order's details.","properties":{"billing_address":{"$ref":"#/components/schemas/StoreOrderAddress"},"created_at":{"description":"The date the order was created.","format":"date-time","title":"created_at","type":"string"},"credit_line_total":{"description":"The total amount of credit lines applied to the order, including taxes. Subtracted from the final total.","title":"credit_line_total","type":"number"},"currency_code":{"description":"The order's currency code.","example":"usd","title":"currency_code","type":"string"},"custom_display_id":{"description":"The custom display ID of the order.","externalDocs":{"url":"https://docs.medusajs.com/resources/commerce-modules/order/custom-display-id"},"title":"custom_display_id","type":"string"},"customer":{"$ref":"#/components/schemas/StoreCustomer"},"customer_id":{"description":"The ID of the customer that placed the order.","title":"customer_id","type":"string"},"discount_tax_total":{"description":"The total amount of discounts applied to the order's tax. Represents the tax portion of discounts.","title":"discount_tax_total","type":"number"},"discount_total":{"description":"The total amount of discounts applied to the order, including the tax portion of discounts.","title":"discount_total","type":"number"},"display_id":{"description":"The order's display ID.","title":"display_id","type":"number"},"email":{"description":"The email of the customer that placed the order.","format":"email","title":"email","type":"string"},"fulfillment_status":{"description":"The order's fulfillment status.","enum":["canceled","not_fulfilled","partially_fulfilled","fulfilled","partially_shipped","shipped","partially_delivered","delivered"],"type":"string"},"fulfillments":{"description":"The order's fulfillments.","items":{"$ref":"#/components/schemas/StoreOrderFulfillment"},"type":"array"},"gift_card_tax_total":{"description":"The total taxes applied on the gift card's amount.","title":"gift_card_tax_total","type":"number"},"gift_card_total":{"description":"The order's gift card total.","title":"gift_card_total","type":"number"},"id":{"description":"The order's ID.","title":"id","type":"string"},"item_discount_total":{"description":"The sum of all discounts applied to line items, including the tax portion of discounts.","title":"item_discount_total","type":"number"},"item_subtotal":{"description":"The sum of all line items' subtotals before discounts, excluding taxes.","title":"item_subtotal","type":"number"},"item_tax_total":{"description":"The sum of all line items' tax totals after discounts.","title":"item_tax_total","type":"number"},"item_total":{"description":"The sum of all line items' totals after discounts, including taxes.","title":"item_total","type":"number"},"items":{"description":"The order's items.","items":{"$ref":"#/components/schemas/StoreOrderLineItem"},"type":"array"},"metadata":{"description":"The order's metadata, can hold custom key-value pairs.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/store#manage-metadata"},"type":"object"},"original_item_subtotal":{"description":"The sum of all line items' original subtotals before discounts, excluding taxes.","title":"original_item_subtotal","type":"number"},"original_item_tax_total":{"description":"The sum of all line items' original tax totals before discounts.","title":"original_item_tax_total","type":"number"},"original_item_total":{"description":"The sum of all line items' original totals before discounts, including taxes.","title":"original_item_total","type":"number"},"original_shipping_subtotal":{"description":"The sum of all shipping methods' original subtotals before discounts, excluding taxes.","title":"original_shipping_subtotal","type":"number"},"original_shipping_tax_total":{"description":"The sum of all shipping methods' original tax totals before discounts.","title":"original_shipping_tax_total","type":"number"},"original_shipping_total":{"description":"The sum of all shipping methods' original totals before discounts, including taxes.","title":"original_shipping_total","type":"number"},"original_subtotal":{"description":"The order's subtotal before discounts, excluding taxes. Calculated as the sum of `original_item_subtotal` and `original_shipping_subtotal`.","title":"original_subtotal","type":"number"},"original_tax_total":{"description":"The order's tax total before discounts. Calculated as the sum of `original_item_tax_total` and `original_shipping_tax_total`.","title":"original_tax_total","type":"number"},"original_total":{"description":"The order's total before discounts, including taxes. Calculated as the sum of `original_item_total` and `original_shipping_total`.","title":"original_total","type":"number"},"payment_collections":{"description":"The order's payment collections.","items":{"$ref":"#/components/schemas/StorePaymentCollection"},"type":"array"},"payment_status":{"description":"The order's payment status.","enum":["canceled","not_paid","awaiting","authorized","partially_authorized","captured","partially_captured","partially_refunded","refunded","requires_action"],"type":"string"},"region_id":{"description":"The ID of the associated region.","title":"region_id","type":"string"},"sales_channel_id":{"description":"The ID of the sales channel the order was placed in.","title":"sales_channel_id","type":"string"},"shipping_address":{"$ref":"#/components/schemas/StoreOrderAddress"},"shipping_discount_total":{"description":"The sum of all discounts applied to shipping methods, including the tax portion of discounts.","title":"shipping_discount_total","type":"number"},"shipping_methods":{"description":"The order's shipping methods.","items":{"$ref":"#/components/schemas/StoreOrderShippingMethod"},"type":"array"},"shipping_subtotal":{"description":"The sum of all shipping methods' subtotals before discounts, excluding taxes.","title":"shipping_subtotal","type":"number"},"shipping_tax_total":{"description":"The sum of all shipping methods' tax totals after discounts.","title":"shipping_tax_total","type":"number"},"shipping_total":{"description":"The sum of all shipping methods' totals after discounts, including taxes.","title":"shipping_total","type":"number"},"status":{"description":"The order's status.","title":"status","type":"string"},"subtotal":{"description":"The order's subtotal before discounts, excluding taxes. Calculated as the sum of `item_subtotal` and `shipping_subtotal`.","title":"subtotal","type":"number"},"summary":{"$ref":"#/components/schemas/BaseOrderSummary"},"tax_total":{"description":"The order's tax total after discounts. Calculated as the sum of `item_tax_total` and `shipping_tax_total`.","title":"tax_total","type":"number"},"total":{"description":"The order's final total after discounts and credit lines, including taxes.","title":"total","type":"number"},"transactions":{"description":"The order's transactions.","items":{"$ref":"#/components/schemas/BaseOrderTransaction"},"type":"array"},"updated_at":{"description":"The date the order was updated.","format":"date-time","title":"updated_at","type":"string"}},"required":["items","shipping_methods","id","region_id","customer_id","sales_channel_id","email","currency_code","status","payment_status","fulfillment_status","summary","created_at","updated_at","original_item_total","original_item_subtotal","original_item_tax_total","item_total","item_subtotal","item_tax_total","item_discount_total","original_total","original_subtotal","original_tax_total","total","subtotal","tax_total","discount_total","discount_tax_total","gift_card_total","gift_card_tax_total","shipping_total","shipping_subtotal","shipping_tax_total","shipping_discount_total","original_shipping_total","original_shipping_subtotal","original_shipping_tax_total","credit_line_total"],"type":"object","x-schemaName":"StoreOrder"},"StoreOrderAddress":{"description":"An order address","properties":{"address_1":{"description":"The address's first line.","title":"address_1","type":"string"},"address_2":{"description":"The address's second line.","title":"address_2","type":"string"},"city":{"description":"The address's city.","title":"city","type":"string"},"company":{"description":"The address's company.","title":"company","type":"string"},"country":{"$ref":"#/components/schemas/StoreRegionCountry"},"country_code":{"description":"The address's country code.","example":"us","title":"country_code","type":"string"},"created_at":{"description":"The date the address was created.","format":"date-time","title":"created_at","type":"string"},"customer_id":{"description":"The ID of the customer this address belongs to.","title":"customer_id","type":"string"},"first_name":{"description":"The address's first name.","title":"first_name","type":"string"},"id":{"description":"The address's ID.","title":"id","type":"string"},"last_name":{"description":"The address's last name.","title":"last_name","type":"string"},"metadata":{"description":"The address's metadata, can hold custom key-value pairs.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/store#manage-metadata"},"type":"object"},"phone":{"description":"The address's phone.","title":"phone","type":"string"},"postal_code":{"description":"The address's postal code.","title":"postal_code","type":"string"},"province":{"description":"The address's lower-case ISO 3166-2 province code.","example":"us-ca","externalDocs":{"description":"Learn more about ISO 3166-2","url":"https://en.wikipedia.org/wiki/ISO_3166-2"},"title":"province","type":"string"},"updated_at":{"description":"The date the address was updated.","format":"date-time","title":"updated_at","type":"string"}},"required":["id","metadata","created_at","updated_at"],"type":"object","x-schemaName":"StoreOrderAddress"},"StoreOrderFulfillment":{"description":"The fulfillment's details.","properties":{"canceled_at":{"description":"The date the items were canceled.","format":"date-time","title":"canceled_at","type":"string"},"created_at":{"description":"The date the fulfillment was created.","format":"date-time","title":"created_at","type":"string"},"created_by":{"description":"The ID of the user that created the fulfillment.","title":"created_by","type":"string"},"data":{"description":"Data useful for the fulfillment provider handling it. This is taken from the associated shipping option.","externalDocs":{"url":"https://docs.medusajs.com/resources/commerce-modules/fulfillment/shipping-option#data-property"},"type":"object"},"delivered_at":{"description":"The date the items were delivered.","format":"date-time","title":"delivered_at","type":"string"},"id":{"description":"The fulfillment's ID.","title":"id","type":"string"},"location_id":{"description":"The ID of the location the items are fulfilled from.","title":"location_id","type":"string"},"marked_shipped_by":{"description":"The ID of the user that marked the fulfillment as shipped.","title":"marked_shipped_by","type":"string"},"metadata":{"description":"The fulfillment's metadata, can hold custom key-value pairs.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/store#manage-metadata"},"type":"object"},"packed_at":{"description":"The date the items were packed.","format":"date-time","title":"packed_at","type":"string"},"provider_id":{"description":"The ID of the fulfillment provider used to handle the fulfillment.","title":"provider_id","type":"string"},"requires_shipping":{"description":"The fulfillment's requires shipping.","title":"requires_shipping","type":"boolean"},"shipped_at":{"description":"The date the items were shipped.","format":"date-time","title":"shipped_at","type":"string"},"shipping_option_id":{"description":"The ID of the associated shipping option.","title":"shipping_option_id","type":"string"},"updated_at":{"description":"The date the fulfillment was updated.","format":"date-time","title":"updated_at","type":"string"}},"required":["id","location_id","packed_at","shipped_at","delivered_at","canceled_at","requires_shipping","data","provider_id","shipping_option_id","metadata","created_at","created_by","marked_shipped_by","updated_at"],"type":"object","x-schemaName":"StoreOrderFulfillment"},"StoreOrderLineItem":{"description":"The item's details.","properties":{"adjustments":{"description":"The item's adjustments.","items":{"allOf":[{"$ref":"#/components/schemas/BaseOrderLineItemAdjustment"},{"description":"The adjustment's adjustments.","properties":{"item":{"type":"object"}},"required":["item"],"type":"object"}]},"type":"array"},"compare_at_unit_price":{"description":"The item's compare at unit price.","title":"The original price of the item before a promotion or sale.","type":"number"},"created_at":{"description":"The date the item was created.","format":"date-time","title":"created_at","type":"string"},"detail":{"allOf":[{"$ref":"#/components/schemas/BaseOrderItemDetail"},{"description":"The item's detail.","properties":{"item":{"type":"object"}},"required":["item"],"type":"object"}]},"discount_tax_total":{"description":"The total taxes applied on the discounted amount.","title":"discount_tax_total","type":"number"},"discount_total":{"description":"The total discount amount of the item.","title":"discount_total","type":"number"},"id":{"description":"The item's ID.","title":"id","type":"string"},"is_discountable":{"description":"Whether the associated variant is discountable.","title":"is_discountable","type":"boolean"},"is_tax_inclusive":{"description":"Whether the associated variant's price includes taxes.","title":"is_tax_inclusive","type":"boolean"},"item_subtotal":{"description":"The item's total excluding taxes, including promotions.","title":"item_subtotal","type":"number"},"item_tax_total":{"description":"The total taxes of the item, including promotions.","title":"item_tax_total","type":"number"},"item_total":{"description":"The total taxes of the item, including promotions.","title":"item_total","type":"number"},"metadata":{"description":"Custom key-value pairs of the item.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/store#manage-metadata"},"type":"object"},"original_subtotal":{"description":"The item's total excluding taxes, including promotions.","title":"original_subtotal","type":"number"},"original_tax_total":{"description":"The total taxes of the item, excluding promotions.","title":"original_tax_total","type":"number"},"original_total":{"description":"The item's total including taxes, excluding promotions.","title":"original_total","type":"number"},"product":{"$ref":"#/components/schemas/StoreProduct"},"product_collection":{"description":"The ID of the associated product's collection.","title":"product_collection","type":"string"},"product_description":{"description":"The description of the associated product.","title":"product_description","type":"string"},"product_handle":{"description":"The handle of the associated product.","title":"product_handle","type":"string"},"product_id":{"description":"The ID of the associated product.","title":"product_id","type":"string"},"product_subtitle":{"description":"The subtitle of the associated product.","title":"product_subtitle","type":"string"},"product_title":{"description":"The title of the associated product.","title":"product_title","type":"string"},"product_type":{"description":"The type of the associated product.","title":"product_type","type":"string"},"product_type_id":{"description":"The ID of the associated product's type.","title":"product_type_id","type":"string"},"quantity":{"description":"The item's quantity.","title":"quantity","type":"number"},"refundable_total":{"description":"The total refundable amount of the item's total.","title":"refundable_total","type":"number"},"refundable_total_per_unit":{"description":"The total refundable amount of the item's total for a single quantity.","title":"refundable_total_per_unit","type":"number"},"requires_shipping":{"description":"Whether the associated variant requires shipping.","title":"requires_shipping","type":"boolean"},"subtitle":{"description":"The item's subtitle.","title":"subtitle","type":"string"},"subtotal":{"description":"The item's subtotal excluding taxes, including promotions.","title":"subtotal","type":"number"},"tax_lines":{"description":"The item's tax lines.","items":{"allOf":[{"$ref":"#/components/schemas/BaseOrderLineItemTaxLine"},{"description":"The tax line's tax lines.","properties":{"item":{"type":"object"}},"required":["item"],"type":"object"}]},"type":"array"},"tax_total":{"description":"The tax total of the item including promotions.","title":"tax_total","type":"number"},"thumbnail":{"description":"The item's thumbnail.","title":"thumbnail","type":"string"},"title":{"description":"The item's title.","title":"title","type":"string"},"total":{"description":"The item's total, including taxes and promotions.","title":"total","type":"number"},"unit_price":{"description":"The price of a single quantity of the item.","title":"unit_price","type":"number"},"updated_at":{"description":"The date the item was updated.","format":"date-time","title":"updated_at","type":"string"},"variant":{"$ref":"#/components/schemas/StoreProductVariant"},"variant_barcode":{"description":"The barcode of the associated variant.","title":"variant_barcode","type":"string"},"variant_id":{"description":"The ID of the associated variant.","title":"variant_id","type":"string"},"variant_option_values":{"description":"The option values of the associated variant, where the key is the option name and the value is the option value.","type":"object"},"variant_sku":{"description":"The SKU of the associated variant.","title":"variant_sku","type":"string"},"variant_title":{"description":"The title of the associated variant.","title":"variant_title","type":"string"}},"required":["detail","title","id","metadata","created_at","updated_at","item_total","item_subtotal","item_tax_total","original_total","original_subtotal","original_tax_total","total","subtotal","tax_total","discount_total","discount_tax_total","subtitle","thumbnail","variant_id","product_id","product_title","product_description","product_subtitle","product_type_id","product_type","product_collection","product_handle","variant_sku","variant_barcode","variant_title","variant_option_values","requires_shipping","is_discountable","is_tax_inclusive","unit_price","quantity","refundable_total","refundable_total_per_unit"],"type":"object","x-schemaName":"StoreOrderLineItem"},"StoreOrderResponse":{"description":"The order's details.","properties":{"order":{"$ref":"#/components/schemas/StoreOrder"}},"required":["order"],"type":"object","x-schemaName":"StoreOrderResponse"},"StoreOrderShippingMethod":{"description":"The shipping method's details.","properties":{"adjustments":{"description":"The shipping method's adjustments.","items":{"allOf":[{"$ref":"#/components/schemas/BaseOrderShippingMethodAdjustment"},{"description":"The adjustment's details.","properties":{"shipping_method":{"type":"object"}},"required":["shipping_method"],"type":"object"}]},"type":"array"},"amount":{"description":"The shipping method's amount.","title":"amount","type":"number"},"created_at":{"description":"The date the shipping method was created.","format":"date-time","title":"created_at","type":"string"},"data":{"description":"The shipping method's data, useful for fulfillment provider handling its fulfillment.","externalDocs":{"url":"https://docs.medusajs.com/resources/commerce-modules/fulfillment/shipping-option#data-property"},"type":"object"},"description":{"description":"The shipping method's description.","title":"description","type":"string"},"detail":{"allOf":[{"$ref":"#/components/schemas/BaseOrderShippingDetail"},{"description":"The shipping method's detail.","properties":{"shipping_method":{"type":"object"}},"required":["shipping_method"],"type":"object"}]},"discount_tax_total":{"description":"The taxes applied on the discount amount.","title":"discount_tax_total","type":"number"},"discount_total":{"description":"The total discounts applied on the shipping method.","title":"discount_total","type":"number"},"id":{"description":"The shipping method's ID.","title":"id","type":"string"},"is_tax_inclusive":{"description":"Whether the shipping method's amount includes applied taxes.","title":"is_tax_inclusive","type":"boolean"},"metadata":{"description":"The shipping method's metadata, can hold custom key-value pairs.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/store#manage-metadata"},"type":"object"},"name":{"description":"The shipping method's name.","title":"name","type":"string"},"order_id":{"description":"The ID of the order the shipping method belongs to.","title":"order_id","type":"string"},"original_subtotal":{"description":"The shipping method's total excluding taxes, including promotions.","title":"original_subtotal","type":"number"},"original_tax_total":{"description":"The shipping method's total taxes excluding promotions.","title":"original_tax_total","type":"number"},"original_total":{"description":"The shipping method's total including taxes, excluding promotions.","title":"original_total","type":"number"},"shipping_option_id":{"description":"The ID of the shipping option this method was created from.","title":"shipping_option_id","type":"string"},"subtotal":{"description":"The shipping method's total excluding taxes, including promotions.","title":"subtotal","type":"number"},"tax_lines":{"description":"The shipping method's tax lines.","items":{"allOf":[{"$ref":"#/components/schemas/BaseOrderShippingMethodTaxLine"},{"description":"The tax line's details.","properties":{"shipping_method":{"type":"object"}},"required":["shipping_method"],"type":"object"}]},"type":"array"},"tax_total":{"description":"The shipping method's tax total including promotions.","title":"tax_total","type":"number"},"total":{"description":"The shipping method's total including taxes and promotions.","title":"total","type":"number"},"updated_at":{"description":"The date the shipping method was updated.","format":"date-time","title":"updated_at","type":"string"}},"required":["id","order_id","name","amount","is_tax_inclusive","shipping_option_id","data","metadata","original_total","original_subtotal","original_tax_total","total","subtotal","tax_total","discount_total","discount_tax_total","created_at","updated_at"],"type":"object","x-schemaName":"StoreOrderShippingMethod"},"StorePaymentCollection":{"description":"The payment collection's details.","properties":{"amount":{"description":"The total amount to be paid.","title":"amount","type":"number"},"authorized_amount":{"description":"The total authorized amount of the collection's payments.","title":"authorized_amount","type":"number"},"captured_amount":{"description":"The total captured amount of the collection's payments.","title":"captured_amount","type":"number"},"completed_at":{"description":"The date the payment collection was completed.","format":"date-time","title":"completed_at","type":"string"},"created_at":{"description":"The date the payment collection was created.","format":"date-time","title":"created_at","type":"string"},"currency_code":{"description":"The payment collection's currency code.","title":"currency_code","type":"string"},"id":{"description":"The payment collection's ID.","title":"id","type":"string"},"metadata":{"description":"The payment collection's metadata, can hold custom key-value pairs.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/store#manage-metadata"},"type":"object"},"payment_providers":{"description":"The payment provider used to process the collection's payments and sessions.","items":{"$ref":"#/components/schemas/StorePaymentProvider"},"type":"array"},"payment_sessions":{"description":"The payment collection's payment sessions.","items":{"$ref":"#/components/schemas/StorePaymentSession"},"type":"array"},"payments":{"description":"The payment collection's payments.","items":{"$ref":"#/components/schemas/BasePayment"},"type":"array"},"refunded_amount":{"description":"The total refunded amount of the collection's payments.","title":"refunded_amount","type":"number"},"status":{"description":"The payment collection's status.","enum":["canceled","not_paid","awaiting","authorized","partially_authorized"],"type":"string"},"updated_at":{"description":"The date the payment collection was updated.","format":"date-time","title":"updated_at","type":"string"}},"required":["payment_providers","id","currency_code","amount","status"],"type":"object","x-schemaName":"StorePaymentCollection"},"StorePaymentCollectionResponse":{"description":"The payment collection's details.","properties":{"payment_collection":{"$ref":"#/components/schemas/StorePaymentCollection"}},"required":["payment_collection"],"type":"object","x-schemaName":"StorePaymentCollectionResponse"},"StorePaymentProvider":{"description":"The payment provider's details","properties":{"id":{"description":"The payment provider's ID.","title":"id","type":"string"}},"required":["id"],"type":"object","x-schemaName":"StorePaymentProvider"},"StorePaymentSession":{"description":"The payment session's details.","properties":{"amount":{"description":"The payment session's amount.","title":"amount","type":"number"},"authorized_at":{"description":"The date the payment session was authorized.","format":"date-time","title":"authorized_at","type":"string"},"context":{"description":"The context around the payment, such as the customer's details.","example":{"customer":{"id":"cus_123"}},"type":"object"},"currency_code":{"description":"The payment session's currency code.","example":"usd","title":"currency_code","type":"string"},"data":{"description":"The payment session's data, useful for the payment provider processing the payment.","externalDocs":{"url":"https://docs.medusajs.com/resources/commerce-modules/payment/payment-session#data-property"},"type":"object"},"id":{"description":"The payment session's ID.","title":"id","type":"string"},"payment":{"$ref":"#/components/schemas/BasePayment"},"payment_collection":{"type":"object"},"provider_id":{"description":"The ID of the payment provider processing this session.","title":"provider_id","type":"string"},"status":{"description":"The payment session's status.","enum":["authorized","captured","canceled","pending","requires_more","error"],"type":"string"}},"required":["id","amount","currency_code","provider_id","data","status"],"type":"object","x-schemaName":"StorePaymentSession"},"StorePrice":{"description":"The price's details.","properties":{"amount":{"description":"The price's amount.","title":"amount","type":"number"},"currency_code":{"description":"The price's ISO 2 currency code.","example":"usd","title":"currency_code","type":"string"},"id":{"description":"The price's ID.","title":"id","type":"string"},"max_quantity":{"description":"The maximum quantity required in the cart for the price to apply.","title":"max_quantity","type":"number"},"min_quantity":{"description":"The minimum quantity required in the cart for the price to apply.","title":"min_quantity","type":"number"},"price_rules":{"description":"The price's rules.","items":{"$ref":"#/components/schemas/StorePriceRule"},"type":"array"}},"required":["id","currency_code","amount","min_quantity","max_quantity"],"type":"object","x-schemaName":"StorePrice"},"StorePriceRule":{"description":"The price rule's details.","properties":{"attribute":{"description":"The price rule's attribute.","title":"attribute","type":"string"},"id":{"description":"The price rule's ID.","title":"id","type":"string"},"operator":{"description":"The price rule's operator.","enum":["gt","lt","eq","lte","gte"],"type":"string"},"value":{"description":"The price rule's value.","title":"value","type":"string"}},"required":["id","attribute","operator","value"],"type":"object","x-schemaName":"StorePriceRule"},"StoreProduct":{"description":"The product's details.","properties":{"categories":{"description":"The product's categories.","items":{"type":"object"},"type":"array"},"collection":{"$ref":"#/components/schemas/StoreCollection"},"collection_id":{"description":"The ID of the collection that the product belongs to.","title":"collection_id","type":"string"},"created_at":{"description":"The date the product was created.","format":"date-time","title":"created_at","type":"string"},"deleted_at":{"description":"The date the product was deleted.","format":"date-time","title":"deleted_at","type":"string"},"description":{"description":"The product's description.","title":"description","type":"string"},"discountable":{"description":"Whether the product can be discounted.","title":"discountable","type":"boolean"},"external_id":{"description":"The ID of the product in an external service or system.","title":"external_id","type":"string"},"handle":{"description":"The product's handle.","title":"handle","type":"string"},"height":{"description":"The product's height.","title":"height","type":"number"},"hs_code":{"description":"The product's HS code.","title":"hs_code","type":"string"},"id":{"description":"The product's ID.","title":"id","type":"string"},"images":{"description":"The product's images.","items":{"$ref":"#/components/schemas/StoreProductImage"},"type":"array"},"is_giftcard":{"description":"Whether the product is a gift card.","title":"is_giftcard","type":"boolean"},"length":{"description":"The product's length.","title":"length","type":"number"},"material":{"description":"The product's material.","title":"material","type":"string"},"metadata":{"description":"The product's metadata, can hold custom key-value pairs.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/store#manage-metadata"},"type":"object"},"mid_code":{"description":"The product's MID code.","title":"mid_code","type":"string"},"options":{"description":"The product's options.","items":{"$ref":"#/components/schemas/StoreProductOption"},"type":"array"},"origin_country":{"description":"The product's origin country.","title":"origin_country","type":"string"},"status":{"description":"The product's status.","enum":["draft","proposed","published","rejected"],"type":"string"},"subtitle":{"description":"The product's subtitle.","title":"subtitle","type":"string"},"tags":{"description":"The product's tags.","items":{"$ref":"#/components/schemas/StoreProductTag"},"type":"array"},"thumbnail":{"description":"The product's thumbnail URL.","title":"thumbnail","type":"string"},"title":{"description":"The product's title.","title":"title","type":"string"},"type":{"$ref":"#/components/schemas/StoreProductType"},"type_id":{"description":"The ID of the product's type.","title":"type_id","type":"string"},"updated_at":{"description":"The date the product was updated.","format":"date-time","title":"updated_at","type":"string"},"variants":{"description":"The product's variants.","items":{"$ref":"#/components/schemas/StoreProductVariant"},"type":"array"},"weight":{"description":"The product's weight.","title":"weight","type":"number"},"width":{"description":"The product's width.","title":"width","type":"number"}},"required":["variants","options","images","length","title","status","description","id","created_at","updated_at","subtitle","thumbnail","handle","is_giftcard","width","weight","height","origin_country","hs_code","mid_code","material","collection_id","type_id","discountable","external_id","deleted_at"],"type":"object","x-schemaName":"StoreProduct"},"StoreProductImage":{"description":"The image's details.","properties":{"created_at":{"description":"The date the image was created.","format":"date-time","title":"created_at","type":"string"},"deleted_at":{"description":"The date the image was deleted.","format":"date-time","title":"deleted_at","type":"string"},"id":{"description":"The image's ID.","title":"id","type":"string"},"metadata":{"description":"The image's metadata, can hold custom key-value pairs.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/store#manage-metadata"},"type":"object"},"rank":{"description":"The image's rank among its sibling images","title":"rank","type":"number"},"updated_at":{"description":"The date the image was updated.","format":"date-time","title":"updated_at","type":"string"},"url":{"description":"The image's URL.","title":"url","type":"string"}},"required":["id","url","rank"],"type":"object","x-schemaName":"StoreProductImage"},"StoreProductListResponse":{"allOf":[{"description":"Pagination details","properties":{"count":{"description":"The total count of items.","title":"count","type":"number"},"estimate_count":{"description":"The estimated count retrieved from the PostgreSQL query planner, which may be inaccurate.","title":"estimate_count","type":"number","x-featureFlag":"index_engine"},"limit":{"description":"The maximum number of items returned.","title":"limit","type":"number"},"offset":{"description":"The number of items skipped before retrieving the returned items.","title":"offset","type":"number"}},"required":["limit","offset","count"],"type":"object"},{"description":"The list of products.","properties":{"products":{"description":"The list of products.","items":{"$ref":"#/components/schemas/StoreProduct"},"type":"array"}},"required":["products"],"type":"object"}],"description":"The paginated list of products.","type":"object","x-schemaName":"StoreProductListResponse"},"StoreProductOption":{"description":"The product option's details.","properties":{"created_at":{"description":"The date the product option was created.","format":"date-time","title":"created_at","type":"string"},"deleted_at":{"description":"The date the product option was deleted.","format":"date-time","title":"deleted_at","type":"string"},"id":{"description":"The option's ID.","title":"id","type":"string"},"is_exclusive":{"description":"Whether the option is exclusive to a product.","title":"is_exclusive","type":"boolean"},"metadata":{"description":"The option's metadata, can hold custom key-value pairs.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/store#manage-metadata"},"type":"object"},"product":{"type":"object"},"products":{"description":"The products that use the option.","items":{"$ref":"#/components/schemas/BaseProduct"},"type":"array"},"title":{"description":"The option's title.","title":"title","type":"string"},"updated_at":{"description":"The date the product option was updated.","format":"date-time","title":"updated_at","type":"string"},"values":{"description":"The option's values.","items":{"$ref":"#/components/schemas/StoreProductOptionValue"},"type":"array"}},"required":["title","id","is_exclusive"],"type":"object","x-schemaName":"StoreProductOption"},"StoreProductOptionValue":{"description":"The product option value's details.","properties":{"created_at":{"description":"The date the value was created.","format":"date-time","title":"created_at","type":"string"},"deleted_at":{"description":"The date the value was deleted.","format":"date-time","title":"deleted_at","type":"string"},"id":{"description":"The value's ID.","title":"id","type":"string"},"metadata":{"description":"The value's metadata, can hold custom key-value pairs.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/store#manage-metadata"},"type":"object"},"option":{"type":"object"},"option_id":{"description":"The ID of the option this value belongs to.","title":"option_id","type":"string"},"rank":{"description":"The rank of the value among other option values.","title":"rank","type":"number"},"updated_at":{"description":"The date the value was updated.","format":"date-time","title":"updated_at","type":"string"},"value":{"description":"The value.","title":"value","type":"string"}},"required":["id","value"],"type":"object","x-schemaName":"StoreProductOptionValue"},"StoreProductResponse":{"description":"The product's details.","properties":{"product":{"$ref":"#/components/schemas/StoreProduct"}},"required":["product"],"type":"object","x-schemaName":"StoreProductResponse"},"StoreProductTag":{"description":"The tag's details.","properties":{"created_at":{"description":"The date the tag was created.","format":"date-time","title":"created_at","type":"string"},"deleted_at":{"description":"The date the tag was deleted.","format":"date-time","title":"deleted_at","type":"string"},"external_id":{"description":"The tag's external ID used to link it with external systems.","title":"external_id","type":"string"},"id":{"description":"The tag's ID.","title":"id","type":"string"},"metadata":{"description":"The tag's metadata, can hold custom key-value pairs.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/store#manage-metadata"},"type":"object"},"updated_at":{"description":"The date the tag was updated.","format":"date-time","title":"updated_at","type":"string"},"value":{"description":"The tag's value.","title":"value","type":"string"}},"required":["id","value","created_at","updated_at"],"type":"object","x-schemaName":"StoreProductTag"},"StoreProductType":{"description":"The product type's details.","properties":{"created_at":{"description":"The date the product type was created.","format":"date-time","title":"created_at","type":"string"},"deleted_at":{"description":"The date the product type was deleted.","format":"date-time","title":"deleted_at","type":"string"},"external_id":{"description":"The type's external ID used to link it with external systems.","title":"external_id","type":"string"},"id":{"description":"The product type's ID.","title":"id","type":"string"},"metadata":{"description":"The product type's metadata, can hold custom key-value pairs.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/store#manage-metadata"},"type":"object"},"updated_at":{"description":"The date the product type was updated.","format":"date-time","title":"updated_at","type":"string"},"value":{"description":"The type's value.","title":"value","type":"string"}},"required":["id","value","created_at","updated_at"],"type":"object","x-schemaName":"StoreProductType"},"StoreProductVariant":{"description":"The variant's details.","properties":{"allow_backorder":{"description":"Whether the variant can be ordered even if it's not in stock.","title":"allow_backorder","type":"boolean"},"barcode":{"description":"The variant's barcode.","title":"barcode","type":"string"},"calculated_price":{"$ref":"#/components/schemas/BaseCalculatedPriceSet"},"created_at":{"description":"The date the variant was created.","format":"date-time","title":"created_at","type":"string"},"deleted_at":{"description":"The date the variant was deleted.","format":"date-time","title":"deleted_at","type":"string"},"ean":{"description":"The variant's EAN.","title":"ean","type":"string"},"height":{"description":"The variant's height.","title":"height","type":"number"},"hs_code":{"description":"The variant's HS code.","title":"hs_code","type":"string"},"id":{"description":"The variant's ID.","title":"id","type":"string"},"images":{"description":"The variant's images.","items":{"$ref":"#/components/schemas/BaseProductImage"},"type":"array"},"inventory_quantity":{"description":"The variant's inventory quantity. This property is only available if you pass `+variants.inventory_quantity` in the `fields` query parameter.","externalDocs":{"description":"Storefront guide: How to retrieve a product variant's inventory details.","url":"https://docs.medusajs.com/resources/storefront-development/products/inventory"},"title":"inventory_quantity","type":"number"},"length":{"description":"The variant's length.","title":"length","type":"number"},"manage_inventory":{"description":"Whether Medusa manages the variant's inventory. If disabled, the variant is always considered in stock.","externalDocs":{"description":"Storefront guide: How to retrieve a product variant's inventory details.","url":"https://docs.medusajs.com/resources/storefront-development/products/inventory"},"title":"manage_inventory","type":"boolean"},"material":{"description":"The variant's material.","title":"material","type":"string"},"metadata":{"description":"The variant's metadata, can hold custom key-value pairs.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/store#manage-metadata"},"type":"object"},"mid_code":{"description":"The variant's MID code.","title":"mid_code","type":"string"},"options":{"description":"The variant's options.","items":{"$ref":"#/components/schemas/StoreProductOptionValue"},"type":"array"},"origin_country":{"description":"The variant's origin country.","title":"origin_country","type":"string"},"product":{"type":"object"},"product_id":{"description":"The ID of the product this variant belongs to.","title":"product_id","type":"string"},"sku":{"description":"The variant's SKU.","title":"sku","type":"string"},"thumbnail":{"description":"The variant's thumbnail.","title":"thumbnail","type":"string"},"title":{"description":"The variant's title.","title":"title","type":"string"},"upc":{"description":"The variant's UPC.","title":"upc","type":"string"},"updated_at":{"description":"The date the variant was updated.","format":"date-time","title":"updated_at","type":"string"},"variant_rank":{"description":"The variant's rank among its siblings.","title":"variant_rank","type":"number"},"weight":{"description":"The variant's weight.","title":"weight","type":"number"},"width":{"description":"The variant's width.","title":"width","type":"number"}},"required":["options","title","id","created_at","updated_at","thumbnail","width","weight","length","height","origin_country","hs_code","mid_code","material","deleted_at","manage_inventory","allow_backorder","sku","ean","upc","barcode"],"type":"object","x-schemaName":"StoreProductVariant"},"StoreRegion":{"description":"The region's details.","properties":{"automatic_taxes":{"description":"Whether taxes are calculated automatically during checkout for carts that belong to this region.","title":"automatic_taxes","type":"boolean"},"countries":{"description":"The region's countries.","items":{"$ref":"#/components/schemas/BaseRegionCountry"},"type":"array"},"created_at":{"description":"The date the region was created.","format":"date-time","title":"created_at","type":"string"},"currency_code":{"description":"The region's currency code.","example":"usd","title":"currency_code","type":"string"},"id":{"description":"The region's ID.","title":"id","type":"string"},"metadata":{"description":"The region's metadata, can hold custom key-value pairs.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/store#manage-metadata"},"type":"object"},"name":{"description":"The region's name.","title":"name","type":"string"},"payment_providers":{"description":"The region's payment providers.","items":{"$ref":"#/components/schemas/AdminPaymentProvider"},"type":"array"},"updated_at":{"description":"The date the region was updated.","format":"date-time","title":"updated_at","type":"string"}},"required":["id","name","currency_code"],"type":"object","x-schemaName":"StoreRegion"},"StoreRegionCountry":{"description":"The country's details.","properties":{"display_name":{"description":"The country's display name.","title":"display_name","type":"string"},"id":{"description":"The country's ID.","title":"id","type":"string"},"iso_2":{"description":"The country's ISO 2.","example":"us","title":"iso_2","type":"string"},"iso_3":{"description":"The country's ISO 3.","example":"usa","title":"iso_3","type":"string"},"name":{"description":"The country's name.","title":"name","type":"string"},"num_code":{"description":"The country's num code.","example":840,"title":"num_code","type":"string"}},"required":["id"],"type":"object","x-schemaName":"StoreRegionCountry"},"StoreShippingOption":{"description":"The shipping option's details.","properties":{"amount":{"description":"The shipping option's amount. For a shipping option whose `price_type` is `calculated`, this amount isn't reliable until it's computed by the fulfillment provider using the [Calculate Shipping Option Price API route](https://docs.medusajs.com/api/store#shipping-options_postshippingoptionsidcalculate).","title":"amount","type":"number"},"data":{"description":"The shipping option's data, useful for the provider handling fulfillment.","externalDocs":{"url":"https://docs.medusajs.com/resources/commerce-modules/fulfillment/shipping-option#data-property"},"type":"object"},"id":{"description":"The shipping option's ID.","title":"id","type":"string"},"is_tax_inclusive":{"description":"Whether the amount includes taxes.","title":"is_tax_inclusive","type":"boolean"},"metadata":{"description":"The shipping option's metadata, can hold custom key-value pairs.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/store#manage-metadata"},"type":"object"},"name":{"description":"The shipping option's name.","title":"name","type":"string"},"price_type":{"description":"The shipping option's price type. If it's `flat`, the price is fixed and is set in the `prices` property. If it's `calculated`, the price is calculated on checkout by the associated fulfillment provider.","enum":["flat","calculated"],"type":"string"},"provider":{"$ref":"#/components/schemas/BaseFulfillmentProvider"},"provider_id":{"description":"The ID of the fulfillment provider handling this option.","title":"provider_id","type":"string"},"service_zone_id":{"description":"The ID of the service zone the shipping option belongs to.","title":"service_zone_id","type":"string"},"shipping_option_type_id":{"description":"The ID of the shipping option's type.","title":"shipping_option_type_id","type":"string"},"shipping_profile_id":{"description":"The ID of the associated shipping profile.","title":"shipping_profile_id","type":"string"},"type":{"$ref":"#/components/schemas/StoreShippingOptionType"}},"required":["id","name","price_type","service_zone_id","provider_id","provider","shipping_option_type_id","type","shipping_profile_id","amount","is_tax_inclusive","data","metadata"],"type":"object","x-schemaName":"StoreShippingOption"},"StoreShippingOptionListResponse":{"description":"The list of shipping options.","properties":{"shipping_options":{"description":"The list of shipping options.","items":{"allOf":[{"$ref":"#/components/schemas/StoreCartShippingOption"},{"description":"The shipping option's details.","properties":{"service_zone":{"description":"The shipping option's service zone.","properties":{"fulfillment_set":{"description":"The service zone's fulfillment set.","properties":{"id":{"description":"The fulfillment set's ID.","title":"id","type":"string"},"location":{"description":"The fulfillment set's location details.","properties":{"address":{"$ref":"#/components/schemas/StoreFulfillmentAddress"},"id":{"description":"The location's ID.","title":"id","type":"string"}},"required":["id","address"],"type":"object"},"type":{"description":"The fulfillment set's type.","title":"type","type":"string"}},"required":["id","type","location"],"type":"object"},"fulfillment_set_id":{"description":"The ID of the service zone's fulfillment set.","title":"fulfillment_set_id","type":"string"},"id":{"description":"The service zone's ID.","title":"id","type":"string"}},"required":["id","fulfillment_set_id","fulfillment_set"],"type":"object"}},"required":["service_zone"],"type":"object"}],"description":"The shipping option's details."},"type":"array"}},"required":["shipping_options"],"type":"object","x-schemaName":"StoreShippingOptionListResponse"},"StoreShippingOptionType":{"description":"The shipping option type's details.","properties":{"code":{"description":"The type's code.","title":"code","type":"string"},"created_at":{"description":"The date the type was created.","format":"date-time","title":"created_at","type":"string"},"deleted_at":{"description":"The date the type was deleted.","format":"date-time","title":"deleted_at","type":"string"},"description":{"description":"The type's description.","title":"description","type":"string"},"id":{"description":"The type's ID.","title":"id","type":"string"},"label":{"description":"The type's label.","title":"label","type":"string"},"shipping_option_id":{"description":"The ID of the associated shipping option.","title":"shipping_option_id","type":"string"},"updated_at":{"description":"The date the type was updated.","format":"date-time","title":"updated_at","type":"string"}},"required":["id","label","description","code","shipping_option_id","created_at","updated_at","deleted_at"],"type":"object","x-schemaName":"StoreShippingOptionType"},"StoreUpdateCustomer":{"description":"The details to update in the customer.","properties":{"company_name":{"description":"The customer's company name.","title":"company_name","type":"string"},"first_name":{"description":"The customer's first name.","title":"first_name","type":"string"},"last_name":{"description":"The customer's last name.","title":"last_name","type":"string"},"metadata":{"description":"The customer's metadata, can hold custom key-value pairs.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/store#manage-metadata"},"type":"object"},"phone":{"description":"The customer's phone.","title":"phone","type":"string"}},"type":"object","x-schemaName":"StoreUpdateCustomer"},"UpdateAddress":{"description":"The details to update in the address.","properties":{"address_1":{"description":"The address's first line.","title":"address_1","type":"string"},"address_2":{"description":"The address's second line.","title":"address_2","type":"string"},"city":{"description":"The address's city.","title":"city","type":"string"},"company":{"description":"The address's company.","title":"company","type":"string"},"country_code":{"description":"The address's country code.","example":"usd","title":"country_code","type":"string"},"customer_id":{"description":"The ID of the customer that this address belongs to.","title":"customer_id","type":"string"},"first_name":{"description":"The address's first name.","title":"first_name","type":"string"},"id":{"description":"The ID of an existing address to update.","title":"id","type":"string"},"last_name":{"description":"The address's last name.","title":"last_name","type":"string"},"metadata":{"description":"The address's metadata, can hold custom key-value pairs.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/store#manage-metadata"},"type":"object"},"phone":{"description":"The address's phone.","title":"phone","type":"string"},"postal_code":{"description":"The address's postal code.","title":"postal_code","type":"string"},"province":{"description":"The address's ISO 3166-2 province code. Must be lower-case.","example":"us-ca","externalDocs":{"description":"Learn more about ISO 3166-2","url":"https://en.wikipedia.org/wiki/ISO_3166-2"},"title":"province","type":"string"}},"required":["id"],"type":"object","x-schemaName":"UpdateAddress"},"UpdateCartData":{"description":"The details to update in a cart.","properties":{"billing_address":{"oneOf":[{"$ref":"#/components/schemas/CreateAddress"},{"$ref":"#/components/schemas/UpdateAddress"}]},"billing_address_id":{"description":"The ID of the cart's billing address.","title":"billing_address_id","type":"string"},"currency_code":{"description":"The cart's currency code.","example":"usd","title":"currency_code","type":"string"},"customer_id":{"description":"The ID of the customer that the cart belongs to.","title":"customer_id","type":"string"},"email":{"description":"The email of the customer that the cart belongs to.","format":"email","title":"email","type":"string"},"metadata":{"description":"The cart's metadata, ca hold custom key-value pairs.","externalDocs":{"description":"Learn how to manage metadata","url":"https://docs.medusajs.com/api/store#manage-metadata"},"type":"object"},"region_id":{"description":"The ID of the associated region. This can affect the prices and currency code of the cart.","title":"region_id","type":"string"},"sales_channel_id":{"description":"The ID of the associated sales channel.\n\nA product's availability in a sales channel only filters the products you retrieve. Medusa doesn't reject a variant added to the cart when its product isn't available in the cart's sales channel. Refer to the guide in the external documentation to learn how to enforce that validation.\n","externalDocs":{"url":"https://docs.medusajs.com/resources/commerce-modules/cart/sales-channel-availability"},"title":"sales_channel_id","type":"string"},"shipping_address":{"oneOf":[{"$ref":"#/components/schemas/CreateAddress"},{"$ref":"#/components/schemas/UpdateAddress"}]},"shipping_address_id":{"description":"The ID of the cart's shipping address.","title":"shipping_address_id","type":"string"}},"type":"object","x-schemaName":"UpdateCartData"}},"securitySchemes":{"customer_bearer":{"description":"Customer JWT from POST /auth/customer/emailpass","scheme":"bearer","type":"http"},"publishable_key":{"description":"Public storefront key (pk_…). Identifies the business; not a secret.","in":"header","name":"x-publishable-api-key","type":"apiKey"}}},"info":{"description":"Everything a custom storefront or shopping app needs: products, carts, checkout, customers and orders. Built on the **official Medusa 2.23.1 Store API** (an allowlisted subset that is safe for multi-business use) plus Sedra store extensions. Every `/store` request needs your storefront's publishable key in `x-publishable-api-key`; it selects the business.","title":"Sedra Storefront API","version":"2.23.1","x-sedra-upstream":"https://github.com/medusajs/medusa/blob/v2.23.1/www/apps/api-reference/specs/store/openapi.full.yaml"},"openapi":"3.1.0","paths":{"/auth/customer/{auth_provider}":{"post":{"description":"Authenticate a customer and receive the JWT token to be used in the header of subsequent requests.\n\nWhen used with a third-party provider, such as Google, the request returns a `location` property. You redirect to the specified URL in your storefront to continue authentication with the third-party service.\n","externalDocs":{"description":"Storefront development: How to login as a customer","url":"https://docs.medusajs.com/resources/storefront-development/customers/login#1-using-a-jwt-token"},"operationId":"PostActor_typeAuth_provider","parameters":[{"description":"The provider used for authentication.","in":"path","name":"auth_provider","required":true,"schema":{"example":"emailpass","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"description":"The input data necessary for authentication. \nFor example, for email-pass authentication, pass `email` and `password` properties. \nFor the Google and GitHub authentication providers, you can pass `callback_url` to indicate the URL in the frontend that the customer should be redirected to after completing their authentication. This will override the provider's `callbackUrl` configurations in `medusa-config.ts`.\n","title":"input","type":"object"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/AuthResponse"},{"$ref":"#/components/schemas/AuthCallbackResponse"}]}}},"description":"OK"},"400":{"$ref":"#/components/responses/400_error"},"401":{"$ref":"#/components/responses/unauthorized"},"404":{"$ref":"#/components/responses/not_found_error"},"409":{"$ref":"#/components/responses/invalid_state_error"},"422":{"$ref":"#/components/responses/invalid_request_error"},"500":{"$ref":"#/components/responses/500_error"}},"security":[],"summary":"Authenticate Customer","tags":["Auth"],"x-authenticated":false,"x-sedra-upstream":"medusa@2.23.1"}},"/auth/customer/{auth_provider}/register":{"post":{"description":"This API route retrieves a registration JWT token of a customer that hasn't been registered yet. The token is used in the header of requests that create a customer.","externalDocs":{"description":"Storefront development: How to register a customer","url":"https://docs.medusajs.com/resources/storefront-development/customers/register"},"operationId":"PostActor_typeAuth_provider_register","parameters":[{"description":"The provider used for authentication.","in":"path","name":"auth_provider","required":true,"schema":{"example":"emailpass","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"description":"The input data necessary for authentication. For example, for email-pass authentication, pass `email` and `password` properties.","example":{"email":"customer@gmail.com","password":"supersecret"},"title":"input","type":"object"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthResponse"}}},"description":"OK"},"400":{"$ref":"#/components/responses/400_error"},"401":{"$ref":"#/components/responses/unauthorized"},"404":{"$ref":"#/components/responses/not_found_error"},"409":{"$ref":"#/components/responses/invalid_state_error"},"422":{"$ref":"#/components/responses/invalid_request_error"},"500":{"$ref":"#/components/responses/500_error"}},"security":[],"summary":"Retrieve Registration JWT Token","tags":["Auth"],"x-authenticated":false,"x-sedra-upstream":"medusa@2.23.1"}},"/store/carts":{"post":{"description":"Create a cart.","operationId":"PostCarts","parameters":[{"description":"Publishable API Key created in the Medusa Admin.","in":"header","name":"x-publishable-api-key","required":true,"schema":{"externalDocs":{"url":"https://docs.medusajs.com/api/store#publishable-api-key"},"type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"header","name":"x-medusa-locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}},{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.","in":"query","name":"fields","required":false,"schema":{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.","externalDocs":{"url":"#select-fields-and-relations"},"title":"fields","type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"query","name":"locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/StoreCreateCart"},{"description":"The cart's details.","properties":{"additional_data":{"description":"Pass additional custom data to the API route. This data is passed to the underlying workflow under the `additional_data` parameter.","type":"object"}},"type":"object"}],"description":"The cart's details."}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreCartResponse"}}},"description":"OK"},"400":{"$ref":"#/components/responses/400_error"},"401":{"$ref":"#/components/responses/unauthorized"},"404":{"$ref":"#/components/responses/not_found_error"},"409":{"$ref":"#/components/responses/invalid_state_error"},"422":{"$ref":"#/components/responses/invalid_request_error"},"500":{"$ref":"#/components/responses/500_error"}},"security":[{"publishable_key":[]}],"summary":"Create Cart","tags":["Carts"],"x-allowed":["id","currency_code","email","locale","region_id","created_at","updated_at","completed_at","total","subtotal","tax_total","discount_total","discount_subtotal","discount_tax_total","original_total","original_tax_total","item_total","item_subtotal","item_tax_total","item_discount_total","original_item_total","original_item_subtotal","original_item_tax_total","shipping_total","shipping_subtotal","shipping_tax_total","shipping_discount_total","original_shipping_tax_total","original_shipping_subtotal","original_shipping_total","credit_line_subtotal","credit_line_tax_total","credit_line_total","metadata","sales_channel_id","promotions.id","promotions.code","promotions.is_automatic","promotions.is_tax_inclusive","promotions.application_method.value","promotions.application_method.type","promotions.application_method.currency_code","items.id","items.thumbnail","items.product","items.product.id","items.variant","items.variant_id","items.product_id","items.is_giftcard","items.product.categories.id","items.product.tags.id","items.product.collection_id","items.product.type_id","items.product_type_id","items.product_title","items.product_description","items.product_subtitle","items.product_type","items.product_collection","items.product_handle","items.variant_sku","items.variant_barcode","items.variant_title","items.requires_shipping","items.metadata","items.created_at","items.updated_at","items.title","items.quantity","items.unit_price","items.compare_at_unit_price","items.is_tax_inclusive","items.tax_lines.id","items.tax_lines.description","items.tax_lines.code","items.tax_lines.rate","items.tax_lines.provider_id","items.tax_lines.data","items.tax_lines.metadata","items.adjustments.id","items.adjustments.code","items.adjustments.promotion_id","items.adjustments.amount","items.adjustments.is_tax_inclusive","customer.id","customer.email","customer.groups.id","shipping_methods.tax_lines.id","shipping_methods.tax_lines.description","shipping_methods.tax_lines.code","shipping_methods.tax_lines.rate","shipping_methods.tax_lines.provider_id","shipping_methods.tax_lines.data","shipping_methods.tax_lines.metadata","shipping_methods.amount","shipping_methods.is_tax_inclusive","shipping_methods.adjustments.id","shipping_methods.adjustments.code","shipping_methods.adjustments.amount","shipping_methods.shipping_option_id","shipping_address_id","shipping_address.id","shipping_address.first_name","shipping_address.last_name","shipping_address.company","shipping_address.address_1","shipping_address.address_2","shipping_address.city","shipping_address.postal_code","shipping_address.country_code","shipping_address.region_code","shipping_address.province","shipping_address.phone","billing_address_id","billing_address.id","billing_address.first_name","billing_address.last_name","billing_address.company","billing_address.address_1","billing_address.address_2","billing_address.city","billing_address.postal_code","billing_address.country_code","billing_address.region_code","billing_address.province","billing_address.phone","region.id","region.name","region.currency_code","region.automatic_taxes","region.countries","payment_collection","payment_collection.payment_sessions","credit_lines","items","region","promotions","customer","shipping_methods","shipping_address","billing_address","items.total","items.subtotal","items.tax_total","items.discount_total","items.discount_tax_total","items.original_total","items.original_subtotal","items.original_tax_total","items.item_total","items.item_subtotal","items.item_tax_total","shipping_methods.name","payment_collection.payment_sessions.data","original_subtotal","gift_card_total","gift_card_tax_total","items.cart_id","items.is_discountable","items.tax_lines","items.tax_lines.item_id","items.tax_lines.total","items.tax_lines.subtotal","items.tax_lines.tax_rate_id","items.tax_lines.created_at","items.tax_lines.updated_at","items.adjustments","items.adjustments.cart_id","items.adjustments.item_id","items.adjustments.description","items.adjustments.provider_id","items.adjustments.created_at","items.adjustments.updated_at","shipping_methods.id","shipping_methods.cart_id","shipping_methods.description","shipping_methods.data","shipping_methods.metadata","shipping_methods.original_total","shipping_methods.original_subtotal","shipping_methods.original_tax_total","shipping_methods.total","shipping_methods.subtotal","shipping_methods.tax_total","shipping_methods.discount_total","shipping_methods.discount_tax_total","shipping_methods.created_at","shipping_methods.updated_at","shipping_methods.tax_lines","shipping_methods.tax_lines.shipping_method_id","shipping_methods.tax_lines.total","shipping_methods.tax_lines.subtotal","shipping_methods.tax_lines.tax_rate_id","shipping_methods.tax_lines.created_at","shipping_methods.tax_lines.updated_at","shipping_methods.adjustments","shipping_methods.adjustments.cart_id","shipping_methods.adjustments.shipping_method_id","shipping_methods.adjustments.description","shipping_methods.adjustments.provider_id","shipping_methods.adjustments.promotion_id","shipping_methods.adjustments.created_at","shipping_methods.adjustments.updated_at","shipping_address.created_at","shipping_address.updated_at","billing_address.created_at","billing_address.updated_at","region.countries.id","payment_collection.id","payment_collection.currency_code","payment_collection.amount","payment_collection.status","payment_collection.payment_providers","payment_collection.payment_providers.id","payment_collection.payment_sessions.id","payment_collection.payment_sessions.amount","payment_collection.payment_sessions.currency_code","payment_collection.payment_sessions.provider_id","payment_collection.payment_sessions.status"],"x-authenticated":false,"x-events":[{"deprecated":false,"description":"Emitted when a cart is created.","name":"cart.created","payload":"```ts\n{\n  id, // The ID of the cart\n}\n```"}],"x-sedra-upstream":"medusa@2.23.1","x-workflow":"createCartWorkflow"}},"/store/carts/{id}":{"get":{"description":"Retrieve a cart by its ID. You can expand the cart's relations or select the fields that should be returned.","operationId":"GetCartsId","parameters":[{"description":"The cart's ID.","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Publishable API Key created in the Medusa Admin.","in":"header","name":"x-publishable-api-key","required":true,"schema":{"externalDocs":{"url":"https://docs.medusajs.com/api/store#publishable-api-key"},"type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"header","name":"x-medusa-locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}},{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.","in":"query","name":"fields","required":false,"schema":{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.","externalDocs":{"url":"#select-fields-and-relations"},"title":"fields","type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"query","name":"locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreCartResponse"}}},"description":"OK"},"400":{"$ref":"#/components/responses/400_error"},"401":{"$ref":"#/components/responses/unauthorized"},"404":{"$ref":"#/components/responses/not_found_error"},"409":{"$ref":"#/components/responses/invalid_state_error"},"422":{"$ref":"#/components/responses/invalid_request_error"},"500":{"$ref":"#/components/responses/500_error"}},"security":[{"publishable_key":[]}],"summary":"Get a Cart","tags":["Carts"],"x-allowed":["id","currency_code","email","locale","region_id","created_at","updated_at","completed_at","total","subtotal","tax_total","discount_total","discount_subtotal","discount_tax_total","original_total","original_tax_total","item_total","item_subtotal","item_tax_total","item_discount_total","original_item_total","original_item_subtotal","original_item_tax_total","shipping_total","shipping_subtotal","shipping_tax_total","shipping_discount_total","original_shipping_tax_total","original_shipping_subtotal","original_shipping_total","credit_line_subtotal","credit_line_tax_total","credit_line_total","metadata","sales_channel_id","promotions.id","promotions.code","promotions.is_automatic","promotions.is_tax_inclusive","promotions.application_method.value","promotions.application_method.type","promotions.application_method.currency_code","items.id","items.thumbnail","items.product","items.product.id","items.variant","items.variant_id","items.product_id","items.is_giftcard","items.product.categories.id","items.product.tags.id","items.product.collection_id","items.product.type_id","items.product_type_id","items.product_title","items.product_description","items.product_subtitle","items.product_type","items.product_collection","items.product_handle","items.variant_sku","items.variant_barcode","items.variant_title","items.requires_shipping","items.metadata","items.created_at","items.updated_at","items.title","items.quantity","items.unit_price","items.compare_at_unit_price","items.is_tax_inclusive","items.tax_lines.id","items.tax_lines.description","items.tax_lines.code","items.tax_lines.rate","items.tax_lines.provider_id","items.tax_lines.data","items.tax_lines.metadata","items.adjustments.id","items.adjustments.code","items.adjustments.promotion_id","items.adjustments.amount","items.adjustments.is_tax_inclusive","customer.id","customer.email","customer.groups.id","shipping_methods.tax_lines.id","shipping_methods.tax_lines.description","shipping_methods.tax_lines.code","shipping_methods.tax_lines.rate","shipping_methods.tax_lines.provider_id","shipping_methods.tax_lines.data","shipping_methods.tax_lines.metadata","shipping_methods.amount","shipping_methods.is_tax_inclusive","shipping_methods.adjustments.id","shipping_methods.adjustments.code","shipping_methods.adjustments.amount","shipping_methods.shipping_option_id","shipping_address_id","shipping_address.id","shipping_address.first_name","shipping_address.last_name","shipping_address.company","shipping_address.address_1","shipping_address.address_2","shipping_address.city","shipping_address.postal_code","shipping_address.country_code","shipping_address.region_code","shipping_address.province","shipping_address.phone","billing_address_id","billing_address.id","billing_address.first_name","billing_address.last_name","billing_address.company","billing_address.address_1","billing_address.address_2","billing_address.city","billing_address.postal_code","billing_address.country_code","billing_address.region_code","billing_address.province","billing_address.phone","region.id","region.name","region.currency_code","region.automatic_taxes","region.countries","payment_collection","payment_collection.payment_sessions","credit_lines","items","region","promotions","customer","shipping_methods","shipping_address","billing_address","items.total","items.subtotal","items.tax_total","items.discount_total","items.discount_tax_total","items.original_total","items.original_subtotal","items.original_tax_total","items.item_total","items.item_subtotal","items.item_tax_total","shipping_methods.name","payment_collection.payment_sessions.data","original_subtotal","gift_card_total","gift_card_tax_total","items.cart_id","items.is_discountable","items.tax_lines","items.tax_lines.item_id","items.tax_lines.total","items.tax_lines.subtotal","items.tax_lines.tax_rate_id","items.tax_lines.created_at","items.tax_lines.updated_at","items.adjustments","items.adjustments.cart_id","items.adjustments.item_id","items.adjustments.description","items.adjustments.provider_id","items.adjustments.created_at","items.adjustments.updated_at","shipping_methods.id","shipping_methods.cart_id","shipping_methods.description","shipping_methods.data","shipping_methods.metadata","shipping_methods.original_total","shipping_methods.original_subtotal","shipping_methods.original_tax_total","shipping_methods.total","shipping_methods.subtotal","shipping_methods.tax_total","shipping_methods.discount_total","shipping_methods.discount_tax_total","shipping_methods.created_at","shipping_methods.updated_at","shipping_methods.tax_lines","shipping_methods.tax_lines.shipping_method_id","shipping_methods.tax_lines.total","shipping_methods.tax_lines.subtotal","shipping_methods.tax_lines.tax_rate_id","shipping_methods.tax_lines.created_at","shipping_methods.tax_lines.updated_at","shipping_methods.adjustments","shipping_methods.adjustments.cart_id","shipping_methods.adjustments.shipping_method_id","shipping_methods.adjustments.description","shipping_methods.adjustments.provider_id","shipping_methods.adjustments.promotion_id","shipping_methods.adjustments.created_at","shipping_methods.adjustments.updated_at","shipping_address.created_at","shipping_address.updated_at","billing_address.created_at","billing_address.updated_at","region.countries.id","payment_collection.id","payment_collection.currency_code","payment_collection.amount","payment_collection.status","payment_collection.payment_providers","payment_collection.payment_providers.id","payment_collection.payment_sessions.id","payment_collection.payment_sessions.amount","payment_collection.payment_sessions.currency_code","payment_collection.payment_sessions.provider_id","payment_collection.payment_sessions.status"],"x-authenticated":false,"x-sedra-upstream":"medusa@2.23.1"},"post":{"description":"Update a cart's details. This unsets the payment methods chosen before, and the customer would have to choose them again. Also, if the customer has chosen a shipping method whose option isn't valid for the cart's shipping address anymore, the shipping method will be unset. For example, if the shipping option is valid only in the US geo zone, and the shipping address's country code is `DE`, the shipping method will be unset.","operationId":"PostCartsId","parameters":[{"description":"The cart's ID.","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Publishable API Key created in the Medusa Admin.","in":"header","name":"x-publishable-api-key","required":true,"schema":{"externalDocs":{"url":"https://docs.medusajs.com/api/store#publishable-api-key"},"type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"header","name":"x-medusa-locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}},{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.","in":"query","name":"fields","required":false,"schema":{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.","externalDocs":{"url":"#select-fields-and-relations"},"title":"fields","type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"query","name":"locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/UpdateCartData"},{"description":"The properties to update in the cart item.","properties":{"additional_data":{"description":"Pass additional custom data to the API route. This data is passed to the underlying workflow under the `additional_data` parameter.","type":"object"}},"type":"object"}],"description":"The properties to update in the cart item."}}}},"responses":{"200":{"content":{"application/json":{"schema":{"description":"The updated cart's details.","properties":{"cart":{"$ref":"#/components/schemas/StoreCart"}},"required":["cart"],"type":"object"}}},"description":"OK"},"400":{"$ref":"#/components/responses/400_error"},"401":{"$ref":"#/components/responses/unauthorized"},"404":{"$ref":"#/components/responses/not_found_error"},"409":{"$ref":"#/components/responses/invalid_state_error"},"422":{"$ref":"#/components/responses/invalid_request_error"},"500":{"$ref":"#/components/responses/500_error"}},"security":[{"publishable_key":[]}],"summary":"Update a Cart","tags":["Carts"],"x-allowed":["id","currency_code","email","locale","region_id","created_at","updated_at","completed_at","total","subtotal","tax_total","discount_total","discount_subtotal","discount_tax_total","original_total","original_tax_total","item_total","item_subtotal","item_tax_total","item_discount_total","original_item_total","original_item_subtotal","original_item_tax_total","shipping_total","shipping_subtotal","shipping_tax_total","shipping_discount_total","original_shipping_tax_total","original_shipping_subtotal","original_shipping_total","credit_line_subtotal","credit_line_tax_total","credit_line_total","metadata","sales_channel_id","promotions.id","promotions.code","promotions.is_automatic","promotions.is_tax_inclusive","promotions.application_method.value","promotions.application_method.type","promotions.application_method.currency_code","items.id","items.thumbnail","items.product","items.product.id","items.variant","items.variant_id","items.product_id","items.is_giftcard","items.product.categories.id","items.product.tags.id","items.product.collection_id","items.product.type_id","items.product_type_id","items.product_title","items.product_description","items.product_subtitle","items.product_type","items.product_collection","items.product_handle","items.variant_sku","items.variant_barcode","items.variant_title","items.requires_shipping","items.metadata","items.created_at","items.updated_at","items.title","items.quantity","items.unit_price","items.compare_at_unit_price","items.is_tax_inclusive","items.tax_lines.id","items.tax_lines.description","items.tax_lines.code","items.tax_lines.rate","items.tax_lines.provider_id","items.tax_lines.data","items.tax_lines.metadata","items.adjustments.id","items.adjustments.code","items.adjustments.promotion_id","items.adjustments.amount","items.adjustments.is_tax_inclusive","customer.id","customer.email","customer.groups.id","shipping_methods.tax_lines.id","shipping_methods.tax_lines.description","shipping_methods.tax_lines.code","shipping_methods.tax_lines.rate","shipping_methods.tax_lines.provider_id","shipping_methods.tax_lines.data","shipping_methods.tax_lines.metadata","shipping_methods.amount","shipping_methods.is_tax_inclusive","shipping_methods.adjustments.id","shipping_methods.adjustments.code","shipping_methods.adjustments.amount","shipping_methods.shipping_option_id","shipping_address_id","shipping_address.id","shipping_address.first_name","shipping_address.last_name","shipping_address.company","shipping_address.address_1","shipping_address.address_2","shipping_address.city","shipping_address.postal_code","shipping_address.country_code","shipping_address.region_code","shipping_address.province","shipping_address.phone","billing_address_id","billing_address.id","billing_address.first_name","billing_address.last_name","billing_address.company","billing_address.address_1","billing_address.address_2","billing_address.city","billing_address.postal_code","billing_address.country_code","billing_address.region_code","billing_address.province","billing_address.phone","region.id","region.name","region.currency_code","region.automatic_taxes","region.countries","payment_collection","payment_collection.payment_sessions","credit_lines","items","region","promotions","customer","shipping_methods","shipping_address","billing_address","items.total","items.subtotal","items.tax_total","items.discount_total","items.discount_tax_total","items.original_total","items.original_subtotal","items.original_tax_total","items.item_total","items.item_subtotal","items.item_tax_total","shipping_methods.name","payment_collection.payment_sessions.data","original_subtotal","gift_card_total","gift_card_tax_total","items.cart_id","items.is_discountable","items.tax_lines","items.tax_lines.item_id","items.tax_lines.total","items.tax_lines.subtotal","items.tax_lines.tax_rate_id","items.tax_lines.created_at","items.tax_lines.updated_at","items.adjustments","items.adjustments.cart_id","items.adjustments.item_id","items.adjustments.description","items.adjustments.provider_id","items.adjustments.created_at","items.adjustments.updated_at","shipping_methods.id","shipping_methods.cart_id","shipping_methods.description","shipping_methods.data","shipping_methods.metadata","shipping_methods.original_total","shipping_methods.original_subtotal","shipping_methods.original_tax_total","shipping_methods.total","shipping_methods.subtotal","shipping_methods.tax_total","shipping_methods.discount_total","shipping_methods.discount_tax_total","shipping_methods.created_at","shipping_methods.updated_at","shipping_methods.tax_lines","shipping_methods.tax_lines.shipping_method_id","shipping_methods.tax_lines.total","shipping_methods.tax_lines.subtotal","shipping_methods.tax_lines.tax_rate_id","shipping_methods.tax_lines.created_at","shipping_methods.tax_lines.updated_at","shipping_methods.adjustments","shipping_methods.adjustments.cart_id","shipping_methods.adjustments.shipping_method_id","shipping_methods.adjustments.description","shipping_methods.adjustments.provider_id","shipping_methods.adjustments.promotion_id","shipping_methods.adjustments.created_at","shipping_methods.adjustments.updated_at","shipping_address.created_at","shipping_address.updated_at","billing_address.created_at","billing_address.updated_at","region.countries.id","payment_collection.id","payment_collection.currency_code","payment_collection.amount","payment_collection.status","payment_collection.payment_providers","payment_collection.payment_providers.id","payment_collection.payment_sessions.id","payment_collection.payment_sessions.amount","payment_collection.payment_sessions.currency_code","payment_collection.payment_sessions.provider_id","payment_collection.payment_sessions.status"],"x-authenticated":false,"x-events":[{"deprecated":false,"description":"Emitted when a cart's details are updated.","name":"cart.updated","payload":"```ts\n{\n  id, // The ID of the cart\n}\n```"},{"deprecated":false,"description":"Emitted when the cart's region is updated. This\nevent is emitted alongside the `cart.updated` event.","name":"cart.region_updated","payload":"```ts\n{\n  id, // The ID of the cart\n}\n```"}],"x-sedra-upstream":"medusa@2.23.1","x-workflow":"updateCartWorkflow"}},"/store/carts/{id}/complete":{"post":{"description":"Complete a cart and place an order.","externalDocs":{"description":"Storefront guide: How to implement cart completion during checkout.","url":"https://docs.medusajs.com/resources/storefront-development/checkout/complete-cart"},"operationId":"PostCartsIdComplete","parameters":[{"description":"The cart's ID.","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Publishable API Key created in the Medusa Admin.","in":"header","name":"x-publishable-api-key","required":true,"schema":{"externalDocs":{"url":"https://docs.medusajs.com/api/store#publishable-api-key"},"type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"header","name":"x-medusa-locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}},{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.","in":"query","name":"fields","required":false,"schema":{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.","externalDocs":{"url":"#select-fields-and-relations"},"title":"fields","type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"query","name":"locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"oneOf":[{"description":"The created order's details.","properties":{"order":{"$ref":"#/components/schemas/StoreOrder"},"type":{"default":"order","description":"The type of the returned object. In this case, the order is returned because the cart was completed successfully.","title":"type","type":"string"}},"required":["type","order"],"type":"object"},{"description":"The details of why the cart completion failed.","properties":{"cart":{"$ref":"#/components/schemas/StoreCart"},"error":{"description":"The error's details.","properties":{"message":{"description":"The error's message.","title":"message","type":"string"},"name":{"description":"The error's name.","title":"name","type":"string"},"type":{"description":"The error's type. Can be a [MedusaError type](https://docs.medusajs.com/learn/fundamentals/api-routes/errors#medusaerror-types) or `payment_authorization_error` or `payment_requires_more_error` for payment-related errors.\n","title":"type","type":"string"}},"required":["message","name","type"],"type":"object"},"type":{"default":"cart","description":"The type of the returned object. In this case, the cart is returned because an error has occurred.","title":"type","type":"string"}},"required":["type","cart","error"],"type":"object"}]}}},"description":"OK"},"400":{"$ref":"#/components/responses/400_error"},"401":{"$ref":"#/components/responses/unauthorized"},"404":{"$ref":"#/components/responses/not_found_error"},"409":{"$ref":"#/components/responses/invalid_state_error"},"422":{"$ref":"#/components/responses/invalid_request_error"},"500":{"$ref":"#/components/responses/500_error"}},"security":[{"publishable_key":[]}],"summary":"Complete Cart","tags":["Carts"],"x-allowed":["id","status","summary","currency_code","display_id","custom_display_id","region_id","email","total","subtotal","tax_total","discount_total","discount_subtotal","discount_tax_total","original_total","original_subtotal","original_tax_total","item_total","item_subtotal","item_tax_total","original_item_total","original_item_subtotal","original_item_tax_total","shipping_total","shipping_subtotal","shipping_tax_total","original_shipping_tax_total","original_shipping_subtotal","original_shipping_total","credit_line_total","credit_line_subtotal","credit_line_tax_total","created_at","updated_at","credit_lines","items","items.tax_lines","items.adjustments","items.detail","items.variant","items.variant.product","shipping_address","billing_address","shipping_methods","shipping_methods.tax_lines","shipping_methods.adjustments","payment_collections","customer_id","sales_channel_id","payment_status","fulfillment_status","item_discount_total","gift_card_total","gift_card_tax_total","shipping_discount_total","customer.id","customer.email","cart.id","items.metadata","items.product","payment_collections.payments","payment_collections.payment_sessions","payment_collections.payment_providers","fulfillments","promotions","promotions.id","promotions.code","promotions.is_automatic","promotions.is_tax_inclusive","promotions.application_method.value","promotions.application_method.type","promotions.application_method.currency_code","items.id","items.title","items.subtitle","items.thumbnail","items.variant_id","items.product_id","items.product_title","items.product_description","items.product_subtitle","items.product_type_id","items.product_type","items.product_collection","items.product_handle","items.variant_sku","items.variant_barcode","items.variant_title","items.variant_option_values","items.requires_shipping","items.is_discountable","items.is_tax_inclusive","items.unit_price","items.quantity","items.created_at","items.updated_at","items.original_total","items.original_subtotal","items.original_tax_total","items.item_total","items.item_subtotal","items.item_tax_total","items.total","items.subtotal","items.tax_total","items.discount_total","items.discount_tax_total","items.refundable_total","items.refundable_total_per_unit","items.detail.id","items.detail.item_id","items.detail.quantity","items.detail.fulfilled_quantity","items.detail.delivered_quantity","items.detail.shipped_quantity","items.detail.return_requested_quantity","items.detail.return_received_quantity","items.detail.return_dismissed_quantity","items.detail.written_off_quantity","items.detail.metadata","items.detail.created_at","items.detail.updated_at","items.tax_lines.id","items.tax_lines.code","items.tax_lines.rate","items.tax_lines.created_at","items.tax_lines.updated_at","items.tax_lines.item_id","items.tax_lines.total","items.tax_lines.subtotal","items.adjustments.id","items.adjustments.amount","items.adjustments.order_id","items.adjustments.created_at","items.adjustments.updated_at","items.adjustments.item_id","items.variant.id","items.variant.title","items.variant.sku","items.variant.barcode","items.variant.ean","items.variant.upc","items.variant.thumbnail","items.variant.allow_backorder","items.variant.manage_inventory","items.variant.hs_code","items.variant.origin_country","items.variant.mid_code","items.variant.material","items.variant.weight","items.variant.length","items.variant.height","items.variant.width","items.variant.created_at","items.variant.updated_at","items.variant.deleted_at","items.variant.options","items.variant.product.id","items.variant.product.title","items.variant.product.handle","items.variant.product.subtitle","items.variant.product.description","items.variant.product.is_giftcard","items.variant.product.status","items.variant.product.thumbnail","items.variant.product.width","items.variant.product.weight","items.variant.product.length","items.variant.product.height","items.variant.product.origin_country","items.variant.product.hs_code","items.variant.product.mid_code","items.variant.product.material","items.variant.product.collection_id","items.variant.product.type_id","items.variant.product.discountable","items.variant.product.external_id","items.variant.product.created_at","items.variant.product.updated_at","items.variant.product.deleted_at","items.variant.product.variants","items.variant.product.options","items.variant.product.images","shipping_address.id","shipping_address.metadata","shipping_address.created_at","shipping_address.updated_at","billing_address.id","billing_address.metadata","billing_address.created_at","billing_address.updated_at","shipping_methods.id","shipping_methods.order_id","shipping_methods.name","shipping_methods.amount","shipping_methods.is_tax_inclusive","shipping_methods.shipping_option_id","shipping_methods.data","shipping_methods.metadata","shipping_methods.original_total","shipping_methods.original_subtotal","shipping_methods.original_tax_total","shipping_methods.total","shipping_methods.subtotal","shipping_methods.tax_total","shipping_methods.discount_total","shipping_methods.discount_tax_total","shipping_methods.created_at","shipping_methods.updated_at","shipping_methods.tax_lines.id","shipping_methods.tax_lines.code","shipping_methods.tax_lines.rate","shipping_methods.tax_lines.created_at","shipping_methods.tax_lines.updated_at","shipping_methods.tax_lines.shipping_method_id","shipping_methods.tax_lines.total","shipping_methods.tax_lines.subtotal","shipping_methods.adjustments.id","shipping_methods.adjustments.amount","shipping_methods.adjustments.order_id","shipping_methods.adjustments.created_at","shipping_methods.adjustments.updated_at","shipping_methods.adjustments.shipping_method_id","payment_collections.id","payment_collections.currency_code","payment_collections.amount","payment_collections.status"],"x-authenticated":false,"x-events":[{"deprecated":false,"description":"Emitted when an order is placed, or when a draft order is converted to an\norder.","name":"order.placed","payload":"```ts\n{\n  id, // The ID of the order\n}\n```"},{"deprecated":false,"description":"Emitted when reservations are created.","name":"reservation-item.created","payload":"```ts\n{\n  id, // The ID of the reservation\n  order_id, // (optional) The ID of the order, if the reservation was created by an order flow\n}\n```","since":"2.18.0"}],"x-sedra-upstream":"medusa@2.23.1","x-workflow":"completeCartWorkflow"}},"/store/carts/{id}/line-items":{"post":{"description":"Add a product variant as a line item in the cart.","externalDocs":{"description":"Storefront guide: How to add a product variant to the cart.","url":"https://docs.medusajs.com/resources/storefront-development/cart/manage-items#add-product-variant-to-cart"},"operationId":"PostCartsIdLineItems","parameters":[{"description":"The cart's ID.","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Publishable API Key created in the Medusa Admin.","in":"header","name":"x-publishable-api-key","required":true,"schema":{"externalDocs":{"url":"https://docs.medusajs.com/api/store#publishable-api-key"},"type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"header","name":"x-medusa-locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}},{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.","in":"query","name":"fields","required":false,"schema":{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.","externalDocs":{"url":"#select-fields-and-relations"},"title":"fields","type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"query","name":"locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"allOf":[{"description":"The details of the line item to add.","properties":{"metadata":{"description":"The item's metadata, can hold custom key-value pairs.","type":"object"},"quantity":{"description":"The item's quantity.","title":"quantity","type":"number"},"variant_id":{"description":"The ID of the product variant to add as a line item.","title":"variant_id","type":"string"}},"required":["variant_id","quantity"],"type":"object"},{"description":"The details of the line item to add.","properties":{"additional_data":{"description":"Pass additional custom data to the API route. This data is passed to the underlying workflow under the `additional_data` parameter.","type":"object"}},"type":"object"}],"description":"The details of the line item to add."}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreCartResponse"}}},"description":"OK"},"400":{"$ref":"#/components/responses/400_error"},"401":{"$ref":"#/components/responses/unauthorized"},"404":{"$ref":"#/components/responses/not_found_error"},"409":{"$ref":"#/components/responses/invalid_state_error"},"422":{"$ref":"#/components/responses/invalid_request_error"},"500":{"$ref":"#/components/responses/500_error"}},"security":[{"publishable_key":[]}],"summary":"Add Line Item to Cart","tags":["Carts"],"x-allowed":["id","currency_code","email","locale","region_id","created_at","updated_at","completed_at","total","subtotal","tax_total","discount_total","discount_subtotal","discount_tax_total","original_total","original_tax_total","item_total","item_subtotal","item_tax_total","item_discount_total","original_item_total","original_item_subtotal","original_item_tax_total","shipping_total","shipping_subtotal","shipping_tax_total","shipping_discount_total","original_shipping_tax_total","original_shipping_subtotal","original_shipping_total","credit_line_subtotal","credit_line_tax_total","credit_line_total","metadata","sales_channel_id","promotions.id","promotions.code","promotions.is_automatic","promotions.is_tax_inclusive","promotions.application_method.value","promotions.application_method.type","promotions.application_method.currency_code","items.id","items.thumbnail","items.product","items.product.id","items.variant","items.variant_id","items.product_id","items.is_giftcard","items.product.categories.id","items.product.tags.id","items.product.collection_id","items.product.type_id","items.product_type_id","items.product_title","items.product_description","items.product_subtitle","items.product_type","items.product_collection","items.product_handle","items.variant_sku","items.variant_barcode","items.variant_title","items.requires_shipping","items.metadata","items.created_at","items.updated_at","items.title","items.quantity","items.unit_price","items.compare_at_unit_price","items.is_tax_inclusive","items.tax_lines.id","items.tax_lines.description","items.tax_lines.code","items.tax_lines.rate","items.tax_lines.provider_id","items.tax_lines.data","items.tax_lines.metadata","items.adjustments.id","items.adjustments.code","items.adjustments.promotion_id","items.adjustments.amount","items.adjustments.is_tax_inclusive","customer.id","customer.email","customer.groups.id","shipping_methods.tax_lines.id","shipping_methods.tax_lines.description","shipping_methods.tax_lines.code","shipping_methods.tax_lines.rate","shipping_methods.tax_lines.provider_id","shipping_methods.tax_lines.data","shipping_methods.tax_lines.metadata","shipping_methods.amount","shipping_methods.is_tax_inclusive","shipping_methods.adjustments.id","shipping_methods.adjustments.code","shipping_methods.adjustments.amount","shipping_methods.shipping_option_id","shipping_address_id","shipping_address.id","shipping_address.first_name","shipping_address.last_name","shipping_address.company","shipping_address.address_1","shipping_address.address_2","shipping_address.city","shipping_address.postal_code","shipping_address.country_code","shipping_address.region_code","shipping_address.province","shipping_address.phone","billing_address_id","billing_address.id","billing_address.first_name","billing_address.last_name","billing_address.company","billing_address.address_1","billing_address.address_2","billing_address.city","billing_address.postal_code","billing_address.country_code","billing_address.region_code","billing_address.province","billing_address.phone","region.id","region.name","region.currency_code","region.automatic_taxes","region.countries","payment_collection","payment_collection.payment_sessions","credit_lines","items","region","promotions","customer","shipping_methods","shipping_address","billing_address","items.total","items.subtotal","items.tax_total","items.discount_total","items.discount_tax_total","items.original_total","items.original_subtotal","items.original_tax_total","items.item_total","items.item_subtotal","items.item_tax_total","shipping_methods.name","payment_collection.payment_sessions.data","original_subtotal","gift_card_total","gift_card_tax_total","items.cart_id","items.is_discountable","items.tax_lines","items.tax_lines.item_id","items.tax_lines.total","items.tax_lines.subtotal","items.tax_lines.tax_rate_id","items.tax_lines.created_at","items.tax_lines.updated_at","items.adjustments","items.adjustments.cart_id","items.adjustments.item_id","items.adjustments.description","items.adjustments.provider_id","items.adjustments.created_at","items.adjustments.updated_at","shipping_methods.id","shipping_methods.cart_id","shipping_methods.description","shipping_methods.data","shipping_methods.metadata","shipping_methods.original_total","shipping_methods.original_subtotal","shipping_methods.original_tax_total","shipping_methods.total","shipping_methods.subtotal","shipping_methods.tax_total","shipping_methods.discount_total","shipping_methods.discount_tax_total","shipping_methods.created_at","shipping_methods.updated_at","shipping_methods.tax_lines","shipping_methods.tax_lines.shipping_method_id","shipping_methods.tax_lines.total","shipping_methods.tax_lines.subtotal","shipping_methods.tax_lines.tax_rate_id","shipping_methods.tax_lines.created_at","shipping_methods.tax_lines.updated_at","shipping_methods.adjustments","shipping_methods.adjustments.cart_id","shipping_methods.adjustments.shipping_method_id","shipping_methods.adjustments.description","shipping_methods.adjustments.provider_id","shipping_methods.adjustments.promotion_id","shipping_methods.adjustments.created_at","shipping_methods.adjustments.updated_at","shipping_address.created_at","shipping_address.updated_at","billing_address.created_at","billing_address.updated_at","region.countries.id","payment_collection.id","payment_collection.currency_code","payment_collection.amount","payment_collection.status","payment_collection.payment_providers","payment_collection.payment_providers.id","payment_collection.payment_sessions.id","payment_collection.payment_sessions.amount","payment_collection.payment_sessions.currency_code","payment_collection.payment_sessions.provider_id","payment_collection.payment_sessions.status"],"x-authenticated":false,"x-events":[{"deprecated":false,"description":"Emitted when a cart's details are updated.","name":"cart.updated","payload":"```ts\n{\n  id, // The ID of the cart\n}\n```"}],"x-sedra-upstream":"medusa@2.23.1","x-sidebar-summary":"Add Line Item","x-workflow":"addToCartWorkflow"}},"/store/carts/{id}/line-items/{line_id}":{"delete":{"description":"Remove a line item from a cart.","externalDocs":{"description":"Storefront guide: How to remove line item from cart.","url":"https://docs.medusajs.com/resources/storefront-development/cart/manage-items#remove-line-item-from-cart"},"operationId":"DeleteCartsIdLineItemsLine_id","parameters":[{"description":"The cart's ID.","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"The line item's ID.","in":"path","name":"line_id","required":true,"schema":{"type":"string"}},{"description":"Publishable API Key created in the Medusa Admin.","in":"header","name":"x-publishable-api-key","required":true,"schema":{"externalDocs":{"url":"https://docs.medusajs.com/api/store#publishable-api-key"},"type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"header","name":"x-medusa-locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}},{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.","in":"query","name":"fields","required":false,"schema":{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.","externalDocs":{"url":"#select-fields-and-relations"},"title":"fields","type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"query","name":"locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"allOf":[{"description":"The deletion's details.","properties":{"deleted":{"description":"Whether the item was deleted.","title":"deleted","type":"boolean"},"id":{"description":"The ID of the deleted line item.","title":"id","type":"string"},"object":{"default":"line-item","description":"The name of the deleted object.","title":"object","type":"string"}},"required":["id","object","deleted"],"type":"object"},{"description":"The deletion's details.","properties":{"parent":{"$ref":"#/components/schemas/StoreCart","description":"The cart that the item belonged to."}},"type":"object"}],"description":"The deletion's details."}}},"description":"OK"},"400":{"$ref":"#/components/responses/400_error"},"401":{"$ref":"#/components/responses/unauthorized"},"404":{"$ref":"#/components/responses/not_found_error"},"409":{"$ref":"#/components/responses/invalid_state_error"},"422":{"$ref":"#/components/responses/invalid_request_error"},"500":{"$ref":"#/components/responses/500_error"}},"security":[{"publishable_key":[]}],"summary":"Remove Line Item from Cart","tags":["Carts"],"x-allowed":["id","currency_code","email","locale","region_id","created_at","updated_at","completed_at","total","subtotal","tax_total","discount_total","discount_subtotal","discount_tax_total","original_total","original_tax_total","item_total","item_subtotal","item_tax_total","item_discount_total","original_item_total","original_item_subtotal","original_item_tax_total","shipping_total","shipping_subtotal","shipping_tax_total","shipping_discount_total","original_shipping_tax_total","original_shipping_subtotal","original_shipping_total","credit_line_subtotal","credit_line_tax_total","credit_line_total","metadata","sales_channel_id","promotions.id","promotions.code","promotions.is_automatic","promotions.is_tax_inclusive","promotions.application_method.value","promotions.application_method.type","promotions.application_method.currency_code","items.id","items.thumbnail","items.product","items.product.id","items.variant","items.variant_id","items.product_id","items.is_giftcard","items.product.categories.id","items.product.tags.id","items.product.collection_id","items.product.type_id","items.product_type_id","items.product_title","items.product_description","items.product_subtitle","items.product_type","items.product_collection","items.product_handle","items.variant_sku","items.variant_barcode","items.variant_title","items.requires_shipping","items.metadata","items.created_at","items.updated_at","items.title","items.quantity","items.unit_price","items.compare_at_unit_price","items.is_tax_inclusive","items.tax_lines.id","items.tax_lines.description","items.tax_lines.code","items.tax_lines.rate","items.tax_lines.provider_id","items.tax_lines.data","items.tax_lines.metadata","items.adjustments.id","items.adjustments.code","items.adjustments.promotion_id","items.adjustments.amount","items.adjustments.is_tax_inclusive","customer.id","customer.email","customer.groups.id","shipping_methods.tax_lines.id","shipping_methods.tax_lines.description","shipping_methods.tax_lines.code","shipping_methods.tax_lines.rate","shipping_methods.tax_lines.provider_id","shipping_methods.tax_lines.data","shipping_methods.tax_lines.metadata","shipping_methods.amount","shipping_methods.is_tax_inclusive","shipping_methods.adjustments.id","shipping_methods.adjustments.code","shipping_methods.adjustments.amount","shipping_methods.shipping_option_id","shipping_address_id","shipping_address.id","shipping_address.first_name","shipping_address.last_name","shipping_address.company","shipping_address.address_1","shipping_address.address_2","shipping_address.city","shipping_address.postal_code","shipping_address.country_code","shipping_address.region_code","shipping_address.province","shipping_address.phone","billing_address_id","billing_address.id","billing_address.first_name","billing_address.last_name","billing_address.company","billing_address.address_1","billing_address.address_2","billing_address.city","billing_address.postal_code","billing_address.country_code","billing_address.region_code","billing_address.province","billing_address.phone","region.id","region.name","region.currency_code","region.automatic_taxes","region.countries","payment_collection","payment_collection.payment_sessions","credit_lines","items","region","promotions","customer","shipping_methods","shipping_address","billing_address","items.total","items.subtotal","items.tax_total","items.discount_total","items.discount_tax_total","items.original_total","items.original_subtotal","items.original_tax_total","items.item_total","items.item_subtotal","items.item_tax_total","shipping_methods.name","payment_collection.payment_sessions.data","original_subtotal","gift_card_total","gift_card_tax_total","items.cart_id","items.is_discountable","items.tax_lines","items.tax_lines.item_id","items.tax_lines.total","items.tax_lines.subtotal","items.tax_lines.tax_rate_id","items.tax_lines.created_at","items.tax_lines.updated_at","items.adjustments","items.adjustments.cart_id","items.adjustments.item_id","items.adjustments.description","items.adjustments.provider_id","items.adjustments.created_at","items.adjustments.updated_at","shipping_methods.id","shipping_methods.cart_id","shipping_methods.description","shipping_methods.data","shipping_methods.metadata","shipping_methods.original_total","shipping_methods.original_subtotal","shipping_methods.original_tax_total","shipping_methods.total","shipping_methods.subtotal","shipping_methods.tax_total","shipping_methods.discount_total","shipping_methods.discount_tax_total","shipping_methods.created_at","shipping_methods.updated_at","shipping_methods.tax_lines","shipping_methods.tax_lines.shipping_method_id","shipping_methods.tax_lines.total","shipping_methods.tax_lines.subtotal","shipping_methods.tax_lines.tax_rate_id","shipping_methods.tax_lines.created_at","shipping_methods.tax_lines.updated_at","shipping_methods.adjustments","shipping_methods.adjustments.cart_id","shipping_methods.adjustments.shipping_method_id","shipping_methods.adjustments.description","shipping_methods.adjustments.provider_id","shipping_methods.adjustments.promotion_id","shipping_methods.adjustments.created_at","shipping_methods.adjustments.updated_at","shipping_address.created_at","shipping_address.updated_at","billing_address.created_at","billing_address.updated_at","region.countries.id","payment_collection.id","payment_collection.currency_code","payment_collection.amount","payment_collection.status","payment_collection.payment_providers","payment_collection.payment_providers.id","payment_collection.payment_sessions.id","payment_collection.payment_sessions.amount","payment_collection.payment_sessions.currency_code","payment_collection.payment_sessions.provider_id","payment_collection.payment_sessions.status"],"x-authenticated":false,"x-events":[{"deprecated":false,"description":"Emitted when a cart's details are updated.","name":"cart.updated","payload":"```ts\n{\n  id, // The ID of the cart\n}\n```"}],"x-sedra-upstream":"medusa@2.23.1","x-sidebar-summary":"Remove Line Item","x-workflow":"deleteLineItemsWorkflow"},"post":{"description":"Update a line item's details in the cart.","externalDocs":{"description":"Storefront guide: How to update a cart's line item.","url":"https://docs.medusajs.com/resources/storefront-development/cart/manage-items#update-line-item-in-cart"},"operationId":"PostCartsIdLineItemsLine_id","parameters":[{"description":"The cart's ID.","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"The line item's ID.","in":"path","name":"line_id","required":true,"schema":{"type":"string"}},{"description":"Publishable API Key created in the Medusa Admin.","in":"header","name":"x-publishable-api-key","required":true,"schema":{"externalDocs":{"url":"https://docs.medusajs.com/api/store#publishable-api-key"},"type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"header","name":"x-medusa-locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}},{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.","in":"query","name":"fields","required":false,"schema":{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.","externalDocs":{"url":"#select-fields-and-relations"},"title":"fields","type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"query","name":"locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"allOf":[{"description":"The details to update in the line item.","properties":{"metadata":{"description":"The item's metadata, can hold custom key-value pairs.","type":"object"},"quantity":{"description":"The item's quantity.","title":"quantity","type":"number"}},"required":["quantity"],"type":"object"},{"description":"The details to update in the line item.","properties":{"additional_data":{"description":"Pass additional custom data to the API route. This data is passed to the underlying workflow under the `additional_data` parameter.","type":"object"}},"type":"object"}],"description":"The details to update in the line item."}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreCartResponse"}}},"description":"OK"},"400":{"$ref":"#/components/responses/400_error"},"401":{"$ref":"#/components/responses/unauthorized"},"404":{"$ref":"#/components/responses/not_found_error"},"409":{"$ref":"#/components/responses/invalid_state_error"},"422":{"$ref":"#/components/responses/invalid_request_error"},"500":{"$ref":"#/components/responses/500_error"}},"security":[{"publishable_key":[]}],"summary":"Update a Line Item in a Cart","tags":["Carts"],"x-allowed":["id","currency_code","email","locale","region_id","created_at","updated_at","completed_at","total","subtotal","tax_total","discount_total","discount_subtotal","discount_tax_total","original_total","original_tax_total","item_total","item_subtotal","item_tax_total","item_discount_total","original_item_total","original_item_subtotal","original_item_tax_total","shipping_total","shipping_subtotal","shipping_tax_total","shipping_discount_total","original_shipping_tax_total","original_shipping_subtotal","original_shipping_total","credit_line_subtotal","credit_line_tax_total","credit_line_total","metadata","sales_channel_id","promotions.id","promotions.code","promotions.is_automatic","promotions.is_tax_inclusive","promotions.application_method.value","promotions.application_method.type","promotions.application_method.currency_code","items.id","items.thumbnail","items.product","items.product.id","items.variant","items.variant_id","items.product_id","items.is_giftcard","items.product.categories.id","items.product.tags.id","items.product.collection_id","items.product.type_id","items.product_type_id","items.product_title","items.product_description","items.product_subtitle","items.product_type","items.product_collection","items.product_handle","items.variant_sku","items.variant_barcode","items.variant_title","items.requires_shipping","items.metadata","items.created_at","items.updated_at","items.title","items.quantity","items.unit_price","items.compare_at_unit_price","items.is_tax_inclusive","items.tax_lines.id","items.tax_lines.description","items.tax_lines.code","items.tax_lines.rate","items.tax_lines.provider_id","items.tax_lines.data","items.tax_lines.metadata","items.adjustments.id","items.adjustments.code","items.adjustments.promotion_id","items.adjustments.amount","items.adjustments.is_tax_inclusive","customer.id","customer.email","customer.groups.id","shipping_methods.tax_lines.id","shipping_methods.tax_lines.description","shipping_methods.tax_lines.code","shipping_methods.tax_lines.rate","shipping_methods.tax_lines.provider_id","shipping_methods.tax_lines.data","shipping_methods.tax_lines.metadata","shipping_methods.amount","shipping_methods.is_tax_inclusive","shipping_methods.adjustments.id","shipping_methods.adjustments.code","shipping_methods.adjustments.amount","shipping_methods.shipping_option_id","shipping_address_id","shipping_address.id","shipping_address.first_name","shipping_address.last_name","shipping_address.company","shipping_address.address_1","shipping_address.address_2","shipping_address.city","shipping_address.postal_code","shipping_address.country_code","shipping_address.region_code","shipping_address.province","shipping_address.phone","billing_address_id","billing_address.id","billing_address.first_name","billing_address.last_name","billing_address.company","billing_address.address_1","billing_address.address_2","billing_address.city","billing_address.postal_code","billing_address.country_code","billing_address.region_code","billing_address.province","billing_address.phone","region.id","region.name","region.currency_code","region.automatic_taxes","region.countries","payment_collection","payment_collection.payment_sessions","credit_lines","items","region","promotions","customer","shipping_methods","shipping_address","billing_address","items.total","items.subtotal","items.tax_total","items.discount_total","items.discount_tax_total","items.original_total","items.original_subtotal","items.original_tax_total","items.item_total","items.item_subtotal","items.item_tax_total","shipping_methods.name","payment_collection.payment_sessions.data","original_subtotal","gift_card_total","gift_card_tax_total","items.cart_id","items.is_discountable","items.tax_lines","items.tax_lines.item_id","items.tax_lines.total","items.tax_lines.subtotal","items.tax_lines.tax_rate_id","items.tax_lines.created_at","items.tax_lines.updated_at","items.adjustments","items.adjustments.cart_id","items.adjustments.item_id","items.adjustments.description","items.adjustments.provider_id","items.adjustments.created_at","items.adjustments.updated_at","shipping_methods.id","shipping_methods.cart_id","shipping_methods.description","shipping_methods.data","shipping_methods.metadata","shipping_methods.original_total","shipping_methods.original_subtotal","shipping_methods.original_tax_total","shipping_methods.total","shipping_methods.subtotal","shipping_methods.tax_total","shipping_methods.discount_total","shipping_methods.discount_tax_total","shipping_methods.created_at","shipping_methods.updated_at","shipping_methods.tax_lines","shipping_methods.tax_lines.shipping_method_id","shipping_methods.tax_lines.total","shipping_methods.tax_lines.subtotal","shipping_methods.tax_lines.tax_rate_id","shipping_methods.tax_lines.created_at","shipping_methods.tax_lines.updated_at","shipping_methods.adjustments","shipping_methods.adjustments.cart_id","shipping_methods.adjustments.shipping_method_id","shipping_methods.adjustments.description","shipping_methods.adjustments.provider_id","shipping_methods.adjustments.promotion_id","shipping_methods.adjustments.created_at","shipping_methods.adjustments.updated_at","shipping_address.created_at","shipping_address.updated_at","billing_address.created_at","billing_address.updated_at","region.countries.id","payment_collection.id","payment_collection.currency_code","payment_collection.amount","payment_collection.status","payment_collection.payment_providers","payment_collection.payment_providers.id","payment_collection.payment_sessions.id","payment_collection.payment_sessions.amount","payment_collection.payment_sessions.currency_code","payment_collection.payment_sessions.provider_id","payment_collection.payment_sessions.status"],"x-authenticated":false,"x-events":[{"deprecated":false,"description":"Emitted when a cart's details are updated.","name":"cart.updated","payload":"```ts\n{\n  id, // The ID of the cart\n}\n```"}],"x-sedra-upstream":"medusa@2.23.1","x-sidebar-summary":"Update Line Item","x-workflow":"updateLineItemInCartWorkflow"}},"/store/carts/{id}/promotions":{"delete":{"description":"Remove a list of promotions from a cart.","externalDocs":{"description":"Storefront guide: How to remove a promotion from cart.","url":"https://docs.medusajs.com/resources/storefront-development/cart/manage-promotions#remove-promotion-from-cart"},"operationId":"DeleteCartsIdPromotions","parameters":[{"description":"The cart's ID.","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Publishable API Key created in the Medusa Admin.","in":"header","name":"x-publishable-api-key","required":true,"schema":{"externalDocs":{"url":"https://docs.medusajs.com/api/store#publishable-api-key"},"type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"header","name":"x-medusa-locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}},{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.","in":"query","name":"fields","required":false,"schema":{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.","externalDocs":{"url":"#select-fields-and-relations"},"title":"fields","type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"query","name":"locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreCartRemovePromotion"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"description":"The cart's details.","properties":{"cart":{"$ref":"#/components/schemas/StoreCart"}},"required":["cart"],"type":"object"}}},"description":"OK"},"400":{"$ref":"#/components/responses/400_error"},"401":{"$ref":"#/components/responses/unauthorized"},"404":{"$ref":"#/components/responses/not_found_error"},"409":{"$ref":"#/components/responses/invalid_state_error"},"422":{"$ref":"#/components/responses/invalid_request_error"},"500":{"$ref":"#/components/responses/500_error"}},"security":[{"publishable_key":[]}],"summary":"Remove Promotions from Cart","tags":["Carts"],"x-allowed":["id","currency_code","email","locale","region_id","created_at","updated_at","completed_at","total","subtotal","tax_total","discount_total","discount_subtotal","discount_tax_total","original_total","original_tax_total","item_total","item_subtotal","item_tax_total","item_discount_total","original_item_total","original_item_subtotal","original_item_tax_total","shipping_total","shipping_subtotal","shipping_tax_total","shipping_discount_total","original_shipping_tax_total","original_shipping_subtotal","original_shipping_total","credit_line_subtotal","credit_line_tax_total","credit_line_total","metadata","sales_channel_id","promotions.id","promotions.code","promotions.is_automatic","promotions.is_tax_inclusive","promotions.application_method.value","promotions.application_method.type","promotions.application_method.currency_code","items.id","items.thumbnail","items.product","items.product.id","items.variant","items.variant_id","items.product_id","items.is_giftcard","items.product.categories.id","items.product.tags.id","items.product.collection_id","items.product.type_id","items.product_type_id","items.product_title","items.product_description","items.product_subtitle","items.product_type","items.product_collection","items.product_handle","items.variant_sku","items.variant_barcode","items.variant_title","items.requires_shipping","items.metadata","items.created_at","items.updated_at","items.title","items.quantity","items.unit_price","items.compare_at_unit_price","items.is_tax_inclusive","items.tax_lines.id","items.tax_lines.description","items.tax_lines.code","items.tax_lines.rate","items.tax_lines.provider_id","items.tax_lines.data","items.tax_lines.metadata","items.adjustments.id","items.adjustments.code","items.adjustments.promotion_id","items.adjustments.amount","items.adjustments.is_tax_inclusive","customer.id","customer.email","customer.groups.id","shipping_methods.tax_lines.id","shipping_methods.tax_lines.description","shipping_methods.tax_lines.code","shipping_methods.tax_lines.rate","shipping_methods.tax_lines.provider_id","shipping_methods.tax_lines.data","shipping_methods.tax_lines.metadata","shipping_methods.amount","shipping_methods.is_tax_inclusive","shipping_methods.adjustments.id","shipping_methods.adjustments.code","shipping_methods.adjustments.amount","shipping_methods.shipping_option_id","shipping_address_id","shipping_address.id","shipping_address.first_name","shipping_address.last_name","shipping_address.company","shipping_address.address_1","shipping_address.address_2","shipping_address.city","shipping_address.postal_code","shipping_address.country_code","shipping_address.region_code","shipping_address.province","shipping_address.phone","billing_address_id","billing_address.id","billing_address.first_name","billing_address.last_name","billing_address.company","billing_address.address_1","billing_address.address_2","billing_address.city","billing_address.postal_code","billing_address.country_code","billing_address.region_code","billing_address.province","billing_address.phone","region.id","region.name","region.currency_code","region.automatic_taxes","region.countries","payment_collection","payment_collection.payment_sessions","credit_lines","items","region","promotions","customer","shipping_methods","shipping_address","billing_address","items.total","items.subtotal","items.tax_total","items.discount_total","items.discount_tax_total","items.original_total","items.original_subtotal","items.original_tax_total","items.item_total","items.item_subtotal","items.item_tax_total","shipping_methods.name","payment_collection.payment_sessions.data","original_subtotal","gift_card_total","gift_card_tax_total","items.cart_id","items.is_discountable","items.tax_lines","items.tax_lines.item_id","items.tax_lines.total","items.tax_lines.subtotal","items.tax_lines.tax_rate_id","items.tax_lines.created_at","items.tax_lines.updated_at","items.adjustments","items.adjustments.cart_id","items.adjustments.item_id","items.adjustments.description","items.adjustments.provider_id","items.adjustments.created_at","items.adjustments.updated_at","shipping_methods.id","shipping_methods.cart_id","shipping_methods.description","shipping_methods.data","shipping_methods.metadata","shipping_methods.original_total","shipping_methods.original_subtotal","shipping_methods.original_tax_total","shipping_methods.total","shipping_methods.subtotal","shipping_methods.tax_total","shipping_methods.discount_total","shipping_methods.discount_tax_total","shipping_methods.created_at","shipping_methods.updated_at","shipping_methods.tax_lines","shipping_methods.tax_lines.shipping_method_id","shipping_methods.tax_lines.total","shipping_methods.tax_lines.subtotal","shipping_methods.tax_lines.tax_rate_id","shipping_methods.tax_lines.created_at","shipping_methods.tax_lines.updated_at","shipping_methods.adjustments","shipping_methods.adjustments.cart_id","shipping_methods.adjustments.shipping_method_id","shipping_methods.adjustments.description","shipping_methods.adjustments.provider_id","shipping_methods.adjustments.promotion_id","shipping_methods.adjustments.created_at","shipping_methods.adjustments.updated_at","shipping_address.created_at","shipping_address.updated_at","billing_address.created_at","billing_address.updated_at","region.countries.id","payment_collection.id","payment_collection.currency_code","payment_collection.amount","payment_collection.status","payment_collection.payment_providers","payment_collection.payment_providers.id","payment_collection.payment_sessions.id","payment_collection.payment_sessions.amount","payment_collection.payment_sessions.currency_code","payment_collection.payment_sessions.provider_id","payment_collection.payment_sessions.status"],"x-authenticated":false,"x-events":[],"x-sedra-upstream":"medusa@2.23.1","x-workflow":"updateCartPromotionsWorkflow"},"post":{"description":"Add a list of promotions to a cart.","externalDocs":{"description":"Storefront guide: How to add a promotion to cart.","url":"https://docs.medusajs.com/resources/storefront-development/cart/manage-promotions#add-promotion-to-cart"},"operationId":"PostCartsIdPromotions","parameters":[{"description":"The cart's ID.","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Publishable API Key created in the Medusa Admin.","in":"header","name":"x-publishable-api-key","required":true,"schema":{"externalDocs":{"url":"https://docs.medusajs.com/api/store#publishable-api-key"},"type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"header","name":"x-medusa-locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}},{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.","in":"query","name":"fields","required":false,"schema":{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.","externalDocs":{"url":"#select-fields-and-relations"},"title":"fields","type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"query","name":"locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreCartAddPromotion"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreCartResponse"}}},"description":"OK"},"400":{"$ref":"#/components/responses/400_error"},"401":{"$ref":"#/components/responses/unauthorized"},"404":{"$ref":"#/components/responses/not_found_error"},"409":{"$ref":"#/components/responses/invalid_state_error"},"422":{"$ref":"#/components/responses/invalid_request_error"},"500":{"$ref":"#/components/responses/500_error"}},"security":[{"publishable_key":[]}],"summary":"Add Promotions to Cart","tags":["Carts"],"x-allowed":["id","currency_code","email","locale","region_id","created_at","updated_at","completed_at","total","subtotal","tax_total","discount_total","discount_subtotal","discount_tax_total","original_total","original_tax_total","item_total","item_subtotal","item_tax_total","item_discount_total","original_item_total","original_item_subtotal","original_item_tax_total","shipping_total","shipping_subtotal","shipping_tax_total","shipping_discount_total","original_shipping_tax_total","original_shipping_subtotal","original_shipping_total","credit_line_subtotal","credit_line_tax_total","credit_line_total","metadata","sales_channel_id","promotions.id","promotions.code","promotions.is_automatic","promotions.is_tax_inclusive","promotions.application_method.value","promotions.application_method.type","promotions.application_method.currency_code","items.id","items.thumbnail","items.product","items.product.id","items.variant","items.variant_id","items.product_id","items.is_giftcard","items.product.categories.id","items.product.tags.id","items.product.collection_id","items.product.type_id","items.product_type_id","items.product_title","items.product_description","items.product_subtitle","items.product_type","items.product_collection","items.product_handle","items.variant_sku","items.variant_barcode","items.variant_title","items.requires_shipping","items.metadata","items.created_at","items.updated_at","items.title","items.quantity","items.unit_price","items.compare_at_unit_price","items.is_tax_inclusive","items.tax_lines.id","items.tax_lines.description","items.tax_lines.code","items.tax_lines.rate","items.tax_lines.provider_id","items.tax_lines.data","items.tax_lines.metadata","items.adjustments.id","items.adjustments.code","items.adjustments.promotion_id","items.adjustments.amount","items.adjustments.is_tax_inclusive","customer.id","customer.email","customer.groups.id","shipping_methods.tax_lines.id","shipping_methods.tax_lines.description","shipping_methods.tax_lines.code","shipping_methods.tax_lines.rate","shipping_methods.tax_lines.provider_id","shipping_methods.tax_lines.data","shipping_methods.tax_lines.metadata","shipping_methods.amount","shipping_methods.is_tax_inclusive","shipping_methods.adjustments.id","shipping_methods.adjustments.code","shipping_methods.adjustments.amount","shipping_methods.shipping_option_id","shipping_address_id","shipping_address.id","shipping_address.first_name","shipping_address.last_name","shipping_address.company","shipping_address.address_1","shipping_address.address_2","shipping_address.city","shipping_address.postal_code","shipping_address.country_code","shipping_address.region_code","shipping_address.province","shipping_address.phone","billing_address_id","billing_address.id","billing_address.first_name","billing_address.last_name","billing_address.company","billing_address.address_1","billing_address.address_2","billing_address.city","billing_address.postal_code","billing_address.country_code","billing_address.region_code","billing_address.province","billing_address.phone","region.id","region.name","region.currency_code","region.automatic_taxes","region.countries","payment_collection","payment_collection.payment_sessions","credit_lines","items","region","promotions","customer","shipping_methods","shipping_address","billing_address","items.total","items.subtotal","items.tax_total","items.discount_total","items.discount_tax_total","items.original_total","items.original_subtotal","items.original_tax_total","items.item_total","items.item_subtotal","items.item_tax_total","shipping_methods.name","payment_collection.payment_sessions.data","original_subtotal","gift_card_total","gift_card_tax_total","items.cart_id","items.is_discountable","items.tax_lines","items.tax_lines.item_id","items.tax_lines.total","items.tax_lines.subtotal","items.tax_lines.tax_rate_id","items.tax_lines.created_at","items.tax_lines.updated_at","items.adjustments","items.adjustments.cart_id","items.adjustments.item_id","items.adjustments.description","items.adjustments.provider_id","items.adjustments.created_at","items.adjustments.updated_at","shipping_methods.id","shipping_methods.cart_id","shipping_methods.description","shipping_methods.data","shipping_methods.metadata","shipping_methods.original_total","shipping_methods.original_subtotal","shipping_methods.original_tax_total","shipping_methods.total","shipping_methods.subtotal","shipping_methods.tax_total","shipping_methods.discount_total","shipping_methods.discount_tax_total","shipping_methods.created_at","shipping_methods.updated_at","shipping_methods.tax_lines","shipping_methods.tax_lines.shipping_method_id","shipping_methods.tax_lines.total","shipping_methods.tax_lines.subtotal","shipping_methods.tax_lines.tax_rate_id","shipping_methods.tax_lines.created_at","shipping_methods.tax_lines.updated_at","shipping_methods.adjustments","shipping_methods.adjustments.cart_id","shipping_methods.adjustments.shipping_method_id","shipping_methods.adjustments.description","shipping_methods.adjustments.provider_id","shipping_methods.adjustments.promotion_id","shipping_methods.adjustments.created_at","shipping_methods.adjustments.updated_at","shipping_address.created_at","shipping_address.updated_at","billing_address.created_at","billing_address.updated_at","region.countries.id","payment_collection.id","payment_collection.currency_code","payment_collection.amount","payment_collection.status","payment_collection.payment_providers","payment_collection.payment_providers.id","payment_collection.payment_sessions.id","payment_collection.payment_sessions.amount","payment_collection.payment_sessions.currency_code","payment_collection.payment_sessions.provider_id","payment_collection.payment_sessions.status"],"x-authenticated":false,"x-events":[],"x-sedra-upstream":"medusa@2.23.1","x-sidebar-summary":"Add Promotions","x-workflow":"updateCartPromotionsWorkflow"}},"/store/carts/{id}/shipping-methods":{"post":{"description":"Add a shipping method to a cart. Use this API route when the customer chooses their preferred shipping option.\n\nIf the chosen shipping option's `price_type` is `calculated`, its price is computed by the associated fulfillment provider when it's added to the cart. If the provider fails to calculate the price, this route returns an error.\n","externalDocs":{"description":"Storefront guide: How to implement shipping during checkout.","url":"https://docs.medusajs.com/resources/storefront-development/checkout/shipping"},"operationId":"PostCartsIdShippingMethods","parameters":[{"description":"The cart's ID.","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Publishable API Key created in the Medusa Admin.","in":"header","name":"x-publishable-api-key","required":true,"schema":{"externalDocs":{"url":"https://docs.medusajs.com/api/store#publishable-api-key"},"type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"header","name":"x-medusa-locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"query","name":"locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}},{"description":"Comma-separated fields that should be included in the returned data. If a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. Without prefix it will replace the entire default fields.","in":"query","name":"fields","required":false,"schema":{"description":"Comma-separated fields that should be included in the returned data. If a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. Without prefix it will replace the entire default fields.","externalDocs":{"url":"#select-fields-and-relations"},"title":"fields","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"description":"The shipping method's details.","oneOf":[{"allOf":[{"$ref":"#/components/schemas/StoreAddCartShippingMethodsBase"},{"description":"The shipping method's details.","properties":{"additional_data":{"description":"Pass additional custom data to the API route. This data is passed to the underlying workflow under the `additional_data` parameter.","type":"object"}},"type":"object"}]},{"allOf":[{"description":"An array of shipping methods to add to the cart.","items":{"$ref":"#/components/schemas/StoreAddCartShippingMethodsBase"},"type":"array"},{"description":"The shipping method's details.","properties":{"additional_data":{"description":"Pass additional custom data to the API route. This data is passed to the underlying workflow under the `additional_data` parameter.","type":"object"}},"type":"object"}]}]}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreCartResponse"}}},"description":"OK"},"400":{"$ref":"#/components/responses/400_error"},"401":{"$ref":"#/components/responses/unauthorized"},"404":{"$ref":"#/components/responses/not_found_error"},"409":{"$ref":"#/components/responses/invalid_state_error"},"422":{"$ref":"#/components/responses/invalid_request_error"},"500":{"$ref":"#/components/responses/500_error"}},"security":[{"publishable_key":[]}],"summary":"Add Shipping Method to Cart","tags":["Carts"],"x-allowed":["id","currency_code","email","locale","region_id","created_at","updated_at","completed_at","total","subtotal","tax_total","discount_total","discount_subtotal","discount_tax_total","original_total","original_tax_total","item_total","item_subtotal","item_tax_total","item_discount_total","original_item_total","original_item_subtotal","original_item_tax_total","shipping_total","shipping_subtotal","shipping_tax_total","shipping_discount_total","original_shipping_tax_total","original_shipping_subtotal","original_shipping_total","credit_line_subtotal","credit_line_tax_total","credit_line_total","metadata","sales_channel_id","promotions.id","promotions.code","promotions.is_automatic","promotions.is_tax_inclusive","promotions.application_method.value","promotions.application_method.type","promotions.application_method.currency_code","items.id","items.thumbnail","items.product","items.product.id","items.variant","items.variant_id","items.product_id","items.is_giftcard","items.product.categories.id","items.product.tags.id","items.product.collection_id","items.product.type_id","items.product_type_id","items.product_title","items.product_description","items.product_subtitle","items.product_type","items.product_collection","items.product_handle","items.variant_sku","items.variant_barcode","items.variant_title","items.requires_shipping","items.metadata","items.created_at","items.updated_at","items.title","items.quantity","items.unit_price","items.compare_at_unit_price","items.is_tax_inclusive","items.tax_lines.id","items.tax_lines.description","items.tax_lines.code","items.tax_lines.rate","items.tax_lines.provider_id","items.tax_lines.data","items.tax_lines.metadata","items.adjustments.id","items.adjustments.code","items.adjustments.promotion_id","items.adjustments.amount","items.adjustments.is_tax_inclusive","customer.id","customer.email","customer.groups.id","shipping_methods.tax_lines.id","shipping_methods.tax_lines.description","shipping_methods.tax_lines.code","shipping_methods.tax_lines.rate","shipping_methods.tax_lines.provider_id","shipping_methods.tax_lines.data","shipping_methods.tax_lines.metadata","shipping_methods.amount","shipping_methods.is_tax_inclusive","shipping_methods.adjustments.id","shipping_methods.adjustments.code","shipping_methods.adjustments.amount","shipping_methods.shipping_option_id","shipping_address_id","shipping_address.id","shipping_address.first_name","shipping_address.last_name","shipping_address.company","shipping_address.address_1","shipping_address.address_2","shipping_address.city","shipping_address.postal_code","shipping_address.country_code","shipping_address.region_code","shipping_address.province","shipping_address.phone","billing_address_id","billing_address.id","billing_address.first_name","billing_address.last_name","billing_address.company","billing_address.address_1","billing_address.address_2","billing_address.city","billing_address.postal_code","billing_address.country_code","billing_address.region_code","billing_address.province","billing_address.phone","region.id","region.name","region.currency_code","region.automatic_taxes","region.countries","payment_collection","payment_collection.payment_sessions","credit_lines","items","region","promotions","customer","shipping_methods","shipping_address","billing_address","items.total","items.subtotal","items.tax_total","items.discount_total","items.discount_tax_total","items.original_total","items.original_subtotal","items.original_tax_total","items.item_total","items.item_subtotal","items.item_tax_total","shipping_methods.name","payment_collection.payment_sessions.data","original_subtotal","gift_card_total","gift_card_tax_total","items.cart_id","items.is_discountable","items.tax_lines","items.tax_lines.item_id","items.tax_lines.total","items.tax_lines.subtotal","items.tax_lines.tax_rate_id","items.tax_lines.created_at","items.tax_lines.updated_at","items.adjustments","items.adjustments.cart_id","items.adjustments.item_id","items.adjustments.description","items.adjustments.provider_id","items.adjustments.created_at","items.adjustments.updated_at","shipping_methods.id","shipping_methods.cart_id","shipping_methods.description","shipping_methods.data","shipping_methods.metadata","shipping_methods.original_total","shipping_methods.original_subtotal","shipping_methods.original_tax_total","shipping_methods.total","shipping_methods.subtotal","shipping_methods.tax_total","shipping_methods.discount_total","shipping_methods.discount_tax_total","shipping_methods.created_at","shipping_methods.updated_at","shipping_methods.tax_lines","shipping_methods.tax_lines.shipping_method_id","shipping_methods.tax_lines.total","shipping_methods.tax_lines.subtotal","shipping_methods.tax_lines.tax_rate_id","shipping_methods.tax_lines.created_at","shipping_methods.tax_lines.updated_at","shipping_methods.adjustments","shipping_methods.adjustments.cart_id","shipping_methods.adjustments.shipping_method_id","shipping_methods.adjustments.description","shipping_methods.adjustments.provider_id","shipping_methods.adjustments.promotion_id","shipping_methods.adjustments.created_at","shipping_methods.adjustments.updated_at","shipping_address.created_at","shipping_address.updated_at","billing_address.created_at","billing_address.updated_at","region.countries.id","payment_collection.id","payment_collection.currency_code","payment_collection.amount","payment_collection.status","payment_collection.payment_providers","payment_collection.payment_providers.id","payment_collection.payment_sessions.id","payment_collection.payment_sessions.amount","payment_collection.payment_sessions.currency_code","payment_collection.payment_sessions.provider_id","payment_collection.payment_sessions.status"],"x-authenticated":false,"x-events":[{"deprecated":false,"description":"Emitted when a cart's details are updated.","name":"cart.updated","payload":"```ts\n{\n  id, // The ID of the cart\n}\n```"}],"x-sedra-upstream":"medusa@2.23.1","x-sidebar-summary":"Add Shipping Method","x-workflow":"addShippingMethodToCartWorkflow"}},"/store/customers":{"post":{"description":"Register a customer. Use the `/auth/customer/emailpass/register` API route first to retrieve the registration token and pass it in the header of the request.","externalDocs":{"description":"Storefront guide: How to register a customer.","url":"https://docs.medusajs.com/resources/storefront-development/customers/register"},"operationId":"PostCustomers","parameters":[{"description":"Publishable API Key created in the Medusa Admin.","in":"header","name":"x-publishable-api-key","required":true,"schema":{"externalDocs":{"url":"https://docs.medusajs.com/api/store#publishable-api-key"},"type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"header","name":"x-medusa-locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}},{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.","in":"query","name":"fields","required":false,"schema":{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields. This API route restricts the fields that can be selected. Learn how to override the retrievable fields in the [Retrieve Custom Links](https://docs.medusajs.com/learn/fundamentals/api-routes/retrieve-custom-links) documentation.","externalDocs":{"url":"#select-fields-and-relations"},"title":"fields","type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"query","name":"locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreCreateCustomer"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreCustomerResponse"}}},"description":"OK"},"400":{"$ref":"#/components/responses/400_error"},"401":{"$ref":"#/components/responses/unauthorized"},"404":{"$ref":"#/components/responses/not_found_error"},"409":{"$ref":"#/components/responses/invalid_state_error"},"422":{"$ref":"#/components/responses/invalid_request_error"},"500":{"$ref":"#/components/responses/500_error"}},"security":[{"customer_bearer":[],"publishable_key":[]}],"summary":"Register Customer","tags":["Customers"],"x-allowed":["id","email","company_name","first_name","last_name","phone","metadata","has_account","deleted_at","created_at","updated_at","addresses","orders","addresses.id","addresses.address_name","addresses.company","addresses.customer_id","addresses.first_name","addresses.last_name","addresses.address_1","addresses.address_2","addresses.city","addresses.province","addresses.postal_code","addresses.country_code","addresses.phone","addresses.metadata","addresses.is_default_shipping","addresses.is_default_billing","addresses.created_at","addresses.updated_at"],"x-authenticated":true,"x-events":[{"deprecated":false,"description":"Emitted when a customer is created.","name":"customer.created","payload":"```ts\n{\n  id, // The ID of the customer\n}\n```"}],"x-sedra-upstream":"medusa@2.23.1","x-workflow":"createCustomerAccountWorkflow"}},"/store/customers/me":{"get":{"description":"Retrieve the logged-in customer. You can expand the customer's relations or select the fields that should be returned.","externalDocs":{"description":"Storefront guide: How to retrieve the logged-in customer.","url":"https://docs.medusajs.com/resources/storefront-development/customers/retrieve"},"operationId":"GetCustomersMe","parameters":[{"description":"Publishable API Key created in the Medusa Admin.","in":"header","name":"x-publishable-api-key","required":true,"schema":{"externalDocs":{"url":"https://docs.medusajs.com/api/store#publishable-api-key"},"type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"header","name":"x-medusa-locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}},{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields. This API route restricts the fields that can be selected. Learn how to override the retrievable fields in the [Retrieve Custom Links](https://docs.medusajs.com/learn/fundamentals/api-routes/retrieve-custom-links) documentation.","in":"query","name":"fields","required":false,"schema":{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields. This API route restricts the fields that can be selected. Learn how to override the retrievable fields in the [Retrieve Custom Links](https://docs.medusajs.com/learn/fundamentals/api-routes/retrieve-custom-links) documentation.","externalDocs":{"url":"#select-fields-and-relations"},"title":"fields","type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"query","name":"locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreCustomerResponse"}}},"description":"OK"},"400":{"$ref":"#/components/responses/400_error"},"401":{"$ref":"#/components/responses/unauthorized"},"404":{"$ref":"#/components/responses/not_found_error"},"409":{"$ref":"#/components/responses/invalid_state_error"},"422":{"$ref":"#/components/responses/invalid_request_error"},"500":{"$ref":"#/components/responses/500_error"}},"security":[{"customer_bearer":[],"publishable_key":[]}],"summary":"Get Logged-in Customer","tags":["Customers"],"x-allowed":["id","email","company_name","first_name","last_name","phone","metadata","has_account","deleted_at","created_at","updated_at","addresses","orders","addresses.id","addresses.address_name","addresses.company","addresses.customer_id","addresses.first_name","addresses.last_name","addresses.address_1","addresses.address_2","addresses.city","addresses.province","addresses.postal_code","addresses.country_code","addresses.phone","addresses.metadata","addresses.is_default_shipping","addresses.is_default_billing","addresses.created_at","addresses.updated_at"],"x-authenticated":true,"x-sedra-upstream":"medusa@2.23.1","x-sidebar-summary":"Get Customer"},"post":{"description":"Update the logged-in customer's details.","externalDocs":{"description":"Storefront guide: How to edit a customer's profile.","url":"https://docs.medusajs.com/resources/storefront-development/customers/profile"},"operationId":"PostCustomersMe","parameters":[{"description":"Publishable API Key created in the Medusa Admin.","in":"header","name":"x-publishable-api-key","required":true,"schema":{"externalDocs":{"url":"https://docs.medusajs.com/api/store#publishable-api-key"},"type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"header","name":"x-medusa-locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}},{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.","in":"query","name":"fields","required":false,"schema":{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields. This API route restricts the fields that can be selected. Learn how to override the retrievable fields in the [Retrieve Custom Links](https://docs.medusajs.com/learn/fundamentals/api-routes/retrieve-custom-links) documentation.","externalDocs":{"url":"#select-fields-and-relations"},"title":"fields","type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"query","name":"locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreUpdateCustomer"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreCustomerResponse"}}},"description":"OK"},"400":{"$ref":"#/components/responses/400_error"},"401":{"$ref":"#/components/responses/unauthorized"},"404":{"$ref":"#/components/responses/not_found_error"},"409":{"$ref":"#/components/responses/invalid_state_error"},"422":{"$ref":"#/components/responses/invalid_request_error"},"500":{"$ref":"#/components/responses/500_error"}},"security":[{"customer_bearer":[],"publishable_key":[]}],"summary":"Update Customer","tags":["Customers"],"x-allowed":["id","email","company_name","first_name","last_name","phone","metadata","has_account","deleted_at","created_at","updated_at","addresses","orders","addresses.id","addresses.address_name","addresses.company","addresses.customer_id","addresses.first_name","addresses.last_name","addresses.address_1","addresses.address_2","addresses.city","addresses.province","addresses.postal_code","addresses.country_code","addresses.phone","addresses.metadata","addresses.is_default_shipping","addresses.is_default_billing","addresses.created_at","addresses.updated_at"],"x-authenticated":true,"x-events":[{"deprecated":false,"description":"Emitted when a customer is updated.","name":"customer.updated","payload":"```ts\n{\n  id, // The ID of the customer\n}\n```"}],"x-sedra-upstream":"medusa@2.23.1","x-workflow":"updateCustomersWorkflow"}},"/store/customers/me/addresses":{"get":{"description":"Retrieve the addresses of the logged-in customer. The addresses can be filtered by fields such as `country_code`. The addresses can also be sorted or paginated.","externalDocs":{"description":"Storefront guide: How to retrieve the logged-in customer's addresses.","url":"https://docs.medusajs.com/resources/storefront-development/customers/addresses#list-customer-addresses"},"operationId":"GetCustomersMeAddresses","parameters":[{"description":"Publishable API Key created in the Medusa Admin.","in":"header","name":"x-publishable-api-key","required":true,"schema":{"externalDocs":{"url":"https://docs.medusajs.com/api/store#publishable-api-key"},"type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"header","name":"x-medusa-locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}},{"description":"Filter by the address's city.","in":"query","name":"city","required":false,"schema":{"oneOf":[{"description":"Filter by a city.","title":"city","type":"string"},{"description":"Filter by cities.","items":{"description":"A city.","title":"city","type":"string"},"type":"array"}]}},{"description":"Filter by the address's postal code.","in":"query","name":"postal_code","required":false,"schema":{"oneOf":[{"description":"Filter by a postal code.","title":"postal_code","type":"string"},{"description":"Filter by postal codes.","items":{"description":"A postal code.","title":"postal_code","type":"string"},"type":"array"}]}},{"description":"Filter by the address's country code.","in":"query","name":"country_code","required":false,"schema":{"oneOf":[{"description":"Filter by a country code.","title":"country_code","type":"string"},{"description":"Filter by country codes.","items":{"description":"A country code.","title":"country_code","type":"string"},"type":"array"}]}},{"description":"Search term to filter the address's searchable properties.","in":"query","name":"q","required":false,"schema":{"description":"Search term to filter the address's searchable properties.","title":"q","type":"string"}},{"description":"Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.","in":"query","name":"$and","required":false,"schema":{"description":"Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.","items":{"type":"object"},"title":"$and","type":"array"}},{"description":"Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.","in":"query","name":"$or","required":false,"schema":{"description":"Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.","items":{"type":"object"},"title":"$or","type":"array"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"query","name":"locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}},{"description":"Limit the number of items returned in the list.","in":"query","name":"limit","required":false,"schema":{"description":"Limit the number of items returned in the list.","externalDocs":{"url":"#pagination"},"title":"limit","type":"number"}},{"description":"The number of items to skip when retrieving a list.","in":"query","name":"offset","required":false,"schema":{"description":"The number of items to skip when retrieving a list.","externalDocs":{"url":"#pagination"},"title":"offset","type":"number"}},{"description":"The field to sort the data by. By default, the sort order is ascending. To change the order to descending, prefix the field name with `-`.","in":"query","name":"order","required":false,"schema":{"description":"The field to sort the data by. By default, the sort order is ascending. To change the order to descending, prefix the field name with `-`.","externalDocs":{"url":"#pagination"},"title":"order","type":"string"}},{"description":"The customer's with deleted.","in":"query","name":"with_deleted","required":false,"schema":{"description":"The customer's with deleted.","title":"with_deleted","type":"boolean"}},{"description":"Comma-separated fields that should be included in the returned data. If a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. Without prefix it will replace the entire default fields.","in":"query","name":"fields","required":false,"schema":{"description":"Comma-separated fields that should be included in the returned data. If a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. Without prefix it will replace the entire default fields.","externalDocs":{"url":"#select-fields-and-relations"},"title":"fields","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreCustomerAddressListResponse"}}},"description":"OK"},"400":{"$ref":"#/components/responses/400_error"},"401":{"$ref":"#/components/responses/unauthorized"},"404":{"$ref":"#/components/responses/not_found_error"},"409":{"$ref":"#/components/responses/invalid_state_error"},"422":{"$ref":"#/components/responses/invalid_request_error"},"500":{"$ref":"#/components/responses/500_error"}},"security":[{"customer_bearer":[],"publishable_key":[]}],"summary":"List Customer's Addresses","tags":["Customers"],"x-allowed":["id","address_name","company","customer_id","first_name","last_name","address_1","address_2","city","province","postal_code","country_code","phone","metadata","is_default_shipping","is_default_billing","created_at","updated_at"],"x-authenticated":true,"x-sedra-upstream":"medusa@2.23.1","x-sidebary-summary":"List Addresses"},"post":{"description":"Create an address for the logged-in customer.","externalDocs":{"description":"Storefront guide: How to create an address for the logged-in customer.","url":"https://docs.medusajs.com/resources/storefront-development/customers/addresses#add-customer-address"},"operationId":"PostCustomersMeAddresses","parameters":[{"description":"Publishable API Key created in the Medusa Admin.","in":"header","name":"x-publishable-api-key","required":true,"schema":{"externalDocs":{"url":"https://docs.medusajs.com/api/store#publishable-api-key"},"type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"header","name":"x-medusa-locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}},{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields. This API route restricts the fields that can be selected. Learn how to override the retrievable fields in the [Retrieve Custom Links](https://docs.medusajs.com/learn/fundamentals/api-routes/retrieve-custom-links) documentation.","in":"query","name":"fields","required":false,"schema":{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields. This API route restricts the fields that can be selected. Learn how to override the retrievable fields in the [Retrieve Custom Links](https://docs.medusajs.com/learn/fundamentals/api-routes/retrieve-custom-links) documentation.","externalDocs":{"url":"#select-fields-and-relations"},"title":"fields","type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"query","name":"locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreCreateCustomerAddress"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreCustomerResponse"}}},"description":"OK"},"400":{"$ref":"#/components/responses/400_error"},"401":{"$ref":"#/components/responses/unauthorized"},"404":{"$ref":"#/components/responses/not_found_error"},"409":{"$ref":"#/components/responses/invalid_state_error"},"422":{"$ref":"#/components/responses/invalid_request_error"},"500":{"$ref":"#/components/responses/500_error"}},"security":[{"customer_bearer":[],"publishable_key":[]}],"summary":"Create Address for Logged-In Customer","tags":["Customers"],"x-allowed":["id","email","company_name","first_name","last_name","phone","metadata","has_account","deleted_at","created_at","updated_at","addresses","orders","addresses.id","addresses.address_name","addresses.company","addresses.customer_id","addresses.first_name","addresses.last_name","addresses.address_1","addresses.address_2","addresses.city","addresses.province","addresses.postal_code","addresses.country_code","addresses.phone","addresses.metadata","addresses.is_default_shipping","addresses.is_default_billing","addresses.created_at","addresses.updated_at"],"x-authenticated":true,"x-events":[],"x-sedra-upstream":"medusa@2.23.1","x-sidebar-summary":"Create Address","x-workflow":"createCustomerAddressesWorkflow"}},"/store/foulad/categories":{"get":{"description":"Returns only the business's own categories. Use this instead of Medusa's /store/product-categories, which is platform-wide.","operationId":"sedra_store_categories","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"product_categories":{"items":{"properties":{"handle":{"type":"string"},"id":{"example":"pcat_01H...","type":"string"},"name":{"type":"string"},"name_ar":{"type":["string","null"]},"parent_category_id":{"type":["string","null"]}},"type":"object"},"type":"array"}},"type":"object"}}},"description":"Categories"},"404":{"$ref":"#/components/responses/SedraNotFound"}},"security":[{"publishable_key":[]}],"summary":"List this storefront's categories","tags":["Sedra store"]}},"/store/foulad/customers/link":{"post":{"description":"Idempotent. Call after sign-in or registration so the business sees the customer. Orders placed at the storefront link the customer automatically as well.","operationId":"sedra_store_link_customer","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"linked":{"type":"boolean"},"tenant":{"type":"string"}},"type":"object"}}},"description":"Linked"},"401":{"$ref":"#/components/responses/SedraUnauthorized"}},"security":[{"customer_bearer":[],"publishable_key":[]}],"summary":"Record that the signed-in customer shops at this business","tags":["Sedra store"]}},"/store/foulad/orders":{"get":{"description":"Order history scoped to this storefront's business. Customer accounts are platform-wide, but order visibility is per storefront.","operationId":"sedra_store_my_orders","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"orders":{"items":{"properties":{"created_at":{"format":"date-time","type":"string"},"currency_code":{"type":"string"},"display_id":{"type":"integer"},"fulfillment_status":{"type":"string"},"id":{"type":"string"},"items":{"items":{"properties":{"quantity":{"type":"number"},"thumbnail":{"type":["string","null"]},"title":{"type":"string"},"unit_price":{"type":"number"}},"type":"object"},"type":"array"},"payment_status":{"type":"string"},"status":{"type":"string"},"total":{"description":"Major units (BHD has 3 decimals)","type":"number"}},"type":"object"},"type":"array"}},"type":"object"}}},"description":"Orders"},"401":{"$ref":"#/components/responses/SedraUnauthorized"}},"security":[{"customer_bearer":[],"publishable_key":[]}],"summary":"List the signed-in customer's orders at this storefront","tags":["Sedra store"]}},"/store/foulad/tenant":{"get":{"description":"Resolves the business from the publishable API key and returns its public configuration (name, locales, currency, region, theme tokens, content). Use it to brand a storefront. Cached privately for 60 s and varies by publishable key.","operationId":"sedra_store_tenant","responses":{"200":{"content":{"application/json":{"schema":{"properties":{"tenant":{"properties":{"content":{"description":"Localized texts: announcement, hero_title, hero_subtitle, seo_description, each {en, ar}","type":"object"},"currency_code":{"example":"bhd","type":"string"},"default_locale":{"enum":["en","ar"],"type":"string"},"handle":{"example":"foulad-store","type":"string"},"name":{"example":"Foulad Store","type":"string"},"region_id":{"type":["string","null"]},"supported_locales":{"items":{"type":"string"},"type":"array"},"theme":{"description":"Design tokens: colors{primary,accent,background,surface,text,muted}, radius, font_latin, font_arabic, layout, logo_text{en,ar}","type":"object"},"timezone":{"example":"Asia/Bahrain","type":"string"}},"type":"object"}},"type":"object"}}},"description":"Business configuration"},"400":{"$ref":"#/components/responses/SedraBadRequest"},"404":{"$ref":"#/components/responses/SedraNotFound"}},"security":[{"publishable_key":[]}],"summary":"Get this storefront's business configuration","tags":["Sedra store"]}},"/store/orders/{id}":{"get":{"description":"Retrieve an order by its ID. You can expand the order's relations or select the fields that should be returned. This API route doesn't require customer authentication, so that guest customers can view their order confirmation page after placing an order. To restrict access to this API route, refer to the [Restrict Order Retrieval guide](https://docs.medusajs.com/resources/commerce-modules/order/secure-order-retrieval).","operationId":"GetOrdersId","parameters":[{"description":"The order's ID.","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Publishable API Key created in the Medusa Admin.","in":"header","name":"x-publishable-api-key","required":true,"schema":{"externalDocs":{"url":"https://docs.medusajs.com/api/store#publishable-api-key"},"type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"header","name":"x-medusa-locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}},{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.","in":"query","name":"fields","required":false,"schema":{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.","externalDocs":{"url":"#select-fields-and-relations"},"title":"fields","type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"query","name":"locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreOrderResponse"}}},"description":"OK"},"400":{"$ref":"#/components/responses/400_error"},"401":{"$ref":"#/components/responses/unauthorized"},"404":{"$ref":"#/components/responses/not_found_error"},"409":{"$ref":"#/components/responses/invalid_state_error"},"422":{"$ref":"#/components/responses/invalid_request_error"},"500":{"$ref":"#/components/responses/500_error"}},"security":[{"publishable_key":[]}],"summary":"Get an Order","tags":["Orders"],"x-allowed":["id","status","summary","currency_code","display_id","custom_display_id","region_id","email","total","subtotal","tax_total","discount_total","discount_subtotal","discount_tax_total","original_total","original_subtotal","original_tax_total","item_total","item_subtotal","item_tax_total","original_item_total","original_item_subtotal","original_item_tax_total","shipping_total","shipping_subtotal","shipping_tax_total","original_shipping_tax_total","original_shipping_subtotal","original_shipping_total","credit_line_total","credit_line_subtotal","credit_line_tax_total","created_at","updated_at","credit_lines","items","items.tax_lines","items.adjustments","items.detail","items.variant","items.variant.product","shipping_address","billing_address","shipping_methods","shipping_methods.tax_lines","shipping_methods.adjustments","payment_collections","customer_id","sales_channel_id","payment_status","fulfillment_status","item_discount_total","gift_card_total","gift_card_tax_total","shipping_discount_total","customer.id","customer.email","cart.id","items.metadata","items.product","payment_collections.payments","payment_collections.payment_sessions","payment_collections.payment_providers","fulfillments","promotions","promotions.id","promotions.code","promotions.is_automatic","promotions.is_tax_inclusive","promotions.application_method.value","promotions.application_method.type","promotions.application_method.currency_code","items.id","items.title","items.subtitle","items.thumbnail","items.variant_id","items.product_id","items.product_title","items.product_description","items.product_subtitle","items.product_type_id","items.product_type","items.product_collection","items.product_handle","items.variant_sku","items.variant_barcode","items.variant_title","items.variant_option_values","items.requires_shipping","items.is_discountable","items.is_tax_inclusive","items.unit_price","items.quantity","items.created_at","items.updated_at","items.original_total","items.original_subtotal","items.original_tax_total","items.item_total","items.item_subtotal","items.item_tax_total","items.total","items.subtotal","items.tax_total","items.discount_total","items.discount_tax_total","items.refundable_total","items.refundable_total_per_unit","items.detail.id","items.detail.item_id","items.detail.quantity","items.detail.fulfilled_quantity","items.detail.delivered_quantity","items.detail.shipped_quantity","items.detail.return_requested_quantity","items.detail.return_received_quantity","items.detail.return_dismissed_quantity","items.detail.written_off_quantity","items.detail.metadata","items.detail.created_at","items.detail.updated_at","items.tax_lines.id","items.tax_lines.code","items.tax_lines.rate","items.tax_lines.created_at","items.tax_lines.updated_at","items.tax_lines.item_id","items.tax_lines.total","items.tax_lines.subtotal","items.adjustments.id","items.adjustments.amount","items.adjustments.order_id","items.adjustments.created_at","items.adjustments.updated_at","items.adjustments.item_id","items.variant.id","items.variant.title","items.variant.sku","items.variant.barcode","items.variant.ean","items.variant.upc","items.variant.thumbnail","items.variant.allow_backorder","items.variant.manage_inventory","items.variant.hs_code","items.variant.origin_country","items.variant.mid_code","items.variant.material","items.variant.weight","items.variant.length","items.variant.height","items.variant.width","items.variant.created_at","items.variant.updated_at","items.variant.deleted_at","items.variant.options","items.variant.product.id","items.variant.product.title","items.variant.product.handle","items.variant.product.subtitle","items.variant.product.description","items.variant.product.is_giftcard","items.variant.product.status","items.variant.product.thumbnail","items.variant.product.width","items.variant.product.weight","items.variant.product.length","items.variant.product.height","items.variant.product.origin_country","items.variant.product.hs_code","items.variant.product.mid_code","items.variant.product.material","items.variant.product.collection_id","items.variant.product.type_id","items.variant.product.discountable","items.variant.product.external_id","items.variant.product.created_at","items.variant.product.updated_at","items.variant.product.deleted_at","items.variant.product.variants","items.variant.product.options","items.variant.product.images","shipping_address.id","shipping_address.metadata","shipping_address.created_at","shipping_address.updated_at","billing_address.id","billing_address.metadata","billing_address.created_at","billing_address.updated_at","shipping_methods.id","shipping_methods.order_id","shipping_methods.name","shipping_methods.amount","shipping_methods.is_tax_inclusive","shipping_methods.shipping_option_id","shipping_methods.data","shipping_methods.metadata","shipping_methods.original_total","shipping_methods.original_subtotal","shipping_methods.original_tax_total","shipping_methods.total","shipping_methods.subtotal","shipping_methods.tax_total","shipping_methods.discount_total","shipping_methods.discount_tax_total","shipping_methods.created_at","shipping_methods.updated_at","shipping_methods.tax_lines.id","shipping_methods.tax_lines.code","shipping_methods.tax_lines.rate","shipping_methods.tax_lines.created_at","shipping_methods.tax_lines.updated_at","shipping_methods.tax_lines.shipping_method_id","shipping_methods.tax_lines.total","shipping_methods.tax_lines.subtotal","shipping_methods.adjustments.id","shipping_methods.adjustments.amount","shipping_methods.adjustments.order_id","shipping_methods.adjustments.created_at","shipping_methods.adjustments.updated_at","shipping_methods.adjustments.shipping_method_id","payment_collections.id","payment_collections.currency_code","payment_collections.amount","payment_collections.status"],"x-authenticated":false,"x-events":[],"x-sedra-upstream":"medusa@2.23.1","x-workflow":"getOrderDetailWorkflow"}},"/store/payment-collections":{"post":{"description":"Create a payment collection for a cart. This is used during checkout, where the payment collection holds the cart's payment sessions.","externalDocs":{"description":"Storefront guide: How to implement payment during checkout.","url":"https://docs.medusajs.com/resources/storefront-development/checkout/payment"},"operationId":"PostPaymentCollections","parameters":[{"description":"Publishable API Key created in the Medusa Admin.","in":"header","name":"x-publishable-api-key","required":true,"schema":{"externalDocs":{"url":"https://docs.medusajs.com/api/store#publishable-api-key"},"type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"header","name":"x-medusa-locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}},{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.","in":"query","name":"fields","required":false,"schema":{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.","externalDocs":{"url":"#select-fields-and-relations"},"title":"fields","type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"query","name":"locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreCreatePaymentCollection"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StorePaymentCollectionResponse"}}},"description":"OK"},"400":{"$ref":"#/components/responses/400_error"},"401":{"$ref":"#/components/responses/unauthorized"},"404":{"$ref":"#/components/responses/not_found_error"},"409":{"$ref":"#/components/responses/invalid_state_error"},"422":{"$ref":"#/components/responses/invalid_request_error"},"500":{"$ref":"#/components/responses/500_error"}},"security":[{"publishable_key":[]}],"summary":"Create Payment Collection","tags":["Payment Collections"],"x-allowed":["id","currency_code","amount","payment_sessions","status","payment_providers","payment_providers.id","payment_sessions.id","payment_sessions.amount","payment_sessions.currency_code","payment_sessions.provider_id","payment_sessions.data","payment_sessions.status"],"x-authenticated":false,"x-events":[],"x-sedra-upstream":"medusa@2.23.1","x-workflow":"createPaymentCollectionForCartWorkflow"}},"/store/payment-collections/{id}/payment-sessions":{"post":{"description":"Initialize and add a payment session to a payment collection. This is used during checkout, where you create a payment collection for the cart, then initialize a payment session for the payment provider that the customer chooses.\nIt's highly recommended to have an amount greater than `0` in the payment collection, as some payment providers, such as Stripe, require a non-zero amount to create a payment session. Otherwise, an error will be thrown on the payment provider's side.\nIn cases where you want to create a payment session for a payment collection with an amount of `0`, you can use the Manual System Payment Provider instead of third-party payment providers. The Manual System Payment Provider is built into Medusa and allows you to create payment sessions without interacting with an external payment provider.\nMake sure to configure the Manual System Payment Provider in your store's region. Learn more in the [Manage Region](https://docs.medusajs.com/user-guide/settings/regions#edit-region-details) user guide.\n","externalDocs":{"description":"Storefront guide: How to implement payment during checkout.","url":"https://docs.medusajs.com/resources/storefront-development/checkout/payment"},"operationId":"PostPaymentCollectionsIdPaymentSessions","parameters":[{"description":"The payment collection's ID.","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Publishable API Key created in the Medusa Admin.","in":"header","name":"x-publishable-api-key","required":true,"schema":{"externalDocs":{"url":"https://docs.medusajs.com/api/store#publishable-api-key"},"type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"header","name":"x-medusa-locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}},{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.","in":"query","name":"fields","required":false,"schema":{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.","externalDocs":{"url":"#select-fields-and-relations"},"title":"fields","type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"query","name":"locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreInitializePaymentSession"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StorePaymentCollectionResponse"}}},"description":"OK"},"400":{"$ref":"#/components/responses/400_error"},"401":{"$ref":"#/components/responses/unauthorized"},"404":{"$ref":"#/components/responses/not_found_error"},"409":{"$ref":"#/components/responses/invalid_state_error"},"422":{"$ref":"#/components/responses/invalid_request_error"},"500":{"$ref":"#/components/responses/500_error"}},"security":[{"publishable_key":[]}],"summary":"Initialize Payment Session of a Payment Collection","tags":["Payment Collections"],"x-allowed":["id","currency_code","amount","payment_sessions","status","payment_providers","payment_providers.id","payment_sessions.id","payment_sessions.amount","payment_sessions.currency_code","payment_sessions.provider_id","payment_sessions.data","payment_sessions.status"],"x-authenticated":false,"x-events":[],"x-sedra-upstream":"medusa@2.23.1","x-sidebar-summary":"Initialize Payment Session","x-workflow":"createPaymentSessionsWorkflow"}},"/store/payment-providers":{"get":{"description":"Retrieve a list of payment providers. You must provide the `region_id` query parameter to retrieve the payment providers enabled in that region.","externalDocs":{"description":"Storefront guide: How to implement payment during checkout.","url":"https://docs.medusajs.com/resources/storefront-development/checkout/payment"},"operationId":"GetPaymentProviders","parameters":[{"description":"Publishable API Key created in the Medusa Admin.","in":"header","name":"x-publishable-api-key","required":true,"schema":{"externalDocs":{"url":"https://docs.medusajs.com/api/store#publishable-api-key"},"type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"header","name":"x-medusa-locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}},{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.","in":"query","name":"fields","required":false,"schema":{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.","externalDocs":{"url":"#select-fields-and-relations"},"title":"fields","type":"string"}},{"description":"The number of items to skip when retrieving a list.","in":"query","name":"offset","required":false,"schema":{"description":"The number of items to skip when retrieving a list.","externalDocs":{"url":"#pagination"},"title":"offset","type":"number"}},{"description":"Limit the number of items returned in the list.","in":"query","name":"limit","required":false,"schema":{"description":"Limit the number of items returned in the list.","externalDocs":{"url":"#pagination"},"title":"limit","type":"number"}},{"description":"The field to sort the data by. By default, the sort order is ascending. To change the order to descending, prefix the field name with `-`.","in":"query","name":"order","required":false,"schema":{"description":"The field to sort the data by. By default, the sort order is ascending. To change the order to descending, prefix the field name with `-`.","title":"order","type":"string"}},{"description":"Filter by a region ID to get the payment providers enabled in that region.","in":"query","name":"region_id","required":true,"schema":{"description":"Filter by a region ID.","title":"region_id","type":"string"}},{"description":"Whether to include deleted records in the result.","in":"query","name":"with_deleted","required":false,"schema":{"description":"Whether to include deleted records in the result.","title":"with_deleted","type":"boolean"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"query","name":"locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"allOf":[{"description":"The list of payment providers.","properties":{"count":{"description":"The total number of items.","title":"count","type":"number"},"limit":{"description":"The maximum number of items returned.","title":"limit","type":"number"},"offset":{"description":"The number of items skipped before retrieving the returned items.","title":"offset","type":"number"}},"required":["limit","offset","count"],"type":"object"},{"description":"The list of payment providers.","properties":{"payment_providers":{"description":"The list of payment providers.","items":{"$ref":"#/components/schemas/StorePaymentProvider"},"type":"array"}},"required":["payment_providers"],"type":"object"}]}}},"description":"OK"},"400":{"$ref":"#/components/responses/400_error"},"401":{"$ref":"#/components/responses/unauthorized"},"404":{"$ref":"#/components/responses/not_found_error"},"409":{"$ref":"#/components/responses/invalid_state_error"},"422":{"$ref":"#/components/responses/invalid_request_error"},"500":{"$ref":"#/components/responses/500_error"}},"security":[{"publishable_key":[]}],"summary":"List Payment Providers","tags":["Payment Providers"],"x-allowed":["id","is_enabled"],"x-authenticated":false,"x-sedra-upstream":"medusa@2.23.1"}},"/store/products":{"get":{"description":"Retrieve a list of products. The products can be filtered by fields such as `id`. The products can also be sorted or paginated.\n\nYou can retrieve the content of the products translated to a specific locale either by passing the `locale` query parameter or by setting the `x-medusa-locale` header to the desired locale code in BCP 47 format. If you don't pass a locale, and your store has a default locale, the default locale will be used.\n\nWith localization, the products' content like title and description will be in the specified locale if a translation is available,  and fallback to the original content otherwise. Learn more in the [Localization](#localization) section.\n","externalDocs":{"description":"Storefront guide: How to retrieve a product variants' prices.","url":"https://docs.medusajs.com/resources/storefront-development/products/price"},"operationId":"GetProducts","parameters":[{"description":"Publishable API Key created in the Medusa Admin.","in":"header","name":"x-publishable-api-key","required":true,"schema":{"externalDocs":{"url":"https://docs.medusajs.com/api/store#publishable-api-key"},"type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"header","name":"x-medusa-locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}},{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.","in":"query","name":"fields","required":false,"schema":{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.","externalDocs":{"url":"#select-fields-and-relations"},"title":"fields","type":"string"}},{"description":"The number of items to skip when retrieving a list.","in":"query","name":"offset","required":false,"schema":{"description":"The number of items to skip when retrieving a list.","externalDocs":{"url":"#pagination"},"title":"offset","type":"number"}},{"description":"Limit the number of items returned in the list.","in":"query","name":"limit","required":false,"schema":{"description":"Limit the number of items returned in the list.","externalDocs":{"url":"#pagination"},"title":"limit","type":"number"}},{"description":"The field to sort the data by. By default, the sort order is ascending. To change the order to descending, prefix the field name with `-`.","in":"query","name":"order","required":false,"schema":{"description":"The field to sort the data by. By default, the sort order is ascending. To change the order to descending, prefix the field name with `-`.","title":"order","type":"string"}},{"description":"Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.","in":"query","name":"$and","required":false,"schema":{"description":"Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.","items":{"type":"object"},"title":"$and","type":"array"}},{"description":"Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.","in":"query","name":"$or","required":false,"schema":{"description":"Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.","items":{"type":"object"},"title":"$or","type":"array"}},{"description":"Search term to filter the product's searchable properties.","in":"query","name":"q","required":false,"schema":{"description":"Search term to filter the product's searchable properties.","title":"q","type":"string"}},{"in":"query","name":"id","required":false,"schema":{"oneOf":[{"description":"Filter by a product ID.","title":"id","type":"string"},{"description":"Filter by product IDs.","items":{"description":"A product ID.","title":"id","type":"string"},"type":"array"}]}},{"description":"Filter by product titles.","in":"query","name":"title","required":false,"schema":{"oneOf":[{"description":"Filter by a title.","title":"title","type":"string"},{"description":"Filter by titles.","items":{"description":"A title.","title":"title","type":"string"},"type":"array"}]}},{"description":"Filter by product handles.","in":"query","name":"handle","required":false,"schema":{"oneOf":[{"description":"Filter by a product handle.","title":"handle","type":"string"},{"description":"Filter by product handles.","items":{"description":"A product handle.","title":"handle","type":"string"},"type":"array"}]}},{"description":"Whether the product is a gift card.","in":"query","name":"is_giftcard","required":false,"schema":{"description":"Whether the product is a gift card.","title":"is_giftcard","type":"boolean"}},{"description":"Filter by a collection's ID to retrieve the products in it.","in":"query","name":"collection_id","required":false,"schema":{"description":"Filter by a collection's ID to retrieve the products in it.","externalDocs":{"description":"Storefront guide: Retrieve a collection's products.","url":"https://docs.medusajs.com/resources/storefront-development/products/collections/products"},"items":{"description":"A collection's ID.","title":"collection_id","type":"string"}}},{"description":"Filter by a tag's ID to retrieve the products in it.","in":"query","name":"tag_id","required":false,"schema":{"oneOf":[{"description":"Filter by a product tag's ID.","title":"tag_id","type":"string"},{"description":"Filter by product tag IDs.","items":{"description":"A product tag ID.","title":"tag_id","type":"string"},"type":"array"}]}},{"description":"Filter by a type's ID to retrieve the products in it.","in":"query","name":"type_id","required":false,"schema":{"oneOf":[{"description":"Filter by a product type's ID.","title":"type_id","type":"string"},{"description":"Filter by product type IDs.","items":{"description":"A product type ID.","title":"type_id","type":"string"},"type":"array"}]}},{"description":"Filter by the product's creation date.","in":"query","name":"created_at","required":false,"schema":{"description":"Filter by the product's creation date.","properties":{"$and":{"description":"Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.","items":{"type":"object"},"title":"$and","type":"array"},"$contained":{"description":"Filter arrays that contain all values of this parameter.","items":{"description":"The values to match.","title":"$contained","type":"string"},"type":"array"},"$contains":{"description":"Filter arrays that contain some of the values of this parameter.","items":{"description":"The values to match.","title":"$contains","type":"string"},"type":"array"},"$eq":{"oneOf":[{"description":"Filter by an exact match.","title":"$eq","type":"string"},{"description":"Filter by multiple exact matches.","items":{"description":"An exact match.","title":"$eq","type":"string"},"type":"array"}]},"$exists":{"description":"Filter by whether a value for this parameter exists (not `null`).","title":"$exists","type":"boolean"},"$fulltext":{"description":"Filter to apply on full-text properties.","title":"$fulltext","type":"string"},"$gt":{"description":"Filter by values greater than this parameter. Useful for numbers and dates only.","title":"$gt","type":"string"},"$gte":{"description":"Filter by values greater than or equal to this parameter. Useful for numbers and dates only.","title":"$gte","type":"string"},"$ilike":{"description":"Apply a case-insensitive `like` filter. Useful for strings only.","title":"$ilike","type":"string"},"$in":{"description":"Filter by values in this array.","items":{"description":"The value to match.","title":"$in","type":"string"},"type":"array"},"$like":{"description":"Apply a `like` filter. Useful for strings only.","title":"$like","type":"string"},"$lt":{"description":"Filter by values less than this parameter. Useful for numbers and dates only.","title":"$lt","type":"string"},"$lte":{"description":"Filter by values less than or equal to this parameter. Useful for numbers and dates only.","title":"$lte","type":"string"},"$ne":{"description":"Filter by values not equal to this parameter.","title":"$ne","type":"string"},"$nin":{"description":"Filter by values not in this array.","items":{"description":"The value not to match.","title":"$nin","type":"string"},"type":"array"},"$not":{"oneOf":[{"description":"Filter by values not matching this parameter.","title":"$not","type":"string"},{"description":"Filter by values not matching the conditions in this parameter.","properties":{"$and":{"description":"Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.","items":{"type":"object"},"title":"$and","type":"array"},"$contained":{"description":"Filter arrays that contain all values of this parameter.","items":{"description":"The values to match.","title":"$contained","type":"string"},"type":"array"},"$contains":{"description":"Filter arrays that contain some of the values of this parameter.","items":{"description":"The values to match.","title":"$contains","type":"string"},"type":"array"},"$eq":{"oneOf":[{"description":"Filter by an exact match.","title":"$eq","type":"string"},{"description":"Filter by multiple exact matches.","items":{"description":"The value to match.","title":"$eq","type":"string"},"type":"array"}]},"$exists":{"description":"Filter by whether a value for this parameter exists (not `null`).","title":"$exists","type":"boolean"},"$fulltext":{"description":"Filter to apply on full-text properties.","title":"$fulltext","type":"string"},"$gt":{"description":"Filter by values greater than this parameter. Useful for numbers and dates only.","title":"$gt","type":"string"},"$gte":{"description":"Filter by values greater than or equal to this parameter. Useful for numbers and dates only.","title":"$gte","type":"string"},"$ilike":{"description":"Apply a case-insensitive `like` filter. Useful for strings only.","title":"$ilike","type":"string"},"$in":{"description":"Filter by values in this array.","items":{"description":"The value to match.","title":"$in","type":"string"},"type":"array"},"$like":{"description":"Apply a `like` filter. Useful for strings only.","title":"$like","type":"string"},"$lt":{"description":"Filter by values less than this parameter. Useful for numbers and dates only.","title":"$lt","type":"string"},"$lte":{"description":"Filter by values less than or equal to this parameter. Useful for numbers and dates only.","title":"$lte","type":"string"},"$ne":{"description":"Filter by values not matching this parameter.","title":"$ne","type":"string"},"$nin":{"description":"Filter by values not in this array.","items":{"description":"The value to not match","title":"$nin","type":"string"},"type":"array"},"$not":{"oneOf":[{"description":"Filter by values not matching this parameter","title":"$not","type":"string"},{"description":"Filter by values not matching the conditions in this parameter.","type":"object"},{"description":"Filter by values not matching the values of this parameter.","items":{"description":"The values to not match.","title":"$not","type":"string"},"type":"array"}]},"$or":{"description":"Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.","items":{"type":"object"},"title":"$or","type":"array"},"$overlap":{"description":"Filter arrays that have overlapping values with this parameter.","items":{"description":"The value to match.","title":"$overlap","type":"string"},"type":"array"},"$re":{"description":"Apply a regex filter. Useful for strings only.","title":"$re","type":"string"}},"type":"object"},{"description":"Filter by values not matching those in this parameter.","items":{"description":"The values to not match.","title":"$not","type":"string"},"type":"array"}]},"$or":{"description":"Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.","items":{"type":"object"},"title":"$or","type":"array"},"$overlap":{"description":"Filter arrays that have overlapping values with this parameter.","items":{"description":"The values to match.","title":"$overlap","type":"string"},"type":"array"},"$re":{"description":"Apply a regex filter. Useful for strings only.","title":"$re","type":"string"}},"title":"created_at","type":"object"}},{"description":"Filter by the product's update date.","in":"query","name":"updated_at","required":false,"schema":{"description":"Filter by the product's update date.","properties":{"$and":{"description":"Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.","items":{"type":"object"},"title":"$and","type":"array"},"$contained":{"description":"Filter arrays that contain all values of this parameter.","items":{"description":"The values to match.","title":"$contained","type":"string"},"type":"array"},"$contains":{"description":"Filter arrays that contain some of the values of this parameter.","items":{"description":"The values to match.","title":"$contains","type":"string"},"type":"array"},"$eq":{"oneOf":[{"description":"Filter by an exact match.","title":"$eq","type":"string"},{"description":"Filter by multiple exact matches.","items":{"description":"An exact match.","title":"$eq","type":"string"},"type":"array"}]},"$exists":{"description":"Filter by whether a value for this parameter exists (not `null`).","title":"$exists","type":"boolean"},"$fulltext":{"description":"Filter to apply on full-text properties.","title":"$fulltext","type":"string"},"$gt":{"description":"Filter by values greater than this parameter. Useful for numbers and dates only.","title":"$gt","type":"string"},"$gte":{"description":"Filter by values greater than or equal to this parameter. Useful for numbers and dates only.","title":"$gte","type":"string"},"$ilike":{"description":"Apply a case-insensitive `like` filter. Useful for strings only.","title":"$ilike","type":"string"},"$in":{"description":"Filter by values in this array.","items":{"description":"The value to match.","title":"$in","type":"string"},"type":"array"},"$like":{"description":"Apply a `like` filter. Useful for strings only.","title":"$like","type":"string"},"$lt":{"description":"Filter by values less than this parameter. Useful for numbers and dates only.","title":"$lt","type":"string"},"$lte":{"description":"Filter by values less than or equal to this parameter. Useful for numbers and dates only.","title":"$lte","type":"string"},"$ne":{"description":"Filter by values not equal to this parameter.","title":"$ne","type":"string"},"$nin":{"description":"Filter by values not in this array.","items":{"description":"The value not to match.","title":"$nin","type":"string"},"type":"array"},"$not":{"oneOf":[{"description":"Filter by values not matching this parameter.","title":"$not","type":"string"},{"description":"Filter by values not matching the conditions in this parameter.","properties":{"$and":{"description":"Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.","items":{"type":"object"},"title":"$and","type":"array"},"$contained":{"description":"Filter arrays that contain all values of this parameter.","items":{"description":"The values to match.","title":"$contained","type":"string"},"type":"array"},"$contains":{"description":"Filter arrays that contain some of the values of this parameter.","items":{"description":"The values to match.","title":"$contains","type":"string"},"type":"array"},"$eq":{"oneOf":[{"description":"Filter by an exact match.","title":"$eq","type":"string"},{"description":"Filter by multiple exact matches.","items":{"description":"The value to match.","title":"$eq","type":"string"},"type":"array"}]},"$exists":{"description":"Filter by whether a value for this parameter exists (not `null`).","title":"$exists","type":"boolean"},"$fulltext":{"description":"Filter to apply on full-text properties.","title":"$fulltext","type":"string"},"$gt":{"description":"Filter by values greater than this parameter. Useful for numbers and dates only.","title":"$gt","type":"string"},"$gte":{"description":"Filter by values greater than or equal to this parameter. Useful for numbers and dates only.","title":"$gte","type":"string"},"$ilike":{"description":"Apply a case-insensitive `like` filter. Useful for strings only.","title":"$ilike","type":"string"},"$in":{"description":"Filter by values in this array.","items":{"description":"The value to match.","title":"$in","type":"string"},"type":"array"},"$like":{"description":"Apply a `like` filter. Useful for strings only.","title":"$like","type":"string"},"$lt":{"description":"Filter by values less than this parameter. Useful for numbers and dates only.","title":"$lt","type":"string"},"$lte":{"description":"Filter by values less than or equal to this parameter. Useful for numbers and dates only.","title":"$lte","type":"string"},"$ne":{"description":"Filter by values not matching this parameter.","title":"$ne","type":"string"},"$nin":{"description":"Filter by values not in this array.","items":{"description":"The value to not match","title":"$nin","type":"string"},"type":"array"},"$not":{"oneOf":[{"description":"Filter by values not matching this parameter","title":"$not","type":"string"},{"description":"Filter by values not matching the conditions in this parameter.","type":"object"},{"description":"Filter by values not matching the values of this parameter.","items":{"description":"The values to not match.","title":"$not","type":"string"},"type":"array"}]},"$or":{"description":"Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.","items":{"type":"object"},"title":"$or","type":"array"},"$overlap":{"description":"Filter arrays that have overlapping values with this parameter.","items":{"description":"The value to match.","title":"$overlap","type":"string"},"type":"array"},"$re":{"description":"Apply a regex filter. Useful for strings only.","title":"$re","type":"string"}},"type":"object"},{"description":"Filter by values not matching those in this parameter.","items":{"description":"The values to not match.","title":"$not","type":"string"},"type":"array"}]},"$or":{"description":"Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.","items":{"type":"object"},"title":"$or","type":"array"},"$overlap":{"description":"Filter arrays that have overlapping values with this parameter.","items":{"description":"The values to match.","title":"$overlap","type":"string"},"type":"array"},"$re":{"description":"Apply a regex filter. Useful for strings only.","title":"$re","type":"string"}},"title":"updated_at","type":"object"}},{"description":"The ID of the region the products are being viewed from. This is required if you're retrieving product variant prices with taxes.","in":"query","name":"region_id","required":false,"schema":{"description":"The ID of the region the products are being viewed from. This is required if you're retrieving product variant prices with taxes.","externalDocs":{"description":"Storefront guide: How to show product variants' prices with taxes.","url":"https://docs.medusajs.com/resources/storefront-development/products/price/examples/tax-price"},"title":"region_id","type":"string"}},{"description":"The lower-case ISO 3166-2 province code the products are being viewed from. This is useful to narrow down the tax context when calculating product variant prices with taxes.","in":"query","name":"province","required":false,"schema":{"description":"The lower-case ISO 3166-2 province code the products are being viewed from. This is useful to narrow down the tax context when calculating product variant prices with taxes.","example":"us-ca","externalDocs":{"description":"Learn more about ISO 3166-2","url":"https://en.wikipedia.org/wiki/ISO_3166-2"},"title":"province","type":"string"}},{"in":"query","name":"sales_channel_id","required":false,"schema":{"oneOf":[{"description":"The ID of a sales channel to retrieve products in it.","title":"sales_channel_id","type":"string"},{"description":"The IDs of sales channels to retrieve products in them.","items":{"description":"A sales channel's ID.","title":"sales_channel_id","type":"string"},"type":"array"}]}},{"in":"query","name":"category_id","required":false,"schema":{"oneOf":[{"description":"The ID of a product category to retrieve products in it.","title":"category_id","type":"string"},{"description":"The ID of product categories to retrieve products in them.","items":{"description":"A product category's ID.","title":"category_id","type":"string"},"type":"array"}]}},{"description":"Filter the products' variants.","in":"query","name":"variants","required":false,"schema":{"allOf":[{"description":"The product's variants.","properties":{"$and":{"description":"Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.","items":{"type":"object"},"title":"$and","type":"array"},"$or":{"description":"Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.","items":{"type":"object"},"title":"$or","type":"array"},"allow_backorder":{"description":"Filter by whether backorders are allowed for the variant.","title":"allow_backorder","type":"boolean"},"created_at":{"description":"The variant's created at.","properties":{"$and":{"description":"Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.","items":{"type":"object"},"type":"array"},"$contained":{"description":"Filter to apply on array properties to find contained values.","items":{"type":"string"},"title":"$contained","type":"array"},"$contains":{"description":"Filter to apply on array properties to find contained values.","items":{"type":"string"},"title":"$contains","type":"array"},"$eq":{"oneOf":[{"description":"Filter by exact value.","title":"$eq","type":"string"},{"description":"Filter by exact value.","items":{"type":"string"},"title":"$eq","type":"array"}]},"$exists":{"description":"Filter by whether a value exists or not.","title":"$exists","type":"boolean"},"$fulltext":{"description":"Filter to apply on full-text properties.","title":"$fulltext","type":"string"},"$gt":{"description":"Filter by values greater than the given value.","title":"$gt","type":"string"},"$gte":{"description":"Filter by values greater than or equal to the given value.","title":"$gte","type":"string"},"$ilike":{"description":"Apply a case-insensitive `like` filter. Useful for strings only.","title":"$ilike","type":"string"},"$in":{"description":"Filter by values included in the given array.","items":{"type":"string"},"title":"$in","type":"array"},"$like":{"description":"Apply a `like` filter. Useful for strings only.","title":"$like","type":"string"},"$lt":{"description":"Filter by values less than the given value.","title":"$lt","type":"string"},"$lte":{"description":"Filter by values less than or equal to the given value.","title":"$lte","type":"string"},"$ne":{"description":"Filter by not equal to the given value.","title":"$ne","type":"string"},"$nin":{"description":"Filter by values not included in the given array.","items":{"type":"string"},"title":"$nin","type":"array"},"$not":{"oneOf":[{"description":"Filter by not equal to the given value.","title":"$not","type":"string"},{"description":"Filter by values not matching the conditions in this parameter.","title":"$not","type":"object"},{"description":"Filter by values not matching the conditions in this parameter.","items":{"type":"string"},"title":"$not","type":"array"}]},"$or":{"description":"Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.","items":{"type":"object"},"type":"array"},"$overlap":{"description":"Filter to apply on array properties to find overlapping values.","items":{"type":"string"},"title":"$overlap","type":"array"},"$re":{"description":"Apply a regex filter. Useful for strings only.","title":"$re","type":"string"}},"title":"created_at","type":"object"},"deleted_at":{"description":"The variant's deleted at.","properties":{"$and":{"description":"Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.","items":{"type":"object"},"type":"array"},"$contained":{"description":"Filter to apply on array properties to find contained values.","items":{"type":"string"},"title":"$contained","type":"array"},"$contains":{"description":"Filter to apply on array properties to find contained values.","items":{"type":"string"},"title":"$contains","type":"array"},"$eq":{"oneOf":[{"description":"Filter by exact value.","title":"$eq","type":"string"},{"description":"Filter by exact value.","items":{"type":"string"},"title":"$eq","type":"array"}]},"$exists":{"description":"Filter by whether a value exists or not.","title":"$exists","type":"boolean"},"$fulltext":{"description":"Filter to apply on full-text properties.","title":"$fulltext","type":"string"},"$gt":{"description":"Filter by values greater than the given value.","title":"$gt","type":"string"},"$gte":{"description":"Filter by values greater than or equal to the given value.","title":"$gte","type":"string"},"$ilike":{"description":"Apply a case-insensitive `like` filter. Useful for strings only.","title":"$ilike","type":"string"},"$in":{"description":"Filter by values included in the given array.","items":{"type":"string"},"title":"$in","type":"array"},"$like":{"description":"Apply a `like` filter. Useful for strings only.","title":"$like","type":"string"},"$lt":{"description":"Filter by values less than the given value.","title":"$lt","type":"string"},"$lte":{"description":"Filter by values less than or equal to the given value.","title":"$lte","type":"string"},"$ne":{"description":"Filter by not equal to the given value.","title":"$ne","type":"string"},"$nin":{"description":"Filter by values not included in the given array.","items":{"type":"string"},"title":"$nin","type":"array"},"$not":{"oneOf":[{"description":"Filter by not equal to the given value.","title":"$not","type":"string"},{"description":"Filter by values not matching the conditions in this parameter.","title":"$not","type":"object"},{"description":"Filter by values not matching the conditions in this parameter.","items":{"type":"string"},"title":"$not","type":"array"}]},"$or":{"description":"Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.","items":{"type":"object"},"type":"array"},"$overlap":{"description":"Filter to apply on array properties to find overlapping values.","items":{"type":"string"},"title":"$overlap","type":"array"},"$re":{"description":"Apply a regex filter. Useful for strings only.","title":"$re","type":"string"}},"title":"deleted_at","type":"object"},"fields":{"description":"Comma-separated fields that should be included in the returned data. If a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. Without prefix it will replace the entire default fields.","externalDocs":{"url":"#select-fields-and-relations"},"title":"fields","type":"string"},"id":{"oneOf":[{"description":"Filter by the variant's ID.","title":"id","type":"string"},{"description":"Filter by the variant's IDs.","items":{"description":"A variant's ID.","title":"id","type":"string"},"type":"array"}]},"limit":{"description":"Limit the number of items returned in the list.","externalDocs":{"url":"#pagination"},"title":"limit","type":"number"},"manage_inventory":{"description":"Filter by whether Medusa manages the variant's inventory.","title":"manage_inventory","type":"boolean"},"offset":{"description":"The number of items to skip when retrieving a list.","externalDocs":{"url":"#pagination"},"title":"offset","type":"number"},"options":{"description":"Filter by the variant's options.","properties":{"option_id":{"description":"Filter by the option's option ID.","title":"option_id","type":"string"},"value":{"description":"Filter by the option's value.","title":"value","type":"string"}},"type":"object"},"order":{"description":"The field to sort the data by. By default, the sort order is ascending. To change the order to descending, prefix the field name with `-`.","externalDocs":{"url":"#pagination"},"title":"order","type":"string"},"product_id":{"oneOf":[{"description":"Filter by the variant's product ID.","title":"product_id","type":"string"},{"description":"Filter by the variant's product IDs.","items":{"description":"A variant's product ID.","title":"product_id","type":"string"},"type":"array"}]},"q":{"description":"Search term to filter the variant's searchable properties.","title":"q","type":"string"},"sku":{"oneOf":[{"description":"The variant's SKU.","title":"sku","type":"string"},{"description":"The variant's SKUs.","items":{"description":"A variant SKU.","title":"sku","type":"string"},"type":"array"}]},"updated_at":{"description":"The variant's updated at.","properties":{"$and":{"description":"Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.","items":{"type":"object"},"type":"array"},"$contained":{"description":"Filter to apply on array properties to find contained values.","items":{"type":"string"},"title":"$contained","type":"array"},"$contains":{"description":"Filter to apply on array properties to find contained values.","items":{"type":"string"},"title":"$contains","type":"array"},"$eq":{"oneOf":[{"description":"Filter by exact value.","title":"$eq","type":"string"},{"description":"Filter by exact value.","items":{"type":"string"},"title":"$eq","type":"array"}]},"$exists":{"description":"Filter by whether a value exists or not.","title":"$exists","type":"boolean"},"$fulltext":{"description":"Filter to apply on full-text properties.","title":"$fulltext","type":"string"},"$gt":{"description":"Filter by values greater than the given value.","title":"$gt","type":"string"},"$gte":{"description":"Filter by values greater than or equal to the given value.","title":"$gte","type":"string"},"$ilike":{"description":"Apply a case-insensitive `like` filter. Useful for strings only.","title":"$ilike","type":"string"},"$in":{"description":"Filter by values included in the given array.","items":{"type":"string"},"title":"$in","type":"array"},"$like":{"description":"Apply a `like` filter. Useful for strings only.","title":"$like","type":"string"},"$lt":{"description":"Filter by values less than the given value.","title":"$lt","type":"string"},"$lte":{"description":"Filter by values less than or equal to the given value.","title":"$lte","type":"string"},"$ne":{"description":"Filter by not equal to the given value.","title":"$ne","type":"string"},"$nin":{"description":"Filter by values not included in the given array.","items":{"type":"string"},"title":"$nin","type":"array"},"$not":{"oneOf":[{"description":"Filter by not equal to the given value.","title":"$not","type":"string"},{"description":"Filter by values not matching the conditions in this parameter.","title":"$not","type":"object"},{"description":"Filter by values not matching the conditions in this parameter.","items":{"type":"string"},"title":"$not","type":"array"}]},"$or":{"description":"Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.","items":{"type":"object"},"type":"array"},"$overlap":{"description":"Filter to apply on array properties to find overlapping values.","items":{"type":"string"},"title":"$overlap","type":"array"},"$re":{"description":"Apply a regex filter. Useful for strings only.","title":"$re","type":"string"}},"title":"updated_at","type":"object"},"with_deleted":{"description":"The variant's with deleted.","title":"with_deleted","type":"boolean"}},"type":"object","x-schemaName":"StoreProductVariantParams"},{"description":"Filter the products by their variants.","properties":{"barcode":{"oneOf":[{"description":"Filter by the variant's barcode.","title":"barcode","type":"string"},{"description":"Filter by the variant's barcodes.","items":{"description":"A variant's barcode.","title":"barcode","type":"string"},"type":"array"}]},"ean":{"oneOf":[{"description":"Filter by the variant's ean.","title":"ean","type":"string"},{"description":"Filter by the variant's eans.","items":{"description":"A variant's ean.","title":"ean","type":"string"},"type":"array"}]},"sku":{"oneOf":[{"description":"Filter by the variant's sku.","title":"sku","type":"string"},{"description":"Filter by the variant's skus.","items":{"description":"A variant's sku.","title":"sku","type":"string"},"type":"array"}]},"upc":{"oneOf":[{"description":"Filter by the variant's upc.","title":"upc","type":"string"},{"description":"Filter by the variant's upcs.","items":{"description":"A variant's upc.","title":"upc","type":"string"},"type":"array"}]}},"type":"object"}]}},{"description":"The product's country code.","in":"query","name":"country_code","required":false,"schema":{"description":"The product's country code.","title":"country_code","type":"string"}},{"description":"The product's cart id.","in":"query","name":"cart_id","required":false,"schema":{"description":"The product's cart id.","title":"cart_id","type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"query","name":"locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}},{"in":"query","name":"external_id","required":false,"schema":{"oneOf":[{"description":"Filter by a product's external ID.","title":"external_id","type":"string"},{"description":"Filter by external IDs.","items":{"description":"The external ID.","title":"external_id","type":"string"},"type":"array"}]}},{"in":"query","name":"option_value_id","required":false,"schema":{"oneOf":[{"description":"Filter by a product option value ID to retrieve products that have variants with that option value.","title":"option_value_id","type":"string"},{"description":"Filter by product option value IDs to retrieve products that have variants with those option values.","items":{"description":"The product option value ID.","title":"option_value_id","type":"string"},"type":"array"}]}},{"in":"query","name":"option_id","required":false,"schema":{"oneOf":[{"description":"Filter by a product option ID to retrieve products that have variants with that option.","title":"option_id","type":"string"},{"description":"Filter by product option IDs to retrieve products that have variants with those options.","items":{"description":"The product option ID.","title":"option_id","type":"string"},"type":"array"}]}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreProductListResponse"}}},"description":"OK"},"400":{"$ref":"#/components/responses/400_error"},"401":{"$ref":"#/components/responses/unauthorized"},"404":{"$ref":"#/components/responses/not_found_error"},"409":{"$ref":"#/components/responses/invalid_state_error"},"422":{"$ref":"#/components/responses/invalid_request_error"},"500":{"$ref":"#/components/responses/500_error"}},"security":[{"publishable_key":[]}],"summary":"List Products","tags":["Products"],"x-allowed":["id","title","subtitle","description","handle","is_giftcard","discountable","thumbnail","collection_id","type_id","weight","length","height","width","hs_code","origin_country","mid_code","material","created_at","updated_at","type","collection","options","options.values","tags","images","variants","variants.options","metadata","categories","status","external_id","deleted_at","variants.calculated_price","variants.inventory_quantity","variants.manage_inventory","variants.allow_backorder","variants.images","variants.thumbnail","variants.options.option","variants.inventory_items","variants.inventory_items.inventory_item_id","variants.inventory_items.required_quantity","variants.inventory_items.inventory","variants.inventory_items.inventory.location_levels","variants.prices","variants.id","variants.title","variants.sku","variants.barcode","variants.ean","variants.upc","variants.hs_code","variants.origin_country","variants.mid_code","variants.material","variants.weight","variants.length","variants.height","variants.width","variants.created_at","variants.updated_at","variants.deleted_at","variants.options.id","variants.options.value","options.id","options.title","options.is_exclusive","options.values.id","options.values.value","images.id","images.url","images.rank","type.id","type.value","type.created_at","type.updated_at","tags.id","tags.value","tags.created_at","tags.updated_at","collection.id","collection.title","collection.handle","collection.created_at","collection.updated_at","collection.deleted_at","collection.metadata"],"x-authenticated":false,"x-sedra-upstream":"medusa@2.23.1"}},"/store/products/{id}":{"get":{"description":"Retrieve a product by its ID. You can expand the product's relations or select the fields that should be returned.\n\nYou can retrieve the content of the product translated to a specific locale either by passing the `locale` query parameter or by setting the `x-medusa-locale` header to the desired locale code in BCP 47 format. If you don't pass a locale, and your store has a default locale, the default locale will be used.\n\nWith localization, the product's content like title and description will be in the specified locale if a translation is available,  and fallback to the original content otherwise. Learn more in the [Localization](#localization) section.\n","externalDocs":{"description":"Storefront guide: How to retrieve a product variants' prices.","url":"https://docs.medusajs.com/resources/storefront-development/products/price"},"operationId":"GetProductsId","parameters":[{"description":"The product's ID.","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Publishable API Key created in the Medusa Admin.","in":"header","name":"x-publishable-api-key","required":true,"schema":{"externalDocs":{"url":"https://docs.medusajs.com/api/store#publishable-api-key"},"type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"header","name":"x-medusa-locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}},{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.","in":"query","name":"fields","required":false,"schema":{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.","externalDocs":{"url":"#select-fields-and-relations"},"title":"fields","type":"string"}},{"description":"The ID of the region the product is being viewed from. This is required if you're retrieving product variant prices with taxes.","in":"query","name":"region_id","required":false,"schema":{"description":"The ID of the region the product is being viewed from. This is required if you're retrieving product variant prices with taxes.","externalDocs":{"description":"Storefront guide: How to show product variants' prices with taxes.","url":"https://docs.medusajs.com/resources/storefront-development/products/price/examples/tax-price"},"title":"region_id","type":"string"}},{"description":"The country code the product is being viewed from. This is required if you're retrieving product variant prices with taxes.","in":"query","name":"country_code","required":false,"schema":{"description":"The country code the product is being viewed from. This is required if you're retrieving product variant prices with taxes.","title":"country_code","type":"string"}},{"description":"The lower-case ISO 3166-2 province code the product is being viewed from. This is useful to narrow down the tax context when calculating product variant prices with taxes.","in":"query","name":"province","required":false,"schema":{"description":"The lower-case ISO 3166-2 province code the product is being viewed from. This is useful to narrow down the tax context when calculating product variant prices with taxes.","example":"us-ca","externalDocs":{"description":"Learn more about ISO 3166-2","url":"https://en.wikipedia.org/wiki/ISO_3166-2"},"title":"province","type":"string"}},{"description":"The ID of the customer's cart. If set, the cart's region and shipping address's country code and province are used instead of the `region_id`, `country_code`, and `province` properties.","in":"query","name":"cart_id","required":false,"schema":{"description":"The ID of the customer's cart. If set, the cart's region and shipping address's country code and province are used instead of the `region_id`, `country_code`, and `province` properties.","title":"cart_id","type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"query","name":"locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreProductResponse"}}},"description":"OK"},"400":{"$ref":"#/components/responses/400_error"},"401":{"$ref":"#/components/responses/unauthorized"},"404":{"$ref":"#/components/responses/not_found_error"},"409":{"$ref":"#/components/responses/invalid_state_error"},"422":{"$ref":"#/components/responses/invalid_request_error"},"500":{"$ref":"#/components/responses/500_error"}},"security":[{"publishable_key":[]}],"summary":"Get a Product","tags":["Products"],"x-allowed":["id","title","subtitle","description","handle","is_giftcard","discountable","thumbnail","collection_id","type_id","weight","length","height","width","hs_code","origin_country","mid_code","material","created_at","updated_at","type","collection","options","options.values","tags","images","variants","variants.options","metadata","categories","status","external_id","deleted_at","variants.calculated_price","variants.inventory_quantity","variants.manage_inventory","variants.allow_backorder","variants.images","variants.thumbnail","variants.options.option","variants.inventory_items","variants.inventory_items.inventory_item_id","variants.inventory_items.required_quantity","variants.inventory_items.inventory","variants.inventory_items.inventory.location_levels","variants.prices","variants.id","variants.title","variants.sku","variants.barcode","variants.ean","variants.upc","variants.hs_code","variants.origin_country","variants.mid_code","variants.material","variants.weight","variants.length","variants.height","variants.width","variants.created_at","variants.updated_at","variants.deleted_at","variants.options.id","variants.options.value","options.id","options.title","options.is_exclusive","options.values.id","options.values.value","images.id","images.url","images.rank","type.id","type.value","type.created_at","type.updated_at","tags.id","tags.value","tags.created_at","tags.updated_at","collection.id","collection.title","collection.handle","collection.created_at","collection.updated_at","collection.deleted_at","collection.metadata"],"x-authenticated":false,"x-sedra-upstream":"medusa@2.23.1"}},"/store/regions":{"get":{"description":"Retrieve a list of regions. The regions can be filtered by fields such as `id`. The regions can also be sorted or paginated.","externalDocs":{"description":"Storefront guide: How to retrieve a list of regions.","url":"https://docs.medusajs.com/resources/storefront-development/regions/list"},"operationId":"GetRegions","parameters":[{"description":"Publishable API Key created in the Medusa Admin.","in":"header","name":"x-publishable-api-key","required":true,"schema":{"externalDocs":{"url":"https://docs.medusajs.com/api/store#publishable-api-key"},"type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"header","name":"x-medusa-locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}},{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.","in":"query","name":"fields","required":false,"schema":{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.","externalDocs":{"url":"#select-fields-and-relations"},"title":"fields","type":"string"}},{"description":"The number of items to skip when retrieving a list.","in":"query","name":"offset","required":false,"schema":{"description":"The number of items to skip when retrieving a list.","externalDocs":{"url":"#pagination"},"title":"offset","type":"number"}},{"description":"Limit the number of items returned in the list.","in":"query","name":"limit","required":false,"schema":{"description":"Limit the number of items returned in the list.","externalDocs":{"url":"#pagination"},"title":"limit","type":"number"}},{"description":"The field to sort the data by. By default, the sort order is ascending. To change the order to descending, prefix the field name with `-`.","in":"query","name":"order","required":false,"schema":{"description":"The field to sort the data by. By default, the sort order is ascending. To change the order to descending, prefix the field name with `-`.","title":"order","type":"string"}},{"description":"Search term to filter the region's searchable properties.","in":"query","name":"q","required":false,"schema":{"description":"Search term to filter the region's searchable properties.","title":"q","type":"string"}},{"in":"query","name":"id","required":false,"schema":{"oneOf":[{"description":"Filter by a region's ID.","title":"id","type":"string"},{"description":"Filter by region IDs.","items":{"description":"A region's ID.","title":"id","type":"string"},"type":"array"}]}},{"in":"query","name":"name","required":false,"schema":{"oneOf":[{"description":"Filter by a region name.","title":"name","type":"string"},{"description":"Filter by region names.","items":{"description":"A region's name.","title":"name","type":"string"},"type":"array"}]}},{"in":"query","name":"currency_code","required":false,"schema":{"oneOf":[{"description":"Filter by a currency code to retrieve regions that use that code.","title":"currency_code","type":"string"},{"description":"Filter by currency codes to retrieve regions that use one of these codes.","items":{"description":"A currency code.","title":"currency_code","type":"string"},"type":"array"}]}},{"description":"Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.","in":"query","name":"$and","required":false,"schema":{"description":"Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.","items":{"type":"object"},"title":"$and","type":"array"}},{"description":"Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.","in":"query","name":"$or","required":false,"schema":{"description":"Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.","items":{"type":"object"},"title":"$or","type":"array"}},{"description":"Whether to include deleted records in the result.","in":"query","name":"with_deleted","required":false,"schema":{"description":"Whether to include deleted records in the result.","title":"with_deleted","type":"boolean"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"query","name":"locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"allOf":[{"description":"The paginated list of regions.","properties":{"count":{"description":"The total number of items.","title":"count","type":"number"},"limit":{"description":"The maximum number of items returned.","title":"limit","type":"number"},"offset":{"description":"The number of items skipped before retrieving the returned items.","title":"offset","type":"number"}},"required":["limit","offset","count"],"type":"object"},{"description":"The paginated list of regions.","properties":{"regions":{"description":"The list of regions.","items":{"$ref":"#/components/schemas/StoreRegion"},"type":"array"}},"required":["regions"],"type":"object"}]}}},"description":"OK"},"400":{"$ref":"#/components/responses/400_error"},"401":{"$ref":"#/components/responses/unauthorized"},"404":{"$ref":"#/components/responses/not_found_error"},"409":{"$ref":"#/components/responses/invalid_state_error"},"422":{"$ref":"#/components/responses/invalid_request_error"},"500":{"$ref":"#/components/responses/500_error"}},"security":[{"publishable_key":[]}],"summary":"List Regions","tags":["Regions"],"x-allowed":["id","name","currency_code","created_at","updated_at","deleted_at","metadata","countries","countries.id","countries.iso_2","countries.iso_3","countries.num_code","countries.name","countries.display_name","payment_providers","payment_providers.id","payment_providers.is_enabled"],"x-authenticated":false,"x-sedra-upstream":"medusa@2.23.1"}},"/store/regions/{id}":{"get":{"description":"Retrieve a region by its ID. You can expand the region's relations or select the fields that should be returned.","operationId":"GetRegionsId","parameters":[{"description":"The region's ID.","in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"Publishable API Key created in the Medusa Admin.","in":"header","name":"x-publishable-api-key","required":true,"schema":{"externalDocs":{"url":"https://docs.medusajs.com/api/store#publishable-api-key"},"type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"header","name":"x-medusa-locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}},{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.","in":"query","name":"fields","required":false,"schema":{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.","externalDocs":{"url":"#select-fields-and-relations"},"title":"fields","type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"query","name":"locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"description":"The region's details.","properties":{"region":{"$ref":"#/components/schemas/StoreRegion"}},"required":["region"],"type":"object"}}},"description":"OK"},"400":{"$ref":"#/components/responses/400_error"},"401":{"$ref":"#/components/responses/unauthorized"},"404":{"$ref":"#/components/responses/not_found_error"},"409":{"$ref":"#/components/responses/invalid_state_error"},"422":{"$ref":"#/components/responses/invalid_request_error"},"500":{"$ref":"#/components/responses/500_error"}},"security":[{"publishable_key":[]}],"summary":"Get a Region","tags":["Regions"],"x-allowed":["id","name","currency_code","created_at","updated_at","deleted_at","metadata","countries","countries.id","countries.iso_2","countries.iso_3","countries.num_code","countries.name","countries.display_name","payment_providers","payment_providers.id","payment_providers.is_enabled"],"x-authenticated":false,"x-sedra-upstream":"medusa@2.23.1"}},"/store/shipping-options":{"get":{"description":"Retrieve a list of shipping options for a cart. The cart's ID is set in the required `cart_id` query parameter.\n\nThe shipping options also be sorted or paginated.\n\nFor a shipping option whose `price_type` is `calculated`, the returned `amount` isn't reliable, as its price is computed on the fly by the fulfillment provider. To retrieve its price, use the [Calculate Shipping Option Price API route](https://docs.medusajs.com/api/store#shipping-options_postshippingoptionsidcalculate).\n","externalDocs":{"description":"Storefront guide: How to implement shipping during checkout.","url":"https://docs.medusajs.com/resources/storefront-development/checkout/shipping"},"operationId":"GetShippingOptions","parameters":[{"description":"Publishable API Key created in the Medusa Admin.","in":"header","name":"x-publishable-api-key","required":true,"schema":{"externalDocs":{"url":"https://docs.medusajs.com/api/store#publishable-api-key"},"type":"string"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"header","name":"x-medusa-locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}},{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.","in":"query","name":"fields","required":false,"schema":{"description":"Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default fields. without prefix it will replace the entire default fields.","externalDocs":{"url":"#select-fields-and-relations"},"title":"fields","type":"string"}},{"description":"The number of items to skip when retrieving a list.","in":"query","name":"offset","required":false,"schema":{"description":"The number of items to skip when retrieving a list.","externalDocs":{"url":"#pagination"},"title":"offset","type":"number"}},{"description":"Limit the number of items returned in the list.","in":"query","name":"limit","required":false,"schema":{"description":"Limit the number of items returned in the list.","externalDocs":{"url":"#pagination"},"title":"limit","type":"number"}},{"description":"The field to sort the data by. By default, the sort order is ascending. To change the order to descending, prefix the field name with `-`.","in":"query","name":"order","required":false,"schema":{"description":"The field to sort the data by. By default, the sort order is ascending. To change the order to descending, prefix the field name with `-`.","title":"order","type":"string"}},{"description":"The ID of the cart to retrieve its shipping options.","in":"query","name":"cart_id","required":true,"schema":{"description":"The ID of the cart to retrieve its shipping options.","title":"cart_id","type":"string"}},{"description":"Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.","in":"query","name":"$and","required":false,"schema":{"description":"Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters.","items":{"type":"object"},"title":"$and","type":"array"}},{"description":"Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.","in":"query","name":"$or","required":false,"schema":{"description":"Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters.","items":{"type":"object"},"title":"$or","type":"array"}},{"description":"Whether the shipping option can be used for returns.","in":"query","name":"is_return","required":false,"schema":{"description":"Whether the shipping option can be used for returns.","title":"is_return","type":"boolean"}},{"description":"The locale in BCP 47 format to retrieve localized content.","in":"query","name":"locale","required":false,"schema":{"example":"en-US","externalDocs":{"description":"Learn more in the Serve Translations in Storefront guide.","url":"https://docs.medusajs.com/resources/commerce-modules/translation/storefront"},"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoreShippingOptionListResponse"}}},"description":"OK"},"400":{"$ref":"#/components/responses/400_error"},"401":{"$ref":"#/components/responses/unauthorized"},"404":{"$ref":"#/components/responses/not_found_error"},"409":{"$ref":"#/components/responses/invalid_state_error"},"422":{"$ref":"#/components/responses/invalid_request_error"},"500":{"$ref":"#/components/responses/500_error"}},"security":[{"publishable_key":[]}],"summary":"List Shipping Options for Cart","tags":["Shipping Options"],"x-allowed":["id","name","price_type","service_zone_id","shipping_profile_id","provider_id","shipping_option_type_id","metadata","data","type","type.id","type.label","type.description","type.code","provider","provider.id","provider.is_enabled","prices","prices.id","prices.currency_code","prices.amount","prices.min_quantity","prices.max_quantity","prices.price_rules","prices.price_rules.id","prices.price_rules.attribute","prices.price_rules.operator","prices.price_rules.value","calculated_price","calculated_price.id","calculated_price.currency_code","calculated_price.calculated_amount","calculated_price.calculated_amount_with_tax","calculated_price.calculated_amount_without_tax","calculated_price.original_amount","calculated_price.original_amount_with_tax","calculated_price.original_amount_without_tax","calculated_price.is_calculated_price_price_list","calculated_price.is_calculated_price_tax_inclusive","calculated_price.is_original_price_price_list","calculated_price.is_original_price_tax_inclusive","calculated_price.calculated_price","calculated_price.calculated_price.id","calculated_price.calculated_price.price_list_id","calculated_price.calculated_price.price_list_type","calculated_price.calculated_price.min_quantity","calculated_price.calculated_price.max_quantity","calculated_price.original_price","calculated_price.original_price.id","calculated_price.original_price.price_list_id","calculated_price.original_price.price_list_type","calculated_price.original_price.min_quantity","calculated_price.original_price.max_quantity","service_zone","service_zone.id","service_zone.fulfillment_set_id","service_zone.fulfillment_set","service_zone.fulfillment_set.id","service_zone.fulfillment_set.type","service_zone.fulfillment_set.location","service_zone.fulfillment_set.location.id","service_zone.fulfillment_set.location.address","service_zone.fulfillment_set.location.address.id","service_zone.fulfillment_set.location.address.company","service_zone.fulfillment_set.location.address.address_1","service_zone.fulfillment_set.location.address.address_2","service_zone.fulfillment_set.location.address.city","service_zone.fulfillment_set.location.address.country_code","service_zone.fulfillment_set.location.address.province","service_zone.fulfillment_set.location.address.postal_code","service_zone.fulfillment_set.location.address.phone","service_zone.fulfillment_set.location.address.metadata","service_zone.fulfillment_set.location.address.created_at","service_zone.fulfillment_set.location.address.updated_at","service_zone.fulfillment_set.location.address.deleted_at"],"x-authenticated":false,"x-events":[],"x-sedra-upstream":"medusa@2.23.1","x-workflow":"listShippingOptionsForCartWorkflow"}}},"security":[{"publishable_key":[]}],"servers":[{"description":"Development environment (demo data, sandbox payments)","url":"https://api.sedra.one"}],"tags":[{"description":"Auth API routes allow you to manage a customer's authentication.\n","name":"Auth"},{"description":"A cart is a virtual shopping bag that customers can use to add items they want to purchase.\n\nA cart is then used to checkout and place an order.\n\nThese API routes allow customers to create and manage their cart, and place an order.\n","externalDocs":{"description":"How to implement cart functionality in a storefront.","url":"https://docs.medusajs.com/resources/storefront-development/cart"},"name":"Carts","x-associatedSchema":{"$ref":"#/components/schemas/StoreCart"}},{"description":"Customers can place orders as guest customers or register.\n\nWhen a customer registers, they can manage their profile, save addresses for later usage, and more.\n\nThese API routes allow customers to create and manage their accounts.\n","externalDocs":{"description":"How to implement customer account functionalities in a storefront.","url":"https://docs.medusajs.com/resources/storefront-development/customers"},"name":"Customers","x-associatedSchema":{"$ref":"#/components/schemas/StoreCustomer"}},{"description":"Guest and registered customers can view orders they placed.\n\nThese API routes allow customers to view their orders.\n","name":"Orders","x-associatedSchema":{"$ref":"#/components/schemas/StoreOrder"}},{"description":"A cart must have a payment collection with an authorized payment session.\n\nUse these API routes during checkout to set the cart's payment provider and authorize its payment session.\n","externalDocs":{"description":"How to implement payment during checkout.","url":"https://docs.medusajs.com/resources/storefront-development/checkout/payment"},"name":"Payment Collections","x-associatedSchema":{"$ref":"#/components/schemas/StorePaymentCollection"}},{"description":"Each region has a set of payment providers enabled.\n\nDuring checkout, you retrieve the available payment providers in the customer's region to show them to the customer. Customers then choose their preferred provider to authorize their payment and place their order.\n\nThese API routes allow customers to view available payment providers in their region.\n","externalDocs":{"description":"How to implement payment during checkout.","url":"https://docs.medusajs.com/resources/storefront-development/checkout/payment"},"name":"Payment Providers","x-associatedSchema":{"$ref":"#/components/schemas/StorePaymentProvider"}},{"description":"Customers browse products for their purchase.\n\nA product has variants for different option values. The customer chooses from these variants before adding it to the cart.\n\nThese API routes allow customers to browse products.\n","externalDocs":{"description":"How to list products, get their prices, and more in a storefront.","url":"https://docs.medusajs.com/resources/storefront-development/products"},"name":"Products","x-associatedSchema":{"$ref":"#/components/schemas/StoreProduct"}},{"description":"Regions are different countries or geographical regions that the commerce store serves customers in.\n\nCustomers can choose what region they're in to view prices of that region's currency.\n\nUse these API routes to retrieve available regions in the store.\n","externalDocs":{"description":"How to retrieve and store selected region in a storefront.","url":"https://docs.medusajs.com/resources/storefront-development/regions"},"name":"Regions","x-associatedSchema":{"$ref":"#/components/schemas/StoreRegion"}},{"description":"A shipping option is a way of shipping an item to or from the customer.\n\nDuring the checkout flow, the customer selects their preferred shipping option to receive their order.\n\nThese API routes allow customers to retrieve available shipping options for their context.\n","externalDocs":{"description":"How to implement shipping during checkout.","url":"https://docs.medusajs.com/resources/storefront-development/checkout/shipping"},"name":"Shipping Options","x-associatedSchema":{"$ref":"#/components/schemas/StoreShippingOption"}},{"description":"Sedra extensions: tenant-scoped configuration, categories and order history.","name":"Sedra store"}]}