Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Add Store Policies API endpoint
Damian Legawiecf031b80bca69
diff --git a/docs/api-reference/store.yaml b/docs/api-reference/store.yamlindex 2663b4668f..5ff05b8f44 100644--- a/docs/api-reference/store.yaml+++ b/docs/api-reference/store.yaml@@ -590,17 +590,17 @@ paths:content:application/json:example:- token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImp0aSI6ImEzNjk1NjNiLTU4MWYtNGY1YS1iODY4LWY0ZTk4ZGEyY2M3YiIsImlzcyI6InNwcmVlIiwiYXVkIjoic3RvcmVfYXBpIiwiZXhwIjoxNzc0Mzg2NDg1fQ.kVajFk9WreLShiaUpkz-KjGoj8bI5p9oFV9Qidhdn8k- refresh_token: QzHY2s17TCoteSzNZMNHgwEj+ token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImp0aSI6ImRhNjQ5MWRiLTZmNGQtNDUyNS05MTc5LTE3YzFhNGUyZDY2OSIsImlzcyI6InNwcmVlIiwiYXVkIjoic3RvcmVfYXBpIiwiZXhwIjoxNzc0NDM1MTE3fQ.Lc8JjHUMVOZmOnD1E7U0f7iyjX9SeU4D-ib9onE08dE+ refresh_token: b6B2aTd5NU2B1FMfPvAzJPcvuser:id: cus_UkLWZg9DAJemail: [email protected]- first_name: Chassidy- last_name: Kozey+ first_name: Carey+ last_name: Skilesphone:accepts_email_marketing: false- created_at: '2026-03-24T20:08:05.393Z'- updated_at: '2026-03-24T20:08:05.393Z'+ created_at: '2026-03-25T09:38:36.982Z'+ updated_at: '2026-03-25T09:38:36.982Z'available_store_credit_total: '0'display_available_store_credit_total: "$0.00"addresses: []@@ -673,17 +673,17 @@ paths:content:application/json:example:- token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImp0aSI6IjcxMDg0ZmYxLTIwNDgtNDY5Yi1hOWUxLTQyNjIyZjkzYTc1MCIsImlzcyI6InNwcmVlIiwiYXVkIjoic3RvcmVfYXBpIiwiZXhwIjoxNzc0Mzg2NDg2fQ.amdIBMVFjvdan0U7NFSkQFCqr6AZDlEt4KniSXChCy8- refresh_token: Aaq9SWULVaZJJNNiuwzGeWfH+ token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImp0aSI6IjM1NzY4MGRmLTJmMmMtNDY0OS1iNTg0LTMwMjJlYTA2NDQ1MyIsImlzcyI6InNwcmVlIiwiYXVkIjoic3RvcmVfYXBpIiwiZXhwIjoxNzc0NDM1MTE4fQ._OYLdM49Vp-qcWjgQEJ2KElpFvOT_T5zGTEcFXs8HZM+ refresh_token: TnVwtvYTV3EfL9ZBn1Jkdx2suser:id: cus_UkLWZg9DAJemail: [email protected]- first_name: Edyth- last_name: Lowe+ first_name: Sophie+ last_name: Farrellphone:accepts_email_marketing: false- created_at: '2026-03-24T20:08:06.943Z'- updated_at: '2026-03-24T20:08:06.943Z'+ created_at: '2026-03-25T09:38:38.577Z'+ updated_at: '2026-03-25T09:38:38.577Z'available_store_credit_total: '0'display_available_store_credit_total: "$0.00"addresses: []@@ -846,9 +846,9 @@ paths:example:data:- id: cart_gbHJdmfrXB- number: R871450662- token: BwjVj7z56zZCwiwz8asK8c7siL76hj7vxr8- email: [email protected]+ number: R904465141+ token: skwH95BJvXsdweCGnNo7zcuujY4EVQrcMFN+ email: [email protected]customer_note:currency: USDlocale: en@@ -874,8 +874,8 @@ paths:delivery_total: '100.0'display_delivery_total: "$100.00"warnings: []- created_at: '2026-03-24T20:08:09.303Z'- updated_at: '2026-03-24T20:08:09.359Z'+ created_at: '2026-03-25T09:38:40.745Z'+ updated_at: '2026-03-25T09:38:40.791Z'store_credit_total: '0.0'display_store_credit_total: "$0.00"covered_by_store_credit: false@@ -892,8 +892,8 @@ paths:variant_id: variant_gbHJdmfrXBquantity: 1currency: USD- name: Product 22402- slug: product-22402+ name: Product 24465+ slug: product-24465options_text: ''price: '10.0'display_price: "$10.00"@@ -912,21 +912,21 @@ paths:discounted_amount: '10.0'display_discounted_amount: "$10.00"display_compare_at_amount: "$0.00"- created_at: '2026-03-24T20:08:09.336Z'- updated_at: '2026-03-24T20:08:09.336Z'+ created_at: '2026-03-25T09:38:40.772Z'+ updated_at: '2026-03-25T09:38:40.772Z'compare_at_amount:thumbnail_url:option_values: []digital_links: []fulfillments:- id: ful_gbHJdmfrXB- number: H91382607003+ number: H13808021028tracking: U10000tracking_url:cost: '100.0'display_cost: "$100.00"- created_at: '2026-03-24T20:08:09.344Z'- updated_at: '2026-03-24T20:08:09.356Z'+ created_at: '2026-03-25T09:38:40.779Z'+ updated_at: '2026-03-25T09:38:40.789Z'status: pendingfulfillment_type: shippingfulfilled_at:@@ -941,7 +941,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_32- name: Tarra Hayes+ name: Stasia Emmerichaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -1001,9 +1001,9 @@ paths:payment_methods: []gift_card:- id: cart_UkLWZg9DAJ- number: R155489666- token: YzqEndLzsM6ahoGiZqao88tNbnZ7o4KCPWu- email: [email protected]+ number: R792127358+ token: fsZr8bJDm5dxByGzja8uKgXJSnHyP3CPdfK+ email: [email protected]customer_note:currency: USDlocale: en@@ -1029,8 +1029,8 @@ paths:delivery_total: '100.0'display_delivery_total: "$100.00"warnings: []- created_at: '2026-03-24T20:08:09.133Z'- updated_at: '2026-03-24T20:08:09.297Z'+ created_at: '2026-03-25T09:38:40.590Z'+ updated_at: '2026-03-25T09:38:40.739Z'store_credit_total: '0'display_store_credit_total: "$0.00"covered_by_store_credit: false@@ -1047,8 +1047,8 @@ paths:variant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 19877- slug: product-19877+ name: Product 17715+ slug: product-17715options_text: ''price: '10.0'display_price: "$10.00"@@ -1067,21 +1067,21 @@ paths:discounted_amount: '10.0'display_discounted_amount: "$10.00"display_compare_at_amount: "$0.00"- created_at: '2026-03-24T20:08:09.217Z'- updated_at: '2026-03-24T20:08:09.217Z'+ created_at: '2026-03-25T09:38:40.664Z'+ updated_at: '2026-03-25T09:38:40.664Z'compare_at_amount:thumbnail_url:option_values: []digital_links: []fulfillments:- id: ful_UkLWZg9DAJ- number: H58732941482+ number: H70865479807tracking: U10000tracking_url:cost: '100.0'display_cost: "$100.00"- created_at: '2026-03-24T20:08:09.231Z'- updated_at: '2026-03-24T20:08:09.291Z'+ created_at: '2026-03-25T09:38:40.678Z'+ updated_at: '2026-03-25T09:38:40.735Z'status: pendingfulfillment_type: shippingfulfilled_at:@@ -1096,7 +1096,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_32- name: Tarra Hayes+ name: Stasia Emmerichaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -1229,8 +1229,8 @@ paths:application/json:example:id: cart_UkLWZg9DAJ- number: R799274071- token: 6t9QZqrjE8omjiRsYFrqKDxdP6N5SVZK1Ai+ number: R109284892+ token: h6NDXs2KcCr7HXeyPTCv4LpmQjPqrvh9ZMiemail:customer_note:currency: USD@@ -1257,8 +1257,8 @@ paths:delivery_total: '0.0'display_delivery_total: "$0.00"warnings: []- created_at: '2026-03-24T20:08:09.953Z'- updated_at: '2026-03-24T20:08:09.953Z'+ created_at: '2026-03-25T09:38:41.291Z'+ updated_at: '2026-03-25T09:38:41.291Z'store_credit_total: '0.0'display_store_credit_total: "$0.00"covered_by_store_credit: false@@ -1385,9 +1385,9 @@ paths:application/json:example:id: cart_UkLWZg9DAJ- number: R756990308- token: oQsLUpedMQJ8hnXTzXRab8oDDQuTNAQfJ5E- email: [email protected]+ number: R801625916+ token: pk5oPYmS2zMsP1627hJTVS6H88rzxcsUb4w+ email: [email protected]customer_note:currency: USDlocale: en@@ -1414,11 +1414,11 @@ paths:display_delivery_total: "$0.00"warnings:- code: line_item_removed- message: Product 65669 was removed because it was sold out+ message: Product 64078 was removed because it was sold outline_item_id: li_UkLWZg9DAJvariant_id: variant_UkLWZg9DAJ- created_at: '2026-03-24T20:08:10.656Z'- updated_at: '2026-03-24T20:08:10.764Z'+ created_at: '2026-03-25T09:38:41.941Z'+ updated_at: '2026-03-25T09:38:42.032Z'store_credit_total: '0.0'display_store_credit_total: "$0.00"covered_by_store_credit: false@@ -1556,9 +1556,9 @@ paths:application/json:example:id: cart_UkLWZg9DAJ- number: R112613361- token: gjeNymoANRQoQgnKazSAtJ92KcuNVXB4HrV- email: [email protected]+ number: R812330247+ token: GAu7wdsGznGP65gR8Ex6KpP8qT7yokmA6Sd+ email: [email protected]customer_note: Leave at doorcurrency: USDlocale: en@@ -1584,8 +1584,8 @@ paths:delivery_total: '10.0'display_delivery_total: "$10.00"warnings: []- created_at: '2026-03-24T20:08:11.418Z'- updated_at: '2026-03-24T20:08:11.597Z'+ created_at: '2026-03-25T09:38:42.595Z'+ updated_at: '2026-03-25T09:38:42.722Z'store_credit_total: '0.0'display_store_credit_total: "$0.00"covered_by_store_credit: false@@ -1604,8 +1604,8 @@ paths:variant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 74834- slug: product-74834+ name: Product 79409+ slug: product-79409options_text: ''price: '19.99'display_price: "$19.99"@@ -1624,21 +1624,21 @@ paths:discounted_amount: '19.99'display_discounted_amount: "$19.99"display_compare_at_amount: "$0.00"- created_at: '2026-03-24T20:08:11.455Z'- updated_at: '2026-03-24T20:08:11.527Z'+ created_at: '2026-03-25T09:38:42.622Z'+ updated_at: '2026-03-25T09:38:42.673Z'compare_at_amount:thumbnail_url:option_values: []digital_links: []fulfillments:- id: ful_gbHJdmfrXB- number: H65995744100+ number: H77018233447tracking:tracking_url:cost: '10.0'display_cost: "$10.00"- created_at: '2026-03-24T20:08:11.548Z'- updated_at: '2026-03-24T20:08:11.565Z'+ created_at: '2026-03-25T09:38:42.688Z'+ updated_at: '2026-03-25T09:38:42.708Z'status: pendingfulfillment_type: shippingfulfilled_at:@@ -1653,7 +1653,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_46- name: Laure Ortiz+ name: Shirley Macejkovicaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -1880,9 +1880,9 @@ paths:application/json:example:id: cart_UkLWZg9DAJ- number: R647530941- token: FLSGtnicyFVmkFLCBBGWCno6RbHhsShk9Jz- email: [email protected]+ number: R245492142+ token: TBsrRHcjf23uDNVD5NkMgMRgTHKZyXYydWB+ email: [email protected]customer_note:currency: USDlocale: en@@ -1908,8 +1908,8 @@ paths:delivery_total: '100.0'display_delivery_total: "$100.00"warnings: []- created_at: '2026-03-24T20:08:12.365Z'- updated_at: '2026-03-24T20:08:12.423Z'+ created_at: '2026-03-25T09:38:43.437Z'+ updated_at: '2026-03-25T09:38:43.492Z'store_credit_total: '0.0'display_store_credit_total: "$0.00"covered_by_store_credit: false@@ -1926,8 +1926,8 @@ paths:variant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 94463- slug: product-94463+ name: Product 99884+ slug: product-99884options_text: ''price: '10.0'display_price: "$10.00"@@ -1946,21 +1946,21 @@ paths:discounted_amount: '10.0'display_discounted_amount: "$10.00"display_compare_at_amount: "$0.00"- created_at: '2026-03-24T20:08:12.400Z'- updated_at: '2026-03-24T20:08:12.400Z'+ created_at: '2026-03-25T09:38:43.471Z'+ updated_at: '2026-03-25T09:38:43.471Z'compare_at_amount:thumbnail_url:option_values: []digital_links: []fulfillments:- id: ful_UkLWZg9DAJ- number: H46449852073+ number: H87563849282tracking: U10000tracking_url:cost: '100.0'display_cost: "$100.00"- created_at: '2026-03-24T20:08:12.406Z'- updated_at: '2026-03-24T20:08:12.421Z'+ created_at: '2026-03-25T09:38:43.477Z'+ updated_at: '2026-03-25T09:38:43.490Z'status: pendingfulfillment_type: shippingfulfilled_at:@@ -1975,7 +1975,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_54- name: Bobby Cronin+ name: Phyllis Rippinaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -2099,8 +2099,8 @@ paths:application/json:example:id: or_UkLWZg9DAJ- number: R827694470- email: [email protected]+ number: R969545019+ email: [email protected]customer_note:currency: USDlocale: en@@ -2127,9 +2127,9 @@ paths:display_delivery_total: "$10.00"fulfillment_status: backorderpayment_status: paid- completed_at: '2026-03-24T20:08:14.281Z'- created_at: '2026-03-24T20:08:13.860Z'- updated_at: '2026-03-24T20:08:14.281Z'+ completed_at: '2026-03-25T09:38:44.863Z'+ created_at: '2026-03-25T09:38:44.649Z'+ updated_at: '2026-03-25T09:38:44.863Z'store_credit_total: '0.0'display_store_credit_total: "$0.00"covered_by_store_credit: false@@ -2139,8 +2139,8 @@ paths:variant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 116065- slug: product-116065+ name: Product 115575+ slug: product-115575options_text: ''price: '19.99'display_price: "$19.99"@@ -2159,21 +2159,21 @@ paths:discounted_amount: '19.99'display_discounted_amount: "$19.99"display_compare_at_amount: "$0.00"- created_at: '2026-03-24T20:08:13.999Z'- updated_at: '2026-03-24T20:08:14.286Z'+ created_at: '2026-03-25T09:38:44.680Z'+ updated_at: '2026-03-25T09:38:44.867Z'compare_at_amount:thumbnail_url:option_values: []digital_links: []fulfillments:- id: ful_gbHJdmfrXB- number: H51522640608+ number: H85693057121tracking:tracking_url:cost: '10.0'display_cost: "$10.00"- created_at: '2026-03-24T20:08:14.123Z'- updated_at: '2026-03-24T20:08:14.269Z'+ created_at: '2026-03-25T09:38:44.744Z'+ updated_at: '2026-03-25T09:38:44.857Z'status: pendingfulfillment_type: shippingfulfilled_at:@@ -2188,7 +2188,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_60- name: Corrin Dickinson+ name: Rachele Ritchieaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -2210,11 +2210,11 @@ paths:- id: py_UkLWZg9DAJpayment_method_id: pm_UkLWZg9DAJresponse_code: '12345'- number: P7LF099I+ number: PWZ0QLA9amount: '29.99'display_amount: "$29.99"- created_at: '2026-03-24T20:08:14.218Z'- updated_at: '2026-03-24T20:08:14.249Z'+ created_at: '2026-03-25T09:38:44.812Z'+ updated_at: '2026-03-25T09:38:44.838Z'status: completedsource_type: credit_cardsource_id: card_UkLWZg9DAJ@@ -2352,8 +2352,8 @@ paths:meta_description:meta_keywords:children_count: 1- created_at: '2026-03-24T20:08:14.983Z'- updated_at: '2026-03-24T20:08:15.039Z'+ created_at: '2026-03-25T09:38:45.522Z'+ updated_at: '2026-03-25T09:38:45.569Z'parent_id:description: ''description_html: ''@@ -2371,8 +2371,8 @@ paths:meta_description:meta_keywords:children_count: 1- created_at: '2026-03-24T20:08:14.992Z'- updated_at: '2026-03-24T20:08:15.038Z'+ created_at: '2026-03-25T09:38:45.530Z'+ updated_at: '2026-03-25T09:38:45.569Z'parent_id: ctg_UkLWZg9DAJdescription: ''description_html: ''@@ -2390,8 +2390,8 @@ paths:meta_description:meta_keywords:children_count: 0- created_at: '2026-03-24T20:08:15.003Z'- updated_at: '2026-03-24T20:08:15.010Z'+ created_at: '2026-03-25T09:38:45.540Z'+ updated_at: '2026-03-25T09:38:45.545Z'parent_id: ctg_gbHJdmfrXBdescription: ''description_html: ''@@ -2492,8 +2492,8 @@ paths:meta_description:meta_keywords:children_count: 1- created_at: '2026-03-24T20:08:15.401Z'- updated_at: '2026-03-24T20:08:15.448Z'+ created_at: '2026-03-25T09:38:45.901Z'+ updated_at: '2026-03-25T09:38:45.983Z'parent_id: ctg_UkLWZg9DAJdescription: ''description_html: ''@@ -2620,38 +2620,28 @@ paths:example:data:- id: prod_UkLWZg9DAJ- name: Product 207887- slug: product-207887+ name: Product 205536+ slug: product-205536meta_description:meta_keywords:variant_count: 0- available_on: '2025-03-24T20:08:15.942Z'- created_at: '2026-03-24T20:08:15.957Z'- updated_at: '2026-03-24T20:08:15.971Z'+ available_on: '2025-03-25T09:38:46.554Z'+ created_at: '2026-03-25T09:38:46.570Z'+ updated_at: '2026-03-25T09:38:46.590Z'purchasable: truein_stock: falsebackorderable: trueavailable: true- description: Mollitia nulla laudantium id possimus nobis quidem- velit voluptates. Libero eos modi repudiandae unde. Voluptate- autem impedit laboriosam exercitationem aut reiciendis explicabo.- Reprehenderit perspiciatis quo eaque doloribus. Quam commodi ducimus- corrupti molestiae aliquam eos tempore sint. Voluptatum deserunt- quis explicabo laboriosam sint. Ex perferendis blanditiis odio- dolores tenetur dolore repellendus. Suscipit debitis tempora odio- enim. Nemo iure quis enim consequuntur doloribus quos laborum.- Fugit reiciendis commodi quo vero magnam debitis ab excepturi.- Impedit facilis ut ad sapiente hic aliquam. Deserunt eligendi- magni placeat quis. Libero accusamus pariatur ad quisquam. Voluptatem- veniam magnam laudantium voluptates reiciendis. Maxime exercitationem- debitis ad vitae nobis. Velit occaecati deleniti eveniet laborum- itaque error unde. Nostrum similique neque alias maxime cupiditate.- Architecto alias consequuntur illum facilis officiis non.- description_html: |-- Mollitia nulla laudantium id possimus nobis quidem velit voluptates. Libero eos modi repudiandae unde. Voluptate autem impedit laboriosam exercitationem aut reiciendis explicabo. Reprehenderit perspiciatis quo eaque doloribus.- Quam commodi ducimus corrupti molestiae aliquam eos tempore sint. Voluptatum deserunt quis explicabo laboriosam sint. Ex perferendis blanditiis odio dolores tenetur dolore repellendus. Suscipit debitis tempora odio enim. Nemo iure quis enim consequuntur doloribus quos laborum.- Fugit reiciendis commodi quo vero magnam debitis ab excepturi. Impedit facilis ut ad sapiente hic aliquam. Deserunt eligendi magni placeat quis. Libero accusamus pariatur ad quisquam.- Voluptatem veniam magnam laudantium voluptates reiciendis. Maxime exercitationem debitis ad vitae nobis. Velit occaecati deleniti eveniet laborum itaque error unde. Nostrum similique neque alias maxime cupiditate. Architecto alias consequuntur illum facilis officiis non.+ description: Neque vitae omnis maxime nisi laborum. Fugit vel sit+ tempora doloribus rem. A autem sapiente non expedita quas nemo+ iure placeat. Ipsam voluptas inventore assumenda quibusdam aspernatur+ non enim excepturi. Perferendis totam aliquam deleniti asperiores+ consectetur.+ description_html: Neque vitae omnis maxime nisi laborum. Fugit vel+ sit tempora doloribus rem. A autem sapiente non expedita quas+ nemo iure placeat. Ipsam voluptas inventore assumenda quibusdam+ aspernatur non enim excepturi. Perferendis totam aliquam deleniti+ asperiores consectetur.default_variant_id: variant_UkLWZg9DAJthumbnail_url:tags: []@@ -3255,17 +3245,17 @@ paths:content:application/json:example:- token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImp0aSI6ImQ2NDQ5OTNlLTc5NjktNDdmNS05NDBkLTgwN2I0ZGZiZDNmNyIsImlzcyI6InNwcmVlIiwiYXVkIjoic3RvcmVfYXBpIiwiZXhwIjoxNzc0Mzg2NTAyfQ.YT_d9sPvFxdtOiXXCL_gRPzKoTKNDmySBGirCpxSCDo- refresh_token: r2pR4b8N116JCFkJRpaTHivB+ token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImp0aSI6ImVjNzdmNjY2LTY4NGYtNDJjMC1hYWE2LWE1NDQyOWZjNDNkNiIsImlzcyI6InNwcmVlIiwiYXVkIjoic3RvcmVfYXBpIiwiZXhwIjoxNzc0NDM1MTMxfQ.JbxIxS8SBUP4yVaS6PiG3WXvmk3qA3lHWwRpwPwfCTM+ refresh_token: YJwfNsb8JM47uFafQesocrobuser:id: cus_UkLWZg9DAJemail: [email protected]- first_name: Walton- last_name: Reinger+ first_name: Charley+ last_name: Robelphone:accepts_email_marketing: false- created_at: '2026-03-24T20:08:22.218Z'- updated_at: '2026-03-24T20:08:22.509Z'+ created_at: '2026-03-25T09:38:51.573Z'+ updated_at: '2026-03-25T09:38:51.853Z'available_store_credit_total: '0'display_available_store_credit_total: "$0.00"addresses: []@@ -3434,8 +3424,8 @@ paths:example:data:- id: or_UkLWZg9DAJ- number: R979475163- email: [email protected]+ number: R137626065+ email: [email protected]customer_note:currency: USDlocale: en@@ -3462,9 +3452,9 @@ paths:display_delivery_total: "$100.00"fulfillment_status:payment_status:- completed_at: '2026-03-24T20:08:23.450Z'- created_at: '2026-03-24T20:08:23.390Z'- updated_at: '2026-03-24T20:08:23.449Z'+ completed_at: '2026-03-25T09:38:52.893Z'+ created_at: '2026-03-25T09:38:52.829Z'+ updated_at: '2026-03-25T09:38:52.893Z'store_credit_total: '0.0'display_store_credit_total: "$0.00"covered_by_store_credit: false@@ -3474,8 +3464,8 @@ paths:variant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 233089- slug: product-233089+ name: Product 236985+ slug: product-236985options_text: ''price: '10.0'display_price: "$10.00"@@ -3494,21 +3484,21 @@ paths:discounted_amount: '10.0'display_discounted_amount: "$10.00"display_compare_at_amount: "$0.00"- created_at: '2026-03-24T20:08:23.422Z'- updated_at: '2026-03-24T20:08:23.422Z'+ created_at: '2026-03-25T09:38:52.866Z'+ updated_at: '2026-03-25T09:38:52.866Z'compare_at_amount:thumbnail_url:option_values: []digital_links: []fulfillments:- id: ful_UkLWZg9DAJ- number: H30202996450+ number: H55963426020tracking: U10000tracking_url:cost: '100.0'display_cost: "$100.00"- created_at: '2026-03-24T20:08:23.428Z'- updated_at: '2026-03-24T20:08:23.447Z'+ created_at: '2026-03-25T09:38:52.873Z'+ updated_at: '2026-03-25T09:38:52.891Z'status: pendingfulfillment_type: shippingfulfilled_at:@@ -3523,7 +3513,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_90- name: Ian Gutkowski+ name: Vernia Baileyaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -3675,8 +3665,8 @@ paths:application/json:example:id: or_UkLWZg9DAJ- number: R952644928- email: [email protected]+ number: R714834281+ email: [email protected]customer_note:currency: USDlocale: en@@ -3703,9 +3693,9 @@ paths:display_delivery_total: "$100.00"fulfillment_status:payment_status:- completed_at: '2026-03-24T20:08:24.272Z'- created_at: '2026-03-24T20:08:24.213Z'- updated_at: '2026-03-24T20:08:24.272Z'+ completed_at: '2026-03-25T09:38:53.612Z'+ created_at: '2026-03-25T09:38:53.560Z'+ updated_at: '2026-03-25T09:38:53.612Z'store_credit_total: '0.0'display_store_credit_total: "$0.00"covered_by_store_credit: false@@ -3715,8 +3705,8 @@ paths:variant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 255989- slug: product-255989+ name: Product 254948+ slug: product-254948options_text: ''price: '10.0'display_price: "$10.00"@@ -3735,21 +3725,21 @@ paths:discounted_amount: '10.0'display_discounted_amount: "$10.00"display_compare_at_amount: "$0.00"- created_at: '2026-03-24T20:08:24.248Z'- updated_at: '2026-03-24T20:08:24.248Z'+ created_at: '2026-03-25T09:38:53.590Z'+ updated_at: '2026-03-25T09:38:53.590Z'compare_at_amount:thumbnail_url:option_values: []digital_links: []fulfillments:- id: ful_UkLWZg9DAJ- number: H51544189168+ number: H21675071796tracking: U10000tracking_url:cost: '100.0'display_cost: "$100.00"- created_at: '2026-03-24T20:08:24.253Z'- updated_at: '2026-03-24T20:08:24.269Z'+ created_at: '2026-03-25T09:38:53.596Z'+ updated_at: '2026-03-25T09:38:53.610Z'status: pendingfulfillment_type: shippingfulfilled_at:@@ -3764,7 +3754,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_96- name: Corinne Wilderman+ name: Dalia Hansenaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -3875,8 +3865,8 @@ paths:content:application/json:example:- token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImp0aSI6IjE0YTVhNzM2LWMzYTEtNDg2Zi1hZWIwLTY0NDQwODBkYTY0ZiIsImlzcyI6InNwcmVlIiwiYXVkIjoic3RvcmVfYXBpIiwiZXhwIjoxNzc0Mzg2NTA1fQ.luN5TwPJtSTi1llXD0CKxmZj_Bv9wL2jWSSLZcsw6xQ- refresh_token: neckyXGp4qqEhEatsUwgHMSu+ token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImp0aSI6ImI0ZGQyY2MxLTE4YjMtNGJjNi04ZWVhLWY1ZjY1MzBmMWY3YiIsImlzcyI6InNwcmVlIiwiYXVkIjoic3RvcmVfYXBpIiwiZXhwIjoxNzc0NDM1MTM0fQ.IKyOHW6jvDB2gA4aU-WQ3U6u1iCF5OaCU2riX3vYelk+ refresh_token: t6iy1WtrXGNfrST6iLdbwNfQuser:id: cus_UkLWZg9DAJemail: [email protected]@@ -3884,8 +3874,8 @@ paths:last_name: Doephone: "+1234567890"accepts_email_marketing: true- created_at: '2026-03-24T20:08:25.620Z'- updated_at: '2026-03-24T20:08:25.620Z'+ created_at: '2026-03-25T09:38:54.800Z'+ updated_at: '2026-03-25T09:38:54.800Z'available_store_credit_total: '0'display_available_store_credit_total: "$0.00"addresses: []@@ -3991,13 +3981,13 @@ paths:application/json:example:id: cus_UkLWZg9DAJ- email: [email protected]- first_name: Mable- last_name: Purdy+ email: [email protected]+ first_name: Raisa+ last_name: Lindphone: 555-555-0199accepts_email_marketing: false- created_at: '2026-03-24T20:08:26.186Z'- updated_at: '2026-03-24T20:08:26.463Z'+ created_at: '2026-03-25T09:38:55.344Z'+ updated_at: '2026-03-25T09:38:55.616Z'available_store_credit_total: '0'display_available_store_credit_total: "$0.00"addresses:@@ -4131,13 +4121,13 @@ paths:application/json:example:id: cus_UkLWZg9DAJ- email: [email protected]+ email: [email protected]first_name: Updatedlast_name: Namephone: 555-555-0199accepts_email_marketing: false- created_at: '2026-03-24T20:08:26.763Z'- updated_at: '2026-03-24T20:08:27.053Z'+ created_at: '2026-03-25T09:38:55.904Z'+ updated_at: '2026-03-25T09:38:56.231Z'available_store_credit_total: '0'display_available_store_credit_total: "$0.00"addresses:@@ -4371,9 +4361,9 @@ paths:application/json:example:id: cart_UkLWZg9DAJ- number: R619508758- token: ZSsTqc7X6FebBXrFPBBxqkPrvMUeoEwHTm5- email: [email protected]+ number: R048056530+ token: asCMM72vqTBuExzLspGHyB9fTZcCSDdHGWf+ email: [email protected]customer_note:currency: USDlocale: en@@ -4399,8 +4389,8 @@ paths:delivery_total: '100.0'display_delivery_total: "$100.00"warnings: []- created_at: '2026-03-24T20:08:30.697Z'- updated_at: '2026-03-24T20:08:30.879Z'+ created_at: '2026-03-25T09:38:59.408Z'+ updated_at: '2026-03-25T09:38:59.538Z'store_credit_total: '0.0'display_store_credit_total: "$0.00"covered_by_store_credit: false@@ -4424,8 +4414,8 @@ paths:variant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 333293- slug: product-333293+ name: Product 335609+ slug: product-335609options_text: ''price: '10.0'display_price: "$10.00"@@ -4444,21 +4434,21 @@ paths:discounted_amount: '0.0'display_discounted_amount: "$0.00"display_compare_at_amount: "$0.00"- created_at: '2026-03-24T20:08:30.746Z'- updated_at: '2026-03-24T20:08:30.849Z'+ created_at: '2026-03-25T09:38:59.448Z'+ updated_at: '2026-03-25T09:38:59.523Z'compare_at_amount:thumbnail_url:option_values: []digital_links: []fulfillments:- id: ful_UkLWZg9DAJ- number: H49763641892+ number: H11235951012tracking: U10000tracking_url:cost: '100.0'display_cost: "$100.00"- created_at: '2026-03-24T20:08:30.754Z'- updated_at: '2026-03-24T20:08:30.775Z'+ created_at: '2026-03-25T09:38:59.453Z'+ updated_at: '2026-03-25T09:38:59.468Z'status: pendingfulfillment_type: shippingfulfilled_at:@@ -4473,7 +4463,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_122- name: Sophie Huels+ name: Temika Reynoldsaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -4617,9 +4607,9 @@ paths:application/json:example:id: cart_UkLWZg9DAJ- number: R388744182- token: rKe1ZbRp52p9Rq3emaoA8CccMd4aX1EaHrt- email: [email protected]+ number: R615121212+ token: UCSnetJVxGNtadLgEJdFaXZoRwNCqdMgG7G+ email: [email protected]customer_note:currency: USDlocale: en@@ -4645,8 +4635,8 @@ paths:delivery_total: '100.0'display_delivery_total: "$100.00"warnings: []- created_at: '2026-03-24T20:08:32.977Z'- updated_at: '2026-03-24T20:08:33.224Z'+ created_at: '2026-03-25T09:39:00.708Z'+ updated_at: '2026-03-25T09:39:00.817Z'store_credit_total: '0.0'display_store_credit_total: "$0.00"covered_by_store_credit: false@@ -4663,8 +4653,8 @@ paths:variant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 353820- slug: product-353820+ name: Product 356735+ slug: product-356735options_text: ''price: '10.0'display_price: "$10.00"@@ -4683,21 +4673,21 @@ paths:discounted_amount: '10.0'display_discounted_amount: "$10.00"display_compare_at_amount: "$0.00"- created_at: '2026-03-24T20:08:33.044Z'- updated_at: '2026-03-24T20:08:33.218Z'+ created_at: '2026-03-25T09:39:00.734Z'+ updated_at: '2026-03-25T09:39:00.812Z'compare_at_amount:thumbnail_url:option_values: []digital_links: []fulfillments:- id: ful_UkLWZg9DAJ- number: H63648788380+ number: H44019467277tracking: U10000tracking_url:cost: '100.0'display_cost: "$100.00"- created_at: '2026-03-24T20:08:33.057Z'- updated_at: '2026-03-24T20:08:33.102Z'+ created_at: '2026-03-25T09:39:00.738Z'+ updated_at: '2026-03-25T09:39:00.751Z'status: pendingfulfillment_type: shippingfulfilled_at:@@ -4712,7 +4702,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_130- name: Clinton Marks+ name: Delaine Heaneyaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -4845,9 +4835,9 @@ paths:application/json:example:id: cart_UkLWZg9DAJ- number: R419429717- token: 6NsXJjTELDGZV4Bgb1md3KyX6SuEcnSttZX- email: [email protected]+ number: R822091731+ token: q5Mc99kz5CtXNN8iqYejqA1gXojvdUZjG9e+ email: [email protected]customer_note:currency: USDlocale: en@@ -4873,8 +4863,8 @@ paths:delivery_total: '100.0'display_delivery_total: "$100.00"warnings: []- created_at: '2026-03-24T20:08:34.530Z'- updated_at: '2026-03-24T20:08:34.649Z'+ created_at: '2026-03-25T09:39:02.011Z'+ updated_at: '2026-03-25T09:39:02.101Z'store_credit_total: '0.0'display_store_credit_total: "$0.00"covered_by_store_credit: false@@ -4893,8 +4883,8 @@ paths:variant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 375169- slug: product-375169+ name: Product 37921+ slug: product-37921options_text: ''price: '10.0'display_price: "$10.00"@@ -4913,21 +4903,21 @@ paths:discounted_amount: '10.0'display_discounted_amount: "$10.00"display_compare_at_amount: "$0.00"- created_at: '2026-03-24T20:08:34.571Z'- updated_at: '2026-03-24T20:08:34.571Z'+ created_at: '2026-03-25T09:39:02.042Z'+ updated_at: '2026-03-25T09:39:02.042Z'compare_at_amount:thumbnail_url:option_values: []digital_links: []fulfillments:- id: ful_UkLWZg9DAJ- number: H62341224782+ number: H15171902248tracking: U10000tracking_url:cost: '100.0'display_cost: "$100.00"- created_at: '2026-03-24T20:08:34.577Z'- updated_at: '2026-03-24T20:08:34.629Z'+ created_at: '2026-03-25T09:39:02.047Z'+ updated_at: '2026-03-25T09:39:02.084Z'status: pendingfulfillment_type: shippingfulfilled_at:@@ -4942,7 +4932,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_138- name: Isabella Kling+ name: Laurence Bauchaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -5089,9 +5079,9 @@ paths:application/json:example:id: cart_UkLWZg9DAJ- number: R332556460- token: MCdqzuzNeUmyWQzXF9a9jQPncZ8Zak3BRfp- email: [email protected]+ number: R239054871+ token: m5wgu7MfdLh6pNTMZfhQVEktC9dtHxFZP7x+ email: [email protected]customer_note:currency: USDlocale: en@@ -5117,8 +5107,8 @@ paths:delivery_total: '100.0'display_delivery_total: "$100.00"warnings: []- created_at: '2026-03-24T20:08:35.916Z'- updated_at: '2026-03-24T20:08:36.078Z'+ created_at: '2026-03-25T09:39:03.356Z'+ updated_at: '2026-03-25T09:39:03.466Z'store_credit_total: '50.0'display_store_credit_total: "-$50.00"covered_by_store_credit: false@@ -5132,8 +5122,8 @@ paths:variant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 396731- slug: product-396731+ name: Product 392768+ slug: product-392768options_text: ''price: '10.0'display_price: "$10.00"@@ -5152,21 +5142,21 @@ paths:discounted_amount: '10.0'display_discounted_amount: "$10.00"display_compare_at_amount: "$0.00"- created_at: '2026-03-24T20:08:35.972Z'- updated_at: '2026-03-24T20:08:35.972Z'+ created_at: '2026-03-25T09:39:03.391Z'+ updated_at: '2026-03-25T09:39:03.391Z'compare_at_amount:thumbnail_url:option_values: []digital_links: []fulfillments:- id: ful_UkLWZg9DAJ- number: H20190605411+ number: H84343266824tracking: U10000tracking_url:cost: '100.0'display_cost: "$100.00"- created_at: '2026-03-24T20:08:35.984Z'- updated_at: '2026-03-24T20:08:36.006Z'+ created_at: '2026-03-25T09:39:03.397Z'+ updated_at: '2026-03-25T09:39:03.412Z'status: pendingfulfillment_type: shippingfulfilled_at:@@ -5181,7 +5171,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_146- name: Yuette Schulist+ name: Corrie Olsonaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -5202,12 +5192,12 @@ paths:payments:- id: py_UkLWZg9DAJpayment_method_id: pm_UkLWZg9DAJ- response_code: 1-SC-20260324200836068590- number: PXOJ1GZB+ response_code: 1-SC-20260325093903458608+ number: PVZ4SLIPamount: '50.0'display_amount: "$50.00"- created_at: '2026-03-24T20:08:36.071Z'- updated_at: '2026-03-24T20:08:36.071Z'+ created_at: '2026-03-25T09:39:03.460Z'+ updated_at: '2026-03-25T09:39:03.460Z'status: checkoutsource_type: store_creditsource_id: credit_UkLWZg9DAJ@@ -5286,8 +5276,8 @@ paths:redeemed_at:expired: falseactive: true- created_at: '2026-03-24T20:08:36.015Z'- updated_at: '2026-03-24T20:08:36.063Z'+ created_at: '2026-03-25T09:39:03.418Z'+ updated_at: '2026-03-25T09:39:03.454Z'schema:"$ref": "#/components/schemas/Cart"'404':@@ -5382,9 +5372,9 @@ paths:application/json:example:id: cart_UkLWZg9DAJ- number: R368631552- token: CFvC7C8du94nCpFW19pKcEjWVgB7WffBUiz- email: [email protected]+ number: R444051348+ token: zwXt7XG3X7LvVXXr5HhvwUadn1n69Yg74ms+ email: [email protected]customer_note:currency: USDlocale: en@@ -5410,8 +5400,8 @@ paths:delivery_total: '100.0'display_delivery_total: "$100.00"warnings: []- created_at: '2026-03-24T20:08:38.821Z'- updated_at: '2026-03-24T20:08:39.177Z'+ created_at: '2026-03-25T09:39:05.865Z'+ updated_at: '2026-03-25T09:39:05.987Z'store_credit_total: '0.0'display_store_credit_total: "$0.00"covered_by_store_credit: false@@ -5428,8 +5418,8 @@ paths:variant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 435971- slug: product-435971+ name: Product 437759+ slug: product-437759options_text: ''price: '10.0'display_price: "$10.00"@@ -5448,21 +5438,21 @@ paths:discounted_amount: '10.0'display_discounted_amount: "$10.00"display_compare_at_amount: "$0.00"- created_at: '2026-03-24T20:08:38.881Z'- updated_at: '2026-03-24T20:08:38.881Z'+ created_at: '2026-03-25T09:39:05.904Z'+ updated_at: '2026-03-25T09:39:05.904Z'compare_at_amount:thumbnail_url:option_values: []digital_links: []fulfillments:- id: ful_UkLWZg9DAJ- number: H66049917086+ number: H36856220956tracking: U10000tracking_url:cost: '100.0'display_cost: "$100.00"- created_at: '2026-03-24T20:08:38.890Z'- updated_at: '2026-03-24T20:08:38.914Z'+ created_at: '2026-03-25T09:39:05.910Z'+ updated_at: '2026-03-25T09:39:05.926Z'status: pendingfulfillment_type: shippingfulfilled_at:@@ -5477,7 +5467,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_162- name: Catalina Cartwright+ name: Jed Gusikowskiaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -5498,12 +5488,12 @@ paths:payments:- id: py_UkLWZg9DAJpayment_method_id: pm_UkLWZg9DAJ- response_code: 1-SC-20260324200838950505- number: PS604XSG+ response_code: 1-SC-20260325093905949047+ number: P6ZP3M5Yamount: '50.0'display_amount: "$50.00"- created_at: '2026-03-24T20:08:39.129Z'- updated_at: '2026-03-24T20:08:39.160Z'+ created_at: '2026-03-25T09:39:05.951Z'+ updated_at: '2026-03-25T09:39:05.977Z'status: invalidsource_type: store_creditsource_id: credit_UkLWZg9DAJ@@ -5623,7 +5613,7 @@ paths:example:data:- id: gc_UkLWZg9DAJ- code: 9D82FAA08BDECE25+ code: A23FA9C0085B224Fstatus: activecurrency: USDamount: '10.0'@@ -5637,8 +5627,8 @@ paths:redeemed_at:expired: falseactive: true- created_at: '2026-03-24T20:08:39.806Z'- updated_at: '2026-03-24T20:08:39.806Z'+ created_at: '2026-03-25T09:39:06.563Z'+ updated_at: '2026-03-25T09:39:06.563Z'meta:page: 1limit: 25@@ -5721,7 +5711,7 @@ paths:application/json:example:id: gc_UkLWZg9DAJ- code: F1EDAF3A4AED9837+ code: 0715C03F658468F2status: activecurrency: USDamount: '10.0'@@ -5735,8 +5725,8 @@ paths:redeemed_at:expired: falseactive: true- created_at: '2026-03-24T20:08:41.111Z'- updated_at: '2026-03-24T20:08:41.111Z'+ created_at: '2026-03-25T09:39:07.663Z'+ updated_at: '2026-03-25T09:39:07.663Z'schema:"$ref": "#/components/schemas/GiftCard"'404':@@ -5813,9 +5803,9 @@ paths:application/json:example:id: cart_UkLWZg9DAJ- number: R679919999- token: 7Tj6zWH5BgEcYC2LfS4vCVnJ4ZtQDHmMCcL- email: [email protected]+ number: R719125712+ token: vn4jzj2msCbUyp74P59AH3RYz6qFxfPirN8+ email: [email protected]customer_note:currency: USDlocale: en@@ -5841,8 +5831,8 @@ paths:delivery_total: '0.0'display_delivery_total: "$0.00"warnings: []- created_at: '2026-03-24T20:08:42.969Z'- updated_at: '2026-03-24T20:08:43.095Z'+ created_at: '2026-03-25T09:39:09.419Z'+ updated_at: '2026-03-25T09:39:09.518Z'store_credit_total: '0.0'display_store_credit_total: "$0.00"covered_by_store_credit: false@@ -5865,8 +5855,8 @@ paths:variant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 461469- slug: product-461469+ name: Product 463994+ slug: product-463994options_text: ''price: '10.0'display_price: "$10.00"@@ -5885,8 +5875,8 @@ paths:discounted_amount: '10.0'display_discounted_amount: "$10.00"display_compare_at_amount: "$0.00"- created_at: '2026-03-24T20:08:43.003Z'- updated_at: '2026-03-24T20:08:43.003Z'+ created_at: '2026-03-25T09:39:09.451Z'+ updated_at: '2026-03-25T09:39:09.451Z'compare_at_amount:thumbnail_url:option_values: []@@ -5895,8 +5885,8 @@ paths:variant_id: variant_gbHJdmfrXBquantity: 1currency: USD- name: Product 479123- slug: product-479123+ name: Product 477258+ slug: product-477258options_text: ''price: '19.99'display_price: "$19.99"@@ -5915,8 +5905,8 @@ paths:discounted_amount: '19.99'display_discounted_amount: "$19.99"display_compare_at_amount: "$0.00"- created_at: '2026-03-24T20:08:43.064Z'- updated_at: '2026-03-24T20:08:43.064Z'+ created_at: '2026-03-25T09:39:09.495Z'+ updated_at: '2026-03-25T09:39:09.495Z'compare_at_amount:thumbnail_url:option_values: []@@ -6039,9 +6029,9 @@ paths:application/json:example:id: cart_UkLWZg9DAJ- number: R658658241- token: of5vvKYbLHPWf6jwaGVJWS61eRyzHV25pvB- email: [email protected]+ number: R662651419+ token: WEmzaiRZPep7yuNeU4Kui3eW1prTXbkFpVz+ email: [email protected]customer_note:currency: USDlocale: en@@ -6067,8 +6057,8 @@ paths:delivery_total: '0.0'display_delivery_total: "$0.00"warnings: []- created_at: '2026-03-24T20:08:44.946Z'- updated_at: '2026-03-24T20:08:45.046Z'+ created_at: '2026-03-25T09:39:11.267Z'+ updated_at: '2026-03-25T09:39:11.312Z'store_credit_total: '0.0'display_store_credit_total: "$0.00"covered_by_store_credit: false@@ -6088,8 +6078,8 @@ paths:variant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 507495- slug: product-507495+ name: Product 508281+ slug: product-508281options_text: ''price: '10.0'display_price: "$10.00"@@ -6108,8 +6098,8 @@ paths:discounted_amount: '10.0'display_discounted_amount: "$10.00"display_compare_at_amount: "$0.00"- created_at: '2026-03-24T20:08:45.009Z'- updated_at: '2026-03-24T20:08:45.045Z'+ created_at: '2026-03-25T09:39:11.295Z'+ updated_at: '2026-03-25T09:39:11.312Z'compare_at_amount:thumbnail_url:option_values: []@@ -6212,9 +6202,9 @@ paths:application/json:example:id: cart_UkLWZg9DAJ- number: R065765157- token: tHYcq7frvmLs3G6u3L2S9PaEb3mLi7ksdYv- email: [email protected]+ number: R671675163+ token: 29iW1hhmAcUuha1MayTZVxM76SJvAcNjuoG+ email: [email protected]customer_note:currency: USDlocale: en@@ -6240,8 +6230,8 @@ paths:delivery_total: '0.0'display_delivery_total: "$0.00"warnings: []- created_at: '2026-03-24T20:08:45.620Z'- updated_at: '2026-03-24T20:08:45.691Z'+ created_at: '2026-03-25T09:39:11.857Z'+ updated_at: '2026-03-25T09:39:11.920Z'store_credit_total: '0.0'display_store_credit_total: "$0.00"covered_by_store_credit: false@@ -6815,7 +6805,7 @@ paths:application/json:example:id: or_UkLWZg9DAJ- number: R718306567+ number: R799655260email: [email protected]customer_note:currency: USD@@ -6843,9 +6833,9 @@ paths:display_delivery_total: "$100.00"fulfillment_status:payment_status:- completed_at: '2026-03-24T20:08:47.484Z'- created_at: '2026-03-24T20:08:47.431Z'- updated_at: '2026-03-24T20:08:47.484Z'+ completed_at: '2026-03-25T09:39:13.757Z'+ created_at: '2026-03-25T09:39:13.709Z'+ updated_at: '2026-03-25T09:39:13.757Z'store_credit_total: '0.0'display_store_credit_total: "$0.00"covered_by_store_credit: false@@ -6855,8 +6845,8 @@ paths:variant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 542705- slug: product-542705+ name: Product 544811+ slug: product-544811options_text: ''price: '10.0'display_price: "$10.00"@@ -6875,21 +6865,21 @@ paths:discounted_amount: '10.0'display_discounted_amount: "$10.00"display_compare_at_amount: "$0.00"- created_at: '2026-03-24T20:08:47.463Z'- updated_at: '2026-03-24T20:08:47.463Z'+ created_at: '2026-03-25T09:39:13.738Z'+ updated_at: '2026-03-25T09:39:13.738Z'compare_at_amount:thumbnail_url:option_values: []digital_links: []fulfillments:- id: ful_UkLWZg9DAJ- number: H83077610612+ number: H30119997120tracking: U10000tracking_url:cost: '100.0'display_cost: "$100.00"- created_at: '2026-03-24T20:08:47.468Z'- updated_at: '2026-03-24T20:08:47.482Z'+ created_at: '2026-03-25T09:39:13.742Z'+ updated_at: '2026-03-25T09:39:13.755Z'status: pendingfulfillment_type: shippingfulfilled_at:@@ -6904,7 +6894,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_199- name: Reginia Hickle+ name: Jorge Altenwerthaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -7040,13 +7030,13 @@ paths:id: ps_gbHJdmfrXBstatus: pendingcurrency: USD- external_id: bogus_4aef2262d913b79efb003cea+ external_id: bogus_291dbfab3d9b0fa7bae4e081external_data:- client_secret: bogus_secret_c2cdd788a505094f+ client_secret: bogus_secret_66c31e743d4c4e0ecustomer_external_id:expires_at:- created_at: '2026-03-24T20:08:49.354Z'- updated_at: '2026-03-24T20:08:49.354Z'+ created_at: '2026-03-25T09:39:15.559Z'+ updated_at: '2026-03-25T09:39:15.559Z'amount: '110.0'payment_method_id: pm_UkLWZg9DAJorder_id: or_UkLWZg9DAJ@@ -7141,13 +7131,13 @@ paths:id: ps_UkLWZg9DAJstatus: pendingcurrency: USD- external_id: bogus_9180c2d84560a13f53e2bc8c+ external_id: bogus_d235273d2cd0d2171b5247f9external_data:client_secret: secret_123customer_external_id:expires_at:- created_at: '2026-03-24T20:08:49.970Z'- updated_at: '2026-03-24T20:08:49.970Z'+ created_at: '2026-03-25T09:39:16.154Z'+ updated_at: '2026-03-25T09:39:16.154Z'amount: '110.0'payment_method_id: pm_UkLWZg9DAJorder_id: or_UkLWZg9DAJ@@ -7204,13 +7194,13 @@ paths:id: ps_UkLWZg9DAJstatus: pendingcurrency: USD- external_id: bogus_898630c3490d6eb4f1490f09+ external_id: bogus_6a26c3d5b2e8c4aa70f8335fexternal_data:client_secret: secret_123customer_external_id:expires_at:- created_at: '2026-03-24T20:08:51.223Z'- updated_at: '2026-03-24T20:08:51.239Z'+ created_at: '2026-03-25T09:39:17.386Z'+ updated_at: '2026-03-25T09:39:17.398Z'amount: '50.0'payment_method_id: pm_UkLWZg9DAJorder_id: or_UkLWZg9DAJ@@ -7307,13 +7297,13 @@ paths:id: ps_UkLWZg9DAJstatus: completedcurrency: USD- external_id: bogus_ec957c2ded853928d828bdae+ external_id: bogus_8f57e927e70cb154a74255fcexternal_data:client_secret: secret_123customer_external_id:expires_at:- created_at: '2026-03-24T20:08:51.858Z'- updated_at: '2026-03-24T20:08:51.872Z'+ created_at: '2026-03-25T09:39:18.002Z'+ updated_at: '2026-03-25T09:39:18.016Z'amount: '110.0'payment_method_id: pm_UkLWZg9DAJorder_id: or_UkLWZg9DAJ@@ -7393,11 +7383,11 @@ paths:example:id: pss_gbHJdmfrXBstatus: pending- external_id: bogus_seti_0975ce758b8995d864acb64d- external_client_secret: bogus_seti_secret_b5c95f2d573c9e2d+ external_id: bogus_seti_f0eba1d4d374e12c26bc83b7+ external_client_secret: bogus_seti_secret_3f62dc82b8448517external_data: {}- created_at: '2026-03-24T20:08:53.118Z'- updated_at: '2026-03-24T20:08:53.118Z'+ created_at: '2026-03-25T09:39:19.206Z'+ updated_at: '2026-03-25T09:39:19.206Z'payment_method_id: pm_UkLWZg9DAJpayment_source_id:payment_source_type:@@ -7494,12 +7484,12 @@ paths:example:id: pss_UkLWZg9DAJstatus: pending- external_id: seti_test_e100c410a03051c3cce331a3- external_client_secret: seti_secret_6a44f6b74a01afbd2a2d4df0+ external_id: seti_test_40d5a6095ea77438f596ee3a+ external_client_secret: seti_secret_85358926232b8dc23736ed9eexternal_data:client_secret: secret_123- created_at: '2026-03-24T20:08:54.860Z'- updated_at: '2026-03-24T20:08:54.860Z'+ created_at: '2026-03-25T09:39:20.862Z'+ updated_at: '2026-03-25T09:39:20.862Z'payment_method_id: pm_UkLWZg9DAJpayment_source_id:payment_source_type:@@ -7572,12 +7562,12 @@ paths:example:id: pss_UkLWZg9DAJstatus: completed- external_id: seti_test_9f1bc1161487793084031fd2- external_client_secret: seti_secret_f8cf7fcf9b770d4ad97566ef+ external_id: seti_test_98e8a8cd1380136c3e92a0fe+ external_client_secret: seti_secret_b6721c7342439650a2db65d9external_data:client_secret: secret_123- created_at: '2026-03-24T20:08:56.024Z'- updated_at: '2026-03-24T20:08:56.038Z'+ created_at: '2026-03-25T09:39:21.965Z'+ updated_at: '2026-03-25T09:39:21.982Z'payment_method_id: pm_UkLWZg9DAJpayment_source_id: card_UkLWZg9DAJpayment_source_type: Spree::CreditCard@@ -7668,11 +7658,11 @@ paths:id: py_UkLWZg9DAJpayment_method_id: pm_UkLWZg9DAJresponse_code:- number: P9IZ2IT6+ number: PL991OD6amount: '110.0'display_amount: "$110.00"- created_at: '2026-03-24T20:08:57.238Z'- updated_at: '2026-03-24T20:08:57.238Z'+ created_at: '2026-03-25T09:39:23.154Z'+ updated_at: '2026-03-25T09:39:23.154Z'status: checkoutsource_type:source_id:@@ -7716,6 +7706,182 @@ paths:description: Arbitrary metadata to attach to the paymentrequired:- payment_method_id+ "/api/v3/store/policies":+ get:+ summary: List store policies+ tags:+ - Policies+ security:+ - api_key: []+ description: |+ Returns all policies for the current store (e.g., return policy, privacy policy, terms of service).+ Policies are managed in Spree Admin and contain rich text content.+ x-codeSamples:+ - lang: javascript+ label: Spree SDK+ source: |-+ import { createClient } from '@spree/sdk'++ const client = createClient({+ baseUrl: 'https://your-store.com',+ publishableKey: '<api-key>',+ })++ const policies = await client.policies.list()+ parameters:+ - name: x-spree-api-key+ in: header+ required: true+ schema:+ type: string+ - name: fields+ in: query+ required: false+ description: Comma-separated list of fields to include (e.g., name,slug).+ id is always included.+ schema:+ type: string+ responses:+ '200':+ description: policies listed+ content:+ application/json:+ example:+ data:+ - id: pol_gbHJdmfrXB+ name: Privacy Policy+ slug: privacy-policy+ body: ''+ body_html: ''+ created_at: '2026-03-25T09:38:31.457Z'+ updated_at: '2026-03-25T09:38:31.457Z'+ - id: pol_OIJLhNcSbf+ name: Privacy Policy+ slug: privacy-policy-2524eb39-a50c-4789-927d-bc660c6f4d5e+ body: We respect your privacy.+ body_html: |+ <div class="trix-content">+ We respect your privacy.+ </div>+ created_at: '2026-03-25T09:39:23.858Z'+ updated_at: '2026-03-25T09:39:23.859Z'+ - id: pol_uw2YK1rnl0+ name: Return Policy+ slug: return-policy+ body: You can return items within 30 days.+ body_html: |+ <div class="trix-content">+ You can return items within 30 days.+ </div>+ created_at: '2026-03-25T09:39:23.848Z'+ updated_at: '2026-03-25T09:39:23.850Z'+ - id: pol_EfhxLZ9ck8+ name: Returns Policy+ slug: returns-policy+ body: ''+ body_html: ''+ created_at: '2026-03-25T09:38:31.460Z'+ updated_at: '2026-03-25T09:38:31.460Z'+ - id: pol_VqXmZF31wY+ name: Shipping Policy+ slug: shipping-policy+ body: ''+ body_html: ''+ created_at: '2026-03-25T09:38:31.464Z'+ updated_at: '2026-03-25T09:38:31.464Z'+ - id: pol_UkLWZg9DAJ+ name: Terms of Service+ slug: terms-of-service+ body: ''+ body_html: ''+ created_at: '2026-03-25T09:38:31.451Z'+ updated_at: '2026-03-25T09:38:31.451Z'+ schema:+ type: object+ properties:+ data:+ type: array+ items:+ "$ref": "#/components/schemas/Policy"+ required:+ - data+ '401':+ description: unauthorized+ content:+ application/json:+ example:+ error:+ code: invalid_token+ message: Valid API key required+ schema:+ "$ref": "#/components/schemas/ErrorResponse"+ "/api/v3/store/policies/{id}":+ get:+ summary: Get a policy+ tags:+ - Policies+ security:+ - api_key: []+ description: Returns a single policy by slug or prefixed ID. Includes the full+ rich text body.+ x-codeSamples:+ - lang: javascript+ label: Spree SDK+ source: |-+ import { createClient } from '@spree/sdk'++ const client = createClient({+ baseUrl: 'https://your-store.com',+ publishableKey: '<api-key>',+ })++ const policy = await client.policies.get('return-policy')+ parameters:+ - name: x-spree-api-key+ in: header+ required: true+ schema:+ type: string+ - name: id+ in: path+ required: true+ description: Policy slug (e.g., return-policy) or prefixed ID (e.g., pol_abc123)+ schema:+ type: string+ - name: fields+ in: query+ required: false+ description: Comma-separated list of fields to include. id is always included.+ schema:+ type: string+ responses:+ '200':+ description: policy found+ content:+ application/json:+ example:+ id: pol_uw2YK1rnl0+ name: Return Policy+ slug: return-policy+ body: You can return items within 30 days.+ body_html: |+ <div class="trix-content">+ You can return items within 30 days.+ </div>+ created_at: '2026-03-25T09:39:23.919Z'+ updated_at: '2026-03-25T09:39:23.920Z'+ schema:+ "$ref": "#/components/schemas/Policy"+ '404':+ description: policy not found+ content:+ application/json:+ example:+ error:+ code: record_not_found+ message: Policy not found+ schema:+ "$ref": "#/components/schemas/ErrorResponse""/api/v3/store/products":get:summary: List products@@ -7830,14 +7996,14 @@ paths:example:data:- id: prod_UkLWZg9DAJ- name: Product 646094- slug: product-646094+ name: Product 647185+ slug: product-647185meta_description:meta_keywords:variant_count: 1- available_on: '2025-03-24T20:08:57.903Z'- created_at: '2026-03-24T20:08:57.918Z'- updated_at: '2026-03-24T20:08:57.986Z'+ available_on: '2025-03-25T09:39:24.004Z'+ created_at: '2026-03-25T09:39:24.017Z'+ updated_at: '2026-03-25T09:39:24.062Z'purchasable: truein_stock: falsebackorderable: true@@ -7859,32 +8025,24 @@ paths:price_list_id:original_price:- id: prod_gbHJdmfrXB- name: Product 655025- slug: product-655025+ name: Product 654042+ slug: product-654042meta_description:meta_keywords:variant_count: 0- available_on: '2025-03-24T20:08:57.993Z'- created_at: '2026-03-24T20:08:58.006Z'- updated_at: '2026-03-24T20:08:58.024Z'+ available_on: '2025-03-25T09:39:24.067Z'+ created_at: '2026-03-25T09:39:24.075Z'+ updated_at: '2026-03-25T09:39:24.088Z'purchasable: truein_stock: falsebackorderable: trueavailable: true- description: Sapiente labore doloribus fugiat at dolore. Earum atque- voluptas voluptatum culpa ullam at occaecati. Id cum voluptate- animi dolore. Dolorem aliquam blanditiis nisi consectetur ipsum.- Dignissimos culpa dolore iusto quaerat tempora odio. Illo eligendi- in rem adipisci. A non iste magni ipsam assumenda tempore. Exercitationem- minus odio eligendi quibusdam. Natus totam nostrum cumque tempore- cupiditate minima. Doloremque voluptatibus voluptate eum voluptatem- sapiente labore corrupti quidem. Laborum illum laudantium aliquam- sit optio. Soluta rerum laborum molestiae iusto. Nesciunt deleniti- similique laudantium cum.- description_html: |-- Sapiente labore doloribus fugiat at dolore. Earum atque voluptas voluptatum culpa ullam at occaecati. Id cum voluptate animi dolore. Dolorem aliquam blanditiis nisi consectetur ipsum. Dignissimos culpa dolore iusto quaerat tempora odio.- Illo eligendi in rem adipisci. A non iste magni ipsam assumenda tempore. Exercitationem minus odio eligendi quibusdam. Natus totam nostrum cumque tempore cupiditate minima.- Doloremque voluptatibus voluptate eum voluptatem sapiente labore corrupti quidem. Laborum illum laudantium aliquam sit optio. Soluta rerum laborum molestiae iusto. Nesciunt deleniti similique laudantium cum.+ description: Facere eius asperiores eligendi odio. Aut harum corporis+ quisquam optio minima iure ullam cum. Doloremque rerum odit officiis+ totam unde minus impedit.+ description_html: Facere eius asperiores eligendi odio. Aut harum+ corporis quisquam optio minima iure ullam cum. Doloremque rerum+ odit officiis totam unde minus impedit.default_variant_id: variant_EfhxLZ9ck8thumbnail_url:tags: []@@ -7986,14 +8144,14 @@ paths:application/json:example:id: prod_UkLWZg9DAJ- name: Product 928187- slug: product-928187+ name: Product 924489+ slug: product-924489meta_description:meta_keywords:variant_count: 1- available_on: '2025-03-24T20:08:59.701Z'- created_at: '2026-03-24T20:08:59.713Z'- updated_at: '2026-03-24T20:08:59.753Z'+ available_on: '2025-03-25T09:39:25.533Z'+ created_at: '2026-03-25T09:39:25.546Z'+ updated_at: '2026-03-25T09:39:25.579Z'purchasable: truein_stock: falsebackorderable: true@@ -8020,7 +8178,7 @@ paths:amount_in_cents: 999currency: USDdisplay_amount: "$9.99"- recorded_at: '2026-03-09T20:08:59Z'+ recorded_at: '2026-03-10T09:39:25Z'schema:"$ref": "#/components/schemas/Product"'404':@@ -8391,9 +8549,9 @@ paths:application/json:example:id: cart_UkLWZg9DAJ- number: R608039210- token: WuQyR9rQroQh4C2j9RymZP98SVrixHoHhtU- email: [email protected]+ number: R608248408+ token: hwD8tSBVbboAQpCm3URV3yMLBD9QBhPMAi2+ email: [email protected]customer_note:currency: USDlocale: en@@ -8419,8 +8577,8 @@ paths:delivery_total: '100.0'display_delivery_total: "$100.00"warnings: []- created_at: '2026-03-24T20:09:04.765Z'- updated_at: '2026-03-24T20:09:04.832Z'+ created_at: '2026-03-25T09:39:30.628Z'+ updated_at: '2026-03-25T09:39:30.682Z'store_credit_total: '10.0'display_store_credit_total: "-$10.00"covered_by_store_credit: false@@ -8434,8 +8592,8 @@ paths:variant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 1127964- slug: product-1127964+ name: Product 1125828+ slug: product-1125828options_text: ''price: '10.0'display_price: "$10.00"@@ -8454,21 +8612,21 @@ paths:discounted_amount: '10.0'display_discounted_amount: "$10.00"display_compare_at_amount: "$0.00"- created_at: '2026-03-24T20:09:04.805Z'- updated_at: '2026-03-24T20:09:04.805Z'+ created_at: '2026-03-25T09:39:30.662Z'+ updated_at: '2026-03-25T09:39:30.662Z'compare_at_amount:thumbnail_url:option_values: []digital_links: []fulfillments:- id: ful_UkLWZg9DAJ- number: H94330046103+ number: H47568648537tracking: U10000tracking_url:cost: '100.0'display_cost: "$100.00"- created_at: '2026-03-24T20:09:04.812Z'- updated_at: '2026-03-24T20:09:04.829Z'+ created_at: '2026-03-25T09:39:30.667Z'+ updated_at: '2026-03-25T09:39:30.679Z'status: pendingfulfillment_type: shippingfulfilled_at:@@ -8483,7 +8641,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_273- name: Peggie Baumbach+ name: Tanna Lubowitzaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -8504,12 +8662,12 @@ paths:payments:- id: py_UkLWZg9DAJpayment_method_id: pm_UkLWZg9DAJ- response_code: 1-SC-20260324200905127951- number: PRLNCOA0+ response_code: 1-SC-20260325093930971740+ number: PDQO7FZ4amount: '10.0'display_amount: "$10.00"- created_at: '2026-03-24T20:09:05.131Z'- updated_at: '2026-03-24T20:09:05.131Z'+ created_at: '2026-03-25T09:39:30.975Z'+ updated_at: '2026-03-25T09:39:30.975Z'status: checkoutsource_type: store_creditsource_id: credit_UkLWZg9DAJ@@ -8646,9 +8804,9 @@ paths:application/json:example:id: cart_UkLWZg9DAJ- number: R827237064- token: gsYYcbFbC6ZTF1oUnVptnJNvBUopn3kKsRB- email: [email protected]+ number: R290672949+ token: XeaQs5iaCBE9VP8V4kwPafy4oVBtfEojGBa+ email: [email protected]customer_note:currency: USDlocale: en@@ -8674,8 +8832,8 @@ paths:delivery_total: '100.0'display_delivery_total: "$100.00"warnings: []- created_at: '2026-03-24T20:09:06.364Z'- updated_at: '2026-03-24T20:09:06.427Z'+ created_at: '2026-03-25T09:39:32.166Z'+ updated_at: '2026-03-25T09:39:32.212Z'store_credit_total: '0.0'display_store_credit_total: "$0.00"covered_by_store_credit: false@@ -8692,8 +8850,8 @@ paths:variant_id: variant_UkLWZg9DAJquantity: 1currency: USD- name: Product 1144492- slug: product-1144492+ name: Product 114152+ slug: product-114152options_text: ''price: '10.0'display_price: "$10.00"@@ -8712,21 +8870,21 @@ paths:discounted_amount: '10.0'display_discounted_amount: "$10.00"display_compare_at_amount: "$0.00"- created_at: '2026-03-24T20:09:06.401Z'- updated_at: '2026-03-24T20:09:06.401Z'+ created_at: '2026-03-25T09:39:32.192Z'+ updated_at: '2026-03-25T09:39:32.192Z'compare_at_amount:thumbnail_url:option_values: []digital_links: []fulfillments:- id: ful_UkLWZg9DAJ- number: H38035426269+ number: H93452447094tracking: U10000tracking_url:cost: '100.0'display_cost: "$100.00"- created_at: '2026-03-24T20:09:06.408Z'- updated_at: '2026-03-24T20:09:06.424Z'+ created_at: '2026-03-25T09:39:32.196Z'+ updated_at: '2026-03-25T09:39:32.209Z'status: pendingfulfillment_type: shippingfulfilled_at:@@ -8741,7 +8899,7 @@ paths:stock_location:id: sloc_UkLWZg9DAJstate_abbr: STATE_ABBR_281- name: Caitlyn Oga+ name: Takako McKenzieaddress1: 1600 Pennsylvania Ave NWcity: Washingtonzipcode: '20500'@@ -8862,9 +9020,9 @@ paths:data:- id: wl_UkLWZg9DAJname: My Wishlist- token: JeMhu5dxM7jHQXZn5brnoNns- created_at: '2026-03-24T20:09:07.019Z'- updated_at: '2026-03-24T20:09:07.019Z'+ token: DRgxj8o6YRf3eR8zryY3gWSj+ created_at: '2026-03-25T09:39:32.801Z'+ updated_at: '2026-03-25T09:39:32.801Z'is_default: falseis_private: truemeta:@@ -8940,9 +9098,9 @@ paths:example:id: wl_gbHJdmfrXBname: Birthday Ideas- token: m2HuyQ8AZA7keZaBvyDnUNo4- created_at: '2026-03-24T20:09:08.283Z'- updated_at: '2026-03-24T20:09:08.283Z'+ token: TGeBx4QkTFEP4emBmcHFiNaP+ created_at: '2026-03-25T09:39:34.011Z'+ updated_at: '2026-03-25T09:39:34.011Z'is_default: falseis_private: trueschema:@@ -9038,9 +9196,9 @@ paths:example:id: wl_UkLWZg9DAJname: My Wishlist- token: 9vvrrNVJjbRvLvFHwhQV7tWy- created_at: '2026-03-24T20:09:09.443Z'- updated_at: '2026-03-24T20:09:09.443Z'+ token: uFqBDNPgU9HmTtAxpjY6utKq+ created_at: '2026-03-25T09:39:35.139Z'+ updated_at: '2026-03-25T09:39:35.139Z'is_default: falseis_private: trueschema:@@ -9102,9 +9260,9 @@ paths:example:id: wl_UkLWZg9DAJname: Updated Name- token: 2qfkxZqjoPzDxiMMWFgv1XHG- created_at: '2026-03-24T20:09:10.626Z'- updated_at: '2026-03-24T20:09:10.680Z'+ token: T6AA84UQq66ZesU8qLboP8dp+ created_at: '2026-03-25T09:39:36.306Z'+ updated_at: '2026-03-25T09:39:36.359Z'is_default: falseis_private: trueschema:@@ -9216,8 +9374,8 @@ paths:variant_id: variant_gbHJdmfrXBwishlist_id: wl_UkLWZg9DAJquantity: 1- created_at: '2026-03-24T20:09:11.928Z'- updated_at: '2026-03-24T20:09:11.928Z'+ created_at: '2026-03-25T09:39:37.572Z'+ updated_at: '2026-03-25T09:39:37.572Z'variant:id: variant_gbHJdmfrXBproduct_id: prod_gbHJdmfrXB@@ -9225,8 +9383,8 @@ paths:options_text: ''track_inventory: truemedia_count: 0- created_at: '2026-03-24T20:09:11.901Z'- updated_at: '2026-03-24T20:09:11.911Z'+ created_at: '2026-03-25T09:39:37.547Z'+ updated_at: '2026-03-25T09:39:37.557Z'thumbnail_url:purchasable: truein_stock: false@@ -9337,6 +9495,8 @@ tags:description: Markets, countries, currencies, and locales- name: Wishlistsdescription: Customer wishlists+- name: Policies+ description: Store policies (return policy, privacy policy, terms of service)- name: Digitalsdescription: Digital product downloadsx-tagGroups:@@ -9361,6 +9521,9 @@ x-tagGroups:- name: Wishliststags:- Wishlists+- name: Policies+ tags:+ - Policies- name: Digitalstags:- Digitals@@ -10966,6 +11129,34 @@ components:- id- gateway_payment_profile_idx-typelizer: true+ Policy:+ type: object+ properties:+ id:+ type: string+ name:+ type: string+ slug:+ type: string+ body:+ type: string+ nullable: true+ body_html:+ type: string+ nullable: true+ created_at:+ type: string+ updated_at:+ type: string+ required:+ - id+ - name+ - slug+ - body+ - body_html+ - created_at+ - updated_at+ x-typelizer: truePriceHistory:type: objectproperties:diff --git a/docs/developer/sdk/quickstart.mdx b/docs/developer/sdk/quickstart.mdxindex 12ebdfff04..c387d659fa 100644--- a/docs/developer/sdk/quickstart.mdx+++ b/docs/developer/sdk/quickstart.mdx@@ -69,6 +69,7 @@ The SDK uses a resource builder pattern for nested resources:| `customer` | `giftCards` | `list`, `get` || `customer` | `orders` | `list` || `customer` | `paymentSetupSessions` | `create`, `get`, `complete` |+| `policies` | — | `list`, `get` || `categories` | `products` | `list` || `wishlists` | `items` | `create`, `update`, `delete` |diff --git a/packages/next/CHANGELOG.md b/packages/next/CHANGELOG.mdindex 496657d961..6793be4610 100644--- a/packages/next/CHANGELOG.md+++ b/packages/next/CHANGELOG.md@@ -10,11 +10,12 @@- **`applyGiftCard(code)`** — apply gift card to cart- **`removeGiftCard(giftCardId)`** — remove gift card by prefixed ID- **Cart warnings** — `cart.warnings` array flags items removed due to stock changes+- **Store policies** — `listPolicies()` and `getPolicy(slug)` data functions for return policy, privacy policy, terms of service, etc.### Types- `Cart` type now includes `warnings` array-- New re-exported type: `CartWarning`+- New re-exported types: `CartWarning`, `Policy`Requires `@spree/sdk >= 0.16.0`.diff --git a/packages/next/src/data/policies.ts b/packages/next/src/data/policies.tsnew file mode 100644index 0000000000..fda3eb04d4--- /dev/null+++ b/packages/next/src/data/policies.ts@@ -0,0 +1,27 @@+import type { Policy } from '@spree/sdk';+import { getClient } from '../config';+import { getLocaleOptions } from '../locale';+import type { SpreeNextOptions } from '../types';++/**+ * List store policies (return policy, privacy policy, terms of service, etc.)+ * Locale/country are auto-read from cookies when not provided.+ */+export async function listPolicies(+ options?: SpreeNextOptions+): Promise<{ data: Policy[] }> {+ const resolved = options ?? await getLocaleOptions();+ return getClient().policies.list(resolved);+}++/**+ * Get a single policy by slug or prefixed ID.+ * @param id - Policy slug (e.g., 'return-policy') or prefixed ID (e.g., 'pol_abc123')+ */+export async function getPolicy(+ id: string,+ options?: SpreeNextOptions+): Promise<Policy> {+ const resolved = options ?? await getLocaleOptions();+ return getClient().policies.get(id, resolved);+}diff --git a/packages/next/src/index.ts b/packages/next/src/index.tsindex f7a0b90fba..dfb2c977fd 100644--- a/packages/next/src/index.ts+++ b/packages/next/src/index.ts@@ -9,6 +9,7 @@ export { listCountries, getCountry } from './data/countries';export { listCurrencies } from './data/currencies';export { listLocales } from './data/locales';export { listMarkets, getMarket, resolveMarket, listMarketCountries, getMarketCountry } from './data/markets';+export { listPolicies, getPolicy } from './data/policies';// Server actions (mutations + auth-dependent reads)export {@@ -80,6 +81,7 @@ export type {Currency,Locale,Market,+ Policy,Address,Customer,CreditCard,diff --git a/packages/sdk/CHANGELOG.md b/packages/sdk/CHANGELOG.mdindex c2b269c4bd..454af0c4d8 100644--- a/packages/sdk/CHANGELOG.md+++ b/packages/sdk/CHANGELOG.md@@ -13,11 +13,13 @@- **`amount_due` / `display_amount_due`** — new fields on Cart and Order types showing the amount owed after store credits/gift cards- **Cart warnings** — every cart response now includes a `warnings` array flagging issues like removed out-of-stock items- **Gift card error codes** — dedicated error codes: `gift_card_not_found`, `gift_card_expired`, `gift_card_already_redeemed`+- **Store policies** — `client.policies.list()` and `client.policies.get(slug)` for return policy, privacy policy, terms of service, etc.### Types- `Cart` type now includes `warnings` array and `amount_due` / `display_amount_due` fields- New exported type: `CartWarning` (derived from `Cart['warnings'][number]`)+- New exported type: `Policy`## 0.15.0diff --git a/packages/sdk/README.md b/packages/sdk/README.mdindex 464eb634fa..70d7a9e358 100644--- a/packages/sdk/README.md+++ b/packages/sdk/README.md@@ -577,6 +577,7 @@ The SDK uses a resource builder pattern for nested resources:| `carts` | `payments` | `create` || `carts` | `paymentSessions` | `create`, `get`, `update`, `complete` || `carts` | `storeCredits` | `apply`, `remove` |+| `policies` | — | `list`, `get` || `passwordResets` | — | `create`, `update` || `customer` | `addresses` | `list`, `get`, `create`, `update`, `delete` || `customer` | `creditCards` | `list`, `get`, `delete` |diff --git a/packages/sdk/src/store-client.ts b/packages/sdk/src/store-client.tsindex a7eb40dbf9..655c2059c4 100644--- a/packages/sdk/src/store-client.ts+++ b/packages/sdk/src/store-client.ts@@ -36,6 +36,7 @@ import type {Currency,Locale,Market,+ Policy,Category,Payment,PaymentSession,@@ -222,6 +223,25 @@ export class StoreClient {this.request<ListResponse<Locale>>('GET', '/locales', options),};+ // ============================================+ // Policies+ // ============================================++ readonly policies = {+ /**+ * List store policies (return policy, privacy policy, terms of service, etc.)+ */+ list: (options?: RequestOptions): Promise<ListResponse<Policy>> =>+ this.request<ListResponse<Policy>>('GET', '/policies', options),++ /**+ * Get a policy by slug or prefixed ID+ * @param id - Policy slug (e.g., 'return-policy') or prefixed ID (e.g., 'pol_abc123')+ */+ get: (id: string, options?: RequestOptions): Promise<Policy> =>+ this.request<Policy>('GET', `/policies/${id}`, options),+ };+// ============================================// Markets// ============================================diff --git a/packages/sdk/src/types/generated/Cart.ts b/packages/sdk/src/types/generated/Cart.tsindex 28034dc497..58b9a6e73b 100644--- a/packages/sdk/src/types/generated/Cart.ts+++ b/packages/sdk/src/types/generated/Cart.ts@@ -1,4 +1,4 @@-// Typelizer digest 4b818c3ed4e47fe243930784069d5626+// Typelizer digest 2b71b9761fc7d3f25849da7ade395768//// DO NOT MODIFY: This file was automatically generated by Typelizer.import type {Discount, LineItem, Fulfillment, Payment, Address, PaymentMethod, GiftCard} from '@/types'@@ -32,6 +32,7 @@ interface Cart {display_amount_due: string;delivery_total: string;display_delivery_total: string;+ warnings: Array<{code: string, message: string, line_item_id?: string, variant_id?: string}>;created_at: string;updated_at: string;store_credit_total: string;@@ -41,7 +42,6 @@ interface Cart {completed_steps: Array<string>;requirements: Array<{step: string, field: string, message: string}>;shipping_eq_billing_address: boolean;- warnings: Array<{code: string, message: string, line_item_id?: string, variant_id?: string}>;discounts: Array<Discount>;items: Array<LineItem>;fulfillments: Array<Fulfillment>;diff --git a/packages/sdk/src/types/generated/Policy.ts b/packages/sdk/src/types/generated/Policy.tsnew file mode 100644index 0000000000..13c8ff4364--- /dev/null+++ b/packages/sdk/src/types/generated/Policy.ts@@ -0,0 +1,15 @@+// Typelizer digest 56c95b1ef954c121212e446da1acf74e+//+// DO NOT MODIFY: This file was automatically generated by Typelizer.++interface Policy {+ id: string;+ name: string;+ slug: string;+ body: string | null;+ body_html: string | null;+ created_at: string;+ updated_at: string;+}++export default Policy;diff --git a/packages/sdk/src/types/generated/index.ts b/packages/sdk/src/types/generated/index.tsindex 2f64d1924a..899a82f064 100644--- a/packages/sdk/src/types/generated/index.ts+++ b/packages/sdk/src/types/generated/index.ts@@ -1,4 +1,4 @@-// Typelizer digest e4e7878b329b50b1fd9918c5497f2781+// Typelizer digest 965727e27d68e67eaba501cbb1a1fd15//// DO NOT MODIFY: This file was automatically generated by Typelizer.export type { default as Address } from './Address'@@ -32,6 +32,7 @@ export type { default as Payment } from './Payment'export type { default as PaymentSession } from './PaymentSession'export type { default as PaymentSetupSession } from './PaymentSetupSession'export type { default as PaymentSource } from './PaymentSource'+export type { default as Policy } from './Policy'export type { default as PriceHistory } from './PriceHistory'export type { default as Price } from './Price'export type { default as Product } from './Product'diff --git a/packages/sdk/src/types/index.ts b/packages/sdk/src/types/index.tsindex ae22924b8f..5bc5360b9c 100644--- a/packages/sdk/src/types/index.ts+++ b/packages/sdk/src/types/index.ts@@ -31,6 +31,7 @@ export type {PaymentSession,PaymentSetupSession,PaymentSource,+ Policy,Price,Product,Promotion,diff --git a/packages/sdk/src/zod/generated/Cart.ts b/packages/sdk/src/zod/generated/Cart.tsindex bb3474b99f..d7f52b6f7a 100644--- a/packages/sdk/src/zod/generated/Cart.ts+++ b/packages/sdk/src/zod/generated/Cart.ts@@ -37,6 +37,7 @@ export const CartSchema = z.object({display_amount_due: z.string(),delivery_total: z.string(),display_delivery_total: z.string(),+ warnings: z.array(z.any()),created_at: z.string(),updated_at: z.string(),store_credit_total: z.string(),@@ -46,7 +47,6 @@ export const CartSchema = z.object({completed_steps: z.array(z.string()),requirements: z.array(z.object({ step: z.string(), field: z.string(), message: z.string() })),shipping_eq_billing_address: z.boolean(),- warnings: z.array(z.any()),discounts: z.array(DiscountSchema),items: z.array(LineItemSchema),fulfillments: z.array(FulfillmentSchema),diff --git a/packages/sdk/src/zod/generated/Policy.ts b/packages/sdk/src/zod/generated/Policy.tsnew file mode 100644index 0000000000..5709ec462d--- /dev/null+++ b/packages/sdk/src/zod/generated/Policy.ts@@ -0,0 +1,14 @@+// This file is auto-generated. Do not edit directly.+import { z } from 'zod';++export const PolicySchema = z.object({+ id: z.string(),+ name: z.string(),+ slug: z.string(),+ body: z.string().nullable(),+ body_html: z.string().nullable(),+ created_at: z.string(),+ updated_at: z.string(),+});++export type Policy = z.infer<typeof PolicySchema>;diff --git a/packages/sdk/src/zod/generated/index.ts b/packages/sdk/src/zod/generated/index.tsindex 7496c26419..c05757abc3 100644--- a/packages/sdk/src/zod/generated/index.ts+++ b/packages/sdk/src/zod/generated/index.ts@@ -30,6 +30,7 @@ export { PaymentMethodSchema, type PaymentMethod } from './PaymentMethod';export { PaymentSessionSchema, type PaymentSession } from './PaymentSession';export { PaymentSetupSessionSchema, type PaymentSetupSession } from './PaymentSetupSession';export { PaymentSourceSchema, type PaymentSource } from './PaymentSource';+export { PolicySchema, type Policy } from './Policy';export { PriceSchema, type Price } from './Price';export { PriceHistorySchema, type PriceHistory } from './PriceHistory';export { ProductSchema, type Product } from './Product';diff --git a/packages/sdk/tests/mocks/handlers.ts b/packages/sdk/tests/mocks/handlers.tsindex eed93719de..55cf01405f 100644--- a/packages/sdk/tests/mocks/handlers.ts+++ b/packages/sdk/tests/mocks/handlers.ts@@ -526,6 +526,23 @@ export const handlers = [HttpResponse.json({ token: 'new-jwt-token', user: fixtures.user })),+ // Policies+ http.get(`${API_PREFIX}/policies`, () =>+ HttpResponse.json({+ data: [+ { id: 'pol_1', name: 'Return Policy', slug: 'return-policy', body: 'Return within 30 days.', body_html: '<p>Return within 30 days.</p>', created_at: '2026-01-01T00:00:00Z', updated_at: '2026-01-01T00:00:00Z' },+ { id: 'pol_2', name: 'Privacy Policy', slug: 'privacy-policy', body: 'We respect your privacy.', body_html: '<p>We respect your privacy.</p>', created_at: '2026-01-01T00:00:00Z', updated_at: '2026-01-01T00:00:00Z' },+ ]+ })+ ),++ http.get(`${API_PREFIX}/policies/:id`, () =>+ HttpResponse.json({+ id: 'pol_1', name: 'Return Policy', slug: 'return-policy', body: 'Return within 30 days.', body_html: '<p>Return within 30 days.</p>',+ created_at: '2026-01-01T00:00:00Z', updated_at: '2026-01-01T00:00:00Z'+ })+ ),+// Wishlistshttp.get(`${API_PREFIX}/wishlists`, () =>HttpResponse.json({ data: [fixtures.wishlist], meta: paginationMeta })diff --git a/packages/sdk/tests/policies.test.ts b/packages/sdk/tests/policies.test.tsnew file mode 100644index 0000000000..f31680821a--- /dev/null+++ b/packages/sdk/tests/policies.test.ts@@ -0,0 +1,26 @@+import { describe, it, expect, beforeAll } from 'vitest';+import { createTestClient } from './helpers';+import type { Client } from '../src';++describe('policies', () => {+ let client: Client;+ beforeAll(() => { client = createTestClient(); });++ it('lists store policies', async () => {+ const result = await client.policies.list();+ expect(result.data).toHaveLength(2);+ expect(result.data[0].slug).toBe('return-policy');+ expect(result.data[0].name).toBe('Return Policy');+ expect(result.data[0].body).toBe('Return within 30 days.');+ expect(result.data[0].body_html).toBe('<p>Return within 30 days.</p>');+ });++ it('gets a policy by slug', async () => {+ const result = await client.policies.get('return-policy');+ expect(result.id).toBe('pol_1');+ expect(result.name).toBe('Return Policy');+ expect(result.slug).toBe('return-policy');+ expect(result.body).toBe('Return within 30 days.');+ expect(result.body_html).toBe('<p>Return within 30 days.</p>');+ });+});diff --git a/spree/api/app/controllers/spree/api/v3/store/policies_controller.rb b/spree/api/app/controllers/spree/api/v3/store/policies_controller.rbnew file mode 100644index 0000000000..ff186dcf50--- /dev/null+++ b/spree/api/app/controllers/spree/api/v3/store/policies_controller.rb@@ -0,0 +1,34 @@+module Spree+ module Api+ module V3+ module Store+ class PoliciesController < Store::ResourceController+ include Spree::Api::V3::HttpCaching++ protected++ def model_class+ Spree::Policy+ end++ def serializer_class+ Spree.api.policy_serializer+ end++ # Accept slug (e.g., return-policy) or prefixed ID (e.g., pol_abc123)+ def find_resource+ if params[:id].to_s.start_with?('pol_')+ scope.find_by_prefix_id!(params[:id])+ else+ scope.friendly.find(params[:id])+ end+ end++ def scope+ super.order(:name)+ end+ end+ end+ end+ end+enddiff --git a/spree/api/app/serializers/spree/api/v3/policy_serializer.rb b/spree/api/app/serializers/spree/api/v3/policy_serializer.rbnew file mode 100644index 0000000000..7e39d73b0f--- /dev/null+++ b/spree/api/app/serializers/spree/api/v3/policy_serializer.rb@@ -0,0 +1,22 @@+module Spree+ module Api+ module V3+ class PolicySerializer < BaseSerializer+ typelize name: :string, slug: :string,+ body: [:string, nullable: true], body_html: [:string, nullable: true]++ attributes :name, :slug++ attribute :body do |policy|+ policy.body&.to_plain_text+ end++ attribute :body_html do |policy|+ policy.body&.body&.to_s.to_s+ end++ attributes created_at: :iso8601, updated_at: :iso8601+ end+ end+ end+enddiff --git a/spree/api/config/routes.rb b/spree/api/config/routes.rbindex 4b4b716fbb..3df596e739 100644--- a/spree/api/config/routes.rb+++ b/spree/api/config/routes.rb@@ -53,6 +53,9 @@ Spree::Core::Engine.add_routes do# Orders (single order lookup, guest-accessible via order token)resources :orders, only: [:show]+ # Policies (return policy, privacy policy, terms of service, etc.)+ resources :policies, only: [:index, :show]+# Password Resets (top-level, no auth required)resources :password_resets, only: [:create, :update], controller: 'customer/password_resets'diff --git a/spree/api/lib/spree/api/dependencies.rb b/spree/api/lib/spree/api/dependencies.rbindex 5ced9e8015..5176ceb44d 100644--- a/spree/api/lib/spree/api/dependencies.rb+++ b/spree/api/lib/spree/api/dependencies.rb@@ -130,6 +130,7 @@ module Spreegift_card_serializer: 'Spree::Api::V3::GiftCardSerializer',currency_serializer: 'Spree::Api::V3::CurrencySerializer',locale_serializer: 'Spree::Api::V3::LocaleSerializer',+ policy_serializer: 'Spree::Api::V3::PolicySerializer',metafield_serializer: 'Spree::Api::V3::MetafieldSerializer',shipping_category_serializer: 'Spree::Api::V3::ShippingCategorySerializer',tax_category_serializer: 'Spree::Api::V3::TaxCategorySerializer',diff --git a/spree/api/spec/controllers/spree/api/v3/store/policies_controller_spec.rb b/spree/api/spec/controllers/spree/api/v3/store/policies_controller_spec.rbnew file mode 100644index 0000000000..ee23019cd1--- /dev/null+++ b/spree/api/spec/controllers/spree/api/v3/store/policies_controller_spec.rb@@ -0,0 +1,75 @@+require 'spec_helper'++RSpec.describe Spree::Api::V3::Store::PoliciesController, type: :controller do+ render_views++ include_context 'API v3 Store'++ before do+ request.headers['X-Spree-Api-Key'] = api_key.token+ end++ let!(:return_policy) { create(:policy, owner: store, name: 'Return Policy', slug: 'return-policy', body: 'You can return within 30 days.') }+ let!(:privacy_policy) { create(:policy, owner: store, name: 'Privacy Policy', slug: 'privacy-policy', body: 'We respect your privacy.') }++ describe 'GET #index' do+ it 'returns policies for the store' do+ get :index++ expect(response).to have_http_status(:ok)+ slugs = json_response['data'].map { |p| p['slug'] }+ expect(slugs).to include('return-policy', 'privacy-policy')+ end++ it 'returns policy attributes' do+ get :index++ policy = json_response['data'].find { |p| p['slug'] == 'return-policy' }+ expect(policy['id']).to start_with('pol_')+ expect(policy['name']).to eq('Return Policy')+ expect(policy['slug']).to eq('return-policy')+ end++ it 'orders by name' do+ get :index++ names = json_response['data'].map { |p| p['name'] }+ expect(names).to eq(names.sort)+ end++ it 'does not return policies from other stores' do+ other_store = create(:store)+ create(:policy, owner: other_store, name: 'Other Policy', slug: 'other-policy')++ get :index++ slugs = json_response['data'].map { |p| p['slug'] }+ expect(slugs).not_to include('other-policy')+ end+ end++ describe 'GET #show' do+ it 'returns a policy by slug' do+ get :show, params: { id: 'return-policy' }++ expect(response).to have_http_status(:ok)+ expect(json_response['id']).to start_with('pol_')+ expect(json_response['name']).to eq('Return Policy')+ expect(json_response['slug']).to eq('return-policy')+ expect(json_response['body']).to include('return within 30 days')+ end++ it 'returns a policy by prefixed ID' do+ get :show, params: { id: return_policy.prefixed_id }++ expect(response).to have_http_status(:ok)+ expect(json_response['name']).to eq('Return Policy')+ end++ it 'returns 404 for non-existent policy' do+ get :show, params: { id: 'non-existent-policy' }++ expect(response).to have_http_status(:not_found)+ end+ end+enddiff --git a/spree/api/spec/integration/spree/api/v3/store/policies_spec.rb b/spree/api/spec/integration/spree/api/v3/store/policies_spec.rbnew file mode 100644index 0000000000..fd607e02b2--- /dev/null+++ b/spree/api/spec/integration/spree/api/v3/store/policies_spec.rb@@ -0,0 +1,99 @@+# frozen_string_literal: true++require 'swagger_helper'++RSpec.describe 'Policies API', type: :request, swagger_doc: 'api-reference/store.yaml' do+ include_context 'API v3 Store'++ let!(:return_policy) { create(:policy, owner: store, name: 'Return Policy', slug: 'return-policy', body: 'You can return items within 30 days.') }+ let!(:privacy_policy) { create(:policy, owner: store, name: 'Privacy Policy', slug: 'privacy-policy', body: 'We respect your privacy.') }++ path '/api/v3/store/policies' do+ get 'List store policies' do+ tags 'Policies'+ produces 'application/json'+ security [api_key: []]+ description <<~DESC+ Returns all policies for the current store (e.g., return policy, privacy policy, terms of service).+ Policies are managed in Spree Admin and contain rich text content.+ DESC++ sdk_example <<~JS+ const policies = await client.policies.list()+ JS++ parameter 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). id is always included.'++ response '200', 'policies listed' do+ let(:'x-spree-api-key') { api_key.token }++ schema type: :object,+ properties: {+ data: {+ type: :array,+ items: { '$ref' => '#/components/schemas/Policy' }+ }+ },+ required: ['data']++ run_test! do |response|+ data = JSON.parse(response.body)+ slugs = data['data'].map { |p| p['slug'] }+ expect(slugs).to include('return-policy', 'privacy-policy')+ end+ end++ response '401', 'unauthorized' do+ let(:'x-spree-api-key') { 'invalid' }++ schema '$ref' => '#/components/schemas/ErrorResponse'++ run_test!+ end+ end+ end++ path '/api/v3/store/policies/{id}' do+ get 'Get a policy' do+ tags 'Policies'+ produces 'application/json'+ security [api_key: []]+ description 'Returns a single policy by slug or prefixed ID. Includes the full rich text body.'++ sdk_example <<~JS+ const policy = await client.policies.get('return-policy')+ JS++ parameter name: 'x-spree-api-key', in: :header, type: :string, required: true+ parameter name: :id, in: :path, type: :string, required: true,+ description: 'Policy slug (e.g., return-policy) or prefixed ID (e.g., pol_abc123)'+ parameter name: :fields, in: :query, type: :string, required: false,+ description: 'Comma-separated list of fields to include. id is always included.'++ response '200', 'policy found' do+ let(:'x-spree-api-key') { api_key.token }+ let(:id) { 'return-policy' }++ schema '$ref' => '#/components/schemas/Policy'++ run_test! do |response|+ data = JSON.parse(response.body)+ expect(data['name']).to eq('Return Policy')+ expect(data['slug']).to eq('return-policy')+ expect(data['body']).to be_present+ end+ end++ response '404', 'policy not found' do+ let(:'x-spree-api-key') { api_key.token }+ let(:id) { 'non-existent-policy' }++ schema '$ref' => '#/components/schemas/ErrorResponse'++ run_test!+ end+ end+ end+enddiff --git a/spree/api/spec/swagger_helper.rb b/spree/api/spec/swagger_helper.rbindex 33e294ce94..391ce17a9d 100644--- a/spree/api/spec/swagger_helper.rb+++ b/spree/api/spec/swagger_helper.rb@@ -75,6 +75,7 @@ RSpec.configure do |config|{ name: 'Customers', description: 'Customer account, addresses, saved payment methods, and order history' },{ name: 'Markets', description: 'Markets, countries, currencies, and locales' },{ name: 'Wishlists', description: 'Customer wishlists' },+ { name: 'Policies', description: 'Store policies (return policy, privacy policy, terms of service)' },{ name: 'Digitals', description: 'Digital product downloads' }],'x-tagGroups': [@@ -85,6 +86,7 @@ RSpec.configure do |config|{ name: 'Customers', tags: ['Customers'] },{ name: 'Markets', tags: ['Markets'] },{ name: 'Wishlists', tags: ['Wishlists'] },+ { name: 'Policies', tags: ['Policies'] },{ name: 'Digitals', tags: ['Digitals'] }],components: {