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
SDK DX improvements: auto-pagination, optional publishableKey, ListResponse type (#13732)
Damian Legawiec7b616441afcb
diff --git a/docs/api-reference/store.yaml b/docs/api-reference/store.yamlindex 8d83d9c181..a1e0cf7891 100644--- a/docs/api-reference/store.yaml+++ b/docs/api-reference/store.yaml@@ -647,14 +647,14 @@ paths:content:application/json:example:- token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImp0aSI6IjNiNWMzYzc1LTgxODgtNDg0OS04N2M1LTBlZmYyYzI3MzEzNCIsImlzcyI6InNwcmVlIiwiYXVkIjoic3RvcmVfYXBpIiwiZXhwIjoxNzcyNjYxNzEyfQ.DWezAM9voi9mYj5zSOnhVRR_Gcv49Cy1jOtXpLEJgcY+ token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImp0aSI6ImU3NmVjMGNiLTQ4M2YtNGIxZS1hMzI4LWEyNmM3MjEzZDZmYSIsImlzcyI6InNwcmVlIiwiYXVkIjoic3RvcmVfYXBpIiwiZXhwIjoxNzcyNjY5ODA1fQ.NdHVrcagM6ZhS6uZzyyBU3Qz1yyasS3OEjEY5epIlZAuser:id: cus_UkLWZg9DAJemail: [email protected]- first_name: Joycelyn- last_name: Littel- created_at: '2026-03-04T21:01:52.149Z'- updated_at: '2026-03-04T21:01:52.149Z'+ first_name: Gaylord+ last_name: Abbott+ created_at: '2026-03-04T23:16:45.224Z'+ updated_at: '2026-03-04T23:16:45.224Z'addresses: []default_billing_address:default_shipping_address:@@ -727,14 +727,14 @@ paths:content:application/json:example:- token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImp0aSI6ImNkMjY2YjlhLTUxZTMtNGE3My05Njk2LTRhMzk4MjJjNTMyYyIsImlzcyI6InNwcmVlIiwiYXVkIjoic3RvcmVfYXBpIiwiZXhwIjoxNzcyNjYxNzEzfQ.KNf1qP72QYrgQE-76AOtSJs7zUam9-a4W34pdwz6rXc+ token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImp0aSI6ImIyY2MxZjBkLTM4ODEtNDhlYy05NWQwLTRjMWFiYThmNjdjNiIsImlzcyI6InNwcmVlIiwiYXVkIjoic3RvcmVfYXBpIiwiZXhwIjoxNzcyNjY5ODA2fQ.TuNtaQsHENSyeVdaLBdxPikT5Efw_BfFSMNW_YSDhYUuser:id: cus_UkLWZg9DAJemail: [email protected]first_name: Johnlast_name: Doe- created_at: '2026-03-04T21:01:53.546Z'- updated_at: '2026-03-04T21:01:53.546Z'+ created_at: '2026-03-04T23:16:46.619Z'+ updated_at: '2026-03-04T23:16:46.619Z'addresses: []default_billing_address:default_shipping_address:@@ -820,14 +820,14 @@ paths:content:application/json:example:- token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImp0aSI6IjBlNmZmNmUwLWQ0OWMtNDAyYS05ODViLTdlOWExYjY5NTAzOCIsImlzcyI6InNwcmVlIiwiYXVkIjoic3RvcmVfYXBpIiwiZXhwIjoxNzcyNjYxNzE0fQ.pR-okCsWrRDYKSPEz2KYn9nqKnLSJ8vT1sqJRaE1jjo+ token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImp0aSI6ImJiNDNhYmEzLTQyZmEtNDBmMS1iOGY0LWM3ZDRlZGFjMDk2MCIsImlzcyI6InNwcmVlIiwiYXVkIjoic3RvcmVfYXBpIiwiZXhwIjoxNzcyNjY5ODA3fQ.LDpIaRzMzrSuM5zPTyNkslNJLMQ6jqjQiYAgkE66RTwuser:id: cus_UkLWZg9DAJemail: [email protected]- first_name: Madelene- last_name: Powlowski- created_at: '2026-03-04T21:01:54.123Z'- updated_at: '2026-03-04T21:01:54.123Z'+ first_name: Senaida+ last_name: Mayer+ created_at: '2026-03-04T23:16:47.183Z'+ updated_at: '2026-03-04T23:16:47.183Z'addresses: []default_billing_address:default_shipping_address:@@ -884,9 +884,9 @@ paths:application/json:example:id: or_UkLWZg9DAJ- number: R140723921+ number: R618951168state: cart- token: wg4sXxVlPm-k4Z7UXPtwkg1772658114758+ token: fluIp0nUEC2GAd3Cr6llyw1772666207799email:special_instructions:currency: USD@@ -912,8 +912,8 @@ paths:total: '0.0'display_total: "$0.00"completed_at:- created_at: '2026-03-04T21:01:54.759Z'- updated_at: '2026-03-04T21:01:54.759Z'+ created_at: '2026-03-04T23:16:47.800Z'+ updated_at: '2026-03-04T23:16:47.800Z'order_promotions: []line_items: []shipments: []@@ -998,10 +998,10 @@ paths:application/json:example:id: or_UkLWZg9DAJ- number: R147480751+ number: R590937094state: cart- token: 3dUVTnJHPpSLCVN7oyuZCdb5omuX8zdRtDu- email: [email protected]+ token: WpkLzDbMQcxAVEeCjBM34rDPAfPCsfkBbD7+ email: [email protected]special_instructions:currency: USDlocale: en@@ -1026,16 +1026,16 @@ paths:total: '110.0'display_total: "$110.00"completed_at:- created_at: '2026-03-04T21:01:55.774Z'- updated_at: '2026-03-04T21:01:55.828Z'+ created_at: '2026-03-04T23:16:48.792Z'+ updated_at: '2026-03-04T23:16:48.846Z'order_promotions: []line_items:- id: li_UkLWZg9DAJvariant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 2753- slug: product-2753+ name: Product 26054+ slug: product-26054options_text: ''price: '10.0'display_price: "$10.00"@@ -1054,23 +1054,23 @@ paths:discounted_amount: '10.0'display_discounted_amount: "$10.00"display_compare_at_amount: "$0.00"- created_at: '2026-03-04T21:01:55.807Z'- updated_at: '2026-03-04T21:01:55.807Z'+ created_at: '2026-03-04T23:16:48.826Z'+ updated_at: '2026-03-04T23:16:48.826Z'compare_at_amount:thumbnail_url:option_values: []digital_links: []shipments:- id: ship_UkLWZg9DAJ- number: H52066212702+ number: H56313951793state: pendingtracking: U10000tracking_url:cost: '100.0'display_cost: "$100.00"shipped_at:- created_at: '2026-03-04T21:01:55.812Z'- updated_at: '2026-03-04T21:01:55.826Z'+ created_at: '2026-03-04T23:16:48.831Z'+ updated_at: '2026-03-04T23:16:48.844Z'shipping_method:id: shpm_UkLWZg9DAJname: UPS Ground@@ -1078,7 +1078,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_41- name: Gilda Lemke+ name: Rolanda Runolfssonaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -1196,10 +1196,10 @@ paths:application/json:example:id: or_UkLWZg9DAJ- number: R850259511+ number: R774964510state: cart- token: YYegGUZ1nhuprFcZVgycMLNXEzYKj4XewJ6- email: [email protected]+ token: ZUHqTCvwRsnTgU9fNd1VKApe12yKsPJ51is+ email: [email protected]special_instructions:currency: USDlocale: en@@ -1224,16 +1224,16 @@ paths:total: '110.0'display_total: "$110.00"completed_at:- created_at: '2026-03-04T21:01:56.412Z'- updated_at: '2026-03-04T21:01:56.469Z'+ created_at: '2026-03-04T23:16:49.436Z'+ updated_at: '2026-03-04T23:16:49.491Z'order_promotions: []line_items:- id: li_UkLWZg9DAJvariant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 38003- slug: product-38003+ name: Product 31102+ slug: product-31102options_text: ''price: '10.0'display_price: "$10.00"@@ -1252,23 +1252,23 @@ paths:discounted_amount: '10.0'display_discounted_amount: "$10.00"display_compare_at_amount: "$0.00"- created_at: '2026-03-04T21:01:56.447Z'- updated_at: '2026-03-04T21:01:56.447Z'+ created_at: '2026-03-04T23:16:49.468Z'+ updated_at: '2026-03-04T23:16:49.468Z'compare_at_amount:thumbnail_url:option_values: []digital_links: []shipments:- id: ship_UkLWZg9DAJ- number: H10557428844+ number: H86414876171state: pendingtracking: U10000tracking_url:cost: '100.0'display_cost: "$100.00"shipped_at:- created_at: '2026-03-04T21:01:56.452Z'- updated_at: '2026-03-04T21:01:56.467Z'+ created_at: '2026-03-04T23:16:49.474Z'+ updated_at: '2026-03-04T23:16:49.489Z'shipping_method:id: shpm_UkLWZg9DAJname: UPS Ground@@ -1276,7 +1276,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_45- name: Inga Rutherford+ name: Tammie Vandervortaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -1544,10 +1544,10 @@ paths:application/json:example:id: or_UkLWZg9DAJ- number: R469306453+ number: R101959622state: cart- token: KAW2m7hGQM3Qor6QK4BQmHnmpveCKrDX4rR- email: [email protected]+ token: MutBdVXkYHt6C9cy2SXL2xpriusqJjw1D6u+ email: [email protected]special_instructions:currency: USDlocale: en@@ -1572,16 +1572,16 @@ paths:total: '110.0'display_total: "$110.00"completed_at:- created_at: '2026-03-04T21:02:00.173Z'- updated_at: '2026-03-04T21:02:00.301Z'+ created_at: '2026-03-04T23:16:53.131Z'+ updated_at: '2026-03-04T23:16:53.234Z'order_promotions: []line_items:- id: li_UkLWZg9DAJvariant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 8205- slug: product-8205+ name: Product 8571+ slug: product-8571options_text: ''price: '10.0'display_price: "$10.00"@@ -1600,23 +1600,23 @@ paths:discounted_amount: '10.0'display_discounted_amount: "$10.00"display_compare_at_amount: "$0.00"- created_at: '2026-03-04T21:02:00.202Z'- updated_at: '2026-03-04T21:02:00.202Z'+ created_at: '2026-03-04T23:16:53.158Z'+ updated_at: '2026-03-04T23:16:53.158Z'compare_at_amount:thumbnail_url:option_values: []digital_links: []shipments:- id: ship_UkLWZg9DAJ- number: H50555335328+ number: H21319787495state: pendingtracking: U10000tracking_url:cost: '100.0'display_cost: "$100.00"shipped_at:- created_at: '2026-03-04T21:02:00.208Z'- updated_at: '2026-03-04T21:02:00.222Z'+ created_at: '2026-03-04T23:16:53.163Z'+ updated_at: '2026-03-04T23:16:53.175Z'shipping_method:id: shpm_UkLWZg9DAJname: UPS Ground@@ -1624,7 +1624,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_65- name: Renate Gusikowski+ name: Alexa Sanfordaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -1646,12 +1646,12 @@ paths:- id: py_UkLWZg9DAJpayment_method_id: pm_UkLWZg9DAJstate: checkout- response_code: 1-SC-20260304210200290053- number: PXXQ0Y71+ response_code: 1-SC-20260304231653225324+ number: PPADTIK2amount: '50.0'display_amount: "$50.00"- created_at: '2026-03-04T21:02:00.295Z'- updated_at: '2026-03-04T21:02:00.295Z'+ created_at: '2026-03-04T23:16:53.229Z'+ updated_at: '2026-03-04T23:16:53.229Z'source_type: store_creditsource_id: credit_UkLWZg9DAJsource:@@ -1803,10 +1803,10 @@ paths:application/json:example:id: or_UkLWZg9DAJ- number: R175624543+ number: R412628999state: cart- token: Ly8Y49kUeX423r5zbMZAtZB8he2LAUwtvWg- email: [email protected]+ token: Au5hNbyeNmsWawGWuZU3ZyXQFo81by52ft2+ email: [email protected]special_instructions:currency: USDlocale: en@@ -1831,16 +1831,16 @@ paths:total: '110.0'display_total: "$110.00"completed_at:- created_at: '2026-03-04T21:02:02.074Z'- updated_at: '2026-03-04T21:02:02.186Z'+ created_at: '2026-03-04T23:16:55.039Z'+ updated_at: '2026-03-04T23:16:55.140Z'order_promotions: []line_items:- id: li_UkLWZg9DAJvariant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 115926- slug: product-115926+ name: Product 116112+ slug: product-116112options_text: ''price: '10.0'display_price: "$10.00"@@ -1859,23 +1859,23 @@ paths:discounted_amount: '10.0'display_discounted_amount: "$10.00"display_compare_at_amount: "$0.00"- created_at: '2026-03-04T21:02:02.107Z'- updated_at: '2026-03-04T21:02:02.181Z'+ created_at: '2026-03-04T23:16:55.066Z'+ updated_at: '2026-03-04T23:16:55.134Z'compare_at_amount:thumbnail_url:option_values: []digital_links: []shipments:- id: ship_UkLWZg9DAJ- number: H28484597483+ number: H06232049435state: pendingtracking: U10000tracking_url:cost: '100.0'display_cost: "$100.00"shipped_at:- created_at: '2026-03-04T21:02:02.113Z'- updated_at: '2026-03-04T21:02:02.127Z'+ created_at: '2026-03-04T23:16:55.071Z'+ updated_at: '2026-03-04T23:16:55.083Z'shipping_method:id: shpm_UkLWZg9DAJname: UPS Ground@@ -1883,7 +1883,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_77- name: Paige Parker+ name: Vannesa Hermannaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -2278,10 +2278,10 @@ paths:example:data:- id: or_UkLWZg9DAJ- number: R874633979+ number: R740767011state: cart- token: Hq5793rpZkqis7UvdtsR3pHbYrZ7PTnnZfb- email: [email protected]+ token: da7NyignsWUhLWwRHAP6U3ET5rNSSsoZ5Ay+ email: [email protected]special_instructions:currency: USDlocale: en@@ -2306,16 +2306,16 @@ paths:total: '110.0'display_total: "$110.00"completed_at:- created_at: '2026-03-04T21:02:06.763Z'- updated_at: '2026-03-04T21:02:06.818Z'+ created_at: '2026-03-04T23:16:59.684Z'+ updated_at: '2026-03-04T23:16:59.765Z'order_promotions: []line_items:- id: li_UkLWZg9DAJvariant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 133112- slug: product-133112+ name: Product 131061+ slug: product-131061options_text: ''price: '10.0'display_price: "$10.00"@@ -2334,23 +2334,23 @@ paths:discounted_amount: '10.0'display_discounted_amount: "$10.00"display_compare_at_amount: "$0.00"- created_at: '2026-03-04T21:02:06.792Z'- updated_at: '2026-03-04T21:02:06.792Z'+ created_at: '2026-03-04T23:16:59.724Z'+ updated_at: '2026-03-04T23:16:59.724Z'compare_at_amount:thumbnail_url:option_values: []digital_links: []shipments:- id: ship_UkLWZg9DAJ- number: H58323602865+ number: H85878272412state: pendingtracking: U10000tracking_url:cost: '100.0'display_cost: "$100.00"shipped_at:- created_at: '2026-03-04T21:02:06.796Z'- updated_at: '2026-03-04T21:02:06.811Z'+ created_at: '2026-03-04T23:16:59.735Z'+ updated_at: '2026-03-04T23:16:59.758Z'shipping_method:id: shpm_UkLWZg9DAJname: UPS Ground@@ -2358,7 +2358,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_100- name: Alaina Schmitt+ name: Ofelia Braunaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -2483,11 +2483,11 @@ paths:application/json:example:id: cus_UkLWZg9DAJ- email: [email protected]- first_name: Kelly- last_name: Terry- created_at: '2026-03-04T21:02:07.764Z'- updated_at: '2026-03-04T21:02:08.032Z'+ email: [email protected]+ first_name: Yessenia+ last_name: Kuhic+ created_at: '2026-03-04T23:17:00.712Z'+ updated_at: '2026-03-04T23:17:00.984Z'addresses:- id: addr_gbHJdmfrXBfirstname: John@@ -2610,11 +2610,11 @@ paths:application/json:example:id: cus_UkLWZg9DAJ- email: [email protected]+ email: [email protected]first_name: Updatedlast_name: Name- created_at: '2026-03-04T21:02:08.321Z'- updated_at: '2026-03-04T21:02:08.603Z'+ created_at: '2026-03-04T23:17:01.275Z'+ updated_at: '2026-03-04T23:17:01.554Z'addresses:- id: addr_gbHJdmfrXBfirstname: John@@ -2827,7 +2827,7 @@ paths:example:data:- id: gc_UkLWZg9DAJ- code: E0EBCDF3A7EF85FE+ code: 57F9EFA15BCD6500state: activecurrency: USDamount: '10.0'@@ -2841,8 +2841,8 @@ paths:redeemed_at:expired: falseactive: true- created_at: '2026-03-04T21:02:11.770Z'- updated_at: '2026-03-04T21:02:11.770Z'+ created_at: '2026-03-04T23:17:04.681Z'+ updated_at: '2026-03-04T23:17:04.681Z'meta:page: 1limit: 25@@ -2918,7 +2918,7 @@ paths:application/json:example:id: gc_UkLWZg9DAJ- code: DA1E984ADDF39AB6+ code: D064082470A0FA61state: activecurrency: USDamount: '10.0'@@ -2932,8 +2932,8 @@ paths:redeemed_at:expired: falseactive: true- created_at: '2026-03-04T21:02:12.867Z'- updated_at: '2026-03-04T21:02:12.867Z'+ created_at: '2026-03-04T23:17:05.764Z'+ updated_at: '2026-03-04T23:17:05.764Z'schema:"$ref": "#/components/schemas/StoreGiftCard"'404':@@ -3004,10 +3004,10 @@ paths:application/json:example:id: or_UkLWZg9DAJ- number: R075287593+ number: R053110153state: cart- token: YZHv9GbhJ81qS4eNmKY1DnYrkxacb4Dxoit- email: [email protected]+ token: yBLLGDVeXLP8sjC2249DNRDPoFHNq2KhNrd+ email: [email protected]special_instructions:currency: USDlocale: en@@ -3032,16 +3032,16 @@ paths:total: '29.99'display_total: "$29.99"completed_at:- created_at: '2026-03-04T21:02:14.652Z'- updated_at: '2026-03-04T21:02:14.755Z'+ created_at: '2026-03-04T23:17:07.527Z'+ updated_at: '2026-03-04T23:17:07.640Z'order_promotions: []line_items:- id: li_UkLWZg9DAJvariant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 232911- slug: product-232911+ name: Product 235530+ slug: product-235530options_text: ''price: '10.0'display_price: "$10.00"@@ -3060,8 +3060,8 @@ paths:discounted_amount: '10.0'display_discounted_amount: "$10.00"display_compare_at_amount: "$0.00"- created_at: '2026-03-04T21:02:14.686Z'- updated_at: '2026-03-04T21:02:14.686Z'+ created_at: '2026-03-04T23:17:07.569Z'+ updated_at: '2026-03-04T23:17:07.569Z'compare_at_amount:thumbnail_url:option_values: []@@ -3070,8 +3070,8 @@ paths:variant_id: variant_gbHJdmfrXBquantity: 1currency: USD- name: Product 244965- slug: product-244965+ name: Product 248937+ slug: product-248937options_text: ''price: '19.99'display_price: "$19.99"@@ -3090,8 +3090,8 @@ paths:discounted_amount: '19.99'display_discounted_amount: "$19.99"display_compare_at_amount: "$0.00"- created_at: '2026-03-04T21:02:14.733Z'- updated_at: '2026-03-04T21:02:14.733Z'+ created_at: '2026-03-04T23:17:07.617Z'+ updated_at: '2026-03-04T23:17:07.617Z'compare_at_amount:thumbnail_url:option_values: []@@ -3211,10 +3211,10 @@ paths:application/json:example:id: or_UkLWZg9DAJ- number: R610591863+ number: R270823023state: cart- token: X6JkogXpWpcYLB916xoUriMVZeeNpjoKUni- email: [email protected]+ token: 3KZoEEDyhipemxt3Mu751SiPyPXt2BCZUUe+ email: [email protected]special_instructions:currency: USDlocale: en@@ -3239,16 +3239,16 @@ paths:total: '0.0'display_total: "$0.00"completed_at:- created_at: '2026-03-04T21:02:17.089Z'- updated_at: '2026-03-04T21:02:17.122Z'+ created_at: '2026-03-04T23:17:09.982Z'+ updated_at: '2026-03-04T23:17:10.011Z'order_promotions: []line_items:- id: li_UkLWZg9DAJvariant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 284111- slug: product-284111+ name: Product 287514+ slug: product-287514options_text: ''price: '10.0'display_price: "$10.00"@@ -3267,8 +3267,8 @@ paths:discounted_amount: '10.0'display_discounted_amount: "$10.00"display_compare_at_amount: "$0.00"- created_at: '2026-03-04T21:02:17.121Z'- updated_at: '2026-03-04T21:02:17.147Z'+ created_at: '2026-03-04T23:17:10.010Z'+ updated_at: '2026-03-04T23:17:10.025Z'compare_at_amount:thumbnail_url:option_values: []@@ -3367,10 +3367,10 @@ paths:application/json:example:id: or_UkLWZg9DAJ- number: R699390402+ number: R504751218state: cart- token: X73kAT7PLt8mvLS4C2jwMmW2iXskqcgkMte- email: [email protected]+ token: 2eTdasGo2WpwwcZhp1jizTJGfJqrdvnQeDr+ email: [email protected]special_instructions:currency: USDlocale: en@@ -3395,8 +3395,8 @@ paths:total: '0.0'display_total: "$0.00"completed_at:- created_at: '2026-03-04T21:02:17.705Z'- updated_at: '2026-03-04T21:02:17.772Z'+ created_at: '2026-03-04T23:17:10.566Z'+ updated_at: '2026-03-04T23:17:10.638Z'order_promotions: []line_items: []shipments: []@@ -3901,9 +3901,9 @@ paths:application/json:example:id: or_gbHJdmfrXB- number: R372104027+ number: R264789212state: cart- token: KVdyKcSGcda8s76pHE7v2uAmu9TCtvH9qZ2+ token: rQJarx6iw673mZP6CFJLLjdMokuMxw6b3eUemail:special_instructions:currency: USD@@ -3929,16 +3929,16 @@ paths:total: '110.0'display_total: "$110.00"completed_at:- created_at: '2026-03-04T21:02:20.116Z'- updated_at: '2026-03-04T21:02:20.169Z'+ created_at: '2026-03-04T23:17:12.966Z'+ updated_at: '2026-03-04T23:17:13.024Z'order_promotions: []line_items:- id: li_gbHJdmfrXBvariant_id: variant_gbHJdmfrXBquantity: 1currency: USD- name: Product 338504- slug: product-338504+ name: Product 335231+ slug: product-335231options_text: ''price: '10.0'display_price: "$10.00"@@ -3957,23 +3957,23 @@ paths:discounted_amount: '10.0'display_discounted_amount: "$10.00"display_compare_at_amount: "$0.00"- created_at: '2026-03-04T21:02:20.149Z'- updated_at: '2026-03-04T21:02:20.149Z'+ created_at: '2026-03-04T23:17:12.995Z'+ updated_at: '2026-03-04T23:17:12.995Z'compare_at_amount:thumbnail_url:option_values: []digital_links: []shipments:- id: ship_gbHJdmfrXB- number: H64710895437+ number: H22053469571state: pendingtracking: U10000tracking_url:cost: '100.0'display_cost: "$100.00"shipped_at:- created_at: '2026-03-04T21:02:20.156Z'- updated_at: '2026-03-04T21:02:20.167Z'+ created_at: '2026-03-04T23:17:13.007Z'+ updated_at: '2026-03-04T23:17:13.021Z'shipping_method:id: shpm_gbHJdmfrXBname: UPS Ground@@ -3981,7 +3981,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_159- name: Josefine Rau+ name: Jay O'Haraaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -4109,10 +4109,10 @@ paths:application/json:example:id: or_UkLWZg9DAJ- number: R502521585+ number: R229942880state: cart- token: k1Npeq6E2kVxvYYTJnYPhdHBWS9fwWKsUAs- email: [email protected]+ token: z1dfmjcrKrQVFu2cAx7hUwmBMhmMGBkRdd4+ email: [email protected]special_instructions:currency: USDlocale: en@@ -4137,16 +4137,16 @@ paths:total: '110.0'display_total: "$110.00"completed_at:- created_at: '2026-03-04T21:02:22.911Z'- updated_at: '2026-03-04T21:02:22.985Z'+ created_at: '2026-03-04T23:17:15.684Z'+ updated_at: '2026-03-04T23:17:15.756Z'order_promotions: []line_items:- id: li_UkLWZg9DAJvariant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 376642- slug: product-376642+ name: Product 371247+ slug: product-371247options_text: ''price: '10.0'display_price: "$10.00"@@ -4165,23 +4165,23 @@ paths:discounted_amount: '10.0'display_discounted_amount: "$10.00"display_compare_at_amount: "$0.00"- created_at: '2026-03-04T21:02:22.945Z'- updated_at: '2026-03-04T21:02:22.945Z'+ created_at: '2026-03-04T23:17:15.717Z'+ updated_at: '2026-03-04T23:17:15.717Z'compare_at_amount:thumbnail_url:option_values: []digital_links: []shipments:- id: ship_UkLWZg9DAJ- number: H11902177636+ number: H32380232811state: pendingtracking: U10000tracking_url:cost: '100.0'display_cost: "$100.00"shipped_at:- created_at: '2026-03-04T21:02:22.950Z'- updated_at: '2026-03-04T21:02:22.965Z'+ created_at: '2026-03-04T23:17:15.722Z'+ updated_at: '2026-03-04T23:17:15.737Z'shipping_method:id: shpm_UkLWZg9DAJname: UPS Ground@@ -4189,7 +4189,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_178- name: Matilde Halvorson+ name: Emelina Sengeraddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -4393,10 +4393,10 @@ paths:application/json:example:id: or_gbHJdmfrXB- number: R425784210+ number: R701650727state: address- token: qC68ntz2zgzR8j4hbRKE8Hx8nLzzpQab4W7- email: [email protected]+ token: j5LZERrRpKUPoaoedscbbycbMgYYVwxuLBL+ email: [email protected]special_instructions:currency: USDlocale: en@@ -4421,16 +4421,16 @@ paths:total: '110.0'display_total: "$110.00"completed_at:- created_at: '2026-03-04T21:02:24.256Z'- updated_at: '2026-03-04T21:02:24.313Z'+ created_at: '2026-03-04T23:17:17.082Z'+ updated_at: '2026-03-04T23:17:17.143Z'order_promotions: []line_items:- id: li_gbHJdmfrXBvariant_id: variant_gbHJdmfrXBquantity: 1currency: USD- name: Product 417694- slug: product-417694+ name: Product 415109+ slug: product-415109options_text: ''price: '10.0'display_price: "$10.00"@@ -4449,23 +4449,23 @@ paths:discounted_amount: '10.0'display_discounted_amount: "$10.00"display_compare_at_amount: "$0.00"- created_at: '2026-03-04T21:02:24.279Z'- updated_at: '2026-03-04T21:02:24.279Z'+ created_at: '2026-03-04T23:17:17.108Z'+ updated_at: '2026-03-04T23:17:17.108Z'compare_at_amount:thumbnail_url:option_values: []digital_links: []shipments:- id: ship_gbHJdmfrXB- number: H29513162117+ number: H51478134192state: pendingtracking: U10000tracking_url:cost: '100.0'display_cost: "$100.00"shipped_at:- created_at: '2026-03-04T21:02:24.284Z'- updated_at: '2026-03-04T21:02:24.294Z'+ created_at: '2026-03-04T23:17:17.114Z'+ updated_at: '2026-03-04T23:17:17.124Z'shipping_method:id: shpm_gbHJdmfrXBname: UPS Ground@@ -4473,7 +4473,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_188- name: Karima Barton+ name: Johnathon Smithamaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -4591,10 +4591,10 @@ paths:application/json:example:id: or_gbHJdmfrXB- number: R792690155+ number: R552471231state: payment- token: RZbQvTjmDaGVFEx9B5345TBtLAcNHvygwub- email: [email protected]+ token: eF7y7w9Afz6fSGZ1DVYbjxBtE7XAeV4ZqEg+ email: [email protected]special_instructions:currency: USDlocale: en@@ -4619,16 +4619,16 @@ paths:total: '29.99'display_total: "$29.99"completed_at:- created_at: '2026-03-04T21:02:25.548Z'- updated_at: '2026-03-04T21:02:25.693Z'+ created_at: '2026-03-04T23:17:18.376Z'+ updated_at: '2026-03-04T23:17:18.530Z'order_promotions: []line_items:- id: li_gbHJdmfrXBvariant_id: variant_gbHJdmfrXBquantity: 1currency: USD- name: Product 447617- slug: product-447617+ name: Product 444613+ slug: product-444613options_text: ''price: '19.99'display_price: "$19.99"@@ -4647,23 +4647,23 @@ paths:discounted_amount: '19.99'display_discounted_amount: "$19.99"display_compare_at_amount: "$0.00"- created_at: '2026-03-04T21:02:25.580Z'- updated_at: '2026-03-04T21:02:25.638Z'+ created_at: '2026-03-04T23:17:18.406Z'+ updated_at: '2026-03-04T23:17:18.471Z'compare_at_amount:thumbnail_url:option_values: []digital_links: []shipments:- id: ship_EfhxLZ9ck8- number: H11927747644+ number: H24101681822state: pendingtracking:tracking_url:cost: '10.0'display_cost: "$10.00"shipped_at:- created_at: '2026-03-04T21:02:25.655Z'- updated_at: '2026-03-04T21:02:25.667Z'+ created_at: '2026-03-04T23:17:18.489Z'+ updated_at: '2026-03-04T23:17:18.502Z'shipping_method:id: shpm_UkLWZg9DAJname: UPS Ground@@ -4671,7 +4671,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_198- name: Jolynn Satterfield+ name: Leta Schinneraddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -4788,10 +4788,10 @@ paths:application/json:example:id: or_gbHJdmfrXB- number: R711162225+ number: R534375768state: complete- token: th6dtmR2u5d1YX9gzuzM5qAwUUJwYAYDSW1- email: [email protected]+ token: 17ZExg7cPhvUxv2ou4utEPT7Em6GFREvvAW+ email: [email protected]special_instructions:currency: USDlocale: en@@ -4815,17 +4815,17 @@ paths:display_additional_tax_total: "$0.00"total: '29.99'display_total: "$29.99"- completed_at: '2026-03-04T21:02:26.483Z'- created_at: '2026-03-04T21:02:26.287Z'- updated_at: '2026-03-04T21:02:26.483Z'+ completed_at: '2026-03-04T23:17:19.409Z'+ created_at: '2026-03-04T23:17:19.151Z'+ updated_at: '2026-03-04T23:17:19.409Z'order_promotions: []line_items:- id: li_gbHJdmfrXBvariant_id: variant_gbHJdmfrXBquantity: 1currency: USD- name: Product 468462- slug: product-468462+ name: Product 467244+ slug: product-467244options_text: ''price: '19.99'display_price: "$19.99"@@ -4844,23 +4844,23 @@ paths:discounted_amount: '19.99'display_discounted_amount: "$19.99"display_compare_at_amount: "$0.00"- created_at: '2026-03-04T21:02:26.311Z'- updated_at: '2026-03-04T21:02:26.362Z'+ created_at: '2026-03-04T23:17:19.195Z'+ updated_at: '2026-03-04T23:17:19.273Z'compare_at_amount:thumbnail_url:option_values: []digital_links: []shipments:- id: ship_EfhxLZ9ck8- number: H83851193870+ number: H49476442238state: pendingtracking:tracking_url:cost: '10.0'display_cost: "$10.00"shipped_at:- created_at: '2026-03-04T21:02:26.385Z'- updated_at: '2026-03-04T21:02:26.474Z'+ created_at: '2026-03-04T23:17:19.305Z'+ updated_at: '2026-03-04T23:17:19.399Z'shipping_method:id: shpm_UkLWZg9DAJname: UPS Ground@@ -4868,7 +4868,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_204- name: Jeanna Murphy+ name: Alona Abshireaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -4901,11 +4901,11 @@ paths:payment_method_id: pm_UkLWZg9DAJstate: checkoutresponse_code: '12345'- number: P8YGFG8Y+ number: PJQC7TSEamount: '29.99'display_amount: "$29.99"- created_at: '2026-03-04T21:02:26.448Z'- updated_at: '2026-03-04T21:02:26.448Z'+ created_at: '2026-03-04T23:17:19.371Z'+ updated_at: '2026-03-04T23:17:19.371Z'source_type: credit_cardsource_id: card_UkLWZg9DAJsource:@@ -5131,13 +5131,13 @@ paths:id: ps_gbHJdmfrXBstatus: pendingcurrency: USD- external_id: bogus_5a4655dea0f434790512c39a+ external_id: bogus_259304fc47a0d54c9749cec9external_data:- client_secret: bogus_secret_9ce785580d85d159+ client_secret: bogus_secret_0d716c78904a6840customer_external_id:expires_at:- created_at: '2026-03-04T21:02:28.954Z'- updated_at: '2026-03-04T21:02:28.954Z'+ created_at: '2026-03-04T23:17:21.852Z'+ updated_at: '2026-03-04T23:17:21.852Z'amount: '110.0'payment_method_id: pm_UkLWZg9DAJorder_id: or_UkLWZg9DAJ@@ -5242,13 +5242,13 @@ paths:id: ps_UkLWZg9DAJstatus: pendingcurrency: USD- external_id: bogus_cd980c785814da4682c70f77+ external_id: bogus_2710f63f83a12c61889acc1eexternal_data:client_secret: secret_123customer_external_id:expires_at:- created_at: '2026-03-04T21:02:30.168Z'- updated_at: '2026-03-04T21:02:30.168Z'+ created_at: '2026-03-04T23:17:23.077Z'+ updated_at: '2026-03-04T23:17:23.077Z'amount: '110.0'payment_method_id: pm_UkLWZg9DAJorder_id: or_UkLWZg9DAJ@@ -5305,13 +5305,13 @@ paths:id: ps_UkLWZg9DAJstatus: pendingcurrency: USD- external_id: bogus_a05b702d8ed11a6c665b40cc+ external_id: bogus_7c8aca13719f1243a7d1d86aexternal_data:client_secret: secret_123customer_external_id:expires_at:- created_at: '2026-03-04T21:02:31.374Z'- updated_at: '2026-03-04T21:02:31.387Z'+ created_at: '2026-03-04T23:17:24.286Z'+ updated_at: '2026-03-04T23:17:24.299Z'amount: '50.0'payment_method_id: pm_UkLWZg9DAJorder_id: or_UkLWZg9DAJ@@ -5402,13 +5402,13 @@ paths:id: ps_UkLWZg9DAJstatus: completedcurrency: USD- external_id: bogus_9fc984c61ab25f1173e3e4d4+ external_id: bogus_abf5f34c64cdd4896f300894external_data:client_secret: secret_123customer_external_id:expires_at:- created_at: '2026-03-04T21:02:31.985Z'- updated_at: '2026-03-04T21:02:31.998Z'+ created_at: '2026-03-04T23:17:24.901Z'+ updated_at: '2026-03-04T23:17:24.914Z'amount: '110.0'payment_method_id: pm_UkLWZg9DAJorder_id: or_UkLWZg9DAJ@@ -5488,11 +5488,11 @@ paths:example:id: pss_gbHJdmfrXBstatus: pending- external_id: bogus_seti_e0ac17ce639983d8d155b11d- external_client_secret: bogus_seti_secret_b5ed82606bfa5145+ external_id: bogus_seti_9ccae6ad6e70f20ff2b324e8+ external_client_secret: bogus_seti_secret_d40edb7011910397external_data: {}- created_at: '2026-03-04T21:02:33.230Z'- updated_at: '2026-03-04T21:02:33.230Z'+ created_at: '2026-03-04T23:17:26.115Z'+ updated_at: '2026-03-04T23:17:26.115Z'payment_method_id: pm_UkLWZg9DAJpayment_source_id:payment_source_type:@@ -5589,12 +5589,12 @@ paths:example:id: pss_UkLWZg9DAJstatus: pending- external_id: seti_test_1b58935931d8c9cb68ef5aa8- external_client_secret: seti_secret_14e0a9a846b20aca2cbcbf73+ external_id: seti_test_e4289b0f3a7de263c51596db+ external_client_secret: seti_secret_c96a310dcd14443997b80df2external_data:client_secret: secret_123- created_at: '2026-03-04T21:02:34.854Z'- updated_at: '2026-03-04T21:02:34.854Z'+ created_at: '2026-03-04T23:17:27.753Z'+ updated_at: '2026-03-04T23:17:27.753Z'payment_method_id: pm_UkLWZg9DAJpayment_source_id:payment_source_type:@@ -5667,12 +5667,12 @@ paths:example:id: pss_UkLWZg9DAJstatus: completed- external_id: seti_test_7d1dd25955bf673e8c56a55d- external_client_secret: seti_secret_51a7a9cd79b93d50461063a3+ external_id: seti_test_66269e5af60aa07090e3a76a+ external_client_secret: seti_secret_00facd29ab65ba8453e276baexternal_data:client_secret: secret_123- created_at: '2026-03-04T21:02:35.948Z'- updated_at: '2026-03-04T21:02:35.962Z'+ created_at: '2026-03-04T23:17:28.853Z'+ updated_at: '2026-03-04T23:17:28.867Z'payment_method_id: pm_UkLWZg9DAJpayment_source_id: card_UkLWZg9DAJpayment_source_type: Spree::CreditCard@@ -5755,11 +5755,11 @@ paths:payment_method_id: pm_UkLWZg9DAJstate: checkoutresponse_code: '12345'- number: PDCFL1QQ+ number: P2R03K9Tamount: '110.0'display_amount: "$110.00"- created_at: '2026-03-04T21:02:37.110Z'- updated_at: '2026-03-04T21:02:37.110Z'+ created_at: '2026-03-04T23:17:30.096Z'+ updated_at: '2026-03-04T23:17:30.096Z'source_type: credit_cardsource_id: card_UkLWZg9DAJsource:@@ -5853,11 +5853,11 @@ paths:payment_method_id: pm_UkLWZg9DAJstate: checkoutresponse_code: '12345'- number: PJXZA414+ number: PY9M5M6Jamount: '110.0'display_amount: "$110.00"- created_at: '2026-03-04T21:02:38.347Z'- updated_at: '2026-03-04T21:02:38.347Z'+ created_at: '2026-03-04T23:17:31.347Z'+ updated_at: '2026-03-04T23:17:31.347Z'source_type: credit_cardsource_id: card_UkLWZg9DAJsource:@@ -5994,18 +5994,18 @@ paths:example:data:- id: prod_UkLWZg9DAJ- name: Product 637041+ name: Product 635842description: |-- Tenetur assumenda aspernatur exercitationem vero nemo dicta vitae. Unde omnis a nostrum incidunt sit repudiandae. Vitae laudantium esse dolorum similique. Nostrum ducimus laboriosam dolorem molestiae fugit.- Ducimus inventore illum porro at. Quis corporis beatae exercitationem accusamus quidem eos vel. Magnam deleniti nostrum harum consequuntur. Ducimus inventore alias a deserunt ut suscipit atque.- In alias numquam minima excepturi. Ratione voluptas occaecati veritatis iure ullam. Aliquid eaque rem vel quos corporis vitae. Similique amet eum pariatur minus. Soluta doloremque dolores debitis porro quas aut similique.- slug: product-637041+ Corporis explicabo animi repellat natus at rerum quod dolorum. Ratione accusantium recusandae quo quam soluta. Molestias fugit vitae vero asperiores cum.+ Unde molestias consectetur sapiente aut nihil dolorem. Debitis hic consequuntur velit ipsum itaque unde asperiores numquam. Unde totam eaque placeat aut pariatur quis distinctio. Sunt nulla eaque laborum nobis reprehenderit omnis consectetur nihil. Aperiam maxime nostrum non fuga.+ Corrupti non quod quos odio maiores pariatur. Maiores magnam maxime cupiditate dolor asperiores. Corrupti quaerat velit fugit libero necessitatibus. Quibusdam quae saepe sequi praesentium.+ slug: product-635842meta_description:meta_keywords:variant_count: 1- available_on: '2025-03-04T21:02:39.010Z'- created_at: '2026-03-04T21:02:39.026Z'- updated_at: '2026-03-04T21:02:39.072Z'+ available_on: '2025-03-04T23:17:32.018Z'+ created_at: '2026-03-04T23:17:32.035Z'+ updated_at: '2026-03-04T23:17:32.083Z'purchasable: truein_stock: falsebackorderable: true@@ -6025,20 +6025,20 @@ paths:price_list_id:original_price:- id: prod_gbHJdmfrXB- name: Product 646764+ name: Product 649791description: |-- Soluta perspiciatis sunt animi laborum numquam nemo esse cumque. Minus similique architecto quas quae. Libero tempora quae reprehenderit ab officia facilis. Error voluptatum consequuntur culpa magnam occaecati magni.- Distinctio consequuntur odio sit molestiae quas placeat iste. Voluptatem corporis excepturi nemo eum adipisci dolorem commodi laudantium. Veniam alias deleniti repudiandae quasi voluptates et. Nam rerum a eum illo deleniti fugiat. A nostrum ducimus excepturi illo consectetur voluptatem est.- Enim earum minima architecto molestias dignissimos voluptate quis. Minima amet expedita tempora temporibus ea. Alias a libero quia incidunt nam qui. Temporibus maxime vero cumque asperiores modi aliquid. Temporibus necessitatibus nam nesciunt animi pariatur.- Quam alias doloribus libero recusandae laborum explicabo velit assumenda. Sint corporis eum exercitationem illo et perspiciatis. Assumenda consectetur unde quia hic pariatur. Nihil doloribus aperiam molestias consequatur.- Aut et iusto id nostrum incidunt ad. Quae error doloribus eius temporibus. Excepturi aperiam amet libero est cumque soluta.- slug: product-646764+ Autem quam quod quisquam eos rem. Alias recusandae et magnam quis distinctio. Architecto excepturi voluptate alias exercitationem non porro aspernatur. Natus assumenda corporis maiores sint tenetur aspernatur inventore.+ Reiciendis placeat reprehenderit incidunt ducimus earum deserunt. Molestiae eveniet alias deleniti quia. Minima omnis dolores necessitatibus cupiditate delectus. Qui quibusdam in sequi vitae. Atque maiores nam modi animi aliquam odit.+ Porro dolore libero accusantium autem. Voluptatibus rerum minus excepturi sunt quam iure veniam. Quam illo dolor quisquam libero fugit odio. Repudiandae labore perspiciatis laborum suscipit sit incidunt expedita illum. Exercitationem consequuntur inventore earum nulla.+ Cum sequi aliquid dolores quia amet assumenda quidem. Ab impedit est repellendus fugit quod nam autem dolores. Officiis accusamus repudiandae similique harum consectetur. Omnis dolore blanditiis quod illum recusandae ullam praesentium assumenda.+ Voluptatem autem ad explicabo perferendis eveniet molestias. Nemo dolorum dolor earum enim deleniti. Totam consequatur facere quam molestiae deleniti magni quibusdam.+ slug: product-649791meta_description:meta_keywords:variant_count: 0- available_on: '2025-03-04T21:02:39.087Z'- created_at: '2026-03-04T21:02:39.098Z'- updated_at: '2026-03-04T21:02:39.113Z'+ available_on: '2025-03-04T23:17:32.097Z'+ created_at: '2026-03-04T23:17:32.112Z'+ updated_at: '2026-03-04T23:17:32.130Z'purchasable: truein_stock: falsebackorderable: true@@ -6137,17 +6137,20 @@ paths:application/json:example:id: prod_UkLWZg9DAJ- name: Product 759581+ name: Product 756903description: |-- Recusandae similique laboriosam veritatis aspernatur assumenda explicabo quibusdam minus. Fugiat hic rerum nesciunt doloremque perspiciatis sed tenetur culpa. Officiis id officia quos quis ullam labore ad amet. Officiis dicta laborum illo eveniet nostrum ipsa cumque. Vel ut eligendi culpa distinctio ad.- Illo veniam error suscipit laboriosam quo blanditiis. Repudiandae sequi in ad facere odio explicabo inventore. Sint velit ullam doloremque magni consequatur architecto.- slug: product-759581+ Itaque nostrum repudiandae qui ipsa magni dolore rerum. Eius hic ipsum optio enim. Tenetur et illo ipsa alias ut illum sit ullam.+ Porro excepturi sint ratione quibusdam est nisi reprehenderit. Similique quos ad perspiciatis aliquam accusamus laboriosam placeat error. Natus sit perspiciatis odit recusandae. Soluta magnam culpa incidunt maxime earum. Officiis quae temporibus repudiandae odio.+ Animi iure totam harum ea facere dolor tempore. Harum quo repellendus dolor praesentium nihil odio. Facere laboriosam delectus sint labore id deleniti modi.+ Ad tempora molestias quasi tempore corrupti porro. Error provident magnam placeat voluptatem dolor tempore quam. Sunt ut excepturi atque assumenda incidunt laudantium dolore facilis. Architecto repellendus eum debitis consequuntur quidem beatae odit.+ Consequuntur ipsa labore alias temporibus sint. Qui laudantium tempore at inventore. Adipisci cumque architecto soluta quibusdam consequatur maxime.+ slug: product-756903meta_description:meta_keywords:variant_count: 1- available_on: '2025-03-04T21:02:39.925Z'- created_at: '2026-03-04T21:02:39.939Z'- updated_at: '2026-03-04T21:02:39.973Z'+ available_on: '2025-03-04T23:17:32.886Z'+ created_at: '2026-03-04T23:17:32.901Z'+ updated_at: '2026-03-04T23:17:32.937Z'purchasable: truein_stock: falsebackorderable: true@@ -6364,15 +6367,15 @@ paths:example:data:- id: ship_UkLWZg9DAJ- number: H51433968322+ number: H36627113843state: pendingtracking: U10000tracking_url:cost: '100.0'display_cost: "$100.00"shipped_at:- created_at: '2026-03-04T21:02:42.327Z'- updated_at: '2026-03-04T21:02:42.341Z'+ created_at: '2026-03-04T23:17:35.557Z'+ updated_at: '2026-03-04T23:17:35.570Z'shipping_method:id: shpm_UkLWZg9DAJname: UPS Ground@@ -6380,7 +6383,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_290- name: Freda Walker+ name: Miss Bechtelaraddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -6477,15 +6480,15 @@ paths:application/json:example:id: ship_UkLWZg9DAJ- number: H83887342263+ number: H57374938407state: pendingtracking: U10000tracking_url:cost: '100.0'display_cost: "$100.00"shipped_at:- created_at: '2026-03-04T21:02:43.519Z'- updated_at: '2026-03-04T21:02:43.531Z'+ created_at: '2026-03-04T23:17:36.753Z'+ updated_at: '2026-03-04T23:17:36.766Z'shipping_method:id: shpm_UkLWZg9DAJname: UPS Ground@@ -6493,7 +6496,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_298- name: Johna Schiller+ name: Rhona Sporeraddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -6582,10 +6585,10 @@ paths:application/json:example:id: or_UkLWZg9DAJ- number: R739855647+ number: R522739674state: delivery- token: JtByfDULkE6jsLrxg2tGqjwgnnk1f72mFpi- email: [email protected]+ token: DBJz1J5fiTq649JC5vARu66UUn8Hchuih7R+ email: [email protected]special_instructions:currency: USDlocale: en@@ -6610,16 +6613,16 @@ paths:total: '110.0'display_total: "$110.00"completed_at:- created_at: '2026-03-04T21:02:44.695Z'- updated_at: '2026-03-04T21:02:44.761Z'+ created_at: '2026-03-04T23:17:37.952Z'+ updated_at: '2026-03-04T23:17:38.017Z'order_promotions: []line_items:- id: li_UkLWZg9DAJvariant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 1075259- slug: product-1075259+ name: Product 1077585+ slug: product-1077585options_text: ''price: '10.0'display_price: "$10.00"@@ -6638,23 +6641,23 @@ paths:discounted_amount: '10.0'display_discounted_amount: "$10.00"display_compare_at_amount: "$0.00"- created_at: '2026-03-04T21:02:44.724Z'- updated_at: '2026-03-04T21:02:44.724Z'+ created_at: '2026-03-04T23:17:37.980Z'+ updated_at: '2026-03-04T23:17:37.980Z'compare_at_amount:thumbnail_url:option_values: []digital_links: []shipments:- id: ship_UkLWZg9DAJ- number: H77149462268+ number: H31129207409state: pendingtracking: U10000tracking_url:cost: '100.0'display_cost: "$100.00"shipped_at:- created_at: '2026-03-04T21:02:44.729Z'- updated_at: '2026-03-04T21:02:44.760Z'+ created_at: '2026-03-04T23:17:37.984Z'+ updated_at: '2026-03-04T23:17:38.016Z'shipping_method:id: shpm_UkLWZg9DAJname: UPS Ground@@ -6662,7 +6665,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_306- name: Alia Ullrich+ name: Alla Doyleaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -6791,10 +6794,10 @@ paths:application/json:example:id: or_UkLWZg9DAJ- number: R750218981+ number: R015206746state: cart- token: ECSn7MuD26ywZH6i9APkbEz82JZcMMT8nNC- email: [email protected]+ token: SZQ3RGwTHXmQ6k63D5e211rXdJofgA8GjKb+ email: [email protected]special_instructions:currency: USDlocale: en@@ -6819,16 +6822,16 @@ paths:total: '110.0'display_total: "$110.00"completed_at:- created_at: '2026-03-04T21:02:45.973Z'- updated_at: '2026-03-04T21:02:46.043Z'+ created_at: '2026-03-04T23:17:39.174Z'+ updated_at: '2026-03-04T23:17:39.233Z'order_promotions: []line_items:- id: li_UkLWZg9DAJvariant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 1097584- slug: product-1097584+ name: Product 1091147+ slug: product-1091147options_text: ''price: '10.0'display_price: "$10.00"@@ -6847,23 +6850,23 @@ paths:discounted_amount: '10.0'display_discounted_amount: "$10.00"display_compare_at_amount: "$0.00"- created_at: '2026-03-04T21:02:46.021Z'- updated_at: '2026-03-04T21:02:46.021Z'+ created_at: '2026-03-04T23:17:39.212Z'+ updated_at: '2026-03-04T23:17:39.212Z'compare_at_amount:thumbnail_url:option_values: []digital_links: []shipments:- id: ship_UkLWZg9DAJ- number: H83042817691+ number: H66631866452state: pendingtracking: U10000tracking_url:cost: '100.0'display_cost: "$100.00"shipped_at:- created_at: '2026-03-04T21:02:46.027Z'- updated_at: '2026-03-04T21:02:46.040Z'+ created_at: '2026-03-04T23:17:39.218Z'+ updated_at: '2026-03-04T23:17:39.231Z'shipping_method:id: shpm_UkLWZg9DAJname: UPS Ground@@ -6871,7 +6874,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_314- name: Refugio O'Connell+ name: Breann Maggioaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -6893,12 +6896,12 @@ paths:- id: py_UkLWZg9DAJpayment_method_id: pm_UkLWZg9DAJstate: checkout- response_code: 1-SC-20260304210246346905- number: PA8JO585+ response_code: 1-SC-20260304231739553062+ number: POPWUXIEamount: '10.0'display_amount: "$10.00"- created_at: '2026-03-04T21:02:46.350Z'- updated_at: '2026-03-04T21:02:46.350Z'+ created_at: '2026-03-04T23:17:39.557Z'+ updated_at: '2026-03-04T23:17:39.557Z'source_type: store_creditsource_id: credit_UkLWZg9DAJsource:@@ -7028,10 +7031,10 @@ paths:application/json:example:id: or_UkLWZg9DAJ- number: R634022575+ number: R430088395state: cart- token: msa6PAkhcbBrwdMumxCiHfZzzhe7wmFXeQh- email: [email protected]+ token: FufYDJ8FrCFcpjK8Stcu1H1t7ABGdNMP4YU+ email: [email protected]special_instructions:currency: USDlocale: en@@ -7056,16 +7059,16 @@ paths:total: '110.0'display_total: "$110.00"completed_at:- created_at: '2026-03-04T21:02:47.514Z'- updated_at: '2026-03-04T21:02:47.569Z'+ created_at: '2026-03-04T23:17:40.739Z'+ updated_at: '2026-03-04T23:17:40.794Z'order_promotions: []line_items:- id: li_UkLWZg9DAJvariant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 1118736- slug: product-1118736+ name: Product 1119982+ slug: product-1119982options_text: ''price: '10.0'display_price: "$10.00"@@ -7084,23 +7087,23 @@ paths:discounted_amount: '10.0'display_discounted_amount: "$10.00"display_compare_at_amount: "$0.00"- created_at: '2026-03-04T21:02:47.548Z'- updated_at: '2026-03-04T21:02:47.548Z'+ created_at: '2026-03-04T23:17:40.771Z'+ updated_at: '2026-03-04T23:17:40.771Z'compare_at_amount:thumbnail_url:option_values: []digital_links: []shipments:- id: ship_UkLWZg9DAJ- number: H93904234038+ number: H05190110867state: pendingtracking: U10000tracking_url:cost: '100.0'display_cost: "$100.00"shipped_at:- created_at: '2026-03-04T21:02:47.552Z'- updated_at: '2026-03-04T21:02:47.567Z'+ created_at: '2026-03-04T23:17:40.778Z'+ updated_at: '2026-03-04T23:17:40.792Z'shipping_method:id: shpm_UkLWZg9DAJname: UPS Ground@@ -7108,7 +7111,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_322- name: Jude Wolf+ name: Sharmaine Wiegandaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -7164,67 +7167,6 @@ paths:payment_methods: []schema:"$ref": "#/components/schemas/StoreOrder"- "/api/v3/store/store":- get:- summary: Get current store- tags:- - Store- security:- - api_key: []- description: Returns information about the current store based on the API key- x-codeSamples:- - lang: javascript- label: Spree SDK- source: |-- import { createSpreeClient } from '@spree/sdk'-- const client = createSpreeClient({- baseUrl: 'https://your-store.com',- publishableKey: '<api-key>',- })-- const store = await client.store.store.get()- parameters:- - name: x-spree-api-key- in: header- required: true- schema:- type: string- responses:- '200':- description: store found- content:- application/json:- example:- id: store_UkLWZg9DAJ- name: Spree Test Store- url: www.example.com- meta_description: Sample store description.- meta_keywords:- seo_title:- code: spree_1- facebook: spreecommerce- twitter: spreecommerce- instagram: spreecommerce- customer_support_email: [email protected]- created_at: '2026-03-04T21:01:44.786Z'- updated_at: '2026-03-04T21:01:44.886Z'- favicon_image_url:- logo_image_url:- social_image_url:- payment_methods: []- schema:- "$ref": "#/components/schemas/StoreStore"- '401':- description: unauthorized - missing API key- content:- application/json:- example:- error:- code: invalid_token- message: Valid API key required- schema:- "$ref": "#/components/schemas/ErrorResponse""/api/v3/store/taxonomies":get:summary: List taxonomies@@ -7281,32 +7223,32 @@ paths:- id: txnmy_UkLWZg9DAJname: Categoriesposition: 1- created_at: '2026-03-04T21:01:44.796Z'- updated_at: '2026-03-04T21:01:44.817Z'+ created_at: '2026-03-04T23:16:37.533Z'+ updated_at: '2026-03-04T23:16:37.559Z'root_id: txn_UkLWZg9DAJ- id: txnmy_gbHJdmfrXBname: Brandsposition: 2- created_at: '2026-03-04T21:01:44.818Z'- updated_at: '2026-03-04T21:01:44.827Z'+ created_at: '2026-03-04T23:16:37.560Z'+ updated_at: '2026-03-04T23:16:37.572Z'root_id: txn_gbHJdmfrXB- id: txnmy_EfhxLZ9ck8name: Collectionsposition: 3- created_at: '2026-03-04T21:01:44.828Z'- updated_at: '2026-03-04T21:01:44.889Z'+ created_at: '2026-03-04T23:16:37.573Z'+ updated_at: '2026-03-04T23:16:37.653Z'root_id: txn_EfhxLZ9ck8- id: txnmy_VqXmZF31wYname: taxonomy_11position: 4- created_at: '2026-03-04T21:02:47.641Z'- updated_at: '2026-03-04T21:02:47.657Z'+ created_at: '2026-03-04T23:17:40.834Z'+ updated_at: '2026-03-04T23:17:40.843Z'root_id: txn_OIJLhNcSbf- id: txnmy_uw2YK1rnl0name: taxonomy_12position: 5- created_at: '2026-03-04T21:02:47.658Z'- updated_at: '2026-03-04T21:02:47.666Z'+ created_at: '2026-03-04T23:17:40.844Z'+ updated_at: '2026-03-04T23:17:40.852Z'root_id: txn_AXs1igzRC6meta:page: 1@@ -7386,8 +7328,8 @@ paths:id: txnmy_VqXmZF31wYname: taxonomy_17position: 4- created_at: '2026-03-04T21:02:47.890Z'- updated_at: '2026-03-04T21:02:47.898Z'+ created_at: '2026-03-04T23:17:41.094Z'+ updated_at: '2026-03-04T23:17:41.103Z'root_id: txn_OIJLhNcSbfschema:"$ref": "#/components/schemas/StoreTaxonomy"@@ -7463,8 +7405,8 @@ paths:meta_description:meta_keywords:children_count: 0- created_at: '2026-03-04T21:01:44.807Z'- updated_at: '2026-03-04T21:01:44.815Z'+ created_at: '2026-03-04T23:16:37.544Z'+ updated_at: '2026-03-04T23:16:37.556Z'parent_id:taxonomy_id: txnmy_UkLWZg9DAJdescription: ''@@ -7483,8 +7425,8 @@ paths:meta_description:meta_keywords:children_count: 0- created_at: '2026-03-04T21:01:44.822Z'- updated_at: '2026-03-04T21:01:44.826Z'+ created_at: '2026-03-04T23:16:37.564Z'+ updated_at: '2026-03-04T23:16:37.569Z'parent_id:taxonomy_id: txnmy_gbHJdmfrXBdescription: ''@@ -7503,8 +7445,8 @@ paths:meta_description:meta_keywords:children_count: 2- created_at: '2026-03-04T21:01:44.830Z'- updated_at: '2026-03-04T21:01:44.888Z'+ created_at: '2026-03-04T23:16:37.577Z'+ updated_at: '2026-03-04T23:16:37.653Z'parent_id:taxonomy_id: txnmy_EfhxLZ9ck8description: ''@@ -7523,8 +7465,8 @@ paths:meta_description:meta_keywords:children_count: 0- created_at: '2026-03-04T21:01:44.844Z'- updated_at: '2026-03-04T21:01:44.846Z'+ created_at: '2026-03-04T23:16:37.593Z'+ updated_at: '2026-03-04T23:16:37.595Z'parent_id: txn_EfhxLZ9ck8taxonomy_id: txnmy_EfhxLZ9ck8description: ''@@ -7543,8 +7485,8 @@ paths:meta_description:meta_keywords:children_count: 0- created_at: '2026-03-04T21:01:44.856Z'- updated_at: '2026-03-04T21:01:44.857Z'+ created_at: '2026-03-04T23:16:37.610Z'+ updated_at: '2026-03-04T23:16:37.612Z'parent_id: txn_EfhxLZ9ck8taxonomy_id: txnmy_EfhxLZ9ck8description: ''@@ -7563,8 +7505,8 @@ paths:meta_description:meta_keywords:children_count: 1- created_at: '2026-03-04T21:02:48.236Z'- updated_at: '2026-03-04T21:02:48.297Z'+ created_at: '2026-03-04T23:17:41.545Z'+ updated_at: '2026-03-04T23:17:41.593Z'parent_id:taxonomy_id: txnmy_VqXmZF31wYdescription: ''@@ -7583,8 +7525,8 @@ paths:meta_description:meta_keywords:children_count: 1- created_at: '2026-03-04T21:02:48.243Z'- updated_at: '2026-03-04T21:02:48.296Z'+ created_at: '2026-03-04T23:17:41.553Z'+ updated_at: '2026-03-04T23:17:41.593Z'parent_id: txn_OIJLhNcSbftaxonomy_id: txnmy_VqXmZF31wYdescription: ''@@ -7603,8 +7545,8 @@ paths:meta_description:meta_keywords:children_count: 0- created_at: '2026-03-04T21:02:48.259Z'- updated_at: '2026-03-04T21:02:48.266Z'+ created_at: '2026-03-04T23:17:41.562Z'+ updated_at: '2026-03-04T23:17:41.568Z'parent_id: txn_AXs1igzRC6taxonomy_id: txnmy_VqXmZF31wYdescription: ''@@ -7699,8 +7641,8 @@ paths:meta_description:meta_keywords:children_count: 1- created_at: '2026-03-04T21:02:48.860Z'- updated_at: '2026-03-04T21:02:48.894Z'+ created_at: '2026-03-04T23:17:42.123Z'+ updated_at: '2026-03-04T23:17:42.162Z'parent_id: txn_OIJLhNcSbftaxonomy_id: txnmy_VqXmZF31wYdescription: ''@@ -7821,18 +7763,17 @@ paths:example:data:- id: prod_UkLWZg9DAJ- name: Product 1196078- description: |-- Odio consequuntur ab autem aut dolor ducimus omnis dolore. Facere quae doloribus blanditiis dicta eveniet nostrum. Ducimus facere minus vitae architecto maxime quas reiciendis numquam. Amet rerum earum impedit quisquam eius debitis.- Ipsam ratione atque ab consequatur esse repudiandae repellat. Mollitia qui similique ducimus sunt beatae. Officia animi asperiores ullam illum voluptates sapiente.- Occaecati minus odit sit facilis nemo a. Illo cupiditate sunt nostrum voluptatem quos dolore eos. Deleniti nam et quibusdam perferendis. Est maxime delectus repellat natus voluptates ab excepturi laudantium. Nulla animi praesentium illum tenetur.- slug: product-1196078+ name: Product 1199087+ description: Et doloremque molestiae voluptas eius illum deleniti.+ Esse provident maxime culpa praesentium sit. Quidem veniam mollitia+ voluptas culpa.+ slug: product-1199087meta_description:meta_keywords:variant_count: 0- available_on: '2025-03-04T21:02:49.564Z'- created_at: '2026-03-04T21:02:49.583Z'- updated_at: '2026-03-04T21:02:49.601Z'+ available_on: '2025-03-04T23:17:42.964Z'+ created_at: '2026-03-04T23:17:42.977Z'+ updated_at: '2026-03-04T23:17:42.989Z'purchasable: truein_stock: falsebackorderable: true@@ -7943,9 +7884,9 @@ paths:data:- id: wl_UkLWZg9DAJname: My Wishlist- token: iw8XS6Lee9GSRqZfBJ1WRGYf- created_at: '2026-03-04T21:02:50.679Z'- updated_at: '2026-03-04T21:02:50.679Z'+ token: aH354vPCtjrscwZndAxwdyiq+ created_at: '2026-03-04T23:17:44.036Z'+ updated_at: '2026-03-04T23:17:44.036Z'is_default: falseis_private: truemeta:@@ -8021,9 +7962,9 @@ paths:example:id: wl_gbHJdmfrXBname: Birthday Ideas- token: cGmq1r2HMSQNn32jJ36vYP7j- created_at: '2026-03-04T21:02:51.886Z'- updated_at: '2026-03-04T21:02:51.886Z'+ token: qaFhpLWeyp2ytNYMTgvPscK9+ created_at: '2026-03-04T23:17:45.216Z'+ updated_at: '2026-03-04T23:17:45.216Z'is_default: falseis_private: trueschema:@@ -8112,9 +8053,9 @@ paths:example:id: wl_UkLWZg9DAJname: My Wishlist- token: SmXdAghxqTZw58XXUMCyvU9o- created_at: '2026-03-04T21:02:52.988Z'- updated_at: '2026-03-04T21:02:52.988Z'+ token: oaG4tDn7ufRAhXe2PEPvZKkH+ created_at: '2026-03-04T23:17:46.326Z'+ updated_at: '2026-03-04T23:17:46.326Z'is_default: falseis_private: trueschema:@@ -8176,9 +8117,9 @@ paths:example:id: wl_UkLWZg9DAJname: Updated Name- token: sACBEGgZ88d2iaFgKuBtDLsZ- created_at: '2026-03-04T21:02:54.126Z'- updated_at: '2026-03-04T21:02:54.167Z'+ token: jBdZdCcjTMrw7pYSVTcYaZMu+ created_at: '2026-03-04T23:17:47.487Z'+ updated_at: '2026-03-04T23:17:47.534Z'is_default: falseis_private: trueschema:@@ -8290,8 +8231,8 @@ paths:variant_id: variant_gbHJdmfrXBwishlist_id: wl_UkLWZg9DAJquantity: 1- created_at: '2026-03-04T21:02:55.355Z'- updated_at: '2026-03-04T21:02:55.355Z'+ created_at: '2026-03-04T23:17:48.713Z'+ updated_at: '2026-03-04T23:17:48.713Z'variant:id: variant_gbHJdmfrXBproduct_id: prod_gbHJdmfrXB@@ -8300,8 +8241,8 @@ paths:options_text: ''track_inventory: trueimage_count: 0- created_at: '2026-03-04T21:02:55.330Z'- updated_at: '2026-03-04T21:02:55.339Z'+ created_at: '2026-03-04T23:17:48.691Z'+ updated_at: '2026-03-04T23:17:48.699Z'thumbnail:purchasable: truein_stock: false@@ -8673,7 +8614,9 @@ components:items:"$ref": "#/components/schemas/StoreState"market:- type: object+ allOf:+ - "$ref": "#/components/schemas/StoreMarket"+ nullable: truerequired:- iso- iso3@@ -10398,74 +10341,6 @@ components:- display_amount_remaining- currencyx-typelizer: true- StoreStore:- type: object- properties:- id:- type: string- name:- type: string- url:- type: string- meta_description:- type: string- nullable: true- meta_keywords:- type: string- nullable: true- seo_title:- type: string- nullable: true- code:- type: string- facebook:- type: string- nullable: true- twitter:- type: string- nullable: true- instagram:- type: string- nullable: true- customer_support_email:- type: string- nullable: true- created_at:- type: string- updated_at:- type: string- favicon_image_url:- type: string- nullable: true- logo_image_url:- type: string- nullable: true- social_image_url:- type: string- nullable: true- payment_methods:- type: array- items:- "$ref": "#/components/schemas/StorePaymentMethod"- required:- - id- - name- - url- - meta_description- - meta_keywords- - seo_title- - code- - customer_support_email- - created_at- - updated_at- - favicon_image_url- - logo_image_url- - social_image_url- - payment_methods- x-typelizer: trueStoreTaxon:type: objectproperties:diff --git a/docs/developer/sdk/configuration.mdx b/docs/developer/sdk/configuration.mdxindex cee5db380a..5d3b25268a 100644--- a/docs/developer/sdk/configuration.mdx+++ b/docs/developer/sdk/configuration.mdx@@ -87,7 +87,6 @@ const taxon: StoreTaxon = await client.store.taxons.get('clothing');- `StoreState` - State/province- `StoreAddress` - Customer address- `StoreCustomer` - Customer profile-- `StoreStore` - Store configuration### Commerce Types- `StorePayment` - Payment recorddiff --git a/docs/developer/sdk/quickstart.mdx b/docs/developer/sdk/quickstart.mdxindex 6afdc482eb..ba7faead70 100644--- a/docs/developer/sdk/quickstart.mdx+++ b/docs/developer/sdk/quickstart.mdx@@ -92,3 +92,4 @@ await client.store.customer.addresses.list({}, options);await client.store.taxons.products.list(taxonId, params, options);await client.store.wishlists.items.create(wishlistId, params, options);```+diff --git a/docs/developer/sdk/store/products.mdx b/docs/developer/sdk/store/products.mdxindex 6452418639..de0cf404b7 100644--- a/docs/developer/sdk/store/products.mdx+++ b/docs/developer/sdk/store/products.mdx@@ -121,13 +121,6 @@ const categoryProducts = await client.store.taxons.products.list('categories/clo});```-## Store--```typescript-// Get current store information-const store = await client.store.store.get();-```-## Geography```typescriptdiff --git a/packages/next/src/data/store.ts b/packages/next/src/data/store.tsdeleted file mode 100644index 02a78edacc..0000000000--- a/packages/next/src/data/store.ts+++ /dev/null@@ -1,13 +0,0 @@-import type { StoreStore } from '@spree/sdk';-import { getClient } from '../config';-import { getLocaleOptions } from '../locale';-import type { SpreeNextOptions } from '../types';--/**- * Get the current store configuration.- * Locale/country are auto-read from cookies when not provided.- */-export async function getStore(options?: SpreeNextOptions): Promise<StoreStore> {- const resolved = options ?? await getLocaleOptions();- return getClient().store.store.get(resolved);-}diff --git a/packages/next/src/index.ts b/packages/next/src/index.tsindex a4eb55e31c..4b7873dccc 100644--- a/packages/next/src/index.ts+++ b/packages/next/src/index.ts@@ -6,7 +6,6 @@ export type { SpreeNextConfig, SpreeNextOptions } from './types';export { listProducts, getProduct, getProductFilters } from './data/products';export { listTaxons, getTaxon, listTaxonProducts } from './data/taxons';export { listTaxonomies, getTaxonomy } from './data/taxonomies';-export { getStore } from './data/store';export { listCountries, getCountry } from './data/countries';export { listCurrencies } from './data/currencies';export { listLocales } from './data/locales';@@ -81,7 +80,6 @@ export type {StoreCurrency,StoreLocale,StoreMarket,- StoreStore,StoreAddress,StoreCustomer,StoreCreditCard,diff --git a/packages/next/tsup.config.ts b/packages/next/tsup.config.tsindex 2194baff13..3f535c005a 100644--- a/packages/next/tsup.config.ts+++ b/packages/next/tsup.config.ts@@ -11,7 +11,6 @@ export default defineConfig(['data/products': 'src/data/products.ts','data/taxons': 'src/data/taxons.ts','data/taxonomies': 'src/data/taxonomies.ts',- 'data/store': 'src/data/store.ts','data/countries': 'src/data/countries.ts','data/currencies': 'src/data/currencies.ts','data/locales': 'src/data/locales.ts',diff --git a/packages/sdk/.changeset/fix-store-country-market-type.md b/packages/sdk/.changeset/fix-store-country-market-type.mdnew file mode 100644index 0000000000..003ad1d08e--- /dev/null+++ b/packages/sdk/.changeset/fix-store-country-market-type.md@@ -0,0 +1,5 @@+---+"@spree/sdk": patch+---++Fixed `StoreCountry.market` type from `unknown` to `StoreMarket | null`.diff --git a/packages/sdk/.changeset/list-response-type.md b/packages/sdk/.changeset/list-response-type.mdnew file mode 100644index 0000000000..5760555598--- /dev/null+++ b/packages/sdk/.changeset/list-response-type.md@@ -0,0 +1,5 @@+---+"@spree/sdk": patch+---++Added `ListResponse<T>` type for non-paginated list endpoints (countries, currencies, locales, markets). `PaginatedResponse<T>` now extends `ListResponse<T>`.diff --git a/packages/sdk/.changeset/optional-publishable-key.md b/packages/sdk/.changeset/optional-publishable-key.mdnew file mode 100644index 0000000000..a68b3eab57--- /dev/null+++ b/packages/sdk/.changeset/optional-publishable-key.md@@ -0,0 +1,5 @@+---+"@spree/sdk": patch+---++Made `publishableKey` optional in client config. Admin-only consumers no longer need to provide a publishable key. At least one of `publishableKey` or `secretKey` must still be provided.diff --git a/packages/sdk/.changeset/remove-store-resource.md b/packages/sdk/.changeset/remove-store-resource.mdnew file mode 100644index 0000000000..3b485997ec--- /dev/null+++ b/packages/sdk/.changeset/remove-store-resource.md@@ -0,0 +1,5 @@+---+"@spree/sdk": patch+---++Removed `store.store` resource from the SDK. Store branding should be configured as developer config (env vars) rather than fetched from the API.diff --git a/packages/sdk/src/client.ts b/packages/sdk/src/client.tsindex a8efb8258d..ab8b2dd1b3 100644--- a/packages/sdk/src/client.ts+++ b/packages/sdk/src/client.ts@@ -10,8 +10,8 @@ export type { AddressParams, StoreCreditCard, LocaleDefaults } from './types';export interface SpreeClientConfig {/** Base URL of the Spree API (e.g., 'https://api.mystore.com') */baseUrl: string;- /** Publishable API key for Store API access */- publishableKey: string;+ /** Publishable API key for Store API access (required for Store API) */+ publishableKey?: string;/** Secret API key for Admin API access (optional) */secretKey?: string;/** Custom fetch implementation (optional, defaults to global fetch) */@@ -35,6 +35,10 @@ export class SpreeClient {private readonly _defaults: LocaleDefaults;constructor(config: SpreeClientConfig) {+ if (!config.publishableKey && !config.secretKey) {+ throw new Error('SpreeClient requires at least one of publishableKey or secretKey');+ }+const baseUrl = config.baseUrl.replace(/\/$/, '');// Bind fetch to globalThis to avoid "Illegal invocation" errors in browsersconst fetchFn = config.fetch || fetch.bind(globalThis);@@ -63,7 +67,9 @@ export class SpreeClient {const storeRequestFn = createRequestFn(requestConfig,'/api/v3/store',- { headerName: 'x-spree-api-key', headerValue: config.publishableKey },+ config.publishableKey+ ? { headerName: 'x-spree-api-key', headerValue: config.publishableKey }+ : { headerName: '', headerValue: '' },this._defaults);diff --git a/packages/sdk/src/request.ts b/packages/sdk/src/request.tsindex 337e08f5bf..6f8ebd67ab 100644--- a/packages/sdk/src/request.ts+++ b/packages/sdk/src/request.ts@@ -124,10 +124,13 @@ export function createRequestFn(// Build headersconst requestHeaders: Record<string, string> = {'Content-Type': 'application/json',- [auth.headerName]: auth.headerValue,...headers,};+ if (auth.headerName && auth.headerValue) {+ requestHeaders[auth.headerName] = auth.headerValue;+ }+if (token) {requestHeaders['Authorization'] = `Bearer ${token}`;}diff --git a/packages/sdk/src/store-client.ts b/packages/sdk/src/store-client.tsindex 8a3bc2ed4e..170fa54a5a 100644--- a/packages/sdk/src/store-client.ts+++ b/packages/sdk/src/store-client.ts@@ -10,6 +10,7 @@ import type {AuthTokens,LoginCredentials,RegisterParams,+ ListResponse,PaginatedResponse,ListParams,ProductListParams,@@ -42,7 +43,6 @@ import type {StorePaymentSession,StorePaymentSetupSession,StoreShipment,- StoreStore,StoreWishlist,StoreWishedItem,StoreAddress,@@ -80,18 +80,6 @@ export class StoreClient {this.request<AuthTokens>('POST', '/auth/refresh', options),};- // ============================================- // Store- // ============================================-- readonly store = {- /**- * Get current store information- */- get: (options?: RequestOptions): Promise<StoreStore> =>- this.request<StoreStore>('GET', '/store', options),- };-// ============================================// Products// ============================================@@ -106,7 +94,7 @@ export class StoreClient {): Promise<PaginatedResponse<StoreProduct>> =>this.request<PaginatedResponse<StoreProduct>>('GET', '/products', {...options,- params: params ? transformListParams(params) : undefined,+ params: transformListParams({ ...params }),}),/**@@ -150,7 +138,7 @@ export class StoreClient {): Promise<PaginatedResponse<StoreTaxonomy>> =>this.request<PaginatedResponse<StoreTaxonomy>>('GET', '/taxonomies', {...options,- params: params as Record<string, string | number | undefined>,+ params: transformListParams({ ...params }),}),/**@@ -177,7 +165,7 @@ export class StoreClient {): Promise<PaginatedResponse<StoreTaxon>> =>this.request<PaginatedResponse<StoreTaxon>>('GET', '/taxons', {...options,- params: params ? transformListParams(params) : undefined,+ params: transformListParams({ ...params }),}),/**@@ -211,7 +199,7 @@ export class StoreClient {`/taxons/${taxonId}/products`,{...options,- params: params ? transformListParams(params) : undefined,+ params: transformListParams({ ...params }),}),},@@ -226,8 +214,8 @@ export class StoreClient {* List countries available in the store* Each country includes currency and default_locale derived from its market*/- list: (options?: RequestOptions): Promise<{ data: StoreCountry[] }> =>- this.request<{ data: StoreCountry[] }>('GET', '/countries', options),+ list: (options?: RequestOptions): Promise<ListResponse<StoreCountry>> =>+ this.request<ListResponse<StoreCountry>>('GET', '/countries', options),/*** Get a country by ISO code@@ -249,16 +237,16 @@ export class StoreClient {/*** List currencies supported by the store (derived from markets)*/- list: (options?: RequestOptions): Promise<{ data: StoreCurrency[] }> =>- this.request<{ data: StoreCurrency[] }>('GET', '/currencies', options),+ list: (options?: RequestOptions): Promise<ListResponse<StoreCurrency>> =>+ this.request<ListResponse<StoreCurrency>>('GET', '/currencies', options),};readonly locales = {/*** List locales supported by the store (derived from markets)*/- list: (options?: RequestOptions): Promise<{ data: StoreLocale[] }> =>- this.request<{ data: StoreLocale[] }>('GET', '/locales', options),+ list: (options?: RequestOptions): Promise<ListResponse<StoreLocale>> =>+ this.request<ListResponse<StoreLocale>>('GET', '/locales', options),};// ============================================@@ -269,8 +257,8 @@ export class StoreClient {/*** List all markets for the current store*/- list: (options?: RequestOptions): Promise<{ data: StoreMarket[] }> =>- this.request<{ data: StoreMarket[] }>('GET', '/markets', options),+ list: (options?: RequestOptions): Promise<ListResponse<StoreMarket>> =>+ this.request<ListResponse<StoreMarket>>('GET', '/markets', options),/*** Get a market by prefixed ID@@ -300,8 +288,8 @@ export class StoreClient {list: (marketId: string,options?: RequestOptions- ): Promise<{ data: StoreCountry[] }> =>- this.request<{ data: StoreCountry[] }>(+ ): Promise<ListResponse<StoreCountry>> =>+ this.request<ListResponse<StoreCountry>>('GET',`/markets/${marketId}/countries`,options@@ -509,8 +497,8 @@ export class StoreClient {list: (orderId: string,options?: RequestOptions- ): Promise<{ data: StorePayment[]; meta: object }> =>- this.request<{ data: StorePayment[]; meta: object }>(+ ): Promise<PaginatedResponse<StorePayment>> =>+ this.request<PaginatedResponse<StorePayment>>('GET',`/orders/${orderId}/payments`,options@@ -541,8 +529,8 @@ export class StoreClient {list: (orderId: string,options?: RequestOptions- ): Promise<PaginatedResponse<StorePaymentMethod>> =>- this.request<PaginatedResponse<StorePaymentMethod>>(+ ): Promise<ListResponse<StorePaymentMethod>> =>+ this.request<ListResponse<StorePaymentMethod>>('GET',`/orders/${orderId}/payment_methods`,options@@ -658,8 +646,8 @@ export class StoreClient {list: (orderId: string,options?: RequestOptions- ): Promise<{ data: StoreShipment[] }> =>- this.request<{ data: StoreShipment[] }>(+ ): Promise<ListResponse<StoreShipment>> =>+ this.request<ListResponse<StoreShipment>>('GET',`/orders/${orderId}/shipments`,options@@ -728,7 +716,7 @@ export class StoreClient {this.request<PaginatedResponse<StoreAddress>>('GET','/customer/addresses',- { ...options, params: params as Record<string, string | number | undefined> }+ { ...options, params: transformListParams({ ...params }) }),/**@@ -796,7 +784,7 @@ export class StoreClient {this.request<PaginatedResponse<StoreCreditCard>>('GET','/customer/credit_cards',- { ...options, params: params as Record<string, string | number | undefined> }+ { ...options, params: transformListParams({ ...params }) }),/**@@ -827,7 +815,7 @@ export class StoreClient {this.request<PaginatedResponse<StoreGiftCard>>('GET','/customer/gift_cards',- { ...options, params: params as Record<string, string | number | undefined> }+ { ...options, params: transformListParams({ ...params }) }),/**@@ -850,7 +838,7 @@ export class StoreClient {): Promise<PaginatedResponse<StoreOrder>> =>this.request<PaginatedResponse<StoreOrder>>('GET', '/customer/orders', {...options,- params: params ? transformListParams(params) : undefined,+ params: transformListParams({ ...params }),}),},@@ -909,7 +897,7 @@ export class StoreClient {): Promise<PaginatedResponse<StoreWishlist>> =>this.request<PaginatedResponse<StoreWishlist>>('GET', '/wishlists', {...options,- params: params as Record<string, string | number | undefined>,+ params: transformListParams({ ...params }),}),/**diff --git a/packages/sdk/src/types/generated/StoreCountry.ts b/packages/sdk/src/types/generated/StoreCountry.tsindex cd6426aa7c..ec7d35b8b6 100644--- a/packages/sdk/src/types/generated/StoreCountry.ts+++ b/packages/sdk/src/types/generated/StoreCountry.ts@@ -1,7 +1,7 @@-// Typelizer digest 4545e257718aff2ed7c320bd335463d8+// Typelizer digest 50f0b6b9e6307c365e5e1ab170eda1a7//// DO NOT MODIFY: This file was automatically generated by Typelizer.-import type {StoreState} from '@/types'+import type {StoreMarket, StoreState} from '@/types'type StoreCountry = {iso: string;@@ -10,7 +10,7 @@ type StoreCountry = {states_required: boolean;zipcode_required: boolean;states?: Array<StoreState>;- market?: unknown;+ market?: StoreMarket | null;}export default StoreCountry;diff --git a/packages/sdk/src/types/generated/StoreStore.ts b/packages/sdk/src/types/generated/StoreStore.tsdeleted file mode 100644index a5798f0240..0000000000--- a/packages/sdk/src/types/generated/StoreStore.ts+++ /dev/null@@ -1,26 +0,0 @@-// Typelizer digest e86d34b6d54b848c8389f2075e9f2a51-//-// DO NOT MODIFY: This file was automatically generated by Typelizer.-import type {StorePaymentMethod} from '@/types'--type StoreStore = {- id: string;- name: string;- url: string;- meta_description: string | null;- meta_keywords: string | null;- seo_title: string | null;- code: string;- facebook: string | null;- twitter: string | null;- instagram: string | null;- customer_support_email: string | null;- created_at: string;- updated_at: string;- favicon_image_url: string | null;- logo_image_url: string | null;- social_image_url: string | null;- payment_methods: Array<StorePaymentMethod>;-}--export default StoreStore;diff --git a/packages/sdk/src/types/generated/index.ts b/packages/sdk/src/types/generated/index.tsindex a4b58ed5b2..aad5d956b0 100644--- a/packages/sdk/src/types/generated/index.ts+++ b/packages/sdk/src/types/generated/index.ts@@ -58,7 +58,6 @@ export type { default as StoreStockLocation } from './StoreStockLocation'export type { default as StoreStockMovement } from './StoreStockMovement'export type { default as StoreStockTransfer } from './StoreStockTransfer'export type { default as StoreStoreCredit } from './StoreStoreCredit'-export type { default as StoreStore } from './StoreStore'export type { default as StoreTaxon } from './StoreTaxon'export type { default as StoreTaxonomy } from './StoreTaxonomy'export type { default as StoreVariant } from './StoreVariant'diff --git a/packages/sdk/src/types/index.ts b/packages/sdk/src/types/index.tsindex 84a918f482..d1ff3fab8c 100644--- a/packages/sdk/src/types/index.ts+++ b/packages/sdk/src/types/index.ts@@ -21,8 +21,11 @@ export interface PaginationMeta {next: number | null;}-export interface PaginatedResponse<T> {+export interface ListResponse<T> {data: T[];+}++export interface PaginatedResponse<T> extends ListResponse<T> {meta: PaginationMeta;}diff --git a/packages/sdk/src/zod/generated/StoreCountry.ts b/packages/sdk/src/zod/generated/StoreCountry.tsindex 9f985f15e2..29269f498e 100644--- a/packages/sdk/src/zod/generated/StoreCountry.ts+++ b/packages/sdk/src/zod/generated/StoreCountry.ts@@ -1,15 +1,16 @@// This file is auto-generated. Do not edit directly.import { z } from 'zod';+import { StoreMarketSchema } from './StoreMarket';import { StoreStateSchema } from './StoreState';-export const StoreCountrySchema = z.object({+export const StoreCountrySchema: z.ZodObject<any> = z.object({iso: z.string(),iso3: z.string(),name: z.string(),states_required: z.boolean(),zipcode_required: z.boolean(),states: z.array(StoreStateSchema).optional(),- market: z.any().optional(),+ market: z.lazy(() => StoreMarketSchema).nullable().optional(),});export type StoreCountry = z.infer<typeof StoreCountrySchema>;diff --git a/packages/sdk/src/zod/generated/StoreMarket.ts b/packages/sdk/src/zod/generated/StoreMarket.tsindex 6691546140..f869fb6fe6 100644--- a/packages/sdk/src/zod/generated/StoreMarket.ts+++ b/packages/sdk/src/zod/generated/StoreMarket.ts@@ -2,7 +2,7 @@import { z } from 'zod';import { StoreCountrySchema } from './StoreCountry';-export const StoreMarketSchema = z.object({+export const StoreMarketSchema: z.ZodObject<any> = z.object({id: z.string(),name: z.string(),currency: z.string(),@@ -10,7 +10,7 @@ export const StoreMarketSchema = z.object({tax_inclusive: z.boolean(),default: z.boolean(),supported_locales: z.array(z.string()),- countries: z.array(StoreCountrySchema).optional(),+ countries: z.array(z.lazy(() => StoreCountrySchema)).optional(),});export type StoreMarket = z.infer<typeof StoreMarketSchema>;diff --git a/packages/sdk/src/zod/generated/StoreStore.ts b/packages/sdk/src/zod/generated/StoreStore.tsdeleted file mode 100644index d89b022ef2..0000000000--- a/packages/sdk/src/zod/generated/StoreStore.ts+++ /dev/null@@ -1,25 +0,0 @@-// This file is auto-generated. Do not edit directly.-import { z } from 'zod';-import { StorePaymentMethodSchema } from './StorePaymentMethod';--export const StoreStoreSchema = z.object({- id: z.string(),- name: z.string(),- url: z.string(),- meta_description: z.string().nullable(),- meta_keywords: z.string().nullable(),- seo_title: z.string().nullable(),- code: z.string(),- facebook: z.string().nullable(),- twitter: z.string().nullable(),- instagram: z.string().nullable(),- customer_support_email: z.string().nullable(),- created_at: z.string(),- updated_at: z.string(),- favicon_image_url: z.string().nullable(),- logo_image_url: z.string().nullable(),- social_image_url: z.string().nullable(),- payment_methods: z.array(StorePaymentMethodSchema),-});--export type StoreStore = z.infer<typeof StoreStoreSchema>;diff --git a/packages/sdk/src/zod/generated/index.ts b/packages/sdk/src/zod/generated/index.tsindex 3daecb13a3..97db4a7636 100644--- a/packages/sdk/src/zod/generated/index.ts+++ b/packages/sdk/src/zod/generated/index.ts@@ -55,7 +55,6 @@ export { StoreStockItemSchema, type StoreStockItem } from './StoreStockItem';export { StoreStockLocationSchema, type StoreStockLocation } from './StoreStockLocation';export { StoreStockMovementSchema, type StoreStockMovement } from './StoreStockMovement';export { StoreStockTransferSchema, type StoreStockTransfer } from './StoreStockTransfer';-export { StoreStoreSchema, type StoreStore } from './StoreStore';export { StoreStoreCreditSchema, type StoreStoreCredit } from './StoreStoreCredit';export { StoreTaxonSchema, type StoreTaxon } from './StoreTaxon';export { StoreTaxonomySchema, type StoreTaxonomy } from './StoreTaxonomy';diff --git a/packages/sdk/tests/client.test.ts b/packages/sdk/tests/client.test.tsindex 107d25f860..16914cea2c 100644--- a/packages/sdk/tests/client.test.ts+++ b/packages/sdk/tests/client.test.ts@@ -19,21 +19,35 @@ describe('SpreeClient', () => {expect(client).toBeInstanceOf(SpreeClient);});+ it('creates a client with secretKey only (no publishableKey)', () => {+ const client = createSpreeClient({+ baseUrl: TEST_BASE_URL,+ secretKey: 'spree_sk_test',+ });+ expect(client).toBeInstanceOf(SpreeClient);+ expect(client.admin).toBeDefined();+ });++ it('throws when neither publishableKey nor secretKey is provided', () => {+ expect(() => createSpreeClient({+ baseUrl: TEST_BASE_URL,+ })).toThrow('SpreeClient requires at least one of publishableKey or secretKey');+ });+it('strips trailing slash from baseUrl', async () => {const client = createSpreeClient({baseUrl: `${TEST_BASE_URL}/`,publishableKey: TEST_API_KEY,});- // Should not throw - the trailing slash is handled- const store = await client.store.store.get();- expect(store).toBeDefined();+ const result = await client.store.products.list();+ expect(result.data).toBeDefined();});it('accepts a custom fetch implementation', async () => {let capturedUrl = '';const customFetch = async (input: string | URL | Request, init?: RequestInit) => {capturedUrl = input.toString();- return new Response(JSON.stringify({ id: 'store_1', name: 'Test' }), {+ return new Response(JSON.stringify({ data: [], meta: { page: 1, limit: 25, count: 0, pages: 0, from: 0, to: 0, in: 0, previous: null, next: null } }), {status: 200,headers: { 'Content-Type': 'application/json' },});@@ -45,8 +59,8 @@ describe('SpreeClient', () => {fetch: customFetch,});- await client.store.store.get();- expect(capturedUrl).toContain('/api/v3/store/store');+ await client.store.products.list();+ expect(capturedUrl).toContain('/api/v3/store/products');});it('sends x-spree-api-key header on every store request', async () => {@@ -55,7 +69,7 @@ describe('SpreeClient', () => {capturedHeaders = Object.fromEntries(Object.entries(init?.headers as Record<string, string> || {}));- return new Response(JSON.stringify({}), {+ return new Response(JSON.stringify({ data: [], meta: { page: 1, limit: 25, count: 0, pages: 0, from: 0, to: 0, in: 0, previous: null, next: null } }), {status: 200,headers: { 'Content-Type': 'application/json' },});@@ -67,11 +81,11 @@ describe('SpreeClient', () => {fetch: customFetch,});- await client.store.store.get();+ await client.store.products.list();expect(capturedHeaders['x-spree-api-key']).toBe('my-secret-key');});- it('sends Authorization header when token is provided', async () => {+ it('does not send x-spree-api-key header when publishableKey is not provided', async () => {let capturedHeaders: Record<string, string> = {};const customFetch = async (input: string | URL | Request, init?: RequestInit) => {capturedHeaders = Object.fromEntries(@@ -83,13 +97,35 @@ describe('SpreeClient', () => {});};+ const client = createSpreeClient({+ baseUrl: TEST_BASE_URL,+ secretKey: 'spree_sk_test',+ fetch: customFetch,+ });++ await client.store.auth.login({ email: '[email protected]', password: 'pass' });+ expect(capturedHeaders['x-spree-api-key']).toBeUndefined();+ });++ it('sends Authorization header when token is provided', async () => {+ let capturedHeaders: Record<string, string> = {};+ const customFetch = async (input: string | URL | Request, init?: RequestInit) => {+ capturedHeaders = Object.fromEntries(+ Object.entries(init?.headers as Record<string, string> || {})+ );+ return new Response(JSON.stringify({ data: [], meta: { page: 1, limit: 25, count: 0, pages: 0, from: 0, to: 0, in: 0, previous: null, next: null } }), {+ status: 200,+ headers: { 'Content-Type': 'application/json' },+ });+ };+const client = createSpreeClient({baseUrl: TEST_BASE_URL,publishableKey: TEST_API_KEY,fetch: customFetch,});- await client.store.store.get({ token: 'my-jwt-token' });+ await client.store.products.list({}, { token: 'my-jwt-token' });expect(capturedHeaders['Authorization']).toBe('Bearer my-jwt-token');});@@ -99,7 +135,7 @@ describe('SpreeClient', () => {capturedHeaders = Object.fromEntries(Object.entries(init?.headers as Record<string, string> || {}));- return new Response(JSON.stringify({}), {+ return new Response(JSON.stringify({ data: [], meta: { page: 1, limit: 25, count: 0, pages: 0, from: 0, to: 0, in: 0, previous: null, next: null } }), {status: 200,headers: { 'Content-Type': 'application/json' },});@@ -111,7 +147,7 @@ describe('SpreeClient', () => {fetch: customFetch,});- await client.store.store.get({ locale: 'fr', currency: 'EUR' });+ await client.store.products.list({}, { locale: 'fr', currency: 'EUR' });expect(capturedHeaders['x-spree-locale']).toBe('fr');expect(capturedHeaders['x-spree-currency']).toBe('EUR');});@@ -133,7 +169,6 @@ describe('SpreeClient', () => {});expect(client.store.auth).toBeDefined();- expect(client.store.store).toBeDefined();expect(client.store.products).toBeDefined();expect(client.store.taxonomies).toBeDefined();expect(client.store.taxons).toBeDefined();diff --git a/packages/sdk/tests/error-handling.test.ts b/packages/sdk/tests/error-handling.test.tsindex 87fddf2214..1fd538fdb1 100644--- a/packages/sdk/tests/error-handling.test.ts+++ b/packages/sdk/tests/error-handling.test.ts@@ -72,7 +72,7 @@ describe('error handling', () => {it('throws SpreeError on 500 server error', async () => {server.use(- http.get(`${API_PREFIX}/store`, () =>+ http.get(`${API_PREFIX}/countries`, () =>HttpResponse.json({error: {@@ -87,7 +87,7 @@ describe('error handling', () => {const client = createTestClient();try {- await client.store.store.get();+ await client.store.countries.list();expect.unreachable('Should have thrown');} catch (error) {const spreeError = error as SpreeError;diff --git a/packages/sdk/tests/mocks/handlers.ts b/packages/sdk/tests/mocks/handlers.tsindex dd6e4e4e89..056b8af606 100644--- a/packages/sdk/tests/mocks/handlers.ts+++ b/packages/sdk/tests/mocks/handlers.ts@@ -46,13 +46,6 @@ export const fixtures = {country_iso: 'US',state_abbr: 'NY',},- store: {- id: 'store_1',- name: 'Test Store',- url: 'https://demo.spreecommerce.org',- default_currency: 'USD',- default_locale: 'en',- },taxonomy: {id: 'tax_1',name: 'Categories',@@ -121,11 +114,6 @@ export const handlers = [HttpResponse.json({ token: 'refreshed-jwt-token', user: fixtures.user })),- // Store- http.get(`${API_PREFIX}/store`, () =>- HttpResponse.json(fixtures.store)- ),-// Productshttp.get(`${API_PREFIX}/products`, () =>HttpResponse.json({ data: [fixtures.product], meta: paginationMeta })diff --git a/packages/sdk/tests/retry.test.ts b/packages/sdk/tests/retry.test.tsindex 15a37ebdf8..0995c11187 100644--- a/packages/sdk/tests/retry.test.ts+++ b/packages/sdk/tests/retry.test.ts@@ -16,6 +16,8 @@ function errorResponse(status: number, code = 'error', message = 'Error', header);}+const paginatedEmpty = { data: [], meta: { page: 1, limit: 25, count: 0, pages: 0, from: 0, to: 0, in: 0, previous: null, next: null } };+describe('Retry logic', () => {const baseConfig = { baseUrl: 'https://api.test.com', publishableKey: 'pk_test' };@@ -23,24 +25,24 @@ describe('Retry logic', () => {it('retries on 500 and succeeds', async () => {const mockFetch = vi.fn().mockResolvedValueOnce(errorResponse(500))- .mockResolvedValueOnce(jsonResponse({ name: 'Test Store' }));+ .mockResolvedValueOnce(jsonResponse(paginatedEmpty));const client = createSpreeClient({ ...baseConfig, fetch: mockFetch });- const result = await client.store.store.get();+ const result = await client.store.products.list();- expect(result).toEqual({ name: 'Test Store' });+ expect(result).toEqual(paginatedEmpty);expect(mockFetch).toHaveBeenCalledTimes(2);});it('retries on 429 and succeeds', async () => {const mockFetch = vi.fn().mockResolvedValueOnce(errorResponse(429, 'rate_limited', 'Too many requests'))- .mockResolvedValueOnce(jsonResponse({ name: 'Test Store' }));+ .mockResolvedValueOnce(jsonResponse(paginatedEmpty));const client = createSpreeClient({ ...baseConfig, fetch: mockFetch });- const result = await client.store.store.get();+ const result = await client.store.products.list();- expect(result).toEqual({ name: 'Test Store' });+ expect(result).toEqual(paginatedEmpty);expect(mockFetch).toHaveBeenCalledTimes(2);});@@ -48,12 +50,12 @@ describe('Retry logic', () => {const mockFetch = vi.fn().mockResolvedValueOnce(errorResponse(502)).mockResolvedValueOnce(errorResponse(503))- .mockResolvedValueOnce(jsonResponse({ name: 'Test Store' }));+ .mockResolvedValueOnce(jsonResponse(paginatedEmpty));const client = createSpreeClient({ ...baseConfig, fetch: mockFetch });- const result = await client.store.store.get();+ const result = await client.store.products.list();- expect(result).toEqual({ name: 'Test Store' });+ expect(result).toEqual(paginatedEmpty);expect(mockFetch).toHaveBeenCalledTimes(3);});@@ -63,7 +65,7 @@ describe('Retry logic', () => {const client = createSpreeClient({ ...baseConfig, fetch: mockFetch });- await expect(client.store.store.get()).rejects.toThrow(SpreeError);+ await expect(client.store.products.list()).rejects.toThrow(SpreeError);// 1 initial + 2 retries = 3 attemptsexpect(mockFetch).toHaveBeenCalledTimes(3);});@@ -71,12 +73,12 @@ describe('Retry logic', () => {it('retries on network errors for GET', async () => {const mockFetch = vi.fn().mockRejectedValueOnce(new TypeError('fetch failed'))- .mockResolvedValueOnce(jsonResponse({ name: 'Test Store' }));+ .mockResolvedValueOnce(jsonResponse(paginatedEmpty));const client = createSpreeClient({ ...baseConfig, fetch: mockFetch });- const result = await client.store.store.get();+ const result = await client.store.products.list();- expect(result).toEqual({ name: 'Test Store' });+ expect(result).toEqual(paginatedEmpty);expect(mockFetch).toHaveBeenCalledTimes(2);});@@ -86,7 +88,7 @@ describe('Retry logic', () => {const client = createSpreeClient({ ...baseConfig, fetch: mockFetch });- await expect(client.store.store.get()).rejects.toThrow(SpreeError);+ await expect(client.store.products.list()).rejects.toThrow(SpreeError);expect(mockFetch).toHaveBeenCalledTimes(1);});@@ -96,7 +98,7 @@ describe('Retry logic', () => {const client = createSpreeClient({ ...baseConfig, fetch: mockFetch });- await expect(client.store.store.get()).rejects.toThrow(SpreeError);+ await expect(client.store.products.list()).rejects.toThrow(SpreeError);expect(mockFetch).toHaveBeenCalledTimes(1);});});@@ -146,7 +148,7 @@ describe('Retry logic', () => {const client = createSpreeClient({ ...baseConfig, fetch: mockFetch, retry: false });- await expect(client.store.store.get()).rejects.toThrow(SpreeError);+ await expect(client.store.products.list()).rejects.toThrow(SpreeError);expect(mockFetch).toHaveBeenCalledTimes(1);});});@@ -162,7 +164,7 @@ describe('Retry logic', () => {retry: { maxRetries: 4, baseDelay: 10 },});- await expect(client.store.store.get()).rejects.toThrow(SpreeError);+ await expect(client.store.products.list()).rejects.toThrow(SpreeError);// 1 initial + 4 retries = 5 attemptsexpect(mockFetch).toHaveBeenCalledTimes(5);});@@ -171,7 +173,7 @@ describe('Retry logic', () => {const start = Date.now();const mockFetch = vi.fn().mockResolvedValueOnce(errorResponse(429, 'rate_limited', 'Too many requests', { 'Retry-After': '1' }))- .mockResolvedValueOnce(jsonResponse({ name: 'Test Store' }));+ .mockResolvedValueOnce(jsonResponse(paginatedEmpty));const client = createSpreeClient({...baseConfig,@@ -179,10 +181,10 @@ describe('Retry logic', () => {retry: { baseDelay: 10 },});- const result = await client.store.store.get();+ const result = await client.store.products.list();const elapsed = Date.now() - start;- expect(result).toEqual({ name: 'Test Store' });+ expect(result).toEqual(paginatedEmpty);// Retry-After: 1 = 1000ms delayexpect(elapsed).toBeGreaterThanOrEqual(900);});diff --git a/packages/sdk/tests/store.test.ts b/packages/sdk/tests/store.test.tsdeleted file mode 100644index c59b9bbcc0..0000000000--- a/packages/sdk/tests/store.test.ts+++ /dev/null@@ -1,18 +0,0 @@-import { describe, it, expect, beforeAll } from 'vitest';-import { createTestClient } from './helpers';-import { fixtures } from './mocks/handlers';-import type { SpreeClient } from '../src';--describe('store', () => {- let client: SpreeClient;- beforeAll(() => { client = createTestClient(); });-- describe('get', () => {- it('returns store information', async () => {- const result = await client.store.store.get();-- expect(result.name).toBe(fixtures.store.name);- expect(result.default_currency).toBe('USD');- });- });-});diff --git a/spree/api/app/controllers/spree/api/v3/store/stores_controller.rb b/spree/api/app/controllers/spree/api/v3/store/stores_controller.rbdeleted file mode 100644index c900d77760..0000000000--- a/spree/api/app/controllers/spree/api/v3/store/stores_controller.rb+++ /dev/null@@ -1,26 +0,0 @@-module Spree- module Api- module V3- module Store- class StoresController < ResourceController- skip_before_action :set_resource-- # GET /api/v3/store/store- def show- render json: serialize_resource(current_store)- end-- protected-- def model_class- Spree::Store- end-- def serializer_class- Spree.api.store_serializer- end- end- end- end- end-enddiff --git a/spree/api/app/serializers/spree/api/v3/country_serializer.rb b/spree/api/app/serializers/spree/api/v3/country_serializer.rbindex d9cf750f81..1e13c84981 100644--- a/spree/api/app/serializers/spree/api/v3/country_serializer.rb+++ b/spree/api/app/serializers/spree/api/v3/country_serializer.rb@@ -6,7 +6,8 @@ module Spreeinclude Typelizer::DSLtypelize iso: :string, iso3: :string, name: :string,- states_required: :boolean, zipcode_required: :boolean+ states_required: :boolean, zipcode_required: :boolean,+ market: [:StoreMarket, nullable: true]attributes :iso, :iso3, :name, :states_required, :zipcode_requireddiff --git a/spree/api/app/serializers/spree/api/v3/store_serializer.rb b/spree/api/app/serializers/spree/api/v3/store_serializer.rbdeleted file mode 100644index 06044236c0..0000000000--- a/spree/api/app/serializers/spree/api/v3/store_serializer.rb+++ /dev/null@@ -1,38 +0,0 @@-module Spree- module Api- module V3- class StoreSerializer < BaseSerializer- typelize name: :string, url: :string, meta_description: [:string, nullable: true],- meta_keywords: [:string, nullable: true], seo_title: [:string, nullable: true],- code: :string,- facebook: [:string, nullable: true], twitter: [:string, nullable: true], instagram: [:string, nullable: true],- customer_support_email: [:string, nullable: true],- favicon_image_url: [:string, nullable: true],- logo_image_url: [:string, nullable: true], social_image_url: [:string, nullable: true]-- attributes :name, :url, :meta_description, :meta_keywords, :seo_title,- :code, :facebook, :twitter,- :instagram, :customer_support_email,- created_at: :iso8601, updated_at: :iso8601-- attribute :favicon_image_url do |store|- image_url_for(store.favicon_image)- end-- attribute :logo_image_url do |store|- image_url_for(store.logo)- end-- attribute :social_image_url do |store|- image_url_for(store.social_image)- end-- many :payment_methods,- proc { |payment_methods, _params|- payment_methods.select { |pm| pm.available_on_front_end? && pm.active? }- },- resource: Spree.api.payment_method_serializer- end- end- end-enddiff --git a/spree/api/config/routes.rb b/spree/api/config/routes.rbindex 83e98618d2..91a635bb34 100644--- a/spree/api/config/routes.rb+++ b/spree/api/config/routes.rb@@ -8,9 +8,6 @@ Spree::Core::Engine.add_routes dopost 'auth/refresh', to: 'auth#refresh'post 'auth/oauth/callback', to: 'auth#oauth_callback'- # Store- resource :store, only: [:show]-# Marketsresources :markets, only: [:index, :show] docollection dodiff --git a/spree/api/lib/spree/api/dependencies.rb b/spree/api/lib/spree/api/dependencies.rbindex bfb7f325ca..20d85f8975 100644--- a/spree/api/lib/spree/api/dependencies.rb+++ b/spree/api/lib/spree/api/dependencies.rb@@ -109,7 +109,6 @@ module Spreecountry_serializer: 'Spree::Api::V3::CountrySerializer',market_serializer: 'Spree::Api::V3::MarketSerializer',state_serializer: 'Spree::Api::V3::StateSerializer',- store_serializer: 'Spree::Api::V3::StoreSerializer',wishlist_serializer: 'Spree::Api::V3::WishlistSerializer',wished_item_serializer: 'Spree::Api::V3::WishedItemSerializer',payment_method_serializer: 'Spree::Api::V3::PaymentMethodSerializer',diff --git a/spree/api/spec/controllers/concerns/spree/api/v3/api_key_authentication_spec.rb b/spree/api/spec/controllers/concerns/spree/api/v3/api_key_authentication_spec.rbindex c78a8b2404..ae8c8313bb 100644--- a/spree/api/spec/controllers/concerns/spree/api/v3/api_key_authentication_spec.rb+++ b/spree/api/spec/controllers/concerns/spree/api/v3/api_key_authentication_spec.rb@@ -1,8 +1,8 @@require 'spec_helper'RSpec.describe 'API Key Authentication Touch Throttling', type: :controller do- describe Spree::Api::V3::Store::StoresController do- controller(Spree::Api::V3::Store::StoresController) {}+ describe Spree::Api::V3::Store::CountriesController do+ controller(Spree::Api::V3::Store::CountriesController) {}render_views@@ -18,7 +18,7 @@ RSpec.describe 'API Key Authentication Touch Throttling', type: :controller doit 'enqueues the mark as used job' doexpect {- get :show, params: { id: store.prefixed_id }+ get :index}.to have_enqueued_job(Spree::ApiKeys::MarkAsUsed).with(api_key.id, instance_of(ActiveSupport::TimeWithZone))endend@@ -28,7 +28,7 @@ RSpec.describe 'API Key Authentication Touch Throttling', type: :controller doit 'enqueues the mark as used job' doexpect {- get :show, params: { id: store.prefixed_id }+ get :index}.to have_enqueued_job(Spree::ApiKeys::MarkAsUsed).with(api_key.id, instance_of(ActiveSupport::TimeWithZone))endend@@ -38,7 +38,7 @@ RSpec.describe 'API Key Authentication Touch Throttling', type: :controller doit 'does not enqueue the mark as used job' doexpect {- get :show, params: { id: store.prefixed_id }+ get :index}.not_to have_enqueued_job(Spree::ApiKeys::MarkAsUsed)endenddiff --git a/spree/api/spec/controllers/concerns/spree/api/v3/rate_limiting_spec.rb b/spree/api/spec/controllers/concerns/spree/api/v3/rate_limiting_spec.rbindex 18ccc35cc4..e88293d395 100644--- a/spree/api/spec/controllers/concerns/spree/api/v3/rate_limiting_spec.rb+++ b/spree/api/spec/controllers/concerns/spree/api/v3/rate_limiting_spec.rb@@ -1,8 +1,8 @@require 'spec_helper'RSpec.describe 'Rate Limiting', type: :controller do- describe Spree::Api::V3::Store::StoresController do- controller(Spree::Api::V3::Store::StoresController) {}+ describe Spree::Api::V3::Store::CountriesController do+ controller(Spree::Api::V3::Store::CountriesController) {}render_views@@ -65,7 +65,7 @@ RSpec.describe 'Rate Limiting', type: :controller doendend-RSpec.describe Spree::Api::V3::Store::StoresController, 'rate limit headers', type: :controller do+RSpec.describe Spree::Api::V3::Store::CountriesController, 'rate limit headers', type: :controller dorender_viewsinclude_context 'API v3 Store'@@ -75,7 +75,7 @@ RSpec.describe Spree::Api::V3::Store::StoresController, 'rate limit headers', tyendit 'skips rate limit headers when cache has no counter' do- get :show+ get :indexexpect(response.headers['X-RateLimit-Limit']).to be_nilexpect(response.headers['X-RateLimit-Remaining']).to be_nil@@ -85,10 +85,10 @@ RSpec.describe Spree::Api::V3::Store::StoresController, 'rate limit headers', tyit 'sets X-RateLimit-Limit and X-RateLimit-Remaining headers' doallow(Rails.cache).to receive(:read).and_call_originalallow(Rails.cache).to receive(:read)- .with("rate-limit:spree/api/v3/store/stores:#{api_key.token}")+ .with("rate-limit:spree/api/v3/store/countries:#{api_key.token}").and_return(5)- get :show+ get :indexexpect(response.headers['X-RateLimit-Limit']).to eq(Spree::Api::Config[:rate_limit_per_key].to_s)expect(response.headers['X-RateLimit-Remaining'].to_i).to eq(Spree::Api::Config[:rate_limit_per_key] - 5)@@ -97,10 +97,10 @@ RSpec.describe Spree::Api::V3::Store::StoresController, 'rate limit headers', tyit 'does not set Retry-After header when under the limit' doallow(Rails.cache).to receive(:read).and_call_originalallow(Rails.cache).to receive(:read)- .with("rate-limit:spree/api/v3/store/stores:#{api_key.token}")+ .with("rate-limit:spree/api/v3/store/countries:#{api_key.token}").and_return(5)- get :show+ get :indexexpect(response.headers['Retry-After']).to be_nilend@@ -108,10 +108,10 @@ RSpec.describe Spree::Api::V3::Store::StoresController, 'rate limit headers', tyit 'decreases X-RateLimit-Remaining based on request count' doallow(Rails.cache).to receive(:read).and_call_originalallow(Rails.cache).to receive(:read)- .with("rate-limit:spree/api/v3/store/stores:#{api_key.token}")+ .with("rate-limit:spree/api/v3/store/countries:#{api_key.token}").and_return(10)- get :show+ get :indexexpect(response.headers['X-RateLimit-Remaining'].to_i).to eq(Spree::Api::Config[:rate_limit_per_key] - 10)end@@ -120,10 +120,10 @@ RSpec.describe Spree::Api::V3::Store::StoresController, 'rate limit headers', tylimit = Spree::Api::Config[:rate_limit_per_key]allow(Rails.cache).to receive(:read).and_call_originalallow(Rails.cache).to receive(:read)- .with("rate-limit:spree/api/v3/store/stores:#{api_key.token}")+ .with("rate-limit:spree/api/v3/store/countries:#{api_key.token}").and_return(limit)- get :show+ get :indexexpect(response.headers['Retry-After']).to eq(Spree::Api::Config[:rate_limit_window].to_s)expect(response.headers['X-RateLimit-Remaining']).to eq('0')diff --git a/spree/api/spec/controllers/concerns/spree/api/v3/security_headers_spec.rb b/spree/api/spec/controllers/concerns/spree/api/v3/security_headers_spec.rbindex 32c1460b56..becb3c43cd 100644--- a/spree/api/spec/controllers/concerns/spree/api/v3/security_headers_spec.rb+++ b/spree/api/spec/controllers/concerns/spree/api/v3/security_headers_spec.rb@@ -1,6 +1,6 @@require 'spec_helper'-RSpec.describe Spree::Api::V3::Store::StoresController, type: :controller do+RSpec.describe Spree::Api::V3::Store::CountriesController, type: :controller dorender_viewsinclude_context 'API v3 Store'@@ -11,13 +11,13 @@ RSpec.describe Spree::Api::V3::Store::StoresController, type: :controller dodescribe 'Spree::Api::V3::SecurityHeaders' doit 'sets X-Content-Type-Options header' do- get :show+ get :indexexpect(response.headers['X-Content-Type-Options']).to eq('nosniff')endit 'sets X-Frame-Options header' do- get :show+ get :indexexpect(response.headers['X-Frame-Options']).to eq('DENY')end@@ -25,19 +25,19 @@ RSpec.describe Spree::Api::V3::Store::StoresController, type: :controller doit 'sets X-Request-Id header' doallow_any_instance_of(ActionDispatch::Request).to receive(:request_id).and_return('test-request-id-123')- get :show+ get :indexexpect(response.headers['X-Request-Id']).to eq('test-request-id-123')endit 'removes X-Powered-By header' do- get :show+ get :indexexpect(response.headers['X-Powered-By']).to be_nilendit 'removes Server header' do- get :show+ get :indexexpect(response.headers['Server']).to be_nilenddiff --git a/spree/api/spec/controllers/spree/api/v3/store/stores_controller_spec.rb b/spree/api/spec/controllers/spree/api/v3/store/stores_controller_spec.rbdeleted file mode 100644index 7d2c21f06b..0000000000--- a/spree/api/spec/controllers/spree/api/v3/store/stores_controller_spec.rb+++ /dev/null@@ -1,63 +0,0 @@-require 'spec_helper'--RSpec.describe Spree::Api::V3::Store::StoresController, type: :controller do- render_views-- include_context 'API v3 Store'-- before do- request.headers['X-Spree-Api-Key'] = api_key.token- end-- describe 'GET #show' do- it 'returns the current store' do- get :show-- expect(response).to have_http_status(:ok)- expect(json_response['id']).to eq(store.prefixed_id)- end-- it 'returns store attributes' do- get :show-- expect(json_response).to include('id', 'name', 'url', 'code')- end-- context 'without API key' do- before { request.headers['X-Spree-Api-Key'] = nil }-- it 'returns unauthorized' do- get :show-- expect(response).to have_http_status(:unauthorized)- expect(json_response['error']['code']).to eq('invalid_token')- expect(json_response['error']['message']).to be_present- end- end-- context 'with invalid API key' do- before { request.headers['X-Spree-Api-Key'] = 'invalid' }-- it 'returns unauthorized' do- get :show-- expect(response).to have_http_status(:unauthorized)- expect(json_response['error']['code']).to eq('invalid_token')- end- end-- context 'with API key from different store' do- let(:other_store) { create(:store) }- let(:other_api_key) { create(:api_key, :publishable, store: other_store) }-- before { request.headers['X-Spree-Api-Key'] = other_api_key.token }-- it 'returns unauthorized as API keys are scoped to their store' do- get :show-- expect(response).to have_http_status(:unauthorized)- expect(json_response['error']['code']).to eq('invalid_token')- end- end- end-enddiff --git a/spree/api/spec/integration/spree/api/v3/store/stores_spec.rb b/spree/api/spec/integration/spree/api/v3/store/stores_spec.rbdeleted file mode 100644index 0cc81ede47..0000000000--- a/spree/api/spec/integration/spree/api/v3/store/stores_spec.rb+++ /dev/null@@ -1,54 +0,0 @@-# frozen_string_literal: true--require 'swagger_helper'--RSpec.describe 'Store API', type: :request, swagger_doc: 'api-reference/store.yaml' do- include_context 'API v3 Store'-- path '/api/v3/store/store' do- get 'Get current store' do- tags 'Store'- produces 'application/json'- security [api_key: []]- description 'Returns information about the current store based on the API key'-- sdk_example <<~JS- const store = await client.store.store.get()- JS-- parameter name: 'x-spree-api-key', in: :header, type: :string, required: true-- response '200', 'store found' do- let(:'x-spree-api-key') { api_key.token }-- schema '$ref' => '#/components/schemas/StoreStore'-- run_test! do |response|- data = JSON.parse(response.body)- expect(data['id']).to be_present- expect(data['name']).to eq(store.name)- expect(data['url']).to eq(store.url)- end- end-- response '401', 'unauthorized - invalid API key' do- let(:'x-spree-api-key') { 'invalid_key' }-- schema '$ref' => '#/components/schemas/ErrorResponse'-- run_test! do |response|- data = JSON.parse(response.body)- expect(data['error']['code']).to eq('invalid_token')- end- end-- response '401', 'unauthorized - missing API key' do- let(:'x-spree-api-key') { '' }-- schema '$ref' => '#/components/schemas/ErrorResponse'-- run_test!- end- end- end-end