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
Feat: introduce `fields` parameter in API to selictively return attri… (#13740)
Damian Legawiec6f7a1de4a893
diff --git a/docs/api-reference/store-api/querying.mdx b/docs/api-reference/store-api/querying.mdxindex 18c2145809..d33ad19552 100644--- a/docs/api-reference/store-api/querying.mdx+++ b/docs/api-reference/store-api/querying.mdx@@ -236,6 +236,58 @@ curl -G 'http://localhost:3000/api/v3/store/customer/orders' \</CodeGroup>+## Field Selection++Use the `fields` parameter to request only specific fields in the response. This reduces payload size for bandwidth-sensitive clients like mobile apps or server-side rendering.++<CodeGroup>++```typescript SDK+// Only return name, slug, and price+const products = await client.store.products.list({+ fields: ['name', 'slug', 'price', 'display_price'],+})++// Works on single resources too+const product = await client.store.products.get('spree-tote', {+ fields: ['name', 'slug', 'price'],+})+```++```bash cURL+curl -G 'http://localhost:3000/api/v3/store/products' \+ -H 'X-Spree-Api-Key: spree_pk_xxx' \+ -d 'fields=name,slug,price,display_price'+```++</CodeGroup>++```json+{+ "data": [+ {+ "id": "prod_86Rf07xd4z",+ "name": "Spree Tote",+ "slug": "spree-tote",+ "price": "15.99",+ "display_price": "$15.99"+ }+ ],+ "meta": { ... }+}+```++### Rules++- The `id` field is **always included**, even if not listed in `fields`+- Omitting `fields` returns all fields (default behavior)+- Field selection applies to the top-level resource only — expanded associations always return their full set of fields+- Combine with `expand` to include associations: `?fields=name,variants&expand=variants`++<Note>+The SDK TypeScript types remain fully typed regardless of field selection. When using `fields`, be aware that only the requested fields will be present at runtime.+</Note>+## PaginationAll collection endpoints return paginated results. Control pagination with `page` and `limit` parameters:diff --git a/docs/api-reference/store.yaml b/docs/api-reference/store.yamlindex a6aa231622..d53c61cc78 100644--- a/docs/api-reference/store.yaml+++ b/docs/api-reference/store.yaml@@ -84,6 +84,13 @@ paths:required: falseschema:type: integer+ - name: fields+ in: query+ required: false+ description: Comma-separated list of fields to include (e.g., name,slug,price).+ id is always included.+ schema:+ type: stringresponses:'200':description: addresses found@@ -347,6 +354,13 @@ paths:required: trueschema:type: string+ - name: fields+ in: query+ required: false+ description: Comma-separated list of fields to include (e.g., name,slug,price).+ id is always included.+ schema:+ type: stringresponses:'200':description: address found@@ -647,14 +661,14 @@ paths:content:application/json:example:- token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImp0aSI6IjNjNWFhOTQ5LTIyZmItNGE3ZS1iOWIxLTA1ZmE0NGI2OTE0YSIsImlzcyI6InNwcmVlIiwiYXVkIjoic3RvcmVfYXBpIiwiZXhwIjoxNzcyNzQ0MjUxfQ.ZDKbjjOPp5UnbimtOHlZGVXDyGUsKLFH1Xr1-YHzHCw+ token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImp0aSI6ImEwZGQyN2YxLWMwZmMtNDE1Mi04Y2JiLWYwZmNhNjhjZDMwNiIsImlzcyI6InNwcmVlIiwiYXVkIjoic3RvcmVfYXBpIiwiZXhwIjoxNzcyNzQ3NTA3fQ.pBioq-2sxLXaX2KDcxmN0fgQPyopEZcXoSZ87V_pTq4user:id: cus_UkLWZg9DAJemail: [email protected]- first_name: Krista- last_name: Morar- created_at: '2026-03-05T19:57:31.501Z'- updated_at: '2026-03-05T19:57:31.501Z'+ first_name: Pamala+ last_name: Reichert+ created_at: '2026-03-05T20:51:47.292Z'+ updated_at: '2026-03-05T20:51:47.292Z'addresses: []default_billing_address:default_shipping_address:@@ -727,14 +741,14 @@ paths:content:application/json:example:- token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImp0aSI6Ijg0YTdhMzcxLTI2YWItNDg4ZC1iOTIwLWFiMDcyNWEyNjhkZSIsImlzcyI6InNwcmVlIiwiYXVkIjoic3RvcmVfYXBpIiwiZXhwIjoxNzcyNzQ0MjUyfQ.ZmAW9hmi61YhXZCCRwynbzUi8D7PNKGhHH-BYR4qRFo+ token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImp0aSI6IjgyMTNhY2VhLWFiMDMtNGJmMS04ZGNhLTk5MzMxMzM3ZGQ0MCIsImlzcyI6InNwcmVlIiwiYXVkIjoic3RvcmVfYXBpIiwiZXhwIjoxNzcyNzQ3NTA4fQ.Pvdst2fL6OaiKGREvaK8uxL_UjFpjMTXoU-rksL1gxIuser:id: cus_UkLWZg9DAJemail: [email protected]first_name: Johnlast_name: Doe- created_at: '2026-03-05T19:57:32.933Z'- updated_at: '2026-03-05T19:57:32.933Z'+ created_at: '2026-03-05T20:51:48.722Z'+ updated_at: '2026-03-05T20:51:48.722Z'addresses: []default_billing_address:default_shipping_address:@@ -820,14 +834,14 @@ paths:content:application/json:example:- token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImp0aSI6ImI3ZjIyYWFjLWY5ZTUtNGZiZi04NTc2LWFkODMyNmZkYTE2ZCIsImlzcyI6InNwcmVlIiwiYXVkIjoic3RvcmVfYXBpIiwiZXhwIjoxNzcyNzQ0MjUzfQ.5N4KKvawJm9F3AHlB6oELyYRua4FOArUCDqlOVDma-E+ token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImp0aSI6ImY3MGU5ODhhLTIyZjAtNDYyYS05MGZiLTEyZGI3MDYzNjBlNiIsImlzcyI6InNwcmVlIiwiYXVkIjoic3RvcmVfYXBpIiwiZXhwIjoxNzcyNzQ3NTA5fQ.wo6x0aDZ2wfL--6SzMZbvOLTFrrR4HvmhlPQOXPj4hguser:id: cus_UkLWZg9DAJemail: [email protected]- first_name: Necole- last_name: McDermott- created_at: '2026-03-05T19:57:33.519Z'- updated_at: '2026-03-05T19:57:33.519Z'+ first_name: Dannette+ last_name: Hills+ created_at: '2026-03-05T20:51:49.286Z'+ updated_at: '2026-03-05T20:51:49.286Z'addresses: []default_billing_address:default_shipping_address:@@ -891,13 +905,13 @@ paths:application/json:example:id: or_UkLWZg9DAJ- number: R423698003+ number: R705497265state: cartcheckout_steps:- address- delivery- complete- token: "-McWPHH7a9HPW6DVLgdIuA1772740654176"+ token: OliY69SiSMdg9Q9o5HVLoA1772743909957email:special_instructions:currency: USD@@ -923,8 +937,8 @@ paths:total: '0.0'display_total: "$0.00"completed_at:- created_at: '2026-03-05T19:57:34.178Z'- updated_at: '2026-03-05T19:57:34.178Z'+ created_at: '2026-03-05T20:51:49.958Z'+ updated_at: '2026-03-05T20:51:49.958Z'order_promotions: []line_items: []shipments: []@@ -1030,15 +1044,15 @@ paths:application/json:example:id: or_UkLWZg9DAJ- number: R326298422+ number: R154944157state: cartcheckout_steps:- address- delivery- payment- complete- token: WjWNEf7ezSpHGvwbPZBexm1mts3WHk19RCC- email: [email protected]+ token: kbKDkZbUaJACTzdwwqDJfMG5v8JA6qKUs4a+ email: [email protected]special_instructions:currency: USDlocale: en@@ -1063,16 +1077,16 @@ paths:total: '110.0'display_total: "$110.00"completed_at:- created_at: '2026-03-05T19:57:35.235Z'- updated_at: '2026-03-05T19:57:35.292Z'+ created_at: '2026-03-05T20:51:51.130Z'+ updated_at: '2026-03-05T20:51:51.188Z'order_promotions: []line_items:- id: li_UkLWZg9DAJvariant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 26083- slug: product-26083+ name: Product 21061+ slug: product-21061options_text: ''price: '10.0'display_price: "$10.00"@@ -1091,23 +1105,23 @@ paths:discounted_amount: '10.0'display_discounted_amount: "$10.00"display_compare_at_amount: "$0.00"- created_at: '2026-03-05T19:57:35.270Z'- updated_at: '2026-03-05T19:57:35.270Z'+ created_at: '2026-03-05T20:51:51.165Z'+ updated_at: '2026-03-05T20:51:51.165Z'compare_at_amount:thumbnail_url:option_values: []digital_links: []shipments:- id: ship_UkLWZg9DAJ- number: H68721556501+ number: H66638469366state: pendingtracking: U10000tracking_url:cost: '100.0'display_cost: "$100.00"shipped_at:- created_at: '2026-03-05T19:57:35.275Z'- updated_at: '2026-03-05T19:57:35.288Z'+ created_at: '2026-03-05T20:51:51.170Z'+ updated_at: '2026-03-05T20:51:51.185Z'shipping_method:id: shpm_UkLWZg9DAJname: UPS Ground@@ -1115,7 +1129,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_41- name: Sarita Hegmann+ name: Kai Turneraddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -1233,15 +1247,15 @@ paths:application/json:example:id: or_UkLWZg9DAJ- number: R967116876+ number: R612886283state: cartcheckout_steps:- address- delivery- payment- complete- token: hui94gHxTu76huYx3HCGMu2uC6u4QrDZe9P- email: [email protected]+ token: pPHxpW62iWTyx86mQ7rjL44aEN81jMbGzQ6+ email: [email protected]special_instructions:currency: USDlocale: en@@ -1266,16 +1280,16 @@ paths:total: '110.0'display_total: "$110.00"completed_at:- created_at: '2026-03-05T19:57:35.879Z'- updated_at: '2026-03-05T19:57:35.933Z'+ created_at: '2026-03-05T20:51:51.796Z'+ updated_at: '2026-03-05T20:51:51.854Z'order_promotions: []line_items:- id: li_UkLWZg9DAJvariant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 31685- slug: product-31685+ name: Product 36994+ slug: product-36994options_text: ''price: '10.0'display_price: "$10.00"@@ -1294,23 +1308,23 @@ paths:discounted_amount: '10.0'display_discounted_amount: "$10.00"display_compare_at_amount: "$0.00"- created_at: '2026-03-05T19:57:35.909Z'- updated_at: '2026-03-05T19:57:35.909Z'+ created_at: '2026-03-05T20:51:51.831Z'+ updated_at: '2026-03-05T20:51:51.831Z'compare_at_amount:thumbnail_url:option_values: []digital_links: []shipments:- id: ship_UkLWZg9DAJ- number: H48511535939+ number: H56856728196state: pendingtracking: U10000tracking_url:cost: '100.0'display_cost: "$100.00"shipped_at:- created_at: '2026-03-05T19:57:35.915Z'- updated_at: '2026-03-05T19:57:35.930Z'+ created_at: '2026-03-05T20:51:51.836Z'+ updated_at: '2026-03-05T20:51:51.851Z'shipping_method:id: shpm_UkLWZg9DAJname: UPS Ground@@ -1318,7 +1332,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_45- name: Collette Schiller+ name: Cindi Sipesaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -1421,6 +1435,13 @@ paths:required: trueschema:type: string+ - name: fields+ in: query+ required: false+ description: Comma-separated list of fields to include (e.g., name,slug,price).+ id is always included.+ schema:+ type: stringresponses:'200':description: countries found@@ -1490,6 +1511,13 @@ paths:description: Country ISO 3166-1 alpha-2 code (e.g., "US", "DE")schema:type: string+ - name: fields+ in: query+ required: false+ description: Comma-separated list of fields to include (e.g., name,slug,price).+ id is always included.+ schema:+ type: stringresponses:'200':description: country found@@ -1593,15 +1621,15 @@ paths:application/json:example:id: or_UkLWZg9DAJ- number: R299619364+ number: R018774175state: cartcheckout_steps:- address- delivery- payment- complete- token: yREKEGUwxbihqQFANqz3dEAcL8Md4Tnx3zo- email: [email protected]+ token: AJCtHZ9AsVyGMJn2KQnxuDEx2qCjYyJiLk7+ email: [email protected]special_instructions:currency: USDlocale: en@@ -1626,16 +1654,16 @@ paths:total: '110.0'display_total: "$110.00"completed_at:- created_at: '2026-03-05T19:57:39.602Z'- updated_at: '2026-03-05T19:57:39.723Z'+ created_at: '2026-03-05T20:51:55.709Z'+ updated_at: '2026-03-05T20:51:55.841Z'order_promotions: []line_items:- id: li_UkLWZg9DAJvariant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 86724- slug: product-86724+ name: Product 85135+ slug: product-85135options_text: ''price: '10.0'display_price: "$10.00"@@ -1654,23 +1682,23 @@ paths:discounted_amount: '10.0'display_discounted_amount: "$10.00"display_compare_at_amount: "$0.00"- created_at: '2026-03-05T19:57:39.642Z'- updated_at: '2026-03-05T19:57:39.642Z'+ created_at: '2026-03-05T20:51:55.752Z'+ updated_at: '2026-03-05T20:51:55.752Z'compare_at_amount:thumbnail_url:option_values: []digital_links: []shipments:- id: ship_UkLWZg9DAJ- number: H05607878929+ number: H97160480717state: pendingtracking: U10000tracking_url:cost: '100.0'display_cost: "$100.00"shipped_at:- created_at: '2026-03-05T19:57:39.648Z'- updated_at: '2026-03-05T19:57:39.662Z'+ created_at: '2026-03-05T20:51:55.760Z'+ updated_at: '2026-03-05T20:51:55.776Z'shipping_method:id: shpm_UkLWZg9DAJname: UPS Ground@@ -1678,7 +1706,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_65- name: Rosenda Mitchell+ name: Mindy Lindgrenaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -1700,12 +1728,12 @@ paths:- id: py_UkLWZg9DAJpayment_method_id: pm_UkLWZg9DAJstate: checkout- response_code: 1-SC-20260305195739714100- number: P2T6SH1I+ response_code: 1-SC-20260305205155831310+ number: PNUTNV82amount: '50.0'display_amount: "$50.00"- created_at: '2026-03-05T19:57:39.718Z'- updated_at: '2026-03-05T19:57:39.718Z'+ created_at: '2026-03-05T20:51:55.836Z'+ updated_at: '2026-03-05T20:51:55.836Z'source_type: store_creditsource_id: credit_UkLWZg9DAJsource:@@ -1857,15 +1885,15 @@ paths:application/json:example:id: or_UkLWZg9DAJ- number: R418108292+ number: R413664232state: cartcheckout_steps:- address- delivery- payment- complete- token: UMsYpMt99JP7ird1aaYURJhLALqquEktiKX- email: [email protected]+ token: vGon3DcBMUMtwZLQHR3SK2wi6t4bsdsjatX+ email: [email protected]special_instructions:currency: USDlocale: en@@ -1890,16 +1918,16 @@ paths:total: '110.0'display_total: "$110.00"completed_at:- created_at: '2026-03-05T19:57:41.478Z'- updated_at: '2026-03-05T19:57:41.592Z'+ created_at: '2026-03-05T20:51:57.626Z'+ updated_at: '2026-03-05T20:51:57.753Z'order_promotions: []line_items:- id: li_UkLWZg9DAJvariant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 112933- slug: product-112933+ name: Product 112828+ slug: product-112828options_text: ''price: '10.0'display_price: "$10.00"@@ -1918,23 +1946,23 @@ paths:discounted_amount: '10.0'display_discounted_amount: "$10.00"display_compare_at_amount: "$0.00"- created_at: '2026-03-05T19:57:41.511Z'- updated_at: '2026-03-05T19:57:41.586Z'+ created_at: '2026-03-05T20:51:57.662Z'+ updated_at: '2026-03-05T20:51:57.747Z'compare_at_amount:thumbnail_url:option_values: []digital_links: []shipments:- id: ship_UkLWZg9DAJ- number: H96356725536+ number: H14607407245state: pendingtracking: U10000tracking_url:cost: '100.0'display_cost: "$100.00"shipped_at:- created_at: '2026-03-05T19:57:41.517Z'- updated_at: '2026-03-05T19:57:41.531Z'+ created_at: '2026-03-05T20:51:57.669Z'+ updated_at: '2026-03-05T20:51:57.684Z'shipping_method:id: shpm_UkLWZg9DAJname: UPS Ground@@ -1942,7 +1970,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_77- name: Keisha Jacobson+ name: Naomi Reichertaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -2052,6 +2080,13 @@ paths:required: falseschema:type: integer+ - name: fields+ in: query+ required: false+ description: Comma-separated list of fields to include (e.g., name,slug,price).+ id is always included.+ schema:+ type: stringresponses:'200':description: credit cards found@@ -2135,6 +2170,13 @@ paths:required: trueschema:type: string+ - name: fields+ in: query+ required: false+ description: Comma-separated list of fields to include (e.g., name,slug,price).+ id is always included.+ schema:+ type: stringresponses:'200':description: credit card found@@ -2238,6 +2280,13 @@ paths:required: trueschema:type: string+ - name: fields+ in: query+ required: false+ description: Comma-separated list of fields to include (e.g., name,slug,price).+ id is always included.+ schema:+ type: stringresponses:'200':description: currencies found@@ -2329,6 +2378,13 @@ paths:description: Filter by completion date (after)schema:type: string+ - name: fields+ in: query+ required: false+ description: Comma-separated list of fields to include (e.g., name,slug,price).+ id is always included.+ schema:+ type: stringresponses:'200':description: orders found@@ -2337,15 +2393,15 @@ paths:example:data:- id: or_UkLWZg9DAJ- number: R474484394+ number: R384057392state: cartcheckout_steps:- address- delivery- payment- complete- token: 1ZJWRNLjpzKAHNxpaigugmaxQng6XbGign7- email: [email protected]+ token: 7LDmHowU3bnSrAcDX6nHax4YxizHSz85jYG+ email: [email protected]special_instructions:currency: USDlocale: en@@ -2370,16 +2426,16 @@ paths:total: '110.0'display_total: "$110.00"completed_at:- created_at: '2026-03-05T19:57:46.161Z'- updated_at: '2026-03-05T19:57:46.212Z'+ created_at: '2026-03-05T20:52:02.989Z'+ updated_at: '2026-03-05T20:52:03.048Z'order_promotions: []line_items:- id: li_UkLWZg9DAJvariant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 137762- slug: product-137762+ name: Product 139771+ slug: product-139771options_text: ''price: '10.0'display_price: "$10.00"@@ -2398,23 +2454,23 @@ paths:discounted_amount: '10.0'display_discounted_amount: "$10.00"display_compare_at_amount: "$0.00"- created_at: '2026-03-05T19:57:46.192Z'- updated_at: '2026-03-05T19:57:46.192Z'+ created_at: '2026-03-05T20:52:03.027Z'+ updated_at: '2026-03-05T20:52:03.027Z'compare_at_amount:thumbnail_url:option_values: []digital_links: []shipments:- id: ship_UkLWZg9DAJ- number: H48343233939+ number: H57800706639state: pendingtracking: U10000tracking_url:cost: '100.0'display_cost: "$100.00"shipped_at:- created_at: '2026-03-05T19:57:46.196Z'- updated_at: '2026-03-05T19:57:46.210Z'+ created_at: '2026-03-05T20:52:03.032Z'+ updated_at: '2026-03-05T20:52:03.046Z'shipping_method:id: shpm_UkLWZg9DAJname: UPS Ground@@ -2422,7 +2478,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_100- name: Leon Gerhold+ name: Sunni Nolanaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -2540,6 +2596,13 @@ paths:description: Bearer JWT tokenschema:type: string+ - name: fields+ in: query+ required: false+ description: Comma-separated list of fields to include (e.g., name,slug,price).+ id is always included.+ schema:+ type: stringresponses:'200':description: profile found@@ -2547,11 +2610,11 @@ paths:application/json:example:id: cus_UkLWZg9DAJ- email: [email protected]- first_name: Lincoln- last_name: Corkery- created_at: '2026-03-05T19:57:47.088Z'- updated_at: '2026-03-05T19:57:47.355Z'+ email: [email protected]+ first_name: Selina+ last_name: Braun+ created_at: '2026-03-05T20:52:03.997Z'+ updated_at: '2026-03-05T20:52:04.272Z'addresses:- id: addr_gbHJdmfrXBfirstname: John@@ -2674,11 +2737,11 @@ paths:application/json:example:id: cus_UkLWZg9DAJ- email: [email protected]+ email: [email protected]first_name: Updatedlast_name: Name- created_at: '2026-03-05T19:57:47.654Z'- updated_at: '2026-03-05T19:57:47.933Z'+ created_at: '2026-03-05T20:52:04.577Z'+ updated_at: '2026-03-05T20:52:04.881Z'addresses:- id: addr_gbHJdmfrXBfirstname: John@@ -2883,6 +2946,13 @@ paths:required: falseschema:type: integer+ - name: fields+ in: query+ required: false+ description: Comma-separated list of fields to include (e.g., name,slug,price).+ id is always included.+ schema:+ type: stringresponses:'200':description: gift cards found@@ -2891,7 +2961,7 @@ paths:example:data:- id: gc_UkLWZg9DAJ- code: 39F7481530B6E007+ code: 74787E7864A7D7D6state: activecurrency: USDamount: '10.0'@@ -2905,8 +2975,8 @@ paths:redeemed_at:expired: falseactive: true- created_at: '2026-03-05T19:57:51.001Z'- updated_at: '2026-03-05T19:57:51.001Z'+ created_at: '2026-03-05T20:52:08.061Z'+ updated_at: '2026-03-05T20:52:08.061Z'meta:page: 1limit: 25@@ -2975,6 +3045,13 @@ paths:required: trueschema:type: string+ - name: fields+ in: query+ required: false+ description: Comma-separated list of fields to include (e.g., name,slug,price).+ id is always included.+ schema:+ type: stringresponses:'200':description: gift card found@@ -2982,7 +3059,7 @@ paths:application/json:example:id: gc_UkLWZg9DAJ- code: 7B9CB917F7162ECC+ code: A0D9D98199161B6Fstate: activecurrency: USDamount: '10.0'@@ -2996,8 +3073,8 @@ paths:redeemed_at:expired: falseactive: true- created_at: '2026-03-05T19:57:52.079Z'- updated_at: '2026-03-05T19:57:52.079Z'+ created_at: '2026-03-05T20:52:09.205Z'+ updated_at: '2026-03-05T20:52:09.205Z'schema:"$ref": "#/components/schemas/StoreGiftCard"'404':@@ -3075,15 +3152,15 @@ paths:application/json:example:id: or_UkLWZg9DAJ- number: R993777998+ number: R757488277state: cartcheckout_steps:- address- delivery- payment- complete- token: WTF3gVveGRUh7Y7xYiE7NyZXzvYbKSpnDxN- email: [email protected]+ token: tp9jGzVuBPPag89ui3s8C1jL11uRKVZUJdE+ email: [email protected]special_instructions:currency: USDlocale: en@@ -3108,16 +3185,16 @@ paths:total: '29.99'display_total: "$29.99"completed_at:- created_at: '2026-03-05T19:57:53.833Z'- updated_at: '2026-03-05T19:57:53.926Z'+ created_at: '2026-03-05T20:52:11.095Z'+ updated_at: '2026-03-05T20:52:11.206Z'order_promotions: []line_items:- id: li_UkLWZg9DAJvariant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 233579- slug: product-233579+ name: Product 233631+ slug: product-233631options_text: ''price: '10.0'display_price: "$10.00"@@ -3136,8 +3213,8 @@ paths:discounted_amount: '10.0'display_discounted_amount: "$10.00"display_compare_at_amount: "$0.00"- created_at: '2026-03-05T19:57:53.861Z'- updated_at: '2026-03-05T19:57:53.861Z'+ created_at: '2026-03-05T20:52:11.134Z'+ updated_at: '2026-03-05T20:52:11.134Z'compare_at_amount:thumbnail_url:option_values: []@@ -3146,8 +3223,8 @@ paths:variant_id: variant_gbHJdmfrXBquantity: 1currency: USD- name: Product 249825- slug: product-249825+ name: Product 247643+ slug: product-247643options_text: ''price: '19.99'display_price: "$19.99"@@ -3166,8 +3243,8 @@ paths:discounted_amount: '19.99'display_discounted_amount: "$19.99"display_compare_at_amount: "$0.00"- created_at: '2026-03-05T19:57:53.902Z'- updated_at: '2026-03-05T19:57:53.902Z'+ created_at: '2026-03-05T20:52:11.180Z'+ updated_at: '2026-03-05T20:52:11.180Z'compare_at_amount:thumbnail_url:option_values: []@@ -3287,14 +3364,14 @@ paths:application/json:example:id: or_UkLWZg9DAJ- number: R176051424+ number: R312530041state: cartcheckout_steps:- address- delivery- complete- token: J7cqBNmtDQtnCUQkLcAxK4YvoWBHJnVtWkk- email: [email protected]+ token: y4fL1BLLRKKSLHguqsHqotwFiyvuxcQP1u4+ email: [email protected]special_instructions:currency: USDlocale: en@@ -3319,16 +3396,16 @@ paths:total: '0.0'display_total: "$0.00"completed_at:- created_at: '2026-03-05T19:57:56.243Z'- updated_at: '2026-03-05T19:57:56.275Z'+ created_at: '2026-03-05T20:52:13.605Z'+ updated_at: '2026-03-05T20:52:13.638Z'order_promotions: []line_items:- id: li_UkLWZg9DAJvariant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 282532- slug: product-282532+ name: Product 281770+ slug: product-281770options_text: ''price: '10.0'display_price: "$10.00"@@ -3347,8 +3424,8 @@ paths:discounted_amount: '10.0'display_discounted_amount: "$10.00"display_compare_at_amount: "$0.00"- created_at: '2026-03-05T19:57:56.274Z'- updated_at: '2026-03-05T19:57:56.290Z'+ created_at: '2026-03-05T20:52:13.637Z'+ updated_at: '2026-03-05T20:52:13.658Z'compare_at_amount:thumbnail_url:option_values: []@@ -3447,14 +3524,14 @@ paths:application/json:example:id: or_UkLWZg9DAJ- number: R796797841+ number: R482454754state: cartcheckout_steps:- address- delivery- complete- token: TWmayfCxcFJox9uRdNDpX3fvtcXUGLfZSV8- email: [email protected]+ token: 1RddwDe3rjETpJkoFGpnnYtfMQocvxM8WsF+ email: [email protected]special_instructions:currency: USDlocale: en@@ -3479,8 +3556,8 @@ paths:total: '0.0'display_total: "$0.00"completed_at:- created_at: '2026-03-05T19:57:56.834Z'- updated_at: '2026-03-05T19:57:56.888Z'+ created_at: '2026-03-05T20:52:14.259Z'+ updated_at: '2026-03-05T20:52:14.323Z'order_promotions: []line_items: []shipments: []@@ -3542,6 +3619,13 @@ paths:required: trueschema:type: string+ - name: fields+ in: query+ required: false+ description: Comma-separated list of fields to include (e.g., name,slug,price).+ id is always included.+ schema:+ type: stringresponses:'200':description: locales found@@ -3599,6 +3683,13 @@ paths:required: trueschema:type: string+ - name: fields+ in: query+ required: false+ description: Comma-separated list of fields to include (e.g., name,slug,price).+ id is always included.+ schema:+ type: stringresponses:'200':description: markets found@@ -3692,6 +3783,13 @@ paths:description: Market prefixed ID (e.g., "mkt_k5nR8xLq")schema:type: string+ - name: fields+ in: query+ required: false+ description: Comma-separated list of fields to include (e.g., name,slug,price).+ id is always included.+ schema:+ type: stringresponses:'200':description: market found@@ -3765,6 +3863,13 @@ paths:description: Country ISO 3166-1 alpha-2 code (e.g., "DE", "US")schema:type: string+ - name: fields+ in: query+ required: false+ description: Comma-separated list of fields to include (e.g., name,slug,price).+ id is always included.+ schema:+ type: stringresponses:'200':description: market resolved@@ -3837,6 +3942,13 @@ paths:description: Market prefixed IDschema:type: string+ - name: fields+ in: query+ required: false+ description: Comma-separated list of fields to include (e.g., name,slug,price).+ id is always included.+ schema:+ type: stringresponses:'200':description: countries found@@ -3900,6 +4012,13 @@ paths:description: Country ISO 3166-1 alpha-2 code (e.g., "DE")schema:type: string+ - name: fields+ in: query+ required: false+ description: Comma-separated list of fields to include (e.g., name,slug,price).+ id is always included.+ schema:+ type: stringresponses:'200':description: country found@@ -3978,6 +4097,13 @@ paths:description: Expand associations (line_items, shipments, payments)schema:type: string+ - name: fields+ in: query+ required: false+ description: Comma-separated list of fields to include (e.g., name,slug,price).+ id is always included.+ schema:+ type: stringresponses:'200':description: order found (guest with token)@@ -3985,14 +4111,14 @@ paths:application/json:example:id: or_gbHJdmfrXB- number: R511103264+ number: R150797295state: cartcheckout_steps:- address- delivery- payment- complete- token: ExiEnuA3Ux1qgi27JJQ1CDZuNjLcqf2VGYR+ token: 2PKtR3wLFY7VgAMic4axNin7ayPwbdew6UVemail:special_instructions:currency: USD@@ -4018,16 +4144,16 @@ paths:total: '110.0'display_total: "$110.00"completed_at:- created_at: '2026-03-05T19:57:59.153Z'- updated_at: '2026-03-05T19:57:59.206Z'+ created_at: '2026-03-05T20:52:16.877Z'+ updated_at: '2026-03-05T20:52:16.934Z'order_promotions: []line_items:- id: li_gbHJdmfrXBvariant_id: variant_gbHJdmfrXBquantity: 1currency: USD- name: Product 33318- slug: product-33318+ name: Product 333095+ slug: product-333095options_text: ''price: '10.0'display_price: "$10.00"@@ -4046,23 +4172,23 @@ paths:discounted_amount: '10.0'display_discounted_amount: "$10.00"display_compare_at_amount: "$0.00"- created_at: '2026-03-05T19:57:59.185Z'- updated_at: '2026-03-05T19:57:59.185Z'+ created_at: '2026-03-05T20:52:16.910Z'+ updated_at: '2026-03-05T20:52:16.910Z'compare_at_amount:thumbnail_url:option_values: []digital_links: []shipments:- id: ship_gbHJdmfrXB- number: H21406756833+ number: H29775377661state: pendingtracking: U10000tracking_url:cost: '100.0'display_cost: "$100.00"shipped_at:- created_at: '2026-03-05T19:57:59.192Z'- updated_at: '2026-03-05T19:57:59.203Z'+ created_at: '2026-03-05T20:52:16.918Z'+ updated_at: '2026-03-05T20:52:16.931Z'shipping_method:id: shpm_gbHJdmfrXBname: UPS Ground@@ -4070,7 +4196,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_159- name: Rosario Smitham+ name: Shamika Murazikaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -4205,15 +4331,15 @@ paths:application/json:example:id: or_UkLWZg9DAJ- number: R367519376+ number: R983107413state: cartcheckout_steps:- address- delivery- payment- complete- token: VBijCnhnMHAwtNrE1qpktsSMTdvnBwNarvq- email: [email protected]+ token: tbGu2hNzUX8CjC2uQ7bJM1j4L3aXRgc3wtC+ email: [email protected]special_instructions:currency: USDlocale: en@@ -4238,16 +4364,16 @@ paths:total: '110.0'display_total: "$110.00"completed_at:- created_at: '2026-03-05T19:58:01.841Z'- updated_at: '2026-03-05T19:58:01.910Z'+ created_at: '2026-03-05T20:52:19.745Z'+ updated_at: '2026-03-05T20:52:19.830Z'order_promotions: []line_items:- id: li_UkLWZg9DAJvariant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 372657- slug: product-372657+ name: Product 374845+ slug: product-374845options_text: ''price: '10.0'display_price: "$10.00"@@ -4266,23 +4392,23 @@ paths:discounted_amount: '10.0'display_discounted_amount: "$10.00"display_compare_at_amount: "$0.00"- created_at: '2026-03-05T19:58:01.874Z'- updated_at: '2026-03-05T19:58:01.874Z'+ created_at: '2026-03-05T20:52:19.787Z'+ updated_at: '2026-03-05T20:52:19.787Z'compare_at_amount:thumbnail_url:option_values: []digital_links: []shipments:- id: ship_UkLWZg9DAJ- number: H55085931047+ number: H03158757154state: pendingtracking: U10000tracking_url:cost: '100.0'display_cost: "$100.00"shipped_at:- created_at: '2026-03-05T19:58:01.879Z'- updated_at: '2026-03-05T19:58:01.893Z'+ created_at: '2026-03-05T20:52:19.793Z'+ updated_at: '2026-03-05T20:52:19.808Z'shipping_method:id: shpm_UkLWZg9DAJname: UPS Ground@@ -4290,7 +4416,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_178- name: Evon Ondricka+ name: Elvera Douglasaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -4501,15 +4627,15 @@ paths:application/json:example:id: or_gbHJdmfrXB- number: R416495846+ number: R758860871state: addresscheckout_steps:- address- delivery- payment- complete- token: KmbjZRU955ZXJWSPz2hpPDKoQeFYfJ2kYdN- email: [email protected]+ token: CstnucXnRuG4jHztKr4GfzJSugaQuk1t8JJ+ email: [email protected]special_instructions:currency: USDlocale: en@@ -4534,16 +4660,16 @@ paths:total: '110.0'display_total: "$110.00"completed_at:- created_at: '2026-03-05T19:58:03.177Z'- updated_at: '2026-03-05T19:58:03.248Z'+ created_at: '2026-03-05T20:52:21.150Z'+ updated_at: '2026-03-05T20:52:21.224Z'order_promotions: []line_items:- id: li_gbHJdmfrXBvariant_id: variant_gbHJdmfrXBquantity: 1currency: USD- name: Product 418814- slug: product-418814+ name: Product 419048+ slug: product-419048options_text: ''price: '10.0'display_price: "$10.00"@@ -4562,23 +4688,23 @@ paths:discounted_amount: '10.0'display_discounted_amount: "$10.00"display_compare_at_amount: "$0.00"- created_at: '2026-03-05T19:58:03.203Z'- updated_at: '2026-03-05T19:58:03.203Z'+ created_at: '2026-03-05T20:52:21.177Z'+ updated_at: '2026-03-05T20:52:21.177Z'compare_at_amount:thumbnail_url:option_values: []digital_links: []shipments:- id: ship_gbHJdmfrXB- number: H33502902897+ number: H09584115901state: pendingtracking: U10000tracking_url:cost: '100.0'display_cost: "$100.00"shipped_at:- created_at: '2026-03-05T19:58:03.210Z'- updated_at: '2026-03-05T19:58:03.221Z'+ created_at: '2026-03-05T20:52:21.184Z'+ updated_at: '2026-03-05T20:52:21.194Z'shipping_method:id: shpm_gbHJdmfrXBname: UPS Ground@@ -4586,7 +4712,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_188- name: Donella Morissette+ name: Sun Legrosaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -4711,15 +4837,15 @@ paths:application/json:example:id: or_gbHJdmfrXB- number: R821573763+ number: R123256863state: paymentcheckout_steps:- address- delivery- payment- complete- token: wL9s8xjqdqMGV6hLfrefx7jgViKVpHyXxgt- email: [email protected]+ token: oaWv5PydqvEmHBMjEADN1R2CDMKcQKWC8WA+ email: [email protected]special_instructions:currency: USDlocale: en@@ -4744,16 +4870,16 @@ paths:total: '29.99'display_total: "$29.99"completed_at:- created_at: '2026-03-05T19:58:04.471Z'- updated_at: '2026-03-05T19:58:04.694Z'+ created_at: '2026-03-05T20:52:22.498Z'+ updated_at: '2026-03-05T20:52:22.735Z'order_promotions: []line_items:- id: li_gbHJdmfrXBvariant_id: variant_gbHJdmfrXBquantity: 1currency: USD- name: Product 444640- slug: product-444640+ name: Product 446300+ slug: product-446300options_text: ''price: '19.99'display_price: "$19.99"@@ -4772,23 +4898,23 @@ paths:discounted_amount: '19.99'display_discounted_amount: "$19.99"display_compare_at_amount: "$0.00"- created_at: '2026-03-05T19:58:04.505Z'- updated_at: '2026-03-05T19:58:04.617Z'+ created_at: '2026-03-05T20:52:22.541Z'+ updated_at: '2026-03-05T20:52:22.661Z'compare_at_amount:thumbnail_url:option_values: []digital_links: []shipments:- id: ship_EfhxLZ9ck8- number: H42539203453+ number: H88829223762state: pendingtracking:tracking_url:cost: '10.0'display_cost: "$10.00"shipped_at:- created_at: '2026-03-05T19:58:04.650Z'- updated_at: '2026-03-05T19:58:04.665Z'+ created_at: '2026-03-05T20:52:22.686Z'+ updated_at: '2026-03-05T20:52:22.703Z'shipping_method:id: shpm_UkLWZg9DAJname: UPS Ground@@ -4796,7 +4922,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_198- name: Jonathon Robel+ name: Luz Howelladdress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -4920,15 +5046,15 @@ paths:application/json:example:id: or_gbHJdmfrXB- number: R361062581+ number: R780875872state: completecheckout_steps:- address- delivery- payment- complete- token: 2iQzb2x5zDjuo46Gd6HCsB2x6osWxxAHuR7- email: [email protected]+ token: FiDBzEteBd6KhuvTwNarfFwLWADn5Nr5jjz+ email: [email protected]special_instructions:currency: USDlocale: en@@ -4952,17 +5078,17 @@ paths:display_additional_tax_total: "$0.00"total: '29.99'display_total: "$29.99"- completed_at: '2026-03-05T19:58:05.469Z'- created_at: '2026-03-05T19:58:05.298Z'- updated_at: '2026-03-05T19:58:05.469Z'+ completed_at: '2026-03-05T20:52:23.549Z'+ created_at: '2026-03-05T20:52:23.355Z'+ updated_at: '2026-03-05T20:52:23.549Z'order_promotions: []line_items:- id: li_gbHJdmfrXBvariant_id: variant_gbHJdmfrXBquantity: 1currency: USD- name: Product 461029- slug: product-461029+ name: Product 469532+ slug: product-469532options_text: ''price: '19.99'display_price: "$19.99"@@ -4981,23 +5107,23 @@ paths:discounted_amount: '19.99'display_discounted_amount: "$19.99"display_compare_at_amount: "$0.00"- created_at: '2026-03-05T19:58:05.324Z'- updated_at: '2026-03-05T19:58:05.369Z'+ created_at: '2026-03-05T20:52:23.387Z'+ updated_at: '2026-03-05T20:52:23.435Z'compare_at_amount:thumbnail_url:option_values: []digital_links: []shipments:- id: ship_EfhxLZ9ck8- number: H49423776470+ number: H36400898276state: pendingtracking:tracking_url:cost: '10.0'display_cost: "$10.00"shipped_at:- created_at: '2026-03-05T19:58:05.386Z'- updated_at: '2026-03-05T19:58:05.462Z'+ created_at: '2026-03-05T20:52:23.453Z'+ updated_at: '2026-03-05T20:52:23.538Z'shipping_method:id: shpm_UkLWZg9DAJname: UPS Ground@@ -5005,7 +5131,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_204- name: Kim Gulgowski+ name: Gino O'Reillyaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -5038,11 +5164,11 @@ paths:payment_method_id: pm_UkLWZg9DAJstate: checkoutresponse_code: '12345'- number: P921GXLM+ number: P6KOZVDBamount: '29.99'display_amount: "$29.99"- created_at: '2026-03-05T19:58:05.439Z'- updated_at: '2026-03-05T19:58:05.439Z'+ created_at: '2026-03-05T20:52:23.511Z'+ updated_at: '2026-03-05T20:52:23.511Z'source_type: credit_cardsource_id: card_UkLWZg9DAJsource:@@ -5275,13 +5401,13 @@ paths:id: ps_gbHJdmfrXBstatus: pendingcurrency: USD- external_id: bogus_bff3b803518984b8c176fd93+ external_id: bogus_dd476c22401194ad1610c0eeexternal_data:- client_secret: bogus_secret_503a70deded891f4+ client_secret: bogus_secret_343b3bc480f678decustomer_external_id:expires_at:- created_at: '2026-03-05T19:58:07.869Z'- updated_at: '2026-03-05T19:58:07.869Z'+ created_at: '2026-03-05T20:52:26.080Z'+ updated_at: '2026-03-05T20:52:26.080Z'amount: '110.0'payment_method_id: pm_UkLWZg9DAJorder_id: or_UkLWZg9DAJ@@ -5386,13 +5512,13 @@ paths:id: ps_UkLWZg9DAJstatus: pendingcurrency: USD- external_id: bogus_57fb6547fe9187a1e8ceec44+ external_id: bogus_5c5ac23a3483b1e248de94c9external_data:client_secret: secret_123customer_external_id:expires_at:- created_at: '2026-03-05T19:58:09.084Z'- updated_at: '2026-03-05T19:58:09.084Z'+ created_at: '2026-03-05T20:52:27.322Z'+ updated_at: '2026-03-05T20:52:27.322Z'amount: '110.0'payment_method_id: pm_UkLWZg9DAJorder_id: or_UkLWZg9DAJ@@ -5449,13 +5575,13 @@ paths:id: ps_UkLWZg9DAJstatus: pendingcurrency: USD- external_id: bogus_2ed7885834fc465e915f15ff+ external_id: bogus_edd71b5019fcb41dd05fe015external_data:client_secret: secret_123customer_external_id:expires_at:- created_at: '2026-03-05T19:58:10.286Z'- updated_at: '2026-03-05T19:58:10.299Z'+ created_at: '2026-03-05T20:52:28.611Z'+ updated_at: '2026-03-05T20:52:28.625Z'amount: '50.0'payment_method_id: pm_UkLWZg9DAJorder_id: or_UkLWZg9DAJ@@ -5553,13 +5679,13 @@ paths:id: ps_UkLWZg9DAJstatus: completedcurrency: USD- external_id: bogus_4b7138c3ee0d6139a635e609+ external_id: bogus_e843e2cee3ff41b36d41df83external_data:client_secret: secret_123customer_external_id:expires_at:- created_at: '2026-03-05T19:58:10.905Z'- updated_at: '2026-03-05T19:58:10.920Z'+ created_at: '2026-03-05T20:52:29.280Z'+ updated_at: '2026-03-05T20:52:29.296Z'amount: '110.0'payment_method_id: pm_UkLWZg9DAJorder_id: or_UkLWZg9DAJ@@ -5639,11 +5765,11 @@ paths:example:id: pss_gbHJdmfrXBstatus: pending- external_id: bogus_seti_33f9b074e3bceca0bdd1ecd6- external_client_secret: bogus_seti_secret_5d1fd977f2f246c8+ external_id: bogus_seti_49fad4e0501e15b350034cd5+ external_client_secret: bogus_seti_secret_6337b10a934fd55bexternal_data: {}- created_at: '2026-03-05T19:58:12.086Z'- updated_at: '2026-03-05T19:58:12.086Z'+ created_at: '2026-03-05T20:52:30.534Z'+ updated_at: '2026-03-05T20:52:30.534Z'payment_method_id: pm_UkLWZg9DAJpayment_source_id:payment_source_type:@@ -5740,12 +5866,12 @@ paths:example:id: pss_UkLWZg9DAJstatus: pending- external_id: seti_test_5b6dbd34e1b8229a4478b381- external_client_secret: seti_secret_fb77f15d45800a48c4913814+ external_id: seti_test_b6b5052dd10cc2e088967a99+ external_client_secret: seti_secret_5ce04266e5a80449b766326aexternal_data:client_secret: secret_123- created_at: '2026-03-05T19:58:13.707Z'- updated_at: '2026-03-05T19:58:13.707Z'+ created_at: '2026-03-05T20:52:32.220Z'+ updated_at: '2026-03-05T20:52:32.220Z'payment_method_id: pm_UkLWZg9DAJpayment_source_id:payment_source_type:@@ -5818,12 +5944,12 @@ paths:example:id: pss_UkLWZg9DAJstatus: completed- external_id: seti_test_050a4fbdf2f1904cd5f745e2- external_client_secret: seti_secret_074a9565fcfd50e7faba9f8f+ external_id: seti_test_a4cb9d7c5515df6bb075add9+ external_client_secret: seti_secret_894b68bf67c840e036307434external_data:client_secret: secret_123- created_at: '2026-03-05T19:58:14.806Z'- updated_at: '2026-03-05T19:58:14.822Z'+ created_at: '2026-03-05T20:52:33.336Z'+ updated_at: '2026-03-05T20:52:33.351Z'payment_method_id: pm_UkLWZg9DAJpayment_source_id: card_UkLWZg9DAJpayment_source_type: Spree::CreditCard@@ -5906,11 +6032,11 @@ paths:payment_method_id: pm_UkLWZg9DAJstate: checkoutresponse_code: '12345'- number: PP04TICB+ number: PJZATDCNamount: '110.0'display_amount: "$110.00"- created_at: '2026-03-05T19:58:15.973Z'- updated_at: '2026-03-05T19:58:15.973Z'+ created_at: '2026-03-05T20:52:34.525Z'+ updated_at: '2026-03-05T20:52:34.525Z'source_type: credit_cardsource_id: card_UkLWZg9DAJsource:@@ -6004,11 +6130,11 @@ paths:payment_method_id: pm_UkLWZg9DAJstate: checkoutresponse_code: '12345'- number: PL3NR1H4+ number: PKC5SUNZamount: '110.0'display_amount: "$110.00"- created_at: '2026-03-05T19:58:17.226Z'- updated_at: '2026-03-05T19:58:17.226Z'+ created_at: '2026-03-05T20:52:35.812Z'+ updated_at: '2026-03-05T20:52:35.812Z'source_type: credit_cardsource_id: card_UkLWZg9DAJsource:@@ -6137,6 +6263,13 @@ paths:option_types)schema:type: string+ - name: fields+ in: query+ required: false+ description: Comma-separated list of fields to include (e.g., name,slug,price).+ id is always included.+ schema:+ type: stringresponses:'200':description: products found@@ -6145,18 +6278,18 @@ paths:example:data:- id: prod_UkLWZg9DAJ- name: Product 637899- description: |-- Saepe inventore illo atque occaecati tenetur impedit doloribus optio. Quisquam odit fuga consectetur aliquam minus. Nobis aliquid unde sint repellendus quisquam debitis occaecati cumque. Esse fugit distinctio corporis ab soluta quis eaque. Eius debitis voluptate ab eaque.- Id expedita dolorem voluptatibus molestiae dignissimos doloribus quisquam repellendus. Veniam commodi consequatur quaerat non eos inventore distinctio. Ratione officiis beatae itaque minus. Iusto error mollitia temporibus atque corporis deleniti dolore.- Odit nemo quo nostrum laboriosam in. Rerum doloremque labore quis vero. Ipsa voluptatem ratione debitis nostrum harum odio quia animi. Quasi maxime ex dolor odit recusandae adipisci quisquam nihil. Praesentium velit numquam accusamus sequi.- slug: product-637899+ name: Product 631938+ description: Voluptas est harum inventore accusamus vero quod tenetur+ quia. Assumenda quasi veritatis iste id. Amet vero quo tempora+ repellendus. Est illum sapiente vero cumque qui quis esse porro.+ Nemo natus sunt pariatur quos.+ slug: product-631938meta_description:meta_keywords:variant_count: 1- available_on: '2025-03-05T19:58:17.894Z'- created_at: '2026-03-05T19:58:17.909Z'- updated_at: '2026-03-05T19:58:17.955Z'+ available_on: '2025-03-05T20:52:36.543Z'+ created_at: '2026-03-05T20:52:36.559Z'+ updated_at: '2026-03-05T20:52:36.609Z'purchasable: truein_stock: falsebackorderable: true@@ -6176,20 +6309,17 @@ paths:price_list_id:original_price:- id: prod_gbHJdmfrXB- name: Product 645192+ name: Product 643372description: |-- Libero dicta doloremque laudantium sunt commodi assumenda aperiam neque. Iste quasi deserunt harum consectetur earum quis eligendi. Cupiditate magnam quas ullam soluta. Aut rem voluptatibus temporibus similique. Unde magni iusto commodi officiis omnis accusantium earum.- Unde dignissimos quia doloremque iusto corrupti quaerat. Optio impedit asperiores dicta ad voluptate. Quia a nihil velit dolores maxime quos quo.- Cupiditate quibusdam rem libero ut. Quaerat eius beatae tempore illo iste repudiandae corporis dolores. Rem id fugit nisi vero voluptatem sequi placeat. Veritatis ratione reiciendis quasi velit mollitia commodi.- Quibusdam veniam iusto est nemo laborum nisi dolorum. Optio reiciendis vel pariatur quae eaque. Velit illum mollitia ducimus molestias ex porro. Aspernatur corrupti soluta voluptatibus excepturi error.- Aperiam iusto temporibus aliquam excepturi veniam sint illo. Ipsa rerum ullam repudiandae quae qui. Dicta dolore saepe mollitia ab earum illo. A expedita excepturi recusandae placeat id.- slug: product-645192+ Id eos veniam suscipit nam quod. Pariatur natus nesciunt temporibus molestiae. In deleniti molestiae corrupti iusto vitae dolores. Aut perspiciatis sapiente sunt assumenda quis consequuntur saepe. Enim eaque optio nesciunt provident magni perferendis officiis.+ Dolore earum rem ratione eligendi. Distinctio maiores odit consequuntur soluta exercitationem natus ea magni. Dolores sequi reprehenderit explicabo excepturi numquam. Maiores quae distinctio necessitatibus vitae aut debitis autem.+ slug: product-643372meta_description:meta_keywords:variant_count: 0- available_on: '2025-03-05T19:58:17.960Z'- created_at: '2026-03-05T19:58:17.968Z'- updated_at: '2026-03-05T19:58:17.980Z'+ available_on: '2025-03-05T20:52:36.615Z'+ created_at: '2026-03-05T20:52:36.625Z'+ updated_at: '2026-03-05T20:52:36.637Z'purchasable: truein_stock: falsebackorderable: true@@ -6281,6 +6411,13 @@ paths:description: Comma-separated associations to expandschema:type: string+ - name: fields+ in: query+ required: false+ description: Comma-separated list of fields to include (e.g., name,slug,price).+ id is always included.+ schema:+ type: stringresponses:'200':description: product found by prefix ID@@ -6288,20 +6425,17 @@ paths:application/json:example:id: prod_UkLWZg9DAJ- name: Product 758073+ name: Product 75618description: |-- Vel cum accusantium nisi adipisci nostrum. Fugiat hic perspiciatis odio vero debitis. Voluptates ipsam expedita quo tempora rem voluptatibus maxime nobis. Nobis dolorem culpa molestias aut tenetur quasi. Velit quasi nam laudantium iusto mollitia a.- Ratione rerum aperiam architecto incidunt. Praesentium eum similique adipisci neque nemo commodi ex nisi. Laborum odit quos totam placeat voluptas itaque. Nesciunt rerum dolore tenetur voluptate maxime ullam voluptatem ab.- Laboriosam aperiam autem possimus quidem. Consequatur enim odit veritatis adipisci animi aut. Eum a magni in numquam mollitia dolorem delectus. Delectus omnis ad quae vel animi.- Explicabo laboriosam quibusdam ea temporibus repudiandae. Dicta doloribus porro veniam alias. Laboriosam temporibus nam nulla maxime atque vero quod dolores.- Ex aliquid quis sapiente sint quisquam. Eveniet nulla commodi incidunt ducimus. Sed culpa distinctio libero sunt nam alias. Cum molestiae autem animi amet.- slug: product-758073+ Tenetur reiciendis eos asperiores atque quae voluptatem. Autem optio doloremque error exercitationem. Molestias mollitia laudantium cum similique deleniti aspernatur exercitationem in. Architecto quia autem quasi ullam est ducimus commodi. Blanditiis aliquam laudantium iste iusto.+ Corporis harum ex nostrum odit praesentium aut iusto aspernatur. Necessitatibus ipsam quo repudiandae maxime ea. Facilis consequuntur sequi explicabo minima blanditiis molestias expedita quidem.+ slug: product-75618meta_description:meta_keywords:variant_count: 1- available_on: '2025-03-05T19:58:18.730Z'- created_at: '2026-03-05T19:58:18.745Z'- updated_at: '2026-03-05T19:58:18.777Z'+ available_on: '2025-03-05T20:52:37.461Z'+ created_at: '2026-03-05T20:52:37.475Z'+ updated_at: '2026-03-05T20:52:37.513Z'purchasable: truein_stock: falsebackorderable: true@@ -6518,15 +6652,15 @@ paths:example:data:- id: ship_UkLWZg9DAJ- number: H02432309319+ number: H09088674061state: pendingtracking: U10000tracking_url:cost: '100.0'display_cost: "$100.00"shipped_at:- created_at: '2026-03-05T19:58:21.248Z'- updated_at: '2026-03-05T19:58:21.261Z'+ created_at: '2026-03-05T20:52:40.154Z'+ updated_at: '2026-03-05T20:52:40.175Z'shipping_method:id: shpm_UkLWZg9DAJname: UPS Ground@@ -6534,7 +6668,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_290- name: Terrance Murray+ name: Otha Watersaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -6631,15 +6765,15 @@ paths:application/json:example:id: ship_UkLWZg9DAJ- number: H54933939929+ number: H66940748259state: pendingtracking: U10000tracking_url:cost: '100.0'display_cost: "$100.00"shipped_at:- created_at: '2026-03-05T19:58:22.485Z'- updated_at: '2026-03-05T19:58:22.502Z'+ created_at: '2026-03-05T20:52:41.395Z'+ updated_at: '2026-03-05T20:52:41.412Z'shipping_method:id: shpm_UkLWZg9DAJname: UPS Ground@@ -6647,7 +6781,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_298- name: Youlanda Green+ name: Dyan Bernhardaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -6736,15 +6870,15 @@ paths:application/json:example:id: or_UkLWZg9DAJ- number: R411976954+ number: R484741240state: deliverycheckout_steps:- address- delivery- payment- complete- token: TdzwAsDnfzYtQtKqL1eqzwpSHz7r75GA8ET- email: [email protected]+ token: PhecHPaty6dXnmwezmpk698qhY1JXW4HZ8n+ email: [email protected]special_instructions:currency: USDlocale: en@@ -6769,16 +6903,16 @@ paths:total: '110.0'display_total: "$110.00"completed_at:- created_at: '2026-03-05T19:58:23.720Z'- updated_at: '2026-03-05T19:58:23.850Z'+ created_at: '2026-03-05T20:52:42.608Z'+ updated_at: '2026-03-05T20:52:42.752Z'order_promotions: []line_items:- id: li_UkLWZg9DAJvariant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 1076368- slug: product-1076368+ name: Product 1077255+ slug: product-1077255options_text: ''price: '10.0'display_price: "$10.00"@@ -6797,23 +6931,23 @@ paths:discounted_amount: '10.0'display_discounted_amount: "$10.00"display_compare_at_amount: "$0.00"- created_at: '2026-03-05T19:58:23.752Z'- updated_at: '2026-03-05T19:58:23.752Z'+ created_at: '2026-03-05T20:52:42.654Z'+ updated_at: '2026-03-05T20:52:42.654Z'compare_at_amount:thumbnail_url:option_values: []digital_links: []shipments:- id: ship_UkLWZg9DAJ- number: H51872864917+ number: H37316972105state: pendingtracking: U10000tracking_url:cost: '100.0'display_cost: "$100.00"shipped_at:- created_at: '2026-03-05T19:58:23.765Z'- updated_at: '2026-03-05T19:58:23.846Z'+ created_at: '2026-03-05T20:52:42.668Z'+ updated_at: '2026-03-05T20:52:42.750Z'shipping_method:id: shpm_UkLWZg9DAJname: UPS Ground@@ -6821,7 +6955,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_306- name: Dylan Prohaska+ name: Courtney Moenaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -6957,15 +7091,15 @@ paths:application/json:example:id: or_UkLWZg9DAJ- number: R518034414+ number: R684676898state: cartcheckout_steps:- address- delivery- payment- complete- token: DomjvQ2Pvz2dkRgWeDJNXf1tz9UMAh655V7- email: [email protected]+ token: zGFBwQ4bs42sYW1pXbboGBup14ByQizvzmK+ email: [email protected]special_instructions:currency: USDlocale: en@@ -6990,16 +7124,16 @@ paths:total: '110.0'display_total: "$110.00"completed_at:- created_at: '2026-03-05T19:58:25.030Z'- updated_at: '2026-03-05T19:58:25.085Z'+ created_at: '2026-03-05T20:52:43.940Z'+ updated_at: '2026-03-05T20:52:43.995Z'order_promotions: []line_items:- id: li_UkLWZg9DAJvariant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 1094653- slug: product-1094653+ name: Product 1096529+ slug: product-1096529options_text: ''price: '10.0'display_price: "$10.00"@@ -7018,23 +7152,23 @@ paths:discounted_amount: '10.0'display_discounted_amount: "$10.00"display_compare_at_amount: "$0.00"- created_at: '2026-03-05T19:58:25.063Z'- updated_at: '2026-03-05T19:58:25.063Z'+ created_at: '2026-03-05T20:52:43.972Z'+ updated_at: '2026-03-05T20:52:43.972Z'compare_at_amount:thumbnail_url:option_values: []digital_links: []shipments:- id: ship_UkLWZg9DAJ- number: H33583535151+ number: H83092299658state: pendingtracking: U10000tracking_url:cost: '100.0'display_cost: "$100.00"shipped_at:- created_at: '2026-03-05T19:58:25.068Z'- updated_at: '2026-03-05T19:58:25.083Z'+ created_at: '2026-03-05T20:52:43.978Z'+ updated_at: '2026-03-05T20:52:43.992Z'shipping_method:id: shpm_UkLWZg9DAJname: UPS Ground@@ -7042,7 +7176,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_314- name: Cletus Upton+ name: Quinn Klingaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -7064,12 +7198,12 @@ paths:- id: py_UkLWZg9DAJpayment_method_id: pm_UkLWZg9DAJstate: checkout- response_code: 1-SC-20260305195825389794- number: PPGR8S98+ response_code: 1-SC-20260305205244307338+ number: PTKOV2NGamount: '10.0'display_amount: "$10.00"- created_at: '2026-03-05T19:58:25.393Z'- updated_at: '2026-03-05T19:58:25.393Z'+ created_at: '2026-03-05T20:52:44.311Z'+ updated_at: '2026-03-05T20:52:44.311Z'source_type: store_creditsource_id: credit_UkLWZg9DAJsource:@@ -7199,15 +7333,15 @@ paths:application/json:example:id: or_UkLWZg9DAJ- number: R434847515+ number: R215300548state: cartcheckout_steps:- address- delivery- payment- complete- token: PxLSVgGDwdqBGSu1Qy8ifLjgAySLCYMGtCX- email: [email protected]+ token: neuK7hLBZyXTziFn1Urac5hZ7DtRaqsc9bL+ email: [email protected]special_instructions:currency: USDlocale: en@@ -7232,16 +7366,16 @@ paths:total: '110.0'display_total: "$110.00"completed_at:- created_at: '2026-03-05T19:58:26.561Z'- updated_at: '2026-03-05T19:58:26.612Z'+ created_at: '2026-03-05T20:52:45.533Z'+ updated_at: '2026-03-05T20:52:45.585Z'order_promotions: []line_items:- id: li_UkLWZg9DAJvariant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 1119400- slug: product-1119400+ name: Product 1111640+ slug: product-1111640options_text: ''price: '10.0'display_price: "$10.00"@@ -7260,23 +7394,23 @@ paths:discounted_amount: '10.0'display_discounted_amount: "$10.00"display_compare_at_amount: "$0.00"- created_at: '2026-03-05T19:58:26.593Z'- updated_at: '2026-03-05T19:58:26.593Z'+ created_at: '2026-03-05T20:52:45.564Z'+ updated_at: '2026-03-05T20:52:45.564Z'compare_at_amount:thumbnail_url:option_values: []digital_links: []shipments:- id: ship_UkLWZg9DAJ- number: H74782414754+ number: H43034632735state: pendingtracking: U10000tracking_url:cost: '100.0'display_cost: "$100.00"shipped_at:- created_at: '2026-03-05T19:58:26.598Z'- updated_at: '2026-03-05T19:58:26.610Z'+ created_at: '2026-03-05T20:52:45.569Z'+ updated_at: '2026-03-05T20:52:45.583Z'shipping_method:id: shpm_UkLWZg9DAJname: UPS Ground@@ -7284,7 +7418,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_322- name: Alina Veum+ name: Barbie DuBuqueaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -7386,6 +7520,13 @@ paths:description: Expand root taxonschema:type: string+ - name: fields+ in: query+ required: false+ description: Comma-separated list of fields to include (e.g., name,slug,price).+ id is always included.+ schema:+ type: stringresponses:'200':description: taxonomies found@@ -7396,32 +7537,32 @@ paths:- id: txnmy_UkLWZg9DAJname: Categoriesposition: 1- created_at: '2026-03-05T19:57:24.166Z'- updated_at: '2026-03-05T19:57:24.187Z'+ created_at: '2026-03-05T20:51:39.794Z'+ updated_at: '2026-03-05T20:51:39.815Z'root_id: txn_UkLWZg9DAJ- id: txnmy_gbHJdmfrXBname: Brandsposition: 2- created_at: '2026-03-05T19:57:24.188Z'- updated_at: '2026-03-05T19:57:24.196Z'+ created_at: '2026-03-05T20:51:39.816Z'+ updated_at: '2026-03-05T20:51:39.823Z'root_id: txn_gbHJdmfrXB- id: txnmy_EfhxLZ9ck8name: Collectionsposition: 3- created_at: '2026-03-05T19:57:24.197Z'- updated_at: '2026-03-05T19:57:24.280Z'+ created_at: '2026-03-05T20:51:39.824Z'+ updated_at: '2026-03-05T20:51:39.906Z'root_id: txn_EfhxLZ9ck8- id: txnmy_VqXmZF31wYname: taxonomy_11position: 4- created_at: '2026-03-05T19:58:26.645Z'- updated_at: '2026-03-05T19:58:26.654Z'+ created_at: '2026-03-05T20:52:45.622Z'+ updated_at: '2026-03-05T20:52:45.630Z'root_id: txn_OIJLhNcSbf- id: txnmy_uw2YK1rnl0name: taxonomy_12position: 5- created_at: '2026-03-05T19:58:26.655Z'- updated_at: '2026-03-05T19:58:26.663Z'+ created_at: '2026-03-05T20:52:45.631Z'+ updated_at: '2026-03-05T20:52:45.639Z'root_id: txn_AXs1igzRC6meta:page: 1@@ -7492,6 +7633,13 @@ paths:description: Expand taxonsschema:type: string+ - name: fields+ in: query+ required: false+ description: Comma-separated list of fields to include (e.g., name,slug,price).+ id is always included.+ schema:+ type: stringresponses:'200':description: taxonomy found@@ -7501,8 +7649,8 @@ paths:id: txnmy_VqXmZF31wYname: taxonomy_17position: 4- created_at: '2026-03-05T19:58:26.890Z'- updated_at: '2026-03-05T19:58:26.898Z'+ created_at: '2026-03-05T20:52:45.877Z'+ updated_at: '2026-03-05T20:52:45.885Z'root_id: txn_OIJLhNcSbfschema:"$ref": "#/components/schemas/StoreTaxonomy"@@ -7562,6 +7710,13 @@ paths:description: Filter by nameschema:type: string+ - name: fields+ in: query+ required: false+ description: Comma-separated list of fields to include (e.g., name,slug,price).+ id is always included.+ schema:+ type: stringresponses:'200':description: taxons found@@ -7578,8 +7733,8 @@ paths:meta_description:meta_keywords:children_count: 0- created_at: '2026-03-05T19:57:24.177Z'- updated_at: '2026-03-05T19:57:24.185Z'+ created_at: '2026-03-05T20:51:39.805Z'+ updated_at: '2026-03-05T20:51:39.813Z'parent_id:taxonomy_id: txnmy_UkLWZg9DAJdescription: ''@@ -7598,8 +7753,8 @@ paths:meta_description:meta_keywords:children_count: 0- created_at: '2026-03-05T19:57:24.190Z'- updated_at: '2026-03-05T19:57:24.194Z'+ created_at: '2026-03-05T20:51:39.818Z'+ updated_at: '2026-03-05T20:51:39.822Z'parent_id:taxonomy_id: txnmy_gbHJdmfrXBdescription: ''@@ -7618,8 +7773,8 @@ paths:meta_description:meta_keywords:children_count: 2- created_at: '2026-03-05T19:57:24.199Z'- updated_at: '2026-03-05T19:57:24.280Z'+ created_at: '2026-03-05T20:51:39.826Z'+ updated_at: '2026-03-05T20:51:39.905Z'parent_id:taxonomy_id: txnmy_EfhxLZ9ck8description: ''@@ -7638,8 +7793,8 @@ paths:meta_description:meta_keywords:children_count: 0- created_at: '2026-03-05T19:57:24.212Z'- updated_at: '2026-03-05T19:57:24.214Z'+ created_at: '2026-03-05T20:51:39.837Z'+ updated_at: '2026-03-05T20:51:39.839Z'parent_id: txn_EfhxLZ9ck8taxonomy_id: txnmy_EfhxLZ9ck8description: ''@@ -7658,8 +7813,8 @@ paths:meta_description:meta_keywords:children_count: 0- created_at: '2026-03-05T19:57:24.223Z'- updated_at: '2026-03-05T19:57:24.224Z'+ created_at: '2026-03-05T20:51:39.850Z'+ updated_at: '2026-03-05T20:51:39.852Z'parent_id: txn_EfhxLZ9ck8taxonomy_id: txnmy_EfhxLZ9ck8description: ''@@ -7678,8 +7833,8 @@ paths:meta_description:meta_keywords:children_count: 1- created_at: '2026-03-05T19:58:27.244Z'- updated_at: '2026-03-05T19:58:27.296Z'+ created_at: '2026-03-05T20:52:46.351Z'+ updated_at: '2026-03-05T20:52:46.416Z'parent_id:taxonomy_id: txnmy_VqXmZF31wYdescription: ''@@ -7698,8 +7853,8 @@ paths:meta_description:meta_keywords:children_count: 1- created_at: '2026-03-05T19:58:27.250Z'- updated_at: '2026-03-05T19:58:27.296Z'+ created_at: '2026-03-05T20:52:46.360Z'+ updated_at: '2026-03-05T20:52:46.415Z'parent_id: txn_OIJLhNcSbftaxonomy_id: txnmy_VqXmZF31wYdescription: ''@@ -7718,8 +7873,8 @@ paths:meta_description:meta_keywords:children_count: 0- created_at: '2026-03-05T19:58:27.258Z'- updated_at: '2026-03-05T19:58:27.268Z'+ created_at: '2026-03-05T20:52:46.374Z'+ updated_at: '2026-03-05T20:52:46.383Z'parent_id: txn_AXs1igzRC6taxonomy_id: txnmy_VqXmZF31wYdescription: ''@@ -7799,6 +7954,13 @@ paths:description: Expand associations (children, products, parent)schema:type: string+ - name: fields+ in: query+ required: false+ description: Comma-separated list of fields to include (e.g., name,slug,price).+ id is always included.+ schema:+ type: stringresponses:'200':description: taxon found by prefix ID@@ -7814,8 +7976,8 @@ paths:meta_description:meta_keywords:children_count: 1- created_at: '2026-03-05T19:58:27.815Z'- updated_at: '2026-03-05T19:58:27.857Z'+ created_at: '2026-03-05T20:52:46.939Z'+ updated_at: '2026-03-05T20:52:46.979Z'parent_id: txn_OIJLhNcSbftaxonomy_id: txnmy_VqXmZF31wYdescription: ''@@ -7928,6 +8090,13 @@ paths:description: Filter to only in-stock productsschema:type: boolean+ - name: fields+ in: query+ required: false+ description: Comma-separated list of fields to include (e.g., name,slug,price).+ id is always included.+ schema:+ type: stringresponses:'200':description: products found@@ -7936,17 +8105,17 @@ paths:example:data:- id: prod_UkLWZg9DAJ- name: Product 1197784+ name: Product 1199704description: |-- Ratione architecto voluptatibus reiciendis repudiandae facere sequi dignissimos. Aliquam maxime quaerat aut incidunt. Velit corporis et alias officia dolor. Eaque voluptatem incidunt nostrum amet error vitae deserunt magni. Quos natus inventore quae nam praesentium quisquam quod hic.- Maxime sit atque iure similique cum non. Maxime optio soluta nemo qui distinctio. Nemo aliquam voluptas sint deleniti.- slug: product-1197784+ Voluptatem ullam rerum repellat officiis debitis repellendus placeat. Ut aliquam atque quas totam doloribus ipsa at. Voluptas iusto sit sunt explicabo. Dolorem quo cupiditate molestias tempore laudantium eligendi a.+ Repudiandae rem quo totam assumenda aliquam nihil dolores id. Blanditiis doloribus ex qui distinctio. Recusandae quibusdam cumque officiis incidunt suscipit.+ slug: product-1199704meta_description:meta_keywords:variant_count: 0- available_on: '2025-03-05T19:58:28.650Z'- created_at: '2026-03-05T19:58:28.669Z'- updated_at: '2026-03-05T19:58:28.686Z'+ available_on: '2025-03-05T20:52:47.754Z'+ created_at: '2026-03-05T20:52:47.772Z'+ updated_at: '2026-03-05T20:52:47.789Z'purchasable: truein_stock: falsebackorderable: true@@ -8048,6 +8217,13 @@ paths:required: falseschema:type: integer+ - name: fields+ in: query+ required: false+ description: Comma-separated list of fields to include (e.g., name,slug,price).+ id is always included.+ schema:+ type: stringresponses:'200':description: wishlists found@@ -8057,9 +8233,9 @@ paths:data:- id: wl_UkLWZg9DAJname: My Wishlist- token: sETKKpXn8LhTis7Qu847GyVa- created_at: '2026-03-05T19:58:29.762Z'- updated_at: '2026-03-05T19:58:29.762Z'+ token: Cq6wTpzK7zXxCp4PYvkYczc8+ created_at: '2026-03-05T20:52:48.879Z'+ updated_at: '2026-03-05T20:52:48.879Z'is_default: falseis_private: truemeta:@@ -8135,9 +8311,9 @@ paths:example:id: wl_gbHJdmfrXBname: Birthday Ideas- token: qFT9r7SN2zP5Tk8mGumTYbTg- created_at: '2026-03-05T19:58:31.060Z'- updated_at: '2026-03-05T19:58:31.060Z'+ token: DtGPV4SfuTYGJGKnFWNq4N5m+ created_at: '2026-03-05T20:52:50.211Z'+ updated_at: '2026-03-05T20:52:50.211Z'is_default: falseis_private: trueschema:@@ -8218,6 +8394,13 @@ paths:description: Expand wished_itemsschema:type: string+ - name: fields+ in: query+ required: false+ description: Comma-separated list of fields to include (e.g., name,slug,price).+ id is always included.+ schema:+ type: stringresponses:'200':description: wishlist found@@ -8226,9 +8409,9 @@ paths:example:id: wl_UkLWZg9DAJname: My Wishlist- token: kvqMXVFcmUjgf7JapJwDXJUa- created_at: '2026-03-05T19:58:32.249Z'- updated_at: '2026-03-05T19:58:32.249Z'+ token: Qe86YPEEMEL2WTFJgawgNZBn+ created_at: '2026-03-05T20:52:51.399Z'+ updated_at: '2026-03-05T20:52:51.399Z'is_default: falseis_private: trueschema:@@ -8290,9 +8473,9 @@ paths:example:id: wl_UkLWZg9DAJname: Updated Name- token: ViwVZJcZgAMPiXWjNL9mFsSW- created_at: '2026-03-05T19:58:33.436Z'- updated_at: '2026-03-05T19:58:33.480Z'+ token: oR9tivPY5Pyg9kJYdSddnDRu+ created_at: '2026-03-05T20:52:52.555Z'+ updated_at: '2026-03-05T20:52:52.595Z'is_default: falseis_private: trueschema:@@ -8404,8 +8587,8 @@ paths:variant_id: variant_gbHJdmfrXBwishlist_id: wl_UkLWZg9DAJquantity: 1- created_at: '2026-03-05T19:58:34.706Z'- updated_at: '2026-03-05T19:58:34.706Z'+ created_at: '2026-03-05T20:52:53.787Z'+ updated_at: '2026-03-05T20:52:53.787Z'variant:id: variant_gbHJdmfrXBproduct_id: prod_gbHJdmfrXB@@ -8414,8 +8597,8 @@ paths:options_text: ''track_inventory: trueimage_count: 0- created_at: '2026-03-05T19:58:34.675Z'- updated_at: '2026-03-05T19:58:34.687Z'+ created_at: '2026-03-05T20:52:53.760Z'+ updated_at: '2026-03-05T20:52:53.770Z'thumbnail:purchasable: truein_stock: falsediff --git a/docs/developer/sdk/store/products.mdx b/docs/developer/sdk/store/products.mdxindex 8f43274dc4..b999db2297 100644--- a/docs/developer/sdk/store/products.mdx+++ b/docs/developer/sdk/store/products.mdx@@ -41,6 +41,23 @@ const products = await client.store.products.list({});```+### Field Selection++Request only specific fields to reduce payload size:++```typescript+const products = await client.store.products.list({+ fields: ['name', 'slug', 'price', 'display_price'],+});++const product = await client.store.products.get('spree-tote', {+ fields: ['name', 'slug', 'price'],+ expand: ['images'], // expanded associations return all their fields+});+```++`id` is always included. Omit `fields` to return all fields.+### Get a ProductFetch a single product by slug or prefix ID:diff --git a/packages/sdk/.changeset/add-field-selection.md b/packages/sdk/.changeset/add-field-selection.mdnew file mode 100644index 0000000000..8af6328f66--- /dev/null+++ b/packages/sdk/.changeset/add-field-selection.md@@ -0,0 +1,5 @@+---+"@spree/sdk": patch+---++Added `fields` parameter support for field selection. Pass `fields: ['name', 'slug', 'price']` to `list` and `get` methods to receive only specific fields in the response. The `id` field is always included. Omit `fields` to return all fields (default behavior).diff --git a/packages/sdk/src/params.ts b/packages/sdk/src/params.tsindex d9cf0d2ada..a9f81f2e43 100644--- a/packages/sdk/src/params.ts+++ b/packages/sdk/src/params.ts@@ -1,7 +1,7 @@/*** Keys that are passed through to the API without wrapping in q[...].*/-const PASSTHROUGH_KEYS = new Set(['page', 'limit', 'expand', 'sort']);+const PASSTHROUGH_KEYS = new Set(['page', 'limit', 'expand', 'sort', 'fields']);type ParamValue = string | number | boolean | (string | number)[] | undefined;diff --git a/packages/sdk/src/store-client.ts b/packages/sdk/src/store-client.tsindex 170fa54a5a..44d0988ea1 100644--- a/packages/sdk/src/store-client.ts+++ b/packages/sdk/src/store-client.ts@@ -1,10 +1,13 @@import type { RequestFn, RequestOptions } from './request';import { transformListParams } from './params';-/** Join expand array into comma-separated string for the API */-function expandParams(params?: { expand?: string[] }): Record<string, string> | undefined {- if (!params?.expand?.length) return undefined;- return { expand: params.expand.join(',') };+/** Serialize expand/fields arrays into comma-separated query params */+function getParams(params?: { expand?: string[]; fields?: string[] }): Record<string, string> | undefined {+ if (!params) return undefined;+ const result: Record<string, string> = {};+ if (params.expand?.length) result.expand = params.expand.join(',');+ if (params.fields?.length) result.fields = params.fields.join(',');+ return Object.keys(result).length > 0 ? result : undefined;}import type {AuthTokens,@@ -102,12 +105,12 @@ export class StoreClient {*/get: (idOrSlug: string,- params?: { expand?: string[] },+ params?: { expand?: string[]; fields?: string[] },options?: RequestOptions): Promise<StoreProduct> =>this.request<StoreProduct>('GET', `/products/${idOrSlug}`, {...options,- params: expandParams(params),+ params: getParams(params),}),/**@@ -146,12 +149,12 @@ export class StoreClient {*/get: (id: string,- params?: { expand?: string[] },+ params?: { expand?: string[]; fields?: string[] },options?: RequestOptions): Promise<StoreTaxonomy> =>this.request<StoreTaxonomy>('GET', `/taxonomies/${id}`, {...options,- params: expandParams(params),+ params: getParams(params),}),};@@ -173,12 +176,12 @@ export class StoreClient {*/get: (idOrPermalink: string,- params?: { expand?: string[] },+ params?: { expand?: string[]; fields?: string[] },options?: RequestOptions): Promise<StoreTaxon> =>this.request<StoreTaxon>('GET', `/taxons/${idOrPermalink}`, {...options,- params: expandParams(params),+ params: getParams(params),}),/**@@ -224,12 +227,12 @@ export class StoreClient {*/get: (iso: string,- params?: { expand?: string[] },+ params?: { expand?: string[]; fields?: string[] },options?: RequestOptions): Promise<StoreCountry> =>this.request<StoreCountry>('GET', `/countries/${iso}`, {...options,- params: expandParams(params),+ params: getParams(params),}),};@@ -303,13 +306,13 @@ export class StoreClient {get: (marketId: string,iso: string,- params?: { expand?: string[] },+ params?: { expand?: string[]; fields?: string[] },options?: RequestOptions): Promise<StoreCountry> =>this.request<StoreCountry>('GET',`/markets/${marketId}/countries/${iso}`,- { ...options, params: expandParams(params) }+ { ...options, params: getParams(params) }),},};@@ -355,12 +358,12 @@ export class StoreClient {*/get: (idOrNumber: string,- params?: { expand?: string[] },+ params?: { expand?: string[]; fields?: string[] },options?: RequestOptions): Promise<StoreOrder> =>this.request<StoreOrder>('GET', `/orders/${idOrNumber}`, {...options,- params: expandParams(params),+ params: getParams(params),}),/**@@ -905,12 +908,12 @@ export class StoreClient {*/get: (id: string,- params?: { expand?: string[] },+ params?: { expand?: string[]; fields?: string[] },options?: RequestOptions): Promise<StoreWishlist> =>this.request<StoreWishlist>('GET', `/wishlists/${id}`, {...options,- params: expandParams(params),+ params: getParams(params),}),/**diff --git a/packages/sdk/src/types/index.ts b/packages/sdk/src/types/index.tsindex b4fe42d202..5a93a8ac86 100644--- a/packages/sdk/src/types/index.ts+++ b/packages/sdk/src/types/index.ts@@ -69,6 +69,8 @@ export interface ListParams {sort?: string;/** Associations to expand, e.g. ['variants', 'images'] */expand?: string[];+ /** Fields to include in response, e.g. ['name', 'slug', 'price']. Omit to return all fields. 'id' is always included. */+ fields?: string[];}export interface ProductListParams extends ListParams {diff --git a/packages/sdk/tests/params.test.ts b/packages/sdk/tests/params.test.tsindex 6a0b90b163..0c95bd19df 100644--- a/packages/sdk/tests/params.test.ts+++ b/packages/sdk/tests/params.test.ts@@ -78,6 +78,19 @@ describe('transformListParams', () => {});});+ it('joins fields array into comma-separated string', () => {+ const result = transformListParams({ fields: ['name', 'slug', 'price'] });+ expect(result).toEqual({ fields: 'name,slug,price' });+ });++ it('passes fields through without wrapping in q[...]', () => {+ const result = transformListParams({ fields: ['name', 'slug'], name_cont: 'shirt' });+ expect(result).toEqual({+ fields: 'name,slug',+ 'q[name_cont]': 'shirt',+ });+ });+it('handles a full combined query', () => {const result = transformListParams({page: 1,diff --git a/spree/api/TODO.md b/spree/api/TODO.mddeleted file mode 100644index 6e4174ebeb..0000000000--- a/spree/api/TODO.md+++ /dev/null@@ -1,234 +0,0 @@----- Spree Store API & SDK Review — Competitive Analysis-- Executive Summary-- The Spree v3 API and SDK have a solid foundation — prefixed IDs, flat JSON, consistent snake_case, good TypeScript types, and a clean resource-oriented SDK. But there are meaningful- gaps compared to Stripe (gold standard) and modern ecommerce competitors (Medusa v2, Saleor, Vendure).-- ---- 1. OpenAPI Spec Quality Issues-- Orphan schemas polluting the spec-- The Store API spec contains 19 orphan schemas that no endpoint references: StoreNewsletterSubscriber, StoreExport, StoreImport, StoreStockItem, StoreReport, StorePromotion, etc. These- appear to be auto-generated by typelizer but serve no purpose in the Store API. Admin schemas (AdminCustomer, AdminOrder, AdminProduct, etc.) are also leaked into the Store spec,- exposing sensitive field names like last_sign_in_ip, considered_risky, internal_note.-- Fix: Filter typelizer output to only include schemas referenced by Store API endpoints.-- PaginationMeta schema is incomplete-- The schema defines only 4 fields (page, limit, count, pages), but every response example includes 9 fields (from, to, in, previous, next are undocumented). SDKs and code generators- will miss these fields.-- Missing "Markets" tag-- 5 market endpoints use the Markets tag, but it's missing from the top-level tags array and x-tagGroups.-- Inconsistent order_token parameter naming-- Some endpoints use order_token, others use token for the same concept (guest order access). This is a real stumbling block for developers.-- Monetary amount type inconsistency-- - StoreShipment.cost → string ("100.0")- - StoreShippingRate.cost → number (100.0)- - StoreGiftCard.amount → number- - StoreOrder.total → string-- Stripe consistently uses integer cents for all amounts. Medusa uses number. Pick one and be consistent.-- StorePayment.source_type enum has empty entry-- enum:- - credit_card- - store_credit- - payment_source- - # ← null/empty-- ---- 2. API Design Gaps vs. Stripe-- ┌───────────────────────┬─────────────────────────────────────────────────────┬───────────────────────────────┬─────────────────────────────────────────────────────────────────┐- │ Feature │ Stripe │ Spree v3 │ Gap │- ├───────────────────────┼─────────────────────────────────────────────────────┼───────────────────────────────┼─────────────────────────────────────────────────────────────────┤- │ Pagination │ Cursor-based (starting_after, has_more) │ Offset-based (page, limit) │ Offset breaks with concurrent writes; no auto-pagination in SDK │- ├───────────────────────┼─────────────────────────────────────────────────────┼───────────────────────────────┼─────────────────────────────────────────────────────────────────┤- │ Versioning │ Date-based with account pinning (2024-12-18.acacia) │ None (just /v3/) │ Breaking changes will hurt existing integrations │- ├───────────────────────┼─────────────────────────────────────────────────────┼───────────────────────────────┼─────────────────────────────────────────────────────────────────┤- │ Idempotency │ Idempotency-Key header, 24h TTL │ None │ Cart operations, payments can create duplicates on retry │- ├───────────────────────┼─────────────────────────────────────────────────────┼───────────────────────────────┼─────────────────────────────────────────────────────────────────┤- │ Error doc_url │ Every error links to docs │ Not present │ Developers must search docs manually │- ├───────────────────────┼─────────────────────────────────────────────────────┼───────────────────────────────┼─────────────────────────────────────────────────────────────────┤- │ Error request_id │ Every response includes req_abc123 │ Not present │ No way to correlate errors with server logs │- ├───────────────────────┼─────────────────────────────────────────────────────┼───────────────────────────────┼─────────────────────────────────────────────────────────────────┤- │ expand[] depth │ Up to 4 levels deep, dot notation │ Single level, comma-separated │ Can't do expand=line_items.variant.product │- ├───────────────────────┼─────────────────────────────────────────────────────┼───────────────────────────────┼─────────────────────────────────────────────────────────────────┤- │ Metadata │ 50 key-value pairs on every resource, searchable │ Only some resources │ Can't attach custom data to orders/products from storefront │- ├───────────────────────┼─────────────────────────────────────────────────────┼───────────────────────────────┼─────────────────────────────────────────────────────────────────┤- │ Webhook signing │ HMAC-SHA256 with replay protection │ Not in Store API spec │ Webhook consumers can't verify authenticity │- ├───────────────────────┼─────────────────────────────────────────────────────┼───────────────────────────────┼─────────────────────────────────────────────────────────────────┤- │ SDK auto-pagination │ for await (const item of stripe.products.list()) │ Manual page iteration │ Tedious for large datasets │- ├───────────────────────┼─────────────────────────────────────────────────────┼───────────────────────────────┼─────────────────────────────────────────────────────────────────┤- │ Rate limiting headers │ Retry-After, RateLimit-* │ Not documented │ Clients can't implement proper backoff │- └───────────────────────┴─────────────────────────────────────────────────────┴───────────────────────────────┴─────────────────────────────────────────────────────────────────┘-- ---- 3. API Design Gaps vs. Ecommerce Competitors-- vs. Medusa v2-- ┌───────────────────────┬──────────────────────────────────────────────────────┬───────────────────────────────────┬───────────────────────────────────────────────────────────────┐- │ Feature │ Medusa │ Spree │ Gap │- ├───────────────────────┼──────────────────────────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────────────────────────────────┤- │ Field selection │ fields=+title,-desc,*variants (additive/subtractive) │ expand=variants (all-or-nothing) │ Spree returns full objects or nothing — over-fetching problem │- ├───────────────────────┼──────────────────────────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────────────────────────────────┤- │ Sorting syntax │ order=-created_at (minus = desc) │ sort=price desc (space-separated) │ Medusa's is more standard (many APIs use - prefix) │- ├───────────────────────┼──────────────────────────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────────────────────────────────┤- │ Sort on all endpoints │ Yes │ Only product listings │ Can't sort orders, addresses, wishlists │- ├───────────────────────┼──────────────────────────────────────────────────────┼───────────────────────────────────┼───────────────────────────────────────────────────────────────┤- │ SDK streaming │ fetchStream() for SSE │ None │ No real-time progress for long operations │- └───────────────────────┴──────────────────────────────────────────────────────┴───────────────────────────────────┴───────────────────────────────────────────────────────────────┘-- vs. Saleor-- ┌───────────────────────────────┬───────────────────────────────────────────────────┬──────────────────────────┬─────────────────────────────────────────────┐- │ Feature │ Saleor │ Spree │ Gap │- ├───────────────────────────────┼───────────────────────────────────────────────────┼──────────────────────────┼─────────────────────────────────────────────┤- │ JWKS endpoint │ /.well-known/jwks.json for stateless verification │ None │ Can't verify tokens at the edge/CDN │- ├───────────────────────────────┼───────────────────────────────────────────────────┼──────────────────────────┼─────────────────────────────────────────────┤- │ Webhook payload customization │ GraphQL subscription syntax defines payload │ Fixed payloads │ Webhook consumers get everything or nothing │- ├───────────────────────────────┼───────────────────────────────────────────────────┼──────────────────────────┼─────────────────────────────────────────────┤- │ Modular auth SDK │ Tiny auth-sdk (3kB) handles all auth flows │ Auth baked into full SDK │ Can't use auth separately from the full SDK │- └───────────────────────────────┴───────────────────────────────────────────────────┴──────────────────────────┴─────────────────────────────────────────────┘-- vs. Vendure-- ┌──────────────────────────┬───────────────────────────────────────────────────────────────┬───────────────────────────┬───────────────────────────────────────────────────────────┐- │ Feature │ Vendure │ Spree │ Gap │- ├──────────────────────────┼───────────────────────────────────────────────────────────────┼───────────────────────────┼───────────────────────────────────────────────────────────┤- │ Typed error results │ Union types: Order | CouponCodeExpiredError | │ Generic error object │ Clients can't exhaustively handle all error cases at │- │ │ CouponCodeInvalidError │ │ compile time │- ├──────────────────────────┼───────────────────────────────────────────────────────────────┼───────────────────────────┼───────────────────────────────────────────────────────────┤- │ Automatic filter │ All entity fields auto-filterable/sortable │ Manually defined per │ Adding a new field doesn't make it filterable │- │ generation │ │ endpoint │ │- └──────────────────────────┴───────────────────────────────────────────────────────────────┴───────────────────────────┴───────────────────────────────────────────────────────────┘-- ---- 4. SDK-Specific Issues-- client.store.store.get() reads terribly-- The double .store.store. is confusing — first is the API scope, second is the resource. Consider aliasing to client.store.info.get() or client.store.storeInfo.get().-- SDK quickstart docs show non-existent methods-- The docs show client.store.orders.list() but this doesn't exist — it's client.store.customer.orders.list(). This will be developers' first frustration.-- publishableKey is required even for Admin-only usage-- The SpreeClientConfig interface marks publishableKey as required. Admin-only consumers must still provide one.-- No request/response interceptors-- No middleware pattern for:- - Automatic token refresh on 401- - Request/response logging- - Analytics- - Custom error transformation-- Stripe, Medusa, and most modern SDKs support interceptors.-- No auto-pagination-- Stripe:- for await (const product of stripe.products.list()) { ... }- Spree: manual page loop with meta.pages check. This is table-stakes DX in 2026.-- Inconsistent list response shapes-- Some lists return PaginatedResponse<T> (with meta), others return bare { data: T[] } (countries, currencies, locales, markets). Consumers can't rely on a uniform shape.-- StoreCountry.market typed as unknown-- No type safety for an important association.-- Admin client is an empty shell-- AdminClient is exported publicly but has zero functionality. This misleads developers who see it in autocomplete.-- ---- 5. Checkout Flow DX Issues-- No clear state machine documentation-- Vendure's AddingItems → ArrangingPayment → PaymentSettled makes the order lifecycle crystal clear. Spree's next/advance/complete endpoints don't communicate what states exist or what's- required at each step. The API spec doesn't document the checkout state machine.-- No eligibleShippingMethods equivalent-- Vendure has a dedicated query for "what shipping methods can this order use?" Spree requires listing shipments, then looking at shipping rates — an indirect path.-- Payment Sessions abstraction is good but underdocumented-- The payment session flow (create → update → complete) is a solid abstraction that decouples payment providers, but the OpenAPI spec doesn't explain the flow or when each step is- needed.-- ---- 6. Missing Endpoints Compared to Competitors-- ┌────────────────────────────┬────────────────────────┬─────────────────┬─────────────────┬────────────────────────┐- │ Feature │ Medusa │ Saleor │ Vendure │ Spree │- ├────────────────────────────┼────────────────────────┼─────────────────┼─────────────────┼────────────────────────┤- │ Product reviews/ratings │ ✓ │ Via apps │ Via plugins │ Missing │- ├────────────────────────────┼────────────────────────┼─────────────────┼─────────────────┼────────────────────────┤- │ Product search (full-text) │ ✓ (dedicated endpoint) │ ✓ │ ✓ │ Only Ransack name_cont │- ├────────────────────────────┼────────────────────────┼─────────────────┼─────────────────┼────────────────────────┤- │ Return/refund requests │ ✓ │ ✓ │ ✓ │ Missing from Store API │- ├────────────────────────────┼────────────────────────┼─────────────────┼─────────────────┼────────────────────────┤- │ Order cancellation │ ✓ │ ✓ │ ✓ │ Missing from Store API │- ├────────────────────────────┼────────────────────────┼─────────────────┼─────────────────┼────────────────────────┤- │ Notifications/preferences │ ✓ │ ✓ │ Via plugins │ Missing │- ├────────────────────────────┼────────────────────────┼─────────────────┼─────────────────┼────────────────────────┤- │ Recently viewed │ ✗ │ ✗ │ ✗ │ Missing │- ├────────────────────────────┼────────────────────────┼─────────────────┼─────────────────┼────────────────────────┤- │ Collections/curated lists │ ✓ │ ✓ (Collections) │ ✓ (Collections) │ Only via Taxons │- └────────────────────────────┴────────────────────────┴─────────────────┴─────────────────┴────────────────────────┘-- ---- 7. Top Priority Recommendations-- Critical (breaks developer trust)-- 1. Fix orphan/admin schemas in Store API spec — leaking AdminCustomer with last_sign_in_ip is a security smell- 2. Fix PaginationMeta schema — add the 5 missing fields- 3. Standardize order_token/token parameter naming — pick one- 4. Fix SDK docs — orders.list() doesn't exist, will be first thing developers try- 5. Standardize monetary types — all strings or all numbers, document the choice-- High Priority (competitive gap)-- 6. Add request_id to every response — essential for debugging- 7. Add idempotency key support — at minimum for payment operations- 8. Add auto-pagination to SDK — for await iterator pattern- 9. Document the checkout state machine — what states exist, what transitions are valid, what's required at each step- 10. Add field selection — even basic fields=name,slug,price to reduce payload size (Medusa's +/-/* operators are the gold standard here)-- Medium Priority (DX polish)-- 11. Add doc_url to error responses — link to relevant docs page- 12. Add rate limiting headers — X-RateLimit-Limit, X-RateLimit-Remaining, Retry-After- 13. Support nested expand — expand=line_items.variant.product- 14. Add sort parameter to all list endpoints — not just products- 15. Add request/response interceptors to SDK- 16. Rename client.store.store to client.store.storeInfo or similar- 17. Don't export empty AdminClient — or add a deprecation/coming-soon notice-- Nice to Have (forward-looking)-- 18. API versioning strategy — date-based like Stripe, or at least a migration guide system- 19. Customer-facing returns/cancellation endpoints- 20. Full-text search endpoint — beyond Ransack _cont- 21. JWKS endpoint — for edge/CDN token verification- 22. Cursor-based pagination option — alongside offset for high-volume endpointsdiff --git a/spree/api/app/controllers/concerns/spree/api/v3/http_caching.rb b/spree/api/app/controllers/concerns/spree/api/v3/http_caching.rbindex 5f3afbba82..b927422f74 100644--- a/spree/api/app/controllers/concerns/spree/api/v3/http_caching.rb+++ b/spree/api/app/controllers/concerns/spree/api/v3/http_caching.rb@@ -75,6 +75,7 @@ module Spreecollection.map(&:updated_at).max&.to_i,@pagy&.count,params[:expand],+ params[:fields],params[:q]&.to_json,params[:page],params[:limit],diff --git a/spree/api/app/controllers/concerns/spree/api/v3/resource_serializer.rb b/spree/api/app/controllers/concerns/spree/api/v3/resource_serializer.rbindex 009f0aadf0..648649ccbc 100644--- a/spree/api/app/controllers/concerns/spree/api/v3/resource_serializer.rb+++ b/spree/api/app/controllers/concerns/spree/api/v3/resource_serializer.rb@@ -8,12 +8,16 @@ module Spree# Serialize a single resourcedef serialize_resource(resource)- serializer_class.new(resource, params: serializer_params).to_h+ hash = serializer_class.new(resource, params: serializer_params).to_h+ filter_fields(hash)end# Serialize a collection of resourcesdef serialize_collection(collection)- collection.map { |item| serializer_class.new(item, params: serializer_params).to_h }+ collection.map do |item|+ hash = serializer_class.new(item, params: serializer_params).to_h+ filter_fields(hash)+ endend# Params passed to serializers@@ -35,6 +39,25 @@ module Spreeexpand_param.to_s.split(',').map(&:strip)end++ # Parse fields parameter into a Set for O(1) lookup.+ # Returns nil when no fields param is present (return all fields).+ # Supports: ?fields=name,slug,price+ def fields_list+ return @fields_list if defined?(@fields_list)++ fields_param = params[:fields].presence+ @fields_list = fields_param ? fields_param.to_s.split(',').map(&:strip).to_set : nil+ end++ # Filter serialized hash to only include requested fields.+ # The 'id' field is always included.+ def filter_fields(hash)+ fields = fields_list+ return hash unless fields++ hash.select { |key, _| key == 'id' || fields.include?(key) }+ endendendenddiff --git a/spree/api/spec/controllers/concerns/spree/api/v3/field_selection_spec.rb b/spree/api/spec/controllers/concerns/spree/api/v3/field_selection_spec.rbnew file mode 100644index 0000000000..a68f9c29e3--- /dev/null+++ b/spree/api/spec/controllers/concerns/spree/api/v3/field_selection_spec.rb@@ -0,0 +1,83 @@+require 'spec_helper'++RSpec.describe Spree::Api::V3::Store::ProductsController, type: :controller do+ render_views++ include_context 'API v3 Store'++ let!(:product) { create(:product, stores: [store], status: 'active') }++ before do+ request.headers['X-Spree-Api-Key'] = api_key.token+ end++ describe 'Spree::Api::V3::ResourceSerializer field selection' do+ describe 'GET #index' do+ it 'returns only requested fields plus id' do+ get :index, params: { fields: 'name,slug' }++ data = JSON.parse(response.body)['data']+ data.each do |item|+ expect(item.keys).to contain_exactly('id', 'name', 'slug')+ end+ end++ it 'returns all fields when fields param is absent' do+ get :index++ data = JSON.parse(response.body)['data']+ expect(data.first.keys).to include('id', 'name', 'slug', 'description')+ end+ end++ describe 'GET #show' do+ it 'returns only requested fields plus id' do+ get :show, params: { id: product.prefixed_id, fields: 'name,slug' }++ data = JSON.parse(response.body)+ expect(data.keys).to contain_exactly('id', 'name', 'slug')+ end++ it 'always includes id even when not requested' do+ get :show, params: { id: product.prefixed_id, fields: 'name' }++ data = JSON.parse(response.body)+ expect(data).to have_key('id')+ expect(data.keys).to contain_exactly('id', 'name')+ end++ it 'returns all fields when fields param is absent' do+ get :show, params: { id: product.prefixed_id }++ data = JSON.parse(response.body)+ expect(data.keys).to include('id', 'name', 'slug', 'description')+ end+ end++ describe 'fields with expand' do+ it 'includes expanded associations when listed in fields' do+ get :show, params: {+ id: product.prefixed_id,+ fields: 'name,variants',+ expand: 'variants'+ }++ data = JSON.parse(response.body)+ expect(data.keys).to contain_exactly('id', 'name', 'variants')+ expect(data['variants']).to be_an(Array)+ end++ it 'excludes expanded associations when not listed in fields' do+ get :show, params: {+ id: product.prefixed_id,+ fields: 'name',+ expand: 'variants'+ }++ data = JSON.parse(response.body)+ expect(data.keys).to contain_exactly('id', 'name')+ expect(data).not_to have_key('variants')+ end+ end+ end+enddiff --git a/spree/api/spec/integration/spree/api/v3/store/addresses_spec.rb b/spree/api/spec/integration/spree/api/v3/store/addresses_spec.rbindex 215bd1782f..032ccb406e 100644--- a/spree/api/spec/integration/spree/api/v3/store/addresses_spec.rb+++ b/spree/api/spec/integration/spree/api/v3/store/addresses_spec.rb@@ -26,6 +26,8 @@ RSpec.describe 'Addresses API', type: :request, swagger_doc: 'api-reference/storparameter name: 'Authorization', in: :header, type: :string, required: trueparameter name: :page, in: :query, type: :integer, required: falseparameter name: :limit, in: :query, type: :integer, required: false+ parameter name: :fields, in: :query, type: :string, required: false,+ description: 'Comma-separated list of fields to include (e.g., name,slug,price). id is always included.'response '200', 'addresses found' dolet(:'x-spree-api-key') { api_key.token }@@ -149,6 +151,8 @@ RSpec.describe 'Addresses API', type: :request, swagger_doc: 'api-reference/storparameter name: 'x-spree-api-key', in: :header, type: :string, required: trueparameter name: 'Authorization', in: :header, type: :string, required: trueparameter name: :id, in: :path, type: :string, required: true+ parameter name: :fields, in: :query, type: :string, required: false,+ description: 'Comma-separated list of fields to include (e.g., name,slug,price). id is always included.'response '200', 'address found' dolet(:'x-spree-api-key') { api_key.token }diff --git a/spree/api/spec/integration/spree/api/v3/store/countries_spec.rb b/spree/api/spec/integration/spree/api/v3/store/countries_spec.rbindex c4dd996dbd..a2783d7a50 100644--- a/spree/api/spec/integration/spree/api/v3/store/countries_spec.rb+++ b/spree/api/spec/integration/spree/api/v3/store/countries_spec.rb@@ -25,6 +25,8 @@ RSpec.describe 'Countries API', type: :request, swagger_doc: 'api-reference/storJSparameter name: 'x-spree-api-key', in: :header, type: :string, required: true+ parameter name: :fields, in: :query, type: :string, required: false,+ description: 'Comma-separated list of fields to include (e.g., name,slug,price). id is always included.'response '200', 'countries found' dolet(:'x-spree-api-key') { api_key.token }@@ -76,6 +78,8 @@ RSpec.describe 'Countries API', type: :request, swagger_doc: 'api-reference/storparameter name: 'x-spree-api-key', in: :header, type: :string, required: trueparameter name: :iso, in: :path, type: :string, required: true,description: 'Country ISO 3166-1 alpha-2 code (e.g., "US", "DE")'+ parameter name: :fields, in: :query, type: :string, required: false,+ description: 'Comma-separated list of fields to include (e.g., name,slug,price). id is always included.'response '200', 'country found' dolet(:'x-spree-api-key') { api_key.token }diff --git a/spree/api/spec/integration/spree/api/v3/store/credit_cards_spec.rb b/spree/api/spec/integration/spree/api/v3/store/credit_cards_spec.rbindex 689e6fb841..08b3f7b453 100644--- a/spree/api/spec/integration/spree/api/v3/store/credit_cards_spec.rb+++ b/spree/api/spec/integration/spree/api/v3/store/credit_cards_spec.rb@@ -24,6 +24,8 @@ RSpec.describe 'Credit Cards API', type: :request, swagger_doc: 'api-reference/sparameter name: 'Authorization', in: :header, type: :string, required: trueparameter name: :page, in: :query, type: :integer, required: falseparameter name: :limit, in: :query, type: :integer, required: false+ parameter name: :fields, in: :query, type: :string, required: false,+ description: 'Comma-separated list of fields to include (e.g., name,slug,price). id is always included.'response '200', 'credit cards found' dolet(:'x-spree-api-key') { api_key.token }@@ -69,6 +71,8 @@ RSpec.describe 'Credit Cards API', type: :request, swagger_doc: 'api-reference/sparameter name: 'x-spree-api-key', in: :header, type: :string, required: trueparameter name: 'Authorization', in: :header, type: :string, required: trueparameter name: :id, in: :path, type: :string, required: true+ parameter name: :fields, in: :query, type: :string, required: false,+ description: 'Comma-separated list of fields to include (e.g., name,slug,price). id is always included.'response '200', 'credit card found' dolet(:'x-spree-api-key') { api_key.token }diff --git a/spree/api/spec/integration/spree/api/v3/store/currencies_spec.rb b/spree/api/spec/integration/spree/api/v3/store/currencies_spec.rbindex 3fc12566ff..106c20eb81 100644--- a/spree/api/spec/integration/spree/api/v3/store/currencies_spec.rb+++ b/spree/api/spec/integration/spree/api/v3/store/currencies_spec.rb@@ -23,6 +23,8 @@ RSpec.describe 'Currencies API', type: :request, swagger_doc: 'api-reference/stoJSparameter name: 'x-spree-api-key', in: :header, type: :string, required: true+ parameter name: :fields, in: :query, type: :string, required: false,+ description: 'Comma-separated list of fields to include (e.g., name,slug,price). id is always included.'response '200', 'currencies found' dolet(:'x-spree-api-key') { api_key.token }diff --git a/spree/api/spec/integration/spree/api/v3/store/customer_orders_spec.rb b/spree/api/spec/integration/spree/api/v3/store/customer_orders_spec.rbindex e02e2ee83b..9383f6f747 100644--- a/spree/api/spec/integration/spree/api/v3/store/customer_orders_spec.rb+++ b/spree/api/spec/integration/spree/api/v3/store/customer_orders_spec.rb@@ -34,6 +34,8 @@ RSpec.describe 'Customer Orders API', type: :request, swagger_doc: 'api-referencdescription: 'Filter by order state'parameter name: 'q[completed_at_gte]', in: :query, type: :string, required: false,description: 'Filter by completion date (after)'+ parameter name: :fields, in: :query, type: :string, required: false,+ description: 'Comma-separated list of fields to include (e.g., name,slug,price). id is always included.'response '200', 'orders found' dolet(:'x-spree-api-key') { api_key.token }diff --git a/spree/api/spec/integration/spree/api/v3/store/customers_spec.rb b/spree/api/spec/integration/spree/api/v3/store/customers_spec.rbindex b998b9d13d..a9fc75a788 100644--- a/spree/api/spec/integration/spree/api/v3/store/customers_spec.rb+++ b/spree/api/spec/integration/spree/api/v3/store/customers_spec.rb@@ -21,6 +21,8 @@ RSpec.describe 'Customers API', type: :request, swagger_doc: 'api-reference/storparameter name: 'x-spree-api-key', in: :header, type: :string, required: trueparameter name: 'Authorization', in: :header, type: :string, required: true,description: 'Bearer JWT token'+ parameter name: :fields, in: :query, type: :string, required: false,+ description: 'Comma-separated list of fields to include (e.g., name,slug,price). id is always included.'response '200', 'profile found' dolet(:'x-spree-api-key') { api_key.token }diff --git a/spree/api/spec/integration/spree/api/v3/store/gift_cards_spec.rb b/spree/api/spec/integration/spree/api/v3/store/gift_cards_spec.rbindex 7381c90e97..d37ce15542 100644--- a/spree/api/spec/integration/spree/api/v3/store/gift_cards_spec.rb+++ b/spree/api/spec/integration/spree/api/v3/store/gift_cards_spec.rb@@ -24,6 +24,8 @@ RSpec.describe 'Gift Cards API', type: :request, swagger_doc: 'api-reference/stoparameter name: 'Authorization', in: :header, type: :string, required: trueparameter name: :page, in: :query, type: :integer, required: falseparameter name: :limit, in: :query, type: :integer, required: false+ parameter name: :fields, in: :query, type: :string, required: false,+ description: 'Comma-separated list of fields to include (e.g., name,slug,price). id is always included.'response '200', 'gift cards found' dolet(:'x-spree-api-key') { api_key.token }@@ -69,6 +71,8 @@ RSpec.describe 'Gift Cards API', type: :request, swagger_doc: 'api-reference/stoparameter name: 'x-spree-api-key', in: :header, type: :string, required: trueparameter name: 'Authorization', in: :header, type: :string, required: trueparameter name: :id, in: :path, type: :string, required: true+ parameter name: :fields, in: :query, type: :string, required: false,+ description: 'Comma-separated list of fields to include (e.g., name,slug,price). id is always included.'response '200', 'gift card found' dolet(:'x-spree-api-key') { api_key.token }diff --git a/spree/api/spec/integration/spree/api/v3/store/locales_spec.rb b/spree/api/spec/integration/spree/api/v3/store/locales_spec.rbindex ca0e36ec39..4cce8785dd 100644--- a/spree/api/spec/integration/spree/api/v3/store/locales_spec.rb+++ b/spree/api/spec/integration/spree/api/v3/store/locales_spec.rb@@ -23,6 +23,8 @@ RSpec.describe 'Locales API', type: :request, swagger_doc: 'api-reference/store.JSparameter name: 'x-spree-api-key', in: :header, type: :string, required: true+ parameter name: :fields, in: :query, type: :string, required: false,+ description: 'Comma-separated list of fields to include (e.g., name,slug,price). id is always included.'response '200', 'locales found' dolet(:'x-spree-api-key') { api_key.token }diff --git a/spree/api/spec/integration/spree/api/v3/store/markets_spec.rb b/spree/api/spec/integration/spree/api/v3/store/markets_spec.rbindex 864501a137..02a1586e1a 100644--- a/spree/api/spec/integration/spree/api/v3/store/markets_spec.rb+++ b/spree/api/spec/integration/spree/api/v3/store/markets_spec.rb@@ -25,6 +25,8 @@ RSpec.describe 'Markets API', type: :request, swagger_doc: 'api-reference/store.JSparameter name: 'x-spree-api-key', in: :header, type: :string, required: true+ parameter name: :fields, in: :query, type: :string, required: false,+ description: 'Comma-separated list of fields to include (e.g., name,slug,price). id is always included.'response '200', 'markets found' dolet(:'x-spree-api-key') { api_key.token }@@ -80,6 +82,8 @@ RSpec.describe 'Markets API', type: :request, swagger_doc: 'api-reference/store.parameter name: 'x-spree-api-key', in: :header, type: :string, required: trueparameter name: :id, in: :path, type: :string, required: true,description: 'Market prefixed ID (e.g., "mkt_k5nR8xLq")'+ parameter name: :fields, in: :query, type: :string, required: false,+ description: 'Comma-separated list of fields to include (e.g., name,slug,price). id is always included.'response '200', 'market found' dolet(:'x-spree-api-key') { api_key.token }@@ -122,6 +126,8 @@ RSpec.describe 'Markets API', type: :request, swagger_doc: 'api-reference/store.parameter name: 'x-spree-api-key', in: :header, type: :string, required: trueparameter name: :country, in: :query, type: :string, required: true,description: 'Country ISO 3166-1 alpha-2 code (e.g., "DE", "US")'+ parameter name: :fields, in: :query, type: :string, required: false,+ description: 'Comma-separated list of fields to include (e.g., name,slug,price). id is always included.'response '200', 'market resolved' dolet(:'x-spree-api-key') { api_key.token }@@ -163,6 +169,8 @@ RSpec.describe 'Markets API', type: :request, swagger_doc: 'api-reference/store.parameter name: 'x-spree-api-key', in: :header, type: :string, required: trueparameter name: :market_id, in: :path, type: :string, required: true,description: 'Market prefixed ID'+ parameter name: :fields, in: :query, type: :string, required: false,+ description: 'Comma-separated list of fields to include (e.g., name,slug,price). id is always included.'response '200', 'countries found' dolet(:'x-spree-api-key') { api_key.token }@@ -200,6 +208,8 @@ RSpec.describe 'Markets API', type: :request, swagger_doc: 'api-reference/store.description: 'Market prefixed ID'parameter name: :id, in: :path, type: :string, required: true,description: 'Country ISO 3166-1 alpha-2 code (e.g., "DE")'+ parameter name: :fields, in: :query, type: :string, required: false,+ description: 'Comma-separated list of fields to include (e.g., name,slug,price). id is always included.'response '200', 'country found' dolet(:'x-spree-api-key') { api_key.token }diff --git a/spree/api/spec/integration/spree/api/v3/store/orders_spec.rb b/spree/api/spec/integration/spree/api/v3/store/orders_spec.rbindex da8ee024a8..4a033c86d2 100644--- a/spree/api/spec/integration/spree/api/v3/store/orders_spec.rb+++ b/spree/api/spec/integration/spree/api/v3/store/orders_spec.rb@@ -31,6 +31,8 @@ RSpec.describe 'Orders API', type: :request, swagger_doc: 'api-reference/store.ydescription: 'Order token for guest access'parameter name: :expand, in: :query, type: :string, required: false,description: 'Expand associations (line_items, shipments, payments)'+ parameter name: :fields, in: :query, type: :string, required: false,+ description: 'Comma-separated list of fields to include (e.g., name,slug,price). id is always included.'response '200', 'order found (authenticated)' dolet(:'x-spree-api-key') { api_key.token }diff --git a/spree/api/spec/integration/spree/api/v3/store/products_spec.rb b/spree/api/spec/integration/spree/api/v3/store/products_spec.rbindex 5892230042..d02f06a9c1 100644--- a/spree/api/spec/integration/spree/api/v3/store/products_spec.rb+++ b/spree/api/spec/integration/spree/api/v3/store/products_spec.rb@@ -65,6 +65,8 @@ RSpec.describe 'Products API', type: :request, swagger_doc: 'api-reference/storedescription: 'Filter to only in-stock products'parameter name: :expand, in: :query, type: :string, required: false,description: 'Comma-separated associations to expand (variants, images, taxons, option_types)'+ parameter name: :fields, in: :query, type: :string, required: false,+ description: 'Comma-separated list of fields to include (e.g., name,slug,price). id is always included.'response '200', 'products found' dolet(:'x-spree-api-key') { api_key.token }@@ -115,6 +117,8 @@ RSpec.describe 'Products API', type: :request, swagger_doc: 'api-reference/storedescription: 'Product slug (e.g., spree-tote) or prefix ID (e.g., product_abc123)'parameter name: :expand, in: :query, type: :string, required: false,description: 'Comma-separated associations to expand'+ parameter name: :fields, in: :query, type: :string, required: false,+ description: 'Comma-separated list of fields to include (e.g., name,slug,price). id is always included.'response '200', 'product found by slug' dolet(:'x-spree-api-key') { api_key.token }diff --git a/spree/api/spec/integration/spree/api/v3/store/taxonomies_spec.rb b/spree/api/spec/integration/spree/api/v3/store/taxonomies_spec.rbindex 0d13777f64..047de66920 100644--- a/spree/api/spec/integration/spree/api/v3/store/taxonomies_spec.rb+++ b/spree/api/spec/integration/spree/api/v3/store/taxonomies_spec.rb@@ -31,6 +31,8 @@ RSpec.describe 'Taxonomies API', type: :request, swagger_doc: 'api-reference/stodescription: 'Sort order. Prefix with - for descending. Example: name, -name'parameter name: :expand, in: :query, type: :string, required: false,description: 'Expand root taxon'+ parameter name: :fields, in: :query, type: :string, required: false,+ description: 'Comma-separated list of fields to include (e.g., name,slug,price). id is always included.'response '200', 'taxonomies found' dolet(:'x-spree-api-key') { api_key.token }@@ -75,6 +77,8 @@ RSpec.describe 'Taxonomies API', type: :request, swagger_doc: 'api-reference/stodescription: 'Taxonomy ID (prefixed)'parameter name: :expand, in: :query, type: :string, required: false,description: 'Expand taxons'+ parameter name: :fields, in: :query, type: :string, required: false,+ description: 'Comma-separated list of fields to include (e.g., name,slug,price). id is always included.'response '200', 'taxonomy found' dolet(:'x-spree-api-key') { api_key.token }diff --git a/spree/api/spec/integration/spree/api/v3/store/taxons_spec.rb b/spree/api/spec/integration/spree/api/v3/store/taxons_spec.rbindex 75968ce785..a7205b498e 100644--- a/spree/api/spec/integration/spree/api/v3/store/taxons_spec.rb+++ b/spree/api/spec/integration/spree/api/v3/store/taxons_spec.rb@@ -33,6 +33,8 @@ RSpec.describe 'Taxons API', type: :request, swagger_doc: 'api-reference/store.yparameter name: :limit, in: :query, type: :integer, required: falseparameter name: 'q[name_cont]', in: :query, type: :string, required: false,description: 'Filter by name'+ parameter name: :fields, in: :query, type: :string, required: false,+ description: 'Comma-separated list of fields to include (e.g., name,slug,price). id is always included.'response '200', 'taxons found' dolet(:'x-spree-api-key') { api_key.token }@@ -81,6 +83,8 @@ RSpec.describe 'Taxons API', type: :request, swagger_doc: 'api-reference/store.ydescription: 'Taxon permalink (e.g., categories/clothing/shirts) or prefix ID (e.g., taxon_abc123)'parameter name: :expand, in: :query, type: :string, required: false,description: 'Expand associations (children, products, parent)'+ parameter name: :fields, in: :query, type: :string, required: false,+ description: 'Comma-separated list of fields to include (e.g., name,slug,price). id is always included.'response '200', 'taxon found by permalink' dolet(:'x-spree-api-key') { api_key.token }@@ -168,6 +172,8 @@ RSpec.describe 'Taxons API', type: :request, swagger_doc: 'api-reference/store.ydescription: 'Filter by option value prefix IDs'parameter name: 'q[in_stock]', in: :query, type: :boolean, required: false,description: 'Filter to only in-stock products'+ parameter name: :fields, in: :query, type: :string, required: false,+ description: 'Comma-separated list of fields to include (e.g., name,slug,price). id is always included.'response '200', 'products found' dolet(:'x-spree-api-key') { api_key.token }diff --git a/spree/api/spec/integration/spree/api/v3/store/wishlists_spec.rb b/spree/api/spec/integration/spree/api/v3/store/wishlists_spec.rbindex 511a9ee4f0..f81c808a08 100644--- a/spree/api/spec/integration/spree/api/v3/store/wishlists_spec.rb+++ b/spree/api/spec/integration/spree/api/v3/store/wishlists_spec.rb@@ -27,6 +27,8 @@ RSpec.describe 'Wishlists API', type: :request, swagger_doc: 'api-reference/storparameter name: 'Authorization', in: :header, type: :string, required: trueparameter name: :page, in: :query, type: :integer, required: falseparameter name: :limit, in: :query, type: :integer, required: false+ parameter name: :fields, in: :query, type: :string, required: false,+ description: 'Comma-separated list of fields to include (e.g., name,slug,price). id is always included.'response '200', 'wishlists found' dolet(:'x-spree-api-key') { api_key.token }@@ -127,6 +129,8 @@ RSpec.describe 'Wishlists API', type: :request, swagger_doc: 'api-reference/storparameter name: :id, in: :path, type: :string, required: trueparameter name: :expand, in: :query, type: :string, required: false,description: 'Expand wished_items'+ parameter name: :fields, in: :query, type: :string, required: false,+ description: 'Comma-separated list of fields to include (e.g., name,slug,price). id is always included.'response '200', 'wishlist found' dolet(:'x-spree-api-key') { api_key.token }