Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Add direct link association between Cart/Order and Market (#13870)
Damian Legawiece4ba8314b4b6
diff --git a/docs/api-reference/store.yaml b/docs/api-reference/store.yamlindex 4eeda1e668..fe53d5c933 100644--- a/docs/api-reference/store.yaml+++ b/docs/api-reference/store.yaml@@ -590,13 +590,13 @@ paths:content:application/json:example:- token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImp0aSI6IjkxOGY5MzI4LWI0YzctNDU5Yi1iZTczLTIxMzMwZDhhMmM5YSIsImlzcyI6InNwcmVlIiwiYXVkIjoic3RvcmVfYXBpIiwiZXhwIjoxNzc0NzAxODQ4fQ.cuuj2Oi6xGSBeNEYjr91DrFNQrWTvyTaTHTbXDhdeOQ- refresh_token: YGoDXXid6KGaL59iez28EoWL+ token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImp0aSI6ImQ1ODdlZTkwLTI1ZmMtNGEwZS1iZTE1LTgwZWQ5YjIzY2QzNSIsImlzcyI6InNwcmVlIiwiYXVkIjoic3RvcmVfYXBpIiwiZXhwIjoxNzc1MjI4MjQyfQ.RrrhQcnl1hXg9C0hpKP8bxkv2mFu8VzI6T3F-UJc37E+ refresh_token: mhGwsiuyRkEXokcJqbwMHRAJuser:id: cus_UkLWZg9DAJemail: [email protected]- first_name: Jolynn- last_name: Stiedemann+ first_name: Maryanna+ last_name: Ondrickaphone:accepts_email_marketing: falseavailable_store_credit_total: '0'@@ -671,13 +671,13 @@ paths:content:application/json:example:- token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImp0aSI6IjRiYjIwZmViLTY1ZTAtNDJjNS1iMjFjLTQ4YzFmZGE1NjA5YiIsImlzcyI6InNwcmVlIiwiYXVkIjoic3RvcmVfYXBpIiwiZXhwIjoxNzc0NzAxODQ5fQ._gkuJGgjt3GcsGJNWPp4_uGDgrmxtKvHypsNFmFf2Lk- refresh_token: w4PMNQtBJA6VtTbuwBNn3FwB+ token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImp0aSI6ImU0MjhjMDFiLTZhZTktNDgyNC1hMGQwLTQ4ZGRjMGZlYmRkYyIsImlzcyI6InNwcmVlIiwiYXVkIjoic3RvcmVfYXBpIiwiZXhwIjoxNzc1MjI4MjQzfQ.q0iONqdKdoFN3BpqAqOTUMGKFNfG8aUOoOyf4jarDsg+ refresh_token: zrzXiKToLCx1UJRSJHSphJjsuser:id: cus_UkLWZg9DAJemail: [email protected]- first_name: Jeanett- last_name: Collier+ first_name: Les+ last_name: Bayerphone:accepts_email_marketing: falseavailable_store_credit_total: '0'@@ -842,9 +842,10 @@ paths:example:data:- id: cart_gbHJdmfrXB- number: R561002699- token: hzQcBBtBok9WS9xnBHnAER2brr4vPRSWk7C- email: [email protected]+ market_id:+ number: R472049681+ token: B9MroqXEoXMVHZAQriZQTtBf8EoXQv1fEPG+ email: [email protected]customer_note:currency: USDlocale: en@@ -870,8 +871,6 @@ paths:delivery_total: '100.0'display_delivery_total: "$100.00"warnings: []- created_at: '2026-03-28T11:44:12.058Z'- updated_at: '2026-03-28T11:44:12.100Z'store_credit_total: '0.0'display_store_credit_total: "$0.00"covered_by_store_credit: false@@ -888,8 +887,8 @@ paths:variant_id: variant_gbHJdmfrXBquantity: 1currency: USD- name: Product 23272- slug: product-23272+ name: Product 28450+ slug: product-28450options_text: ''price: '10.0'display_price: "$10.00"@@ -914,7 +913,7 @@ paths:digital_links: []fulfillments:- id: ful_gbHJdmfrXB- number: H23500198126+ number: H83467084851tracking: U10000tracking_url:cost: '100.0'@@ -933,7 +932,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_32- name: Millie Cremin+ name: Christal Blockaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -992,10 +991,12 @@ paths:state_name: STATE_NAME_37payment_methods: []gift_card:+ market:- id: cart_UkLWZg9DAJ- number: R602989118- token: FKvvr4nLfaqfdyHgXsffLGWRvZYUFhLqutp- email: [email protected]+ market_id:+ number: R039406246+ token: 8YriNGGGj5PsSwqkjJvM3K3gWXQ3sbWsYsE+ email: [email protected]customer_note:currency: USDlocale: en@@ -1021,8 +1022,6 @@ paths:delivery_total: '100.0'display_delivery_total: "$100.00"warnings: []- created_at: '2026-03-28T11:44:11.916Z'- updated_at: '2026-03-28T11:44:12.053Z'store_credit_total: '0'display_store_credit_total: "$0.00"covered_by_store_credit: false@@ -1039,8 +1038,8 @@ paths:variant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 11869- slug: product-11869+ name: Product 15580+ slug: product-15580options_text: ''price: '10.0'display_price: "$10.00"@@ -1065,7 +1064,7 @@ paths:digital_links: []fulfillments:- id: ful_UkLWZg9DAJ- number: H32968497542+ number: H97722711103tracking: U10000tracking_url:cost: '100.0'@@ -1084,7 +1083,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_32- name: Millie Cremin+ name: Christal Blockaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -1143,6 +1142,7 @@ paths:state_name: STATE_NAME_35payment_methods: []gift_card:+ market:meta:page: 1limit: 25@@ -1217,8 +1217,9 @@ paths:application/json:example:id: cart_UkLWZg9DAJ- number: R137499246- token: uM5hfB6Qg9aRjJPXWNiPvRx4wN3t2kV4SRi+ market_id:+ number: R844387022+ token: GHSDgSdShMBQyaDw6h9isjSU7iGfYLET3EUemail:customer_note:currency: USD@@ -1245,8 +1246,6 @@ paths:delivery_total: '0.0'display_delivery_total: "$0.00"warnings: []- created_at: '2026-03-28T11:44:12.580Z'- updated_at: '2026-03-28T11:44:12.580Z'store_credit_total: '0.0'display_store_credit_total: "$0.00"covered_by_store_credit: false@@ -1274,6 +1273,7 @@ paths:shipping_address:payment_methods: []gift_card:+ market:schema:"$ref": "#/components/schemas/Cart"requestBody:@@ -1373,9 +1373,10 @@ paths:application/json:example:id: cart_UkLWZg9DAJ- number: R015039796- token: XB4rhoFyXKaTcht86w5wqN1oWdX86Nj5RZ1- email: [email protected]+ market_id:+ number: R181268690+ token: JkpJPKz5WKAk5FdnTfdmmRboMQASEUfdUVz+ email: [email protected]customer_note:currency: USDlocale: en@@ -1402,11 +1403,9 @@ paths:display_delivery_total: "$0.00"warnings:- code: line_item_removed- message: Product 63270 was removed because it was sold out+ message: Product 67315 was removed because it was sold outline_item_id: li_UkLWZg9DAJvariant_id: variant_UkLWZg9DAJ- created_at: '2026-03-28T11:44:13.239Z'- updated_at: '2026-03-28T11:44:13.346Z'store_credit_total: '0.0'display_store_credit_total: "$0.00"covered_by_store_credit: false@@ -1464,6 +1463,7 @@ paths:state_name: STATE_NAME_45payment_methods: []gift_card:+ market:schema:"$ref": "#/components/schemas/Cart"'404':@@ -1544,9 +1544,10 @@ paths:application/json:example:id: cart_UkLWZg9DAJ- number: R496471280- token: 638VUJdoPTMjsXCgoYRrx8qTEwyjzLz5E6F- email: [email protected]+ market_id:+ number: R775579495+ token: LESZyLA8C16AKEkrBEHhcMUPBKHKJdzvnGw+ email: [email protected]customer_note: Leave at doorcurrency: USDlocale: en@@ -1572,8 +1573,6 @@ paths:delivery_total: '10.0'display_delivery_total: "$10.00"warnings: []- created_at: '2026-03-28T11:44:13.904Z'- updated_at: '2026-03-28T11:44:14.041Z'store_credit_total: '0.0'display_store_credit_total: "$0.00"covered_by_store_credit: false@@ -1592,8 +1591,8 @@ paths:variant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 75671- slug: product-75671+ name: Product 77268+ slug: product-77268options_text: ''price: '19.99'display_price: "$19.99"@@ -1618,7 +1617,7 @@ paths:digital_links: []fulfillments:- id: ful_gbHJdmfrXB- number: H40100996483+ number: H72160706994tracking:tracking_url:cost: '10.0'@@ -1637,7 +1636,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_46- name: Emmie Spencer+ name: Chantell Paucekaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -1696,6 +1695,7 @@ paths:state_name: STATE_NAME_49payment_methods: []gift_card:+ market:schema:"$ref": "#/components/schemas/Cart"requestBody:@@ -1864,9 +1864,10 @@ paths:application/json:example:id: cart_UkLWZg9DAJ- number: R452564608- token: oB8LvaYR4CV4kr6BEMFtHzfZsAyGxtx6r4z- email: [email protected]+ market_id:+ number: R606576238+ token: 2vFwo1uvenSAzfcEWFgAdBCu581piDMBuHA+ email: [email protected]customer_note:currency: USDlocale: en@@ -1892,8 +1893,6 @@ paths:delivery_total: '100.0'display_delivery_total: "$100.00"warnings: []- created_at: '2026-03-28T11:44:14.703Z'- updated_at: '2026-03-28T11:44:14.748Z'store_credit_total: '0.0'display_store_credit_total: "$0.00"covered_by_store_credit: false@@ -1910,8 +1909,8 @@ paths:variant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 91401- slug: product-91401+ name: Product 92021+ slug: product-92021options_text: ''price: '10.0'display_price: "$10.00"@@ -1936,7 +1935,7 @@ paths:digital_links: []fulfillments:- id: ful_UkLWZg9DAJ- number: H90321795147+ number: H79447123612tracking: U10000tracking_url:cost: '100.0'@@ -1955,7 +1954,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_54- name: Sunny Hansen+ name: Coreen Collieraddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -2014,6 +2013,7 @@ paths:state_name: STATE_NAME_55payment_methods: []gift_card:+ market:schema:"$ref": "#/components/schemas/Cart"'401':@@ -2079,8 +2079,9 @@ paths:application/json:example:id: or_UkLWZg9DAJ- number: R148635323- email: [email protected]+ market_id:+ number: R817214361+ email: [email protected]customer_note:currency: USDlocale: en@@ -2107,9 +2108,7 @@ paths:display_delivery_total: "$10.00"fulfillment_status: backorderpayment_status: paid- completed_at: '2026-03-28T11:44:16.110Z'- created_at: '2026-03-28T11:44:15.917Z'- updated_at: '2026-03-28T11:44:16.110Z'+ completed_at: '2026-04-03T13:57:29.860Z'store_credit_total: '0.0'display_store_credit_total: "$0.00"covered_by_store_credit: false@@ -2119,8 +2118,8 @@ paths:variant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 113740- slug: product-113740+ name: Product 117480+ slug: product-117480options_text: ''price: '19.99'display_price: "$19.99"@@ -2145,7 +2144,7 @@ paths:digital_links: []fulfillments:- id: ful_gbHJdmfrXB- number: H64114133913+ number: H16849070580tracking:tracking_url:cost: '10.0'@@ -2164,7 +2163,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_60- name: Christa Jacobson+ name: Toney Boehmaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -2186,7 +2185,7 @@ paths:- id: py_UkLWZg9DAJpayment_method_id: pm_UkLWZg9DAJresponse_code: '12345'- number: P0S8EZON+ number: PPFMW97Yamount: '29.99'display_amount: "$29.99"status: completed@@ -2246,6 +2245,7 @@ paths:is_default_shipping: falsestate_name: STATE_NAME_63gift_card:+ market:schema:"$ref": "#/components/schemas/Order"'422':@@ -2326,8 +2326,6 @@ paths:meta_description:meta_keywords:children_count: 1- created_at: '2026-03-28T11:44:16.739Z'- updated_at: '2026-03-28T11:44:16.782Z'parent_id:description: ''description_html: ''@@ -2345,8 +2343,6 @@ paths:meta_description:meta_keywords:children_count: 1- created_at: '2026-03-28T11:44:16.745Z'- updated_at: '2026-03-28T11:44:16.782Z'parent_id: ctg_UkLWZg9DAJdescription: ''description_html: ''@@ -2364,8 +2360,6 @@ paths:meta_description:meta_keywords:children_count: 0- created_at: '2026-03-28T11:44:16.753Z'- updated_at: '2026-03-28T11:44:16.758Z'parent_id: ctg_gbHJdmfrXBdescription: ''description_html: ''@@ -2466,8 +2460,6 @@ paths:meta_description:meta_keywords:children_count: 1- created_at: '2026-03-28T11:44:17.119Z'- updated_at: '2026-03-28T11:44:17.155Z'parent_id: ctg_UkLWZg9DAJdescription: ''description_html: ''@@ -3048,13 +3040,13 @@ paths:content:application/json:example:- token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImp0aSI6IjU0OWVlY2ZjLTBkNDItNDM3Mi1iZjIxLWU1YmEzNzg5YTUwMyIsImlzcyI6InNwcmVlIiwiYXVkIjoic3RvcmVfYXBpIiwiZXhwIjoxNzc0NzAxODYyfQ.44KXETRVeBoqXrhWqHlILPqKsplefc2L5Pq6KCPbOZs- refresh_token: a4CSEMEK99SqC2oZE68EJZit+ token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImp0aSI6IjYyYzhkOTcyLTI2OTEtNDBiMC1iYjUzLTRlNDVmYjFmYmJhMiIsImlzcyI6InNwcmVlIiwiYXVkIjoic3RvcmVfYXBpIiwiZXhwIjoxNzc1MjI4MjU2fQ.8vIT5CvMysUFbWsertN1wyVBsfbfhT5MdSQQx-XkGhI+ refresh_token: eryRiAAHEQEg8qdax1qS31tUuser:id: cus_UkLWZg9DAJemail: [email protected]- first_name: Sonya- last_name: Mraz+ first_name: Kay+ last_name: Hillsphone:accepts_email_marketing: falseavailable_store_credit_total: '0'@@ -3225,8 +3217,9 @@ paths:example:data:- id: or_UkLWZg9DAJ- number: R934867648- email: [email protected]+ market_id:+ number: R754188505+ email: [email protected]customer_note:currency: USDlocale: en@@ -3253,9 +3246,7 @@ paths:display_delivery_total: "$100.00"fulfillment_status:payment_status:- completed_at: '2026-03-28T11:44:23.271Z'- created_at: '2026-03-28T11:44:23.227Z'- updated_at: '2026-03-28T11:44:23.271Z'+ completed_at: '2026-04-03T13:57:37.079Z'store_credit_total: '0.0'display_store_credit_total: "$0.00"covered_by_store_credit: false@@ -3265,8 +3256,8 @@ paths:variant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 209012- slug: product-209012+ name: Product 208421+ slug: product-208421options_text: ''price: '10.0'display_price: "$10.00"@@ -3291,7 +3282,7 @@ paths:digital_links: []fulfillments:- id: ful_UkLWZg9DAJ- number: H88162870948+ number: H72170370476tracking: U10000tracking_url:cost: '100.0'@@ -3310,7 +3301,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_87- name: Bernardo D'Amore+ name: Kandy Schinneraddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -3368,6 +3359,7 @@ paths:is_default_shipping: falsestate_name: STATE_NAME_90gift_card:+ market:meta:page: 1limit: 25@@ -3462,8 +3454,9 @@ paths:application/json:example:id: or_UkLWZg9DAJ- number: R054468339- email: [email protected]+ market_id:+ number: R519681367+ email: [email protected]customer_note:currency: USDlocale: en@@ -3490,9 +3483,7 @@ paths:display_delivery_total: "$100.00"fulfillment_status:payment_status:- completed_at: '2026-03-28T11:44:23.941Z'- created_at: '2026-03-28T11:44:23.896Z'- updated_at: '2026-03-28T11:44:23.941Z'+ completed_at: '2026-04-03T13:57:37.795Z'store_credit_total: '0.0'display_store_credit_total: "$0.00"covered_by_store_credit: false@@ -3502,8 +3493,8 @@ paths:variant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 223107- slug: product-223107+ name: Product 226895+ slug: product-226895options_text: ''price: '10.0'display_price: "$10.00"@@ -3528,7 +3519,7 @@ paths:digital_links: []fulfillments:- id: ful_UkLWZg9DAJ- number: H44182774077+ number: H15368724370tracking: U10000tracking_url:cost: '100.0'@@ -3547,7 +3538,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_93- name: Karin Marquardt+ name: Norma Loweaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -3605,6 +3596,7 @@ paths:is_default_shipping: falsestate_name: STATE_NAME_96gift_card:+ market:schema:"$ref": "#/components/schemas/Order"'404':@@ -3658,8 +3650,8 @@ paths:content:application/json:example:- token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImp0aSI6ImIyZGZiZDFiLWE5NGItNDVhYi04Y2YxLTExNjVlZGI4OWQ5OSIsImlzcyI6InNwcmVlIiwiYXVkIjoic3RvcmVfYXBpIiwiZXhwIjoxNzc0NzAxODY1fQ.EHiaf5YSt3nevdCg0WDb3j3oxg8K7JKUncwNBWrLhh4- refresh_token: sPsJbH7r4zV8hkctor6Vzv6L+ token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImp0aSI6IjJiNGVlYWQ5LWZlODMtNDRkNi1hNzg5LWFlOWViYzIxMTk1NSIsImlzcyI6InNwcmVlIiwiYXVkIjoic3RvcmVfYXBpIiwiZXhwIjoxNzc1MjI4MjU4fQ.lkORfxFzoIHy2DKXzwEFretOniTKqm7X7CeEaduC4aA+ refresh_token: DJroaKT2NnfFGpnawBV39REVuser:id: cus_UkLWZg9DAJemail: [email protected]@@ -3772,9 +3764,9 @@ paths:application/json:example:id: cus_UkLWZg9DAJ- email: [email protected]- first_name: Merilyn- last_name: Connelly+ email: [email protected]+ first_name: Marchelle+ last_name: O'Connerphone: 555-555-0199accepts_email_marketing: falseavailable_store_credit_total: '0'@@ -3910,7 +3902,7 @@ paths:application/json:example:id: cus_UkLWZg9DAJ- email: [email protected]+ email: [email protected]first_name: Updatedlast_name: Namephone: 555-555-0199@@ -4148,9 +4140,10 @@ paths:application/json:example:id: cart_UkLWZg9DAJ- number: R444503967- token: eiBwUd1gzUm9j2EPZDbfyufdPco4eLrNX3e- email: [email protected]+ market_id:+ number: R878476043+ token: JwL4scprynz54yzDbNYLrBhTzg5Se7vZZfB+ email: [email protected]customer_note:currency: USDlocale: en@@ -4176,8 +4169,6 @@ paths:delivery_total: '100.0'display_delivery_total: "$100.00"warnings: []- created_at: '2026-03-28T11:44:29.782Z'- updated_at: '2026-03-28T11:44:29.901Z'store_credit_total: '0.0'display_store_credit_total: "$0.00"covered_by_store_credit: false@@ -4201,8 +4192,8 @@ paths:variant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 304880- slug: product-304880+ name: Product 308597+ slug: product-308597options_text: ''price: '10.0'display_price: "$10.00"@@ -4227,7 +4218,7 @@ paths:digital_links: []fulfillments:- id: ful_UkLWZg9DAJ- number: H75182966011+ number: H91288836970tracking: U10000tracking_url:cost: '100.0'@@ -4246,7 +4237,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_119- name: Breanna Shields+ name: Jeff Hyattaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -4305,6 +4296,7 @@ paths:state_name: STATE_NAME_122payment_methods: []gift_card:+ market:schema:"$ref": "#/components/schemas/Cart"'422':@@ -4390,9 +4382,10 @@ paths:application/json:example:id: cart_UkLWZg9DAJ- number: R093153548- token: zcMpv8HYsaCytmyVS1TjE9uKCLPQ9CN65Dp- email: [email protected]+ market_id:+ number: R653446817+ token: 2MgZpfyrGsW9JsWVsNSrVKXJZk98XvMTCA6+ email: [email protected]customer_note:currency: USDlocale: en@@ -4418,8 +4411,6 @@ paths:delivery_total: '100.0'display_delivery_total: "$100.00"warnings: []- created_at: '2026-03-28T11:44:31.091Z'- updated_at: '2026-03-28T11:44:31.190Z'store_credit_total: '0.0'display_store_credit_total: "$0.00"covered_by_store_credit: false@@ -4436,8 +4427,8 @@ paths:variant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 32585- slug: product-32585+ name: Product 32672+ slug: product-32672options_text: ''price: '10.0'display_price: "$10.00"@@ -4462,7 +4453,7 @@ paths:digital_links: []fulfillments:- id: ful_UkLWZg9DAJ- number: H30384688007+ number: H71709440778tracking: U10000tracking_url:cost: '100.0'@@ -4481,7 +4472,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_127- name: Ursula Fahey+ name: Beverlee Connaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -4540,6 +4531,7 @@ paths:state_name: STATE_NAME_130payment_methods: []gift_card:+ market:schema:"$ref": "#/components/schemas/Cart"'422':@@ -4614,9 +4606,10 @@ paths:application/json:example:id: cart_UkLWZg9DAJ- number: R110309902- token: MGPrPetRsoMGoh7GCZg2oDXth6PE3xBsctq- email: [email protected]+ market_id:+ number: R316740870+ token: Y5NdbGLqS5zuMbfnV4KeJNJFg53nJQx7ucz+ email: [email protected]customer_note:currency: USDlocale: en@@ -4642,8 +4635,6 @@ paths:delivery_total: '100.0'display_delivery_total: "$100.00"warnings: []- created_at: '2026-03-28T11:44:32.362Z'- updated_at: '2026-03-28T11:44:32.511Z'store_credit_total: '0.0'display_store_credit_total: "$0.00"covered_by_store_credit: false@@ -4662,8 +4653,8 @@ paths:variant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 346829- slug: product-346829+ name: Product 348418+ slug: product-348418options_text: ''price: '10.0'display_price: "$10.00"@@ -4688,7 +4679,7 @@ paths:digital_links: []fulfillments:- id: ful_UkLWZg9DAJ- number: H78479855794+ number: H20383362745tracking: U10000tracking_url:cost: '100.0'@@ -4707,7 +4698,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_135- name: Pauletta Cassin+ name: Denyse Nienowaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -4766,6 +4757,7 @@ paths:state_name: STATE_NAME_138payment_methods: []gift_card:+ market:schema:"$ref": "#/components/schemas/Cart"'404':@@ -4854,9 +4846,10 @@ paths:application/json:example:id: cart_UkLWZg9DAJ- number: R545542575- token: DW2dg4pAkWTJJcqTC2ud2swBBbTtYo7RRfU- email: [email protected]+ market_id:+ number: R563080025+ token: BeEgTmWQXZ83wG6YrFKgiRH9bLcz6QZZv9x+ email: [email protected]customer_note:currency: USDlocale: en@@ -4882,8 +4875,6 @@ paths:delivery_total: '100.0'display_delivery_total: "$100.00"warnings: []- created_at: '2026-03-28T11:44:33.720Z'- updated_at: '2026-03-28T11:44:33.850Z'store_credit_total: '50.0'display_store_credit_total: "-$50.00"covered_by_store_credit: false@@ -4897,8 +4888,8 @@ paths:variant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 365753- slug: product-365753+ name: Product 366948+ slug: product-366948options_text: ''price: '10.0'display_price: "$10.00"@@ -4923,7 +4914,7 @@ paths:digital_links: []fulfillments:- id: ful_UkLWZg9DAJ- number: H60316070046+ number: H13513569381tracking: U10000tracking_url:cost: '100.0'@@ -4942,7 +4933,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_143- name: Digna Turcotte+ name: Verla Carrolladdress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -4963,8 +4954,8 @@ paths:payments:- id: py_UkLWZg9DAJpayment_method_id: pm_UkLWZg9DAJ- response_code: 1-SC-20260328114433841691- number: PGO2TT4V+ response_code: 1-SC-20260403135747483751+ number: PZAV4C95amount: '50.0'display_amount: "$50.00"status: checkout@@ -5045,8 +5036,7 @@ paths:redeemed_at:expired: falseactive: true- created_at: '2026-03-28T11:44:33.792Z'- updated_at: '2026-03-28T11:44:33.837Z'+ market:schema:"$ref": "#/components/schemas/Cart"'404':@@ -5141,9 +5131,10 @@ paths:application/json:example:id: cart_UkLWZg9DAJ- number: R905284090- token: bTgK6d3CQwzXjqd2kQ2RicG37oXwFsiQCCt- email: [email protected]+ market_id:+ number: R072825840+ token: 9cEYgJvqNw7nxvZhjabZnFvpfsrhwJe7XVX+ email: [email protected]customer_note:currency: USDlocale: en@@ -5169,8 +5160,6 @@ paths:delivery_total: '100.0'display_delivery_total: "$100.00"warnings: []- created_at: '2026-03-28T11:44:36.269Z'- updated_at: '2026-03-28T11:44:36.358Z'store_credit_total: '0.0'display_store_credit_total: "$0.00"covered_by_store_credit: false@@ -5187,8 +5176,8 @@ paths:variant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 405163- slug: product-405163+ name: Product 404558+ slug: product-404558options_text: ''price: '10.0'display_price: "$10.00"@@ -5213,7 +5202,7 @@ paths:digital_links: []fulfillments:- id: ful_UkLWZg9DAJ- number: H92430188729+ number: H92047087688tracking: U10000tracking_url:cost: '100.0'@@ -5232,7 +5221,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_159- name: Verda Boehm+ name: Lavera Batzaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -5253,8 +5242,8 @@ paths:payments:- id: py_UkLWZg9DAJpayment_method_id: pm_UkLWZg9DAJ- response_code: 1-SC-20260328114436330511- number: PHLRKBG6+ response_code: 1-SC-20260403135750024404+ number: PT5CAIF0amount: '50.0'display_amount: "$50.00"status: invalid@@ -5315,6 +5304,7 @@ paths:state_name: STATE_NAME_162payment_methods: []gift_card:+ market:schema:"$ref": "#/components/schemas/Cart""/api/v3/store/customers/me/gift_cards":@@ -5376,7 +5366,7 @@ paths:example:data:- id: gc_UkLWZg9DAJ- code: FBA16C8E6123587D+ code: 8852354AA7160228status: activecurrency: USDamount: '10.0'@@ -5390,8 +5380,6 @@ paths:redeemed_at:expired: falseactive: true- created_at: '2026-03-28T11:44:36.916Z'- updated_at: '2026-03-28T11:44:36.916Z'meta:page: 1limit: 25@@ -5474,7 +5462,7 @@ paths:application/json:example:id: gc_UkLWZg9DAJ- code: 569C3E82B692C7E7+ code: D501A8FFDECD9B19status: activecurrency: USDamount: '10.0'@@ -5488,8 +5476,6 @@ paths:redeemed_at:expired: falseactive: true- created_at: '2026-03-28T11:44:37.997Z'- updated_at: '2026-03-28T11:44:37.997Z'schema:"$ref": "#/components/schemas/GiftCard"'404':@@ -5566,9 +5552,10 @@ paths:application/json:example:id: cart_UkLWZg9DAJ- number: R725896129- token: wSmPLJnZ9GK874o8L2STLPCy9796YBdY6gS- email: [email protected]+ market_id:+ number: R726238376+ token: gUvZrFFo4h2enAW1dDrgooKGKV1hUAJijb3+ email: [email protected]customer_note:currency: USDlocale: en@@ -5594,8 +5581,6 @@ paths:delivery_total: '0.0'display_delivery_total: "$0.00"warnings: []- created_at: '2026-03-28T11:44:39.810Z'- updated_at: '2026-03-28T11:44:39.914Z'store_credit_total: '0.0'display_store_credit_total: "$0.00"covered_by_store_credit: false@@ -5618,8 +5603,8 @@ paths:variant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 439896- slug: product-439896+ name: Product 434452+ slug: product-434452options_text: ''price: '10.0'display_price: "$10.00"@@ -5646,8 +5631,8 @@ paths:variant_id: variant_gbHJdmfrXBquantity: 1currency: USD- name: Product 443194- slug: product-443194+ name: Product 44616+ slug: product-44616options_text: ''price: '19.99'display_price: "$19.99"@@ -5694,6 +5679,7 @@ paths:shipping_address:payment_methods: []gift_card:+ market:schema:"$ref": "#/components/schemas/Cart"'404':@@ -5788,9 +5774,10 @@ paths:application/json:example:id: cart_UkLWZg9DAJ- number: R205272356- token: Hj1DwwY7WR3KJ9Jo6mMdDdTGmn3KFr4XBdc- email: [email protected]+ market_id:+ number: R564868108+ token: VojPSFt3YdpLqqqvT2fQQTk7z5qEWjBVBUh+ email: [email protected]customer_note:currency: USDlocale: en@@ -5816,8 +5803,6 @@ paths:delivery_total: '0.0'display_delivery_total: "$0.00"warnings: []- created_at: '2026-03-28T11:44:41.729Z'- updated_at: '2026-03-28T11:44:41.769Z'store_credit_total: '0.0'display_store_credit_total: "$0.00"covered_by_store_credit: false@@ -5837,8 +5822,8 @@ paths:variant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 47640- slug: product-47640+ name: Product 471271+ slug: product-471271options_text: ''price: '10.0'display_price: "$10.00"@@ -5885,6 +5870,7 @@ paths:shipping_address:payment_methods: []gift_card:+ market:schema:"$ref": "#/components/schemas/Cart"requestBody:@@ -5959,9 +5945,10 @@ paths:application/json:example:id: cart_UkLWZg9DAJ- number: R447901517- token: byRB2Rwjz1NXHnLmJN8cUjH5P27q5MJdfpS- email: [email protected]+ market_id:+ number: R929902433+ token: syn5sftuc13UPXjojoYeJ2Th6XricSMmXj7+ email: [email protected]customer_note:currency: USDlocale: en@@ -5987,8 +5974,6 @@ paths:delivery_total: '0.0'display_delivery_total: "$0.00"warnings: []- created_at: '2026-03-28T11:44:42.311Z'- updated_at: '2026-03-28T11:44:42.361Z'store_credit_total: '0.0'display_store_credit_total: "$0.00"covered_by_store_credit: false@@ -6031,6 +6016,7 @@ paths:shipping_address:payment_methods: []gift_card:+ market:schema:"$ref": "#/components/schemas/Cart"'404':@@ -6562,7 +6548,8 @@ paths:application/json:example:id: or_UkLWZg9DAJ- number: R452559491+ market_id:+ number: R364097439email: [email protected]customer_note:currency: USD@@ -6590,9 +6577,7 @@ paths:display_delivery_total: "$100.00"fulfillment_status:payment_status:- completed_at: '2026-03-28T11:44:44.131Z'- created_at: '2026-03-28T11:44:44.079Z'- updated_at: '2026-03-28T11:44:44.131Z'+ completed_at: '2026-04-03T13:57:57.819Z'store_credit_total: '0.0'display_store_credit_total: "$0.00"covered_by_store_credit: false@@ -6602,8 +6587,8 @@ paths:variant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 51893- slug: product-51893+ name: Product 517589+ slug: product-517589options_text: ''price: '10.0'display_price: "$10.00"@@ -6628,7 +6613,7 @@ paths:digital_links: []fulfillments:- id: ful_UkLWZg9DAJ- number: H30111459725+ number: H27148992659tracking: U10000tracking_url:cost: '100.0'@@ -6647,7 +6632,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_196- name: Maynard Franecki+ name: Belkis Uptonaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -6705,6 +6690,7 @@ paths:is_default_shipping: falsestate_name: STATE_NAME_197gift_card:+ market:schema:"$ref": "#/components/schemas/Order"'404':@@ -6783,13 +6769,11 @@ paths:id: ps_gbHJdmfrXBstatus: pendingcurrency: USD- external_id: bogus_132b1569948ecfadcdbe8874+ external_id: bogus_aa9f7c7837078ad687a22671external_data:- client_secret: bogus_secret_d6b143775506dc90+ client_secret: bogus_secret_54f210a5800d22c6customer_external_id:expires_at:- created_at: '2026-03-28T11:44:45.965Z'- updated_at: '2026-03-28T11:44:45.965Z'amount: '110.0'payment_method_id: pm_UkLWZg9DAJorder_id: or_UkLWZg9DAJ@@ -6884,13 +6868,11 @@ paths:id: ps_UkLWZg9DAJstatus: pendingcurrency: USD- external_id: bogus_c5cab895f3d52d70a29280ac+ external_id: bogus_3145ec7f0c9e89a766dd5a77external_data:client_secret: secret_123customer_external_id:expires_at:- created_at: '2026-03-28T11:44:46.552Z'- updated_at: '2026-03-28T11:44:46.552Z'amount: '110.0'payment_method_id: pm_UkLWZg9DAJorder_id: or_UkLWZg9DAJ@@ -6947,13 +6929,11 @@ paths:id: ps_UkLWZg9DAJstatus: pendingcurrency: USD- external_id: bogus_ccbdfd77500441200772517c+ external_id: bogus_ae85d27086dc2397a5a14168external_data:client_secret: secret_123customer_external_id:expires_at:- created_at: '2026-03-28T11:44:47.742Z'- updated_at: '2026-03-28T11:44:47.754Z'amount: '50.0'payment_method_id: pm_UkLWZg9DAJorder_id: or_UkLWZg9DAJ@@ -7050,13 +7030,11 @@ paths:id: ps_UkLWZg9DAJstatus: completedcurrency: USD- external_id: bogus_aead88c358a7f75df7d4582e+ external_id: bogus_aaf43fc1440b698fdffffd0dexternal_data:client_secret: secret_123customer_external_id:expires_at:- created_at: '2026-03-28T11:44:48.354Z'- updated_at: '2026-03-28T11:44:48.370Z'amount: '110.0'payment_method_id: pm_UkLWZg9DAJorder_id: or_UkLWZg9DAJ@@ -7136,11 +7114,9 @@ paths:example:id: pss_gbHJdmfrXBstatus: pending- external_id: bogus_seti_ffa887037b1a2d5db661acdb- external_client_secret: bogus_seti_secret_8d681b68e0390503+ external_id: bogus_seti_04e9e2fd0b8d8d6867dd567d+ external_client_secret: bogus_seti_secret_f1b226408d941e94external_data: {}- created_at: '2026-03-28T11:44:49.525Z'- updated_at: '2026-03-28T11:44:49.525Z'payment_method_id: pm_UkLWZg9DAJpayment_source_id:payment_source_type:@@ -7237,12 +7213,10 @@ paths:example:id: pss_UkLWZg9DAJstatus: pending- external_id: seti_test_8f5449c51058d217b826df7c- external_client_secret: seti_secret_883bafc0d7c8fb731626611c+ external_id: seti_test_b88d1f335647deda1db9efad+ external_client_secret: seti_secret_b72817994c45f026bbf4937dexternal_data:client_secret: secret_123- created_at: '2026-03-28T11:44:51.144Z'- updated_at: '2026-03-28T11:44:51.144Z'payment_method_id: pm_UkLWZg9DAJpayment_source_id:payment_source_type:@@ -7315,12 +7289,10 @@ paths:example:id: pss_UkLWZg9DAJstatus: completed- external_id: seti_test_d2579f547bf5dce4d54cf9d9- external_client_secret: seti_secret_fe3423a1c88419a37bfa407a+ external_id: seti_test_25bf5f27be7e07e7b8ea129e+ external_client_secret: seti_secret_c23e02b15cdd1e6512253d72external_data:client_secret: secret_123- created_at: '2026-03-28T11:44:52.226Z'- updated_at: '2026-03-28T11:44:52.239Z'payment_method_id: pm_UkLWZg9DAJpayment_source_id: card_UkLWZg9DAJpayment_source_type: Spree::CreditCard@@ -7411,7 +7383,7 @@ paths:id: py_UkLWZg9DAJpayment_method_id: pm_UkLWZg9DAJresponse_code:- number: P4X4IXCS+ number: PI1KBGC7amount: '110.0'display_amount: "$110.00"status: checkout@@ -7504,18 +7476,14 @@ paths:slug: privacy-policybody: ''body_html: ''- created_at: '2026-03-28T11:44:03.210Z'- updated_at: '2026-03-28T11:44:03.210Z'- id: pol_OIJLhNcSbfname: Privacy Policy- slug: privacy-policy-de29572b-500d-477e-aa78-5b62fb06af10+ slug: privacy-policy-883cc858-cc75-4e1b-bf2a-7448a978559fbody: We respect your privacy.body_html: |<div class="trix-content">We respect your privacy.</div>- created_at: '2026-03-28T11:44:54.121Z'- updated_at: '2026-03-28T11:44:54.124Z'- id: pol_uw2YK1rnl0name: Return Policyslug: return-policy@@ -7524,29 +7492,21 @@ paths:<div class="trix-content">You can return items within 30 days.</div>- created_at: '2026-03-28T11:44:54.113Z'- updated_at: '2026-03-28T11:44:54.114Z'- id: pol_EfhxLZ9ck8name: Returns Policyslug: returns-policybody: ''body_html: ''- created_at: '2026-03-28T11:44:03.215Z'- updated_at: '2026-03-28T11:44:03.215Z'- id: pol_VqXmZF31wYname: Shipping Policyslug: shipping-policybody: ''body_html: ''- created_at: '2026-03-28T11:44:03.219Z'- updated_at: '2026-03-28T11:44:03.219Z'- id: pol_UkLWZg9DAJname: Terms of Serviceslug: terms-of-servicebody: ''body_html: ''- created_at: '2026-03-28T11:44:03.205Z'- updated_at: '2026-03-28T11:44:03.205Z'meta:page: 1limit: 25@@ -7629,8 +7589,6 @@ paths:<div class="trix-content">You can return items within 30 days.</div>- created_at: '2026-03-28T11:44:54.189Z'- updated_at: '2026-03-28T11:44:54.190Z'schema:"$ref": "#/components/schemas/Policy"'404':@@ -7764,12 +7722,12 @@ paths:example:data:- id: prod_UkLWZg9DAJ- name: Product 613778- slug: product-613778+ name: Product 612449+ slug: product-612449meta_description:meta_keywords:variant_count: 1- available_on: '2025-03-28T11:44:54.314Z'+ available_on: '2025-04-03T13:58:08.134Z'purchasable: truein_stock: falsebackorderable: true@@ -7791,40 +7749,31 @@ paths:price_list_id:original_price:- id: prod_gbHJdmfrXB- name: Product 628456- slug: product-628456+ name: Product 621326+ slug: product-621326meta_description:meta_keywords:variant_count: 0- available_on: '2025-03-28T11:44:54.437Z'+ available_on: '2025-04-03T13:58:08.198Z'purchasable: truein_stock: falsebackorderable: trueavailable: true- description: Ab eveniet ex impedit consequatur. Veniam voluptatem- totam eligendi quasi. Rem nesciunt nostrum dolores non eius repellat.- Rerum et qui ipsum ducimus sint ullam mollitia sequi. Maiores- eaque ad molestias adipisci quae dolor minima tempore. Quae in- a reiciendis ipsum quibusdam voluptatem. Eveniet est quod id sit- nam. Quam ipsa officia ex perspiciatis consequuntur reprehenderit- dolor harum. Enim qui iusto facere magnam nihil. Ea laboriosam- laborum possimus doloremque non ad. Occaecati explicabo voluptatibus- fugit assumenda nesciunt eius totam est. Corporis fuga vero alias- cupiditate ipsum. Mollitia delectus deleniti repudiandae voluptas- natus eaque. Labore facilis quia nam quos. Facilis minus occaecati- reiciendis incidunt ullam. Quos eos dolorum voluptatibus facilis- quidem molestias. Neque nostrum autem laboriosam minima doloremque- veritatis. Quia id excepturi adipisci explicabo corporis magni- aperiam. Reprehenderit minima explicabo eligendi ratione officia- eum. Optio quibusdam sequi numquam quasi sint dolorum aut. Debitis- rem maiores eum eveniet labore laudantium libero placeat. Adipisci- culpa velit laboriosam veniam quisquam.+ description: Distinctio quaerat esse ipsum corrupti eligendi non+ architecto vel. Animi at veritatis repellendus vel. Ut laudantium+ neque dignissimos modi. At eligendi tenetur enim deserunt totam.+ Laudantium consequuntur adipisci voluptatibus consequatur corporis+ repellat ipsa eius. Provident officiis similique quam quod quos+ voluptatem expedita ab. Atque earum aperiam consectetur est sed.+ Perferendis qui exercitationem voluptatibus ad sit unde molestiae.+ Tempore similique iste dolores accusamus molestiae. Molestiae+ consequatur excepturi cum deleniti. Cumque veniam et atque fugiat+ reprehenderit nihil. Voluptas vel illo praesentium ducimus numquam+ aliquid sint.description_html: |-- Ab eveniet ex impedit consequatur. Veniam voluptatem totam eligendi quasi. Rem nesciunt nostrum dolores non eius repellat. Rerum et qui ipsum ducimus sint ullam mollitia sequi.- Maiores eaque ad molestias adipisci quae dolor minima tempore. Quae in a reiciendis ipsum quibusdam voluptatem. Eveniet est quod id sit nam. Quam ipsa officia ex perspiciatis consequuntur reprehenderit dolor harum. Enim qui iusto facere magnam nihil.- Ea laboriosam laborum possimus doloremque non ad. Occaecati explicabo voluptatibus fugit assumenda nesciunt eius totam est. Corporis fuga vero alias cupiditate ipsum. Mollitia delectus deleniti repudiandae voluptas natus eaque. Labore facilis quia nam quos.- Facilis minus occaecati reiciendis incidunt ullam. Quos eos dolorum voluptatibus facilis quidem molestias. Neque nostrum autem laboriosam minima doloremque veritatis. Quia id excepturi adipisci explicabo corporis magni aperiam. Reprehenderit minima explicabo eligendi ratione officia eum.- Optio quibusdam sequi numquam quasi sint dolorum aut. Debitis rem maiores eum eveniet labore laudantium libero placeat. Adipisci culpa velit laboriosam veniam quisquam.+ Distinctio quaerat esse ipsum corrupti eligendi non architecto vel. Animi at veritatis repellendus vel. Ut laudantium neque dignissimos modi.+ At eligendi tenetur enim deserunt totam. Laudantium consequuntur adipisci voluptatibus consequatur corporis repellat ipsa eius. Provident officiis similique quam quod quos voluptatem expedita ab. Atque earum aperiam consectetur est sed. Perferendis qui exercitationem voluptatibus ad sit unde molestiae.+ Tempore similique iste dolores accusamus molestiae. Molestiae consequatur excepturi cum deleniti. Cumque veniam et atque fugiat reprehenderit nihil. Voluptas vel illo praesentium ducimus numquam aliquid sint.default_variant_id: variant_EfhxLZ9ck8thumbnail_url:tags: []@@ -7926,12 +7875,12 @@ paths:application/json:example:id: prod_UkLWZg9DAJ- name: Product 898744- slug: product-898744+ name: Product 891846+ slug: product-891846meta_description:meta_keywords:variant_count: 1- available_on: '2025-03-28T11:44:56.202Z'+ available_on: '2025-04-03T13:58:09.575Z'purchasable: truein_stock: falsebackorderable: true@@ -7958,7 +7907,7 @@ paths:amount_in_cents: 999currency: USDdisplay_amount: "$9.99"- recorded_at: '2026-03-13T11:44:56Z'+ recorded_at: '2026-03-19T13:58:09Z'schema:"$ref": "#/components/schemas/Product"'404':@@ -8040,11 +7989,14 @@ paths:type: optionname: sizelabel: Size+ kind: dropdownoptions:- id: optval_UkLWZg9DAJname: smalllabel: Sposition: 1+ color_code:+ image_url:count: 1- id: categoriestype: category@@ -8329,9 +8281,10 @@ paths:application/json:example:id: cart_UkLWZg9DAJ- number: R470378577- token: EcFZWz7Ufqt4NtrvsFNsqSjHoiJTgn7viEX- email: [email protected]+ market_id:+ number: R770498178+ token: eHS4EjgAjUps2yNvyyjoKQbowmei1fmrL1X+ email: [email protected]customer_note:currency: USDlocale: en@@ -8357,8 +8310,6 @@ paths:delivery_total: '100.0'display_delivery_total: "$100.00"warnings: []- created_at: '2026-03-28T11:45:01.476Z'- updated_at: '2026-03-28T11:45:01.532Z'store_credit_total: '10.0'display_store_credit_total: "-$10.00"covered_by_store_credit: false@@ -8372,8 +8323,8 @@ paths:variant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 1091188- slug: product-1091188+ name: Product 1094839+ slug: product-1094839options_text: ''price: '10.0'display_price: "$10.00"@@ -8398,7 +8349,7 @@ paths:digital_links: []fulfillments:- id: ful_UkLWZg9DAJ- number: H71663271461+ number: H01888757226tracking: U10000tracking_url:cost: '100.0'@@ -8417,7 +8368,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_270- name: Elfreda Klocko+ name: Maris Creminaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -8438,8 +8389,8 @@ paths:payments:- id: py_UkLWZg9DAJpayment_method_id: pm_UkLWZg9DAJ- response_code: 1-SC-20260328114501826734- number: PBHFJF30+ response_code: 1-SC-20260403135814742622+ number: PJW8UIO9amount: '10.0'display_amount: "$10.00"status: checkout@@ -8505,6 +8456,7 @@ paths:type: Spree::PaymentMethod::StoreCreditsession_required: falsegift_card:+ market:schema:"$ref": "#/components/schemas/Cart"'422':@@ -8578,9 +8530,10 @@ paths:application/json:example:id: cart_UkLWZg9DAJ- number: R622549951- token: MyY9rYwsF7BdLjFybQ5YrnLLomoUo19YEke- email: [email protected]+ market_id:+ number: R354382018+ token: 31dJp8gJRcwJTPffwtgj2rU8Jw6nCNTDcMo+ email: [email protected]customer_note:currency: USDlocale: en@@ -8606,8 +8559,6 @@ paths:delivery_total: '100.0'display_delivery_total: "$100.00"warnings: []- created_at: '2026-03-28T11:45:03.029Z'- updated_at: '2026-03-28T11:45:03.079Z'store_credit_total: '0.0'display_store_credit_total: "$0.00"covered_by_store_credit: false@@ -8624,8 +8575,8 @@ paths:variant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 1117073- slug: product-1117073+ name: Product 1111473+ slug: product-1111473options_text: ''price: '10.0'display_price: "$10.00"@@ -8650,7 +8601,7 @@ paths:digital_links: []fulfillments:- id: ful_UkLWZg9DAJ- number: H69554883339+ number: H31670833875tracking: U10000tracking_url:cost: '100.0'@@ -8669,7 +8620,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_278- name: Shirl Spencer+ name: Angelia Wolfaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -8728,6 +8679,7 @@ paths:state_name: STATE_NAME_281payment_methods: []gift_card:+ market:schema:"$ref": "#/components/schemas/Cart""/api/v3/store/wishlists":@@ -8790,9 +8742,7 @@ paths:data:- id: wl_UkLWZg9DAJname: My Wishlist- token: f8eHPYcKdtoxCRsM88BQ2oiY- created_at: '2026-03-28T11:45:03.675Z'- updated_at: '2026-03-28T11:45:03.675Z'+ token: 3UExeKLMLRJEGeLi97pWCvYcis_default: falseis_private: truemeta:@@ -8868,9 +8818,7 @@ paths:example:id: wl_gbHJdmfrXBname: Birthday Ideas- token: H6fUUENRHresudGzrEcTNvML- created_at: '2026-03-28T11:45:04.902Z'- updated_at: '2026-03-28T11:45:04.902Z'+ token: 389TaRyYLvcnnTPkT1bf1WRJis_default: falseis_private: trueschema:@@ -8966,9 +8914,7 @@ paths:example:id: wl_UkLWZg9DAJname: My Wishlist- token: 6UiSjPZj1T76wAPtymUow9EQ- created_at: '2026-03-28T11:45:06.131Z'- updated_at: '2026-03-28T11:45:06.131Z'+ token: ED46bvjMjnPVk3A4Agy56ja1is_default: falseis_private: trueschema:@@ -9030,9 +8976,7 @@ paths:example:id: wl_UkLWZg9DAJname: Updated Name- token: jqmLoKfWNc6mkiCpwv1GyRH3- created_at: '2026-03-28T11:45:07.362Z'- updated_at: '2026-03-28T11:45:07.415Z'+ token: xT6hPHzaHsh6tK3rgHmHT8qWis_default: falseis_private: trueschema:@@ -9144,8 +9088,6 @@ paths:variant_id: variant_gbHJdmfrXBwishlist_id: wl_UkLWZg9DAJquantity: 1- created_at: '2026-03-28T11:45:08.615Z'- updated_at: '2026-03-28T11:45:08.615Z'variant:id: variant_gbHJdmfrXBproduct_id: prod_gbHJdmfrXB@@ -9554,6 +9496,9 @@ components:properties:id:type: string+ market_id:+ type: string+ nullable: truenumber:type: stringtoken:@@ -9615,10 +9560,6 @@ components:type: arrayitems:"$ref": "#/components/schemas/CartWarning"- created_at:- type: string- updated_at:- type: stringstore_credit_total:type: stringdisplay_store_credit_total:@@ -9669,8 +9610,13 @@ components:allOf:- "$ref": "#/components/schemas/GiftCard"nullable: true+ market:+ allOf:+ - "$ref": "#/components/schemas/Market"+ nullable: truerequired:- id+ - market_id- number- token@@ -9699,8 +9645,6 @@ components:- delivery_total- display_delivery_total- warnings- - created_at- - updated_at- store_credit_total- display_store_credit_total- covered_by_store_credit@@ -9716,6 +9660,7 @@ components:- shipping_address- payment_methods- gift_card+ - marketx-typelizer: trueCategory:type: object@@ -9741,10 +9686,6 @@ components:nullable: truechildren_count:type: number- created_at:- type: string- updated_at:- type: stringparent_id:type: stringnullable: true@@ -9788,8 +9729,6 @@ components:- meta_description- meta_keywords- children_count- - created_at- - updated_at- parent_id- description- description_html@@ -10178,10 +10117,6 @@ components:type: booleanactive:type: boolean- created_at:- type: string- updated_at:- type: stringrequired:- id- code@@ -10198,8 +10133,6 @@ components:- redeemed_at- expired- active- - created_at- - updated_atx-typelizer: trueInvitation:type: object@@ -10502,11 +10435,14 @@ components:type: stringposition:type: number+ kind:+ type: stringrequired:- id- name- label- position+ - kindx-typelizer: trueOptionValue:type: object@@ -10521,24 +10457,35 @@ components:type: stringposition:type: number+ color_code:+ type: string+ nullable: trueoption_type_name:type: stringoption_type_label:type: string+ image_url:+ type: string+ nullable: truerequired:- id- option_type_id- name- label- position+ - color_code- option_type_name- option_type_label+ - image_urlx-typelizer: trueOrder:type: objectproperties:id:type: string+ market_id:+ type: string+ nullable: truenumber:type: stringemail:@@ -10602,10 +10549,6 @@ components:completed_at:type: stringnullable: true- created_at:- type: string- updated_at:- type: stringstore_credit_total:type: stringdisplay_store_credit_total:@@ -10640,8 +10583,13 @@ components:allOf:- "$ref": "#/components/schemas/GiftCard"nullable: true+ market:+ allOf:+ - "$ref": "#/components/schemas/Market"+ nullable: truerequired:- id+ - market_id- number- customer_note@@ -10671,8 +10619,6 @@ components:- fulfillment_status- payment_status- completed_at- - created_at- - updated_at- store_credit_total- display_store_credit_total- covered_by_store_credit@@ -10683,6 +10629,7 @@ components:- billing_address- shipping_address- gift_card+ - marketx-typelizer: truePaymentMethod:type: object@@ -10773,10 +10720,6 @@ components:expires_at:type: stringnullable: true- created_at:- type: string- updated_at:- type: stringamount:type: stringpayment_method_id:@@ -10795,8 +10738,6 @@ components:- external_data- customer_external_id- expires_at- - created_at- - updated_at- amount- payment_method_id- order_id@@ -10817,10 +10758,6 @@ components:nullable: trueexternal_data:type: object- created_at:- type: string- updated_at:- type: stringpayment_method_id:type: stringnullable: true@@ -10841,8 +10778,6 @@ components:- external_id- external_client_secret- external_data- - created_at- - updated_at- payment_method_id- payment_source_id- payment_source_type@@ -10876,18 +10811,12 @@ components:body_html:type: stringnullable: true- created_at:- type: string- updated_at:- type: stringrequired:- id- name- slug- body- body_html- - created_at- - updated_atx-typelizer: truePriceHistory:type: object@@ -11346,10 +11275,6 @@ components:type: stringquantity:type: number- created_at:- type: string- updated_at:- type: stringvariant:"$ref": "#/components/schemas/Variant"required:@@ -11357,8 +11282,6 @@ components:- variant_id- wishlist_id- quantity- - created_at- - updated_at- variantx-typelizer: trueWishlist:@@ -11370,10 +11293,6 @@ components:type: stringtoken:type: string- created_at:- type: string- updated_at:- type: stringis_default:type: booleanis_private:@@ -11386,8 +11305,6 @@ components:- id- name- token- - created_at- - updated_at- is_default- is_privatex-typelizer: truediff --git a/packages/admin-sdk/src/types/generated/Country.ts b/packages/admin-sdk/src/types/generated/Country.tsnew file mode 100644index 0000000000..42f756a4fb--- /dev/null+++ b/packages/admin-sdk/src/types/generated/Country.ts@@ -0,0 +1,16 @@+// Typelizer digest 6e35bb28fc74637d6a28153ea857b182+//+// DO NOT MODIFY: This file was automatically generated by Typelizer.+import type {Market, State} from '@/types'++interface Country {+ iso: string;+ iso3: string;+ name: string;+ states_required: boolean;+ zipcode_required: boolean;+ states?: Array<State>;+ market?: Market | null;+}++export default Country;diff --git a/packages/admin-sdk/src/types/generated/Market.ts b/packages/admin-sdk/src/types/generated/Market.tsnew file mode 100644index 0000000000..b2bf6b53c1--- /dev/null+++ b/packages/admin-sdk/src/types/generated/Market.ts@@ -0,0 +1,19 @@+// Typelizer digest 6976f091f888c5e8d9b6eed7c155c439+//+// DO NOT MODIFY: This file was automatically generated by Typelizer.+import type {Country} from '@/types'++interface Market {+ id: string;+ name: string;+ currency: string;+ default_locale: string;+ tax_inclusive: boolean;+ default: boolean;+ supported_locales: Array<string>;+ countries?: Array<Country>;+ created_at: string;+ updated_at: string;+}++export default Market;diff --git a/packages/admin-sdk/src/types/generated/Order.ts b/packages/admin-sdk/src/types/generated/Order.tsindex be41275f3b..bb9ad5b601 100644--- a/packages/admin-sdk/src/types/generated/Order.ts+++ b/packages/admin-sdk/src/types/generated/Order.ts@@ -1,10 +1,11 @@-// Typelizer digest 2b1f49139779a2cf88fc39ec2bd3305b+// Typelizer digest 7ae2eca4c659b4865ab3541c6b91cf9f//// DO NOT MODIFY: This file was automatically generated by Typelizer.-import type {Discount, LineItem, Fulfillment, Payment, Address, GiftCard, PaymentMethod, Customer, Adjustment, ReturnAuthorization, Reimbursement} from '@/types'+import type {Discount, LineItem, Fulfillment, Payment, Address, GiftCard, Market, PaymentMethod, Customer, Adjustment, ReturnAuthorization, Reimbursement} from '@/types'interface Order {id: string;+ market_id: string | null;number: string;email: string;customer_note: string | null;@@ -44,6 +45,7 @@ interface Order {billing_address?: Address | null;shipping_address?: Address | null;gift_card: GiftCard | null;+ market: Market | null;last_ip_address: string | null;considered_risky: boolean;confirmation_delivered: boolean;diff --git a/packages/admin-sdk/src/types/generated/State.ts b/packages/admin-sdk/src/types/generated/State.tsnew file mode 100644index 0000000000..f1eb2176e9--- /dev/null+++ b/packages/admin-sdk/src/types/generated/State.ts@@ -0,0 +1,10 @@+// Typelizer digest 7b4e9a101a5db9ae57ee1dc288e50d18+//+// DO NOT MODIFY: This file was automatically generated by Typelizer.++interface State {+ abbr: string;+ name: string;+}++export default State;diff --git a/packages/admin-sdk/src/types/generated/index.ts b/packages/admin-sdk/src/types/generated/index.tsindex b23bc217d3..97de9dc2a1 100644--- a/packages/admin-sdk/src/types/generated/index.ts+++ b/packages/admin-sdk/src/types/generated/index.ts@@ -1,4 +1,4 @@-// Typelizer digest 293ff4eaa7de393b2b0562c848bf36a6+// Typelizer digest 3d6cfbd10466fcce81d2d1aec3b111e7//// DO NOT MODIFY: This file was automatically generated by Typelizer.export type { default as Address } from './Address'@@ -7,6 +7,7 @@ export type { default as AdminUser } from './AdminUser'export type { default as AllowedOrigin } from './AllowedOrigin'export type { default as Asset } from './Asset'export type { default as Category } from './Category'+export type { default as Country } from './Country'export type { default as CreditCard } from './CreditCard'export type { default as CustomField } from './CustomField'export type { default as Customer } from './Customer'@@ -17,6 +18,7 @@ export type { default as Discount } from './Discount'export type { default as Fulfillment } from './Fulfillment'export type { default as GiftCard } from './GiftCard'export type { default as LineItem } from './LineItem'+export type { default as Market } from './Market'export type { default as Media } from './Media'export type { default as OptionType } from './OptionType'export type { default as OptionValue } from './OptionValue'@@ -31,6 +33,7 @@ export type { default as Refund } from './Refund'export type { default as Reimbursement } from './Reimbursement'export type { default as ReturnAuthorization } from './ReturnAuthorization'export type { default as ShippingCategory } from './ShippingCategory'+export type { default as State } from './State'export type { default as StockItem } from './StockItem'export type { default as StockLocation } from './StockLocation'export type { default as StoreCredit } from './StoreCredit'diff --git a/packages/sdk/CHANGELOG.md b/packages/sdk/CHANGELOG.mdindex 3214f47a9f..0cb0939f18 100644--- a/packages/sdk/CHANGELOG.md+++ b/packages/sdk/CHANGELOG.md@@ -1,5 +1,11 @@# @spree/sdk+## 0.20.2++### Patch Changes++- Add `market_id` and `market` to Cart and Order types. Cart and Order responses now include the associated market with its name, currency, default locale, supported locales, and tax inclusivity flag.+## 0.20.1### Patch Changesdiff --git a/packages/sdk/package.json b/packages/sdk/package.jsonindex 2cde026e43..0061692362 100644--- a/packages/sdk/package.json+++ b/packages/sdk/package.json@@ -1,6 +1,6 @@{"name": "@spree/sdk",- "version": "0.20.1",+ "version": "0.20.2","description": "Official TypeScript SDK for Spree Commerce Store API","type": "module","main": "./dist/index.cjs",diff --git a/packages/sdk/src/types/generated/Cart.ts b/packages/sdk/src/types/generated/Cart.tsindex 0f9c55b3dd..0a8c8c2677 100644--- a/packages/sdk/src/types/generated/Cart.ts+++ b/packages/sdk/src/types/generated/Cart.ts@@ -1,10 +1,11 @@-// Typelizer digest 79b224eb2a5446f57764da770d8f9ffe+// Typelizer digest 484d8a6692cdc34860e4ecf139e0c35d//// DO NOT MODIFY: This file was automatically generated by Typelizer.-import type {Discount, LineItem, Fulfillment, Payment, Address, PaymentMethod, GiftCard} from '@/types'+import type {Discount, LineItem, Fulfillment, Payment, Address, PaymentMethod, GiftCard, Market} from '@/types'interface Cart {id: string;+ market_id: string | null;number: string;token: string;email: string | null;@@ -48,6 +49,7 @@ interface Cart {shipping_address: Address | null;payment_methods: Array<PaymentMethod>;gift_card: GiftCard | null;+ market: Market | null;}export default Cart;diff --git a/packages/sdk/src/types/generated/Order.ts b/packages/sdk/src/types/generated/Order.tsindex b47103bf81..1793f7cb33 100644--- a/packages/sdk/src/types/generated/Order.ts+++ b/packages/sdk/src/types/generated/Order.ts@@ -1,10 +1,11 @@-// Typelizer digest 357d41b6662ad50ab817094a7f32af5c+// Typelizer digest 6752e68ab87ceec9657dfe561b7b341d//// DO NOT MODIFY: This file was automatically generated by Typelizer.-import type {Discount, LineItem, Fulfillment, Payment, Address, GiftCard} from '@/types'+import type {Discount, LineItem, Fulfillment, Payment, Address, GiftCard, Market} from '@/types'interface Order {id: string;+ market_id: string | null;number: string;email: string;customer_note: string | null;@@ -44,6 +45,7 @@ interface Order {billing_address: Address | null;shipping_address: Address | null;gift_card: GiftCard | null;+ market: Market | null;}export default Order;diff --git a/packages/sdk/src/zod/generated/Cart.ts b/packages/sdk/src/zod/generated/Cart.tsindex 27eca71908..4ba9d10990 100644--- a/packages/sdk/src/zod/generated/Cart.ts+++ b/packages/sdk/src/zod/generated/Cart.ts@@ -5,11 +5,13 @@ import { DiscountSchema } from './Discount';import { FulfillmentSchema } from './Fulfillment';import { GiftCardSchema } from './GiftCard';import { LineItemSchema } from './LineItem';+import { MarketSchema } from './Market';import { PaymentSchema } from './Payment';import { PaymentMethodSchema } from './PaymentMethod';export const CartSchema = z.object({id: z.string(),+ market_id: z.string().nullable(),number: z.string(),token: z.string(),email: z.string().nullable(),@@ -53,6 +55,7 @@ export const CartSchema = z.object({shipping_address: AddressSchema.nullable(),payment_methods: z.array(PaymentMethodSchema),gift_card: GiftCardSchema.nullable(),+ market: z.lazy(() => MarketSchema).nullable(),});export type Cart = z.infer<typeof CartSchema>;diff --git a/packages/sdk/src/zod/generated/Order.ts b/packages/sdk/src/zod/generated/Order.tsindex 4f30b3b51b..124c9f0781 100644--- a/packages/sdk/src/zod/generated/Order.ts+++ b/packages/sdk/src/zod/generated/Order.ts@@ -5,10 +5,12 @@ import { DiscountSchema } from './Discount';import { FulfillmentSchema } from './Fulfillment';import { GiftCardSchema } from './GiftCard';import { LineItemSchema } from './LineItem';+import { MarketSchema } from './Market';import { PaymentSchema } from './Payment';export const OrderSchema = z.object({id: z.string(),+ market_id: z.string().nullable(),number: z.string(),email: z.string(),customer_note: z.string().nullable(),@@ -48,6 +50,7 @@ export const OrderSchema = z.object({billing_address: AddressSchema.nullable(),shipping_address: AddressSchema.nullable(),gift_card: GiftCardSchema.nullable(),+ market: z.lazy(() => MarketSchema).nullable(),});export type Order = z.infer<typeof OrderSchema>;diff --git a/spree/admin/app/presenters/spree/admin/order_summary_presenter.rb b/spree/admin/app/presenters/spree/admin/order_summary_presenter.rbindex e2e43d03db..0287d67c17 100644--- a/spree/admin/app/presenters/spree/admin/order_summary_presenter.rb+++ b/spree/admin/app/presenters/spree/admin/order_summary_presenter.rb@@ -13,6 +13,7 @@ module Spree[*metadata_rows,:separator,+ market_row,locale_row,currency_row,subtotal_row,@@ -72,6 +73,16 @@ module Spreerowsend+ def market_row+ return nil if order.market.blank?++ {+ label: Spree.t(:market),+ value: order.market.name,+ id: 'market'+ }+ end+def locale_rowreturn nil if order.locale.blank?diff --git a/spree/admin/app/views/spree/admin/tables/_table.html.erb b/spree/admin/app/views/spree/admin/tables/_table.html.erbindex b3bfbdd871..adc006ac2f 100644--- a/spree/admin/app/views/spree/admin/tables/_table.html.erb+++ b/spree/admin/app/views/spree/admin/tables/_table.html.erb@@ -11,7 +11,7 @@<%= render 'spree/admin/shared/export_modal', export_type: export_type %><% end %><div class="<%= local_assigns[:container_class] || 'card-lg' %>" data-controller="table" data-table-url-value="<%= request.path %>">- <div class="p-3 border-b border-gray-200">+ <div class="p-2 border-b border-gray-200"><div class="flex flex-col lg:flex-row gap-3 items-start lg:items-center justify-between"><div class="flex gap-2 items-center flex-wrap"><%= search_form_for @search, url: url_for, html: { data: { turbo_frame: frame_name, turbo_action: 'advance', controller: 'auto-submit search-clear', auto_submit_delay_value: 300 } } do |f| %>diff --git a/spree/api/app/controllers/spree/api/v3/store/carts_controller.rb b/spree/api/app/controllers/spree/api/v3/store/carts_controller.rbindex 7f3cc3abbb..3fb98caca7 100644--- a/spree/api/app/controllers/spree/api/v3/store/carts_controller.rb+++ b/spree/api/app/controllers/spree/api/v3/store/carts_controller.rb@@ -141,6 +141,7 @@ module Spreeparams.permit(:email,:customer_note,+ :market_id,:currency,:locale,:shipping_address_id,diff --git a/spree/api/app/serializers/spree/api/v3/admin/country_serializer.rb b/spree/api/app/serializers/spree/api/v3/admin/country_serializer.rbnew file mode 100644index 0000000000..2b9ff35ec8--- /dev/null+++ b/spree/api/app/serializers/spree/api/v3/admin/country_serializer.rb@@ -0,0 +1,15 @@+module Spree+ module Api+ module V3+ module Admin+ class CountrySerializer < V3::CountrySerializer+ attributes created_at: :iso8601, updated_at: :iso8601++ many :states,+ resource: Spree.api.admin_state_serializer,+ if: proc { expand?(:states) }+ end+ end+ end+ end+enddiff --git a/spree/api/app/serializers/spree/api/v3/admin/market_serializer.rb b/spree/api/app/serializers/spree/api/v3/admin/market_serializer.rbnew file mode 100644index 0000000000..e287d58cc1--- /dev/null+++ b/spree/api/app/serializers/spree/api/v3/admin/market_serializer.rb@@ -0,0 +1,15 @@+module Spree+ module Api+ module V3+ module Admin+ class MarketSerializer < V3::MarketSerializer+ attributes created_at: :iso8601, updated_at: :iso8601++ many :countries,+ resource: Spree.api.admin_country_serializer,+ if: proc { expand?(:countries) }+ end+ end+ end+ end+enddiff --git a/spree/api/app/serializers/spree/api/v3/admin/order_serializer.rb b/spree/api/app/serializers/spree/api/v3/admin/order_serializer.rbindex 319ea4cba7..fc0a99a877 100644--- a/spree/api/app/serializers/spree/api/v3/admin/order_serializer.rb+++ b/spree/api/app/serializers/spree/api/v3/admin/order_serializer.rb@@ -52,6 +52,7 @@ module Spreeone :billing_address, resource: Spree.api.admin_address_serializer, if: proc { expand?('billing_address') }one :shipping_address, resource: Spree.api.admin_address_serializer, if: proc { expand?('shipping_address') }one :gift_card, resource: Spree.api.admin_gift_card_serializer+ one :market, resource: Spree.api.admin_market_serializermany :payment_methods, resource: Spree.api.admin_payment_method_serializer, if: proc { expand?('payment_methods') }diff --git a/spree/api/app/serializers/spree/api/v3/admin/state_serializer.rb b/spree/api/app/serializers/spree/api/v3/admin/state_serializer.rbnew file mode 100644index 0000000000..1a93adeb97--- /dev/null+++ b/spree/api/app/serializers/spree/api/v3/admin/state_serializer.rb@@ -0,0 +1,11 @@+module Spree+ module Api+ module V3+ module Admin+ class StateSerializer < V3::StateSerializer+ attributes created_at: :iso8601, updated_at: :iso8601+ end+ end+ end+ end+enddiff --git a/spree/api/app/serializers/spree/api/v3/cart_serializer.rb b/spree/api/app/serializers/spree/api/v3/cart_serializer.rbindex 55fc521456..9d506d91cb 100644--- a/spree/api/app/serializers/spree/api/v3/cart_serializer.rb+++ b/spree/api/app/serializers/spree/api/v3/cart_serializer.rb@@ -5,7 +5,8 @@ module Spree# Pre-purchase cart data with checkout progression infoclass CartSerializer < BaseSerializertypelize number: :string, current_step: :string, completed_steps: 'string[]', token: :string, email: [:string, nullable: true],- customer_note: [:string, nullable: true], currency: :string, locale: [:string, nullable: true], total_quantity: :number,+ customer_note: [:string, nullable: true], market_id: [:string, nullable: true],+ currency: :string, locale: [:string, nullable: true], total_quantity: :number,requirements: 'Array<{step: string, field: string, message: string}>',item_total: :string, display_item_total: :string,delivery_total: :string, display_delivery_total: :string,@@ -22,13 +23,17 @@ module Spreeshipping_eq_billing_address: :boolean,warnings: 'Array<{code: string, message: string, line_item_id?: string, variant_id?: string}>',billing_address: { nullable: true }, shipping_address: { nullable: true },- gift_card: { nullable: true }+ gift_card: { nullable: true }, market: { nullable: true }# Override ID to use cart_ prefixattribute :id do |order|"cart_#{Spree::PrefixedId::SQIDS.encode([order.id])}"end+ attribute :market_id do |order|+ order.market&.prefixed_id+ end+attributes :number, :token, :email, :customer_note,:currency, :locale, :total_quantity,:item_total, :display_item_total,@@ -77,6 +82,7 @@ module Spreemany :payment_methods, resource: Spree.api.payment_method_serializerone :gift_card, resource: Spree.api.gift_card_serializer+ one :market, resource: Spree.api.market_serializerendendenddiff --git a/spree/api/app/serializers/spree/api/v3/order_serializer.rb b/spree/api/app/serializers/spree/api/v3/order_serializer.rbindex e99a4badbc..03e173c6c6 100644--- a/spree/api/app/serializers/spree/api/v3/order_serializer.rb+++ b/spree/api/app/serializers/spree/api/v3/order_serializer.rb@@ -5,7 +5,8 @@ module Spree# Post-purchase order data (completed orders)class OrderSerializer < BaseSerializertypelize number: :string, email: :string,- customer_note: [:string, nullable: true], currency: :string, locale: [:string, nullable: true], total_quantity: :number,+ customer_note: [:string, nullable: true], market_id: [:string, nullable: true],+ currency: :string, locale: [:string, nullable: true], total_quantity: :number,fulfillment_status: [:string, nullable: true], payment_status: [:string, nullable: true],item_total: :string, display_item_total: :string,delivery_total: :string, display_delivery_total: :string,@@ -21,7 +22,11 @@ module Spreeamount_due: :string, display_amount_due: :string,completed_at: [:string, nullable: true],billing_address: { nullable: true }, shipping_address: { nullable: true },- gift_card: { nullable: true }+ gift_card: { nullable: true }, market: { nullable: true }++ attribute :market_id do |order|+ order.market&.prefixed_id+ endattributes :number, :email, :customer_note,:currency, :locale, :total_quantity,@@ -54,6 +59,7 @@ module Spreeone :billing_address, resource: Spree.api.address_serializerone :shipping_address, resource: Spree.api.address_serializerone :gift_card, resource: Spree.api.gift_card_serializer+ one :market, resource: Spree.api.market_serializerendendenddiff --git a/spree/api/lib/spree/api/dependencies.rb b/spree/api/lib/spree/api/dependencies.rbindex 054bbd73c3..8ac4ee5741 100644--- a/spree/api/lib/spree/api/dependencies.rb+++ b/spree/api/lib/spree/api/dependencies.rb@@ -156,6 +156,8 @@ module Spreestock_transfer_serializer: 'Spree::Api::V3::StockTransferSerializer',# v3 admin serializers (API v3 Admin)+ admin_country_serializer: 'Spree::Api::V3::Admin::CountrySerializer',+ admin_state_serializer: 'Spree::Api::V3::Admin::StateSerializer',admin_discount_serializer: 'Spree::Api::V3::Admin::DiscountSerializer',admin_customer_serializer: 'Spree::Api::V3::Admin::CustomerSerializer',admin_order_serializer: 'Spree::Api::V3::Admin::OrderSerializer',@@ -183,6 +185,7 @@ module Spreeadmin_reimbursement_serializer: 'Spree::Api::V3::Admin::ReimbursementSerializer',admin_admin_user_serializer: 'Spree::Api::V3::Admin::AdminUserSerializer',admin_address_serializer: 'Spree::Api::V3::Admin::AddressSerializer',+ admin_market_serializer: 'Spree::Api::V3::Admin::MarketSerializer',admin_shipping_method_serializer: 'Spree::Api::V3::Admin::DeliveryMethodSerializer',admin_delivery_method_serializer: 'Spree::Api::V3::Admin::DeliveryMethodSerializer',admin_stock_location_serializer: 'Spree::Api::V3::Admin::StockLocationSerializer',diff --git a/spree/api/spec/controllers/spree/api/v3/store/carts_controller_spec.rb b/spree/api/spec/controllers/spree/api/v3/store/carts_controller_spec.rbindex d0290a433c..73830c0842 100644--- a/spree/api/spec/controllers/spree/api/v3/store/carts_controller_spec.rb+++ b/spree/api/spec/controllers/spree/api/v3/store/carts_controller_spec.rb@@ -142,6 +142,18 @@ RSpec.describe Spree::Api::V3::Store::CartsController, type: :controller doexpect(cart.locale).to be_presentend+ it 'sets market from Spree::Current on the cart' do+ market = create(:market, store: store)+ allow(Spree::Current).to receive(:market).and_return(market)++ post :create++ expect(response).to have_http_status(:created)+ expect(json_response['market_id']).to eq(market.prefixed_id)+ expect(json_response['market']).to include('name' => market.name, 'currency' => market.currency)+ expect(cart.market).to eq(market)+ end+context 'with metadata' doit 'creates a cart with metadata' dopost :create, params: { metadata: { 'source' => 'mobile_app', 'campaign' => 'summer_sale' } }@@ -490,6 +502,39 @@ RSpec.describe Spree::Api::V3::Store::CartsController, type: :controller doexpect(order.reload.ship_address_id).to eq(existing_address.id)end+ context 'updating market' do+ let!(:market) { create(:market, store: store, countries: [country]) }++ it 'updates the cart market' do+ patch :update, params: { id: order.prefixed_id, market_id: market.prefixed_id }++ expect(response).to have_http_status(:ok)+ expect(json_response['market_id']).to eq(market.prefixed_id)+ expect(json_response['market']).to include('name' => market.name)+ expect(order.reload.market).to eq(market)+ end++ it 'switches to a different market' do+ order.update!(market: market)++ de_country = create(:country, iso: 'DE', name: 'Germany')+ eu_market = create(:market, :eu, store: store, countries: [de_country])++ patch :update, params: { id: order.prefixed_id, market_id: eu_market.prefixed_id }++ expect(response).to have_http_status(:ok)+ expect(json_response['market_id']).to eq(eu_market.prefixed_id)+ expect(json_response['market']).to include('name' => eu_market.name, 'currency' => eu_market.currency)+ expect(order.reload.market).to eq(eu_market)+ end++ it 'returns not found for invalid market_id' do+ patch :update, params: { id: order.prefixed_id, market_id: 'mkt_invalid' }++ expect(response).to have_http_status(:not_found)+ end+ end+it 'auto-advances to payment after address submission' doorder.update!(email: '[email protected]')order.next # cart -> addressdiff --git a/spree/core/app/models/spree/market.rb b/spree/core/app/models/spree/market.rbindex f185a1cc60..75cf456fc0 100644--- a/spree/core/app/models/spree/market.rb+++ b/spree/core/app/models/spree/market.rb@@ -13,6 +13,7 @@ module Spreebelongs_to :store, class_name: 'Spree::Store', touch: truehas_many :market_countries, class_name: 'Spree::MarketCountry', dependent: :destroyhas_many :countries, through: :market_countries, class_name: 'Spree::Country'+ has_many :orders, class_name: 'Spree::Order', dependent: :nullify## Validationsdiff --git a/spree/core/app/models/spree/order.rb b/spree/core/app/models/spree/order.rbindex dc93471bee..790fb48d9f 100644--- a/spree/core/app/models/spree/order.rb+++ b/spree/core/app/models/spree/order.rb@@ -140,6 +140,7 @@ module Spreealias_attribute :shipping_address_id, :ship_address_idbelongs_to :store, class_name: 'Spree::Store'+ belongs_to :market, class_name: 'Spree::Market', optional: truewith_options dependent: :destroy dohas_many :state_changes, as: :stateful, class_name: 'Spree::StateChange'@@ -191,6 +192,7 @@ module Spree# Needs to happen before save_permalink is calledbefore_validation :ensure_store_presence+ before_validation :ensure_market_presencebefore_validation :ensure_currency_presencebefore_validation :ensure_locale_presence@@ -450,6 +452,10 @@ module Spreeself.store ||= Spree::Store.defaultend+ def ensure_market_presence+ self.market ||= Spree::Current.market+ end+def allow_cancel?return false if !completed? || canceled?diff --git a/spree/core/app/services/spree/cart/create.rb b/spree/core/app/services/spree/cart/create.rbindex d52564dd18..4982c98759 100644--- a/spree/core/app/services/spree/cart/create.rb+++ b/spree/core/app/services/spree/cart/create.rb@@ -11,6 +11,7 @@ module Spreedefault_params = {user: user,+ market: Spree::Current.market,currency: currency || store.default_currency,token: Spree::GenerateToken.new.call(Spree::Order),public_metadata: public_metadata.to_h,diff --git a/spree/core/app/services/spree/carts/create.rb b/spree/core/app/services/spree/carts/create.rbindex 2008fbcb10..217b66ebea 100644--- a/spree/core/app/services/spree/carts/create.rb+++ b/spree/core/app/services/spree/carts/create.rb@@ -11,6 +11,7 @@ module Spreecart = store.carts.create!(user: @params.delete(:user),+ market: @params.delete(:market) || Spree::Current.market,currency: @params.delete(:currency) || store.default_currency,locale: @params.delete(:locale) || Spree::Current.locale)diff --git a/spree/core/app/services/spree/carts/update.rb b/spree/core/app/services/spree/carts/update.rbindex 7c6a738934..31675f965e 100644--- a/spree/core/app/services/spree/carts/update.rb+++ b/spree/core/app/services/spree/carts/update.rb@@ -9,6 +9,7 @@ module SpreeApplicationRecord.transaction doassign_cart_attributes+ clear_shipping_address_if_outside_marketassign_address(:shipping_address)assign_address(:billing_address)@@ -35,6 +36,7 @@ module Spreedef assign_cart_attributescart.email = params[:email] if params[:email].present?cart.customer_note = params[:customer_note] if params.key?(:customer_note)+ assign_market if params[:market_id].present?cart.currency = params[:currency].upcase if params[:currency].present?cart.locale = params[:locale] if params[:locale].present?cart.metadata = cart.metadata.merge(params[:metadata].to_h) if params[:metadata].present?@@ -83,6 +85,23 @@ module Spreedecoded ? cart.user.addresses.find_by(id: decoded)&.id : nilend+ def assign_market+ market = cart.store.markets.find_by_prefix_id!(params[:market_id])+ cart.market = market+ end++ # When the market changes, clear the shipping address if its country+ # is not part of the new market. The market dictates which countries+ # are available for checkout.+ def clear_shipping_address_if_outside_market+ return unless cart.market_id_changed? && cart.ship_address&.country++ unless cart.market.country_ids.include?(cart.ship_address.country_id)+ cart.ship_address = nil+ revert_to_address_state if cart.has_checkout_step?('address')+ end+ end+def revert_to_address_statereturn if ['cart', 'address'].include?(cart.state)diff --git a/spree/core/db/migrate/20260403000000_add_market_to_spree_orders.rb b/spree/core/db/migrate/20260403000000_add_market_to_spree_orders.rbnew file mode 100644index 0000000000..c22ba38dd3--- /dev/null+++ b/spree/core/db/migrate/20260403000000_add_market_to_spree_orders.rb@@ -0,0 +1,5 @@+class AddMarketToSpreeOrders < ActiveRecord::Migration[7.2]+ def change+ add_reference :spree_orders, :market, foreign_key: false, index: true+ end+enddiff --git a/spree/core/spec/services/spree/carts/create_spec.rb b/spree/core/spec/services/spree/carts/create_spec.rbindex c7e0936a61..f2d0e6d564 100644--- a/spree/core/spec/services/spree/carts/create_spec.rb+++ b/spree/core/spec/services/spree/carts/create_spec.rb@@ -67,6 +67,32 @@ module Spreeendend+ context 'create an order with market from Spree::Current' do+ let(:market) { create(:market, store: store) }+ let(:execute) { subject.call params: { user: user, store: store, currency: currency } }+ let(:value) { execute.value }++ before do+ allow(Spree::Current).to receive(:market).and_return(market)+ end++ it 'sets the market from Spree::Current' do+ expect(execute).to be_success+ expect(value.market).to eq(market)+ end+ end++ context 'create an order with explicit market' do+ let(:market) { create(:market, store: store) }+ let(:execute) { subject.call params: { user: user, store: store, currency: currency, market: market } }+ let(:value) { execute.value }++ it 'uses the explicit market' do+ expect(execute).to be_success+ expect(value.market).to eq(market)+ end+ end+context 'returns failure when no store is passed' dolet!(:default_store) { create :store, default: true }let(:execute) { subject.call params: { user: user, store: nil } }diff --git a/spree/core/spec/services/spree/carts/update_spec.rb b/spree/core/spec/services/spree/carts/update_spec.rbindex 5c891f8f3d..753881e336 100644--- a/spree/core/spec/services/spree/carts/update_spec.rb+++ b/spree/core/spec/services/spree/carts/update_spec.rb@@ -73,6 +73,61 @@ module Spreeendend+ describe 'updating market' do+ let(:us_country) { Spree::Country.find_by(iso: 'US') || create(:country, iso: 'US') }+ let(:de_country) { create(:country, iso: 'DE', name: 'Germany') }+ let!(:us_market) { create(:market, store: store, countries: [us_country]) }+ let!(:eu_market) { create(:market, :eu, store: store, countries: [de_country]) }++ context 'with valid market_id' do+ let(:params) { { market_id: eu_market.prefixed_id } }++ it 'updates the market' do+ expect(subject).to be_success+ expect(order.reload.market).to eq(eu_market)+ end+ end++ context 'with invalid market_id' do+ let(:params) { { market_id: 'mkt_invalid' } }++ it 'raises RecordNotFound' do+ expect { subject }.to raise_error(ActiveRecord::RecordNotFound)+ end+ end++ context 'when shipping address country is not in the new market' do+ let!(:us_state) { us_country.states.find_by(abbr: 'NY') || create(:state, country: us_country, abbr: 'NY', name: 'New York') }+ let(:us_address) { create(:address, country: us_country, state: us_state) }+ let(:order) { create(:order_with_line_items, user: user, store: store, market: us_market, ship_address: us_address, state: 'delivery') }+ let(:params) { { market_id: eu_market.prefixed_id } }++ it 'clears the shipping address' do+ expect(order.ship_address).to be_present+ expect(subject).to be_success+ expect(order.reload.ship_address).to be_nil+ end++ it 'reverts checkout state to address' do+ expect(subject).to be_success+ # After revert + try_advance, state depends on checkout flow+ # but it should not remain past address without a valid shipping address+ expect(order.reload.state).to eq('address')+ end+ end++ context 'when shipping address country is in the new market' do+ let(:de_address) { create(:address, country: de_country) }+ let(:order) { create(:order_with_line_items, user: user, store: store, market: us_market, ship_address: de_address) }+ let(:params) { { market_id: eu_market.prefixed_id } }++ it 'keeps the shipping address' do+ expect(subject).to be_success+ expect(order.reload.ship_address).to eq(de_address)+ end+ end+ end+describe 'updating addresses' dolet(:country) { Spree::Country.find_by(iso: 'US') || create(:country, iso: 'US') }let!(:state) { country.states.find_by(abbr: 'NY') || create(:state, country: country, abbr: 'NY', name: 'New York') }