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 Digital Links for API v3 (#13588)
Damian Legawiec02d53bd027e1
diff --git a/CLAUDE.md b/CLAUDE.mdindex 881872feb1..0a309eebd6 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -12,12 +12,12 @@- Most users run Spree in headless mode with custom frontends using the Storefront API- Follow Rails conventions and the Rails Security Guide- Prefer Rails idioms and standard patterns over custom solutions+- Use RESTful action names### Code Organization- Place all models in `app/models/spree/` directory- Place all controllers in `app/controllers/spree/` directory-- Place all views in `app/views/spree/` directory- Place all services in `app/services/spree/` directory- Place all mailers in `app/mailers/spree/` directory- Place all API serializers in `app/serializers/spree/` directory@@ -29,6 +29,14 @@- Do not call `Spree::User` directly, use `Spree.user_class` instead- Do not call `Spree::AdminUser` directly, use `Spree.admin_user_class` instead+### Spree::Current class++`Spree::Current` is a class that provides access to the current store, currency, and locale. It is available in models, controllers, jobs and services. Each value is set per request.++`Spree::Current.store` — current store+`Spree::Current.currency` — current currency+`Spree::Current.locale` — current locale+## Naming Conventions & Structure### Classes & Modules@@ -58,8 +66,6 @@ Always inherit from `Spree.base_class` when creating models.- Models: `app/models/spree/product.rb`- Controllers: `app/controllers/spree/admin/products_controller.rb`-- Views: `app/views/spree/admin/products/`-- Decorators: `app/models/spree/product_decorator.rb`## Model Development@@ -270,13 +276,16 @@ store_api_key = Spree::ApiKey.create!(name: 'My Storefront', key_type: :publishaadmin_api_key = Spree::ApiKey.create!(name: 'Admin Integration', key_type: :secret, store: Spree::Current.store)```-## Spree::Current class+### OpenAPI generation-Spree::Current is a class that provides access to the current store, currency, and locale. It is available in models, controllers, jobs and services. Each value is set per request.+Store API Open API specitication is generated using rswag gem, and stored in `docs/api-reference/store.yaml` file.+To generate the OpenAPI specification, run the following command:-`Spree::Current.store` — current store-`Spree::Current.currency` — current currency-`Spree::Current.locale` — current locale+```bash+bundle exec rake rswag:specs:swaggerize+```++It will use Rspec integration tests from `backend/engines/api/spec/integration`.## Events Systemdiff --git a/backend/engines/api/app/controllers/spree/api/v3/store/digitals_controller.rb b/backend/engines/api/app/controllers/spree/api/v3/store/digitals_controller.rbindex f2b37dbccd..a63b3de22a 100644--- a/backend/engines/api/app/controllers/spree/api/v3/store/digitals_controller.rb+++ b/backend/engines/api/app/controllers/spree/api/v3/store/digitals_controller.rb@@ -2,11 +2,13 @@ module Spreemodule Apimodule V3module Store- class DigitalsController < ResourceController- # GET /api/v3/store/digitals/:id?token=...+ class DigitalsController < Store::BaseController+ before_action :set_resource++ # GET /api/v3/store/digitals/:tokendef showif @resource.authorize!- send_file @resource.digital.attachment.path,+ send_data @resource.digital.attachment.download,filename: @resource.digital.attachment.filename.to_s,type: @resource.digital.attachment.content_typeelse@@ -18,22 +20,14 @@ module Spreeendend- protected-- def model_class- Spree::DigitalLink- end-- def serializer_class- Spree.api.digital_link_serializer- end+ private- def authorize_resource!(resource = @resource, action = action_name.to_sym)- authorize!(action, resource, digital_token)+ def set_resource+ @resource = digital_link_scope.find_by!(token: params[:token])end- def digital_token- request.headers['X-Spree-Digital-Token'].presence || params[:token]+ def digital_link_scope+ current_store.digital_linksendendenddiff --git a/backend/engines/api/app/controllers/spree/api/v3/store/orders/payment_methods_controller.rb b/backend/engines/api/app/controllers/spree/api/v3/store/orders/payment_methods_controller.rbindex c701471c87..5421c6f517 100644--- a/backend/engines/api/app/controllers/spree/api/v3/store/orders/payment_methods_controller.rb+++ b/backend/engines/api/app/controllers/spree/api/v3/store/orders/payment_methods_controller.rb@@ -7,7 +7,6 @@ module Spreeinclude Spree::Api::V3::OrderConcernbefore_action :set_parent- before_action :authorize_order_read!# GET /api/v3/store/orders/:order_id/payment_methods# Returns available payment methods for the current order@@ -21,12 +20,6 @@ module Spreeprotected- def authorize_order_read!- unless can?(:show, @parent) || order_token == @parent.token- raise CanCan::AccessDenied, 'You are not authorized to access this page.'- end- end-def serializer_classSpree.api.payment_method_serializerenddiff --git a/backend/engines/api/app/controllers/spree/api/v3/store/orders/payments_controller.rb b/backend/engines/api/app/controllers/spree/api/v3/store/orders/payments_controller.rbindex 6be3d7d7f8..706c741c11 100644--- a/backend/engines/api/app/controllers/spree/api/v3/store/orders/payments_controller.rb+++ b/backend/engines/api/app/controllers/spree/api/v3/store/orders/payments_controller.rb@@ -8,7 +8,6 @@ module Spreeinclude Spree::Api::V3::ResourceSerializerbefore_action :set_parent- before_action :authorize_order_read!before_action :set_payment, only: [:show]# GET /api/v3/store/orders/:order_id/payments@@ -27,10 +26,6 @@ module Spreeprivate- def authorize_order_read!- authorize!(:show, @parent, order_token)- end-def set_payment@payment = @parent.payments.find_by_prefix_id!(params[:id])enddiff --git a/backend/engines/api/app/serializers/spree/api/v3/line_item_serializer.rb b/backend/engines/api/app/serializers/spree/api/v3/line_item_serializer.rbindex 900b9c2aaa..18e7d093fe 100644--- a/backend/engines/api/app/serializers/spree/api/v3/line_item_serializer.rb+++ b/backend/engines/api/app/serializers/spree/api/v3/line_item_serializer.rb@@ -40,6 +40,7 @@ module Spreeendmany :option_values, resource: Spree.api.option_value_serializer+ many :digital_links, resource: Spree.api.digital_link_serializerendendenddiff --git a/backend/engines/api/config/initializers/typelizer.rb b/backend/engines/api/config/initializers/typelizer.rbindex afab3c1485..375c5c128c 100644--- a/backend/engines/api/config/initializers/typelizer.rb+++ b/backend/engines/api/config/initializers/typelizer.rb@@ -9,7 +9,7 @@ Typelizer.configure do |config|api_root.join('app/serializers/spree/api/v3'),api_root.join('app/serializers/spree/api/v3/admin')]- config.output_dir = api_root.join('../../../../packages/sdk/src/types/generated')+ config.output_dir = api_root.join('../../../packages/sdk/src/types/generated')config.comments = true# Type names: StoreProduct, AdminProduct, etc.diff --git a/backend/engines/api/config/routes.rb b/backend/engines/api/config/routes.rbindex e1e049f216..34415d0df0 100644--- a/backend/engines/api/config/routes.rb+++ b/backend/engines/api/config/routes.rb@@ -63,7 +63,7 @@ Spree::Core::Engine.add_routes do# Digital Downloads# Access via token in URL- get 'digitals/:token', to: 'digitals#download', as: :digital_download+ get 'digitals/:token', to: 'digitals#show', as: :digital_downloadendendenddiff --git a/backend/engines/api/spec/controllers/spree/api/v3/store/digitals_controller_spec.rb b/backend/engines/api/spec/controllers/spree/api/v3/store/digitals_controller_spec.rbnew file mode 100644index 0000000000..ff1b01ab48--- /dev/null+++ b/backend/engines/api/spec/controllers/spree/api/v3/store/digitals_controller_spec.rb@@ -0,0 +1,98 @@+require 'spec_helper'++RSpec.describe Spree::Api::V3::Store::DigitalsController, type: :controller do+ render_views++ include_context 'API v3 Store'++ let(:order) { create(:order_with_line_items, store: store, user: user) }+ let(:line_item) { order.line_items.first }+ let(:digital) { create(:digital, variant: line_item.variant) }+ let!(:digital_link) { create(:digital_link, digital: digital, line_item: line_item) }++ before do+ request.headers['X-Spree-Api-Key'] = api_key.token+ end++ describe 'GET #show' do+ it 'sends the file for a valid token' do+ get :show, params: { token: digital_link.token }++ expect(response).to have_http_status(:ok)+ expect(response.headers['Content-Disposition']).to include('thinking-cat.jpg')+ end++ it 'increments the access counter' do+ expect {+ get :show, params: { token: digital_link.token }+ }.to change { digital_link.reload.access_counter }.by(1)+ end++ context 'when link is expired' do+ before do+ store.update!(+ preferred_limit_digital_download_days: true,+ preferred_digital_asset_authorized_days: 1+ )+ digital_link.update_column(:created_at, 2.days.ago)+ end++ it 'returns forbidden with digital_link_expired code' do+ get :show, params: { token: digital_link.token }++ expect(response).to have_http_status(:forbidden)+ expect(json_response['error']['code']).to eq('digital_link_expired')+ expect(json_response['error']['message']).to be_present+ end+ end++ context 'when download limit is exceeded' do+ before do+ store.update!(+ preferred_limit_digital_download_count: true,+ preferred_digital_asset_authorized_clicks: 3+ )+ digital_link.update_column(:access_counter, 3)+ end++ it 'returns forbidden with digital_link_expired code' do+ get :show, params: { token: digital_link.token }++ expect(response).to have_http_status(:forbidden)+ expect(json_response['error']['code']).to eq('digital_link_expired')+ end+ end++ context 'with invalid token' do+ it 'returns not found' do+ get :show, params: { token: 'invalid_token' }++ expect(response).to have_http_status(:not_found)+ end+ end++ context 'with token from another store' do+ let(:other_store) { create(:store) }+ let(:other_order) { create(:order_with_line_items, store: other_store) }+ let(:other_line_item) { other_order.line_items.first }+ let(:other_digital) { create(:digital, variant: other_line_item.variant) }+ let(:other_digital_link) { create(:digital_link, digital: other_digital, line_item: other_line_item) }++ it 'returns not found' do+ get :show, params: { token: other_digital_link.token }++ expect(response).to have_http_status(:not_found)+ end+ end++ context 'without API key' do+ before { request.headers['X-Spree-Api-Key'] = nil }++ it 'returns unauthorized' do+ get :show, params: { token: digital_link.token }++ expect(response).to have_http_status(:unauthorized)+ end+ end+ end+enddiff --git a/backend/engines/api/spec/integration/spree/api/v3/store/digitals_spec.rb b/backend/engines/api/spec/integration/spree/api/v3/store/digitals_spec.rbnew file mode 100644index 0000000000..ffd09d2c1e--- /dev/null+++ b/backend/engines/api/spec/integration/spree/api/v3/store/digitals_spec.rb@@ -0,0 +1,79 @@+# frozen_string_literal: true++require 'swagger_helper'++RSpec.describe 'Digitals API', type: :request, swagger_doc: 'api-reference/store.yaml' do+ include_context 'API v3 Store'++ let(:product) { create(:product, stores: [store]) }+ let(:order) { create(:order_with_line_items, store: store, user: user, line_items_attributes: [{ variant: product.master, quantity: 1 }]) }+ let(:line_item) { order.line_items.first }+ let(:digital) { create(:digital, variant: line_item.variant) }+ let!(:digital_link) { create(:digital_link, digital: digital, line_item: line_item) }++ path '/api/v3/store/digitals/{token}' do+ get 'Download a digital product' do+ tags 'Digitals'+ produces 'application/octet-stream', 'application/json'+ security [api_key: []]+ description <<~DESC+ Downloads a digital product file using the digital link token.+ The token is provided in the order confirmation or digital links list.+ Each download increments the access counter. Downloads may be limited by+ store settings (number of downloads and/or time-based expiration).+ DESC++ parameter name: 'x-spree-api-key', in: :header, type: :string, required: true+ parameter name: :token, in: :path, type: :string, required: true,+ description: 'Digital link token'++ response '200', 'file downloaded' do+ let(:'x-spree-api-key') { api_key.token }+ let(:token) { digital_link.token }++ run_test! do |response|+ expect(response.headers['Content-Disposition']).to include('thinking-cat.jpg')+ expect(digital_link.reload.access_counter).to eq(1)+ end+ end++ response '403', 'download link expired or limit exceeded' do+ let(:'x-spree-api-key') { api_key.token }+ let(:token) { digital_link.token }++ before do+ store.update!(+ preferred_limit_digital_download_count: true,+ preferred_digital_asset_authorized_clicks: 1+ )+ digital_link.update_column(:access_counter, 1)+ end++ schema '$ref' => '#/components/schemas/ErrorResponse'++ run_test! do |response|+ data = JSON.parse(response.body)+ expect(data['error']['code']).to eq('digital_link_expired')+ end+ end++ response '404', 'digital link not found' do+ let(:'x-spree-api-key') { api_key.token }+ let(:token) { 'invalid_token' }++ schema '$ref' => '#/components/schemas/ErrorResponse'++ run_test!+ end++ response '401', 'unauthorized - invalid API key' do+ let(:'x-spree-api-key') { 'invalid' }+ let(:token) { digital_link.token }++ schema '$ref' => '#/components/schemas/ErrorResponse'++ run_test!+ end+ end+ end+enddiff --git a/docs/api-reference/store.yaml b/docs/api-reference/store.yamlindex d8a3671ec1..9b7c0322b4 100644--- a/docs/api-reference/store.yaml+++ b/docs/api-reference/store.yaml@@ -40,15 +40,15 @@ info:```version: v3paths:- "/api/v3/store/customer/addresses":- get:- summary: List customer addresses+ "/api/v3/store/customer":+ patch:+ summary: Update current customer profiletags:- - Addresses+ - Customerssecurity:- api_key: []bearer_auth: []- description: Returns all addresses in the customer address book+ description: Updates the profile of the currently authenticated customerparameters:- name: x-spree-api-keyin: header@@ -60,24 +60,48 @@ paths:required: trueschema:type: string- - name: page- in: query- required: false- schema:- type: integer- - name: per_page- in: query- required: false- schema:- type: integerresponses:+ '422':+ description: validation error+ content:+ application/json:+ example:+ error:+ code: validation_error+ message: Email can't be blank+ details:+ email:+ - can't be blank+ schema:+ "$ref": "#/components/schemas/ErrorResponse"'200':- description: addresses found+ description: profile updatedcontent:application/json:example:- data:- - id: addr_EfhxLZ9ck8+ id: cus_UkLWZg9DAJ+ email: [email protected]+ first_name: Updated+ last_name: Name+ created_at: '2026-02-14T17:18:36.585Z'+ updated_at: '2026-02-14T17:18:36.885Z'+ addresses:+ - id: addr_gbHJdmfrXB+ firstname: John+ lastname: Doe+ full_name: John Doe+ address1: 4 Lovely Street+ address2: Northwest+ city: Herndon+ zipcode: '35005'+ phone: 555-555-0199+ company: Company+ country_name: United States of America+ country_iso: US+ state_text: STATE_ABBR_4+ state_abbr: STATE_ABBR_4+ state_name: STATE_NAME_4+ - id: addr_UkLWZg9DAJfirstname: Johnlastname: Doefull_name: John Doe@@ -87,16 +111,33 @@ paths:zipcode: '35005'phone: 555-555-0199company: Company- country_name: NAME_1- country_iso: I1- state_text: STATE_ABBR_1- state_abbr: STATE_ABBR_1- state_name: STATE_NAME_1- - id: addr_gbHJdmfrXB+ country_name: United States of America+ country_iso: US+ state_text: STATE_ABBR_3+ state_abbr: STATE_ABBR_3+ state_name: STATE_NAME_3+ default_billing_address:+ id: addr_gbHJdmfrXB+ firstname: John+ lastname: Doe+ full_name: John Doe+ address1: 4 Lovely Street+ address2: Northwest+ city: Herndon+ zipcode: '35005'+ phone: 555-555-0199+ company: Company+ country_name: United States of America+ country_iso: US+ state_text: STATE_ABBR_4+ state_abbr: STATE_ABBR_4+ state_name: STATE_NAME_4+ default_shipping_address:+ id: addr_UkLWZg9DAJfirstname: Johnlastname: Doefull_name: John Doe- address1: 2 Lovely Street+ address1: 3 Lovely Streetaddress2: Northwestcity: Herndonzipcode: '35005'@@ -107,11 +148,83 @@ paths:state_text: STATE_ABBR_3state_abbr: STATE_ABBR_3state_name: STATE_NAME_3+ schema:+ "$ref": "#/components/schemas/StoreCustomer"+ requestBody:+ content:+ application/json:+ schema:+ type: object+ properties:+ first_name:+ type: string+ example: John+ last_name:+ type: string+ example: Doe+ email:+ type: string+ format: email+ example: [email protected]+ password:+ type: string+ example: newpassword123+ password_confirmation:+ type: string+ example: newpassword123+ get:+ summary: Get current customer profile+ tags:+ - Customers+ security:+ - api_key: []+ bearer_auth: []+ description: Returns the profile of the currently authenticated customer+ parameters:+ - name: x-spree-api-key+ in: header+ required: true+ schema:+ type: string+ - name: Authorization+ in: header+ required: true+ description: Bearer JWT token+ schema:+ type: string+ responses:+ '200':+ description: profile found+ content:+ application/json:+ example:+ id: cus_UkLWZg9DAJ+ email: [email protected]+ first_name: German+ last_name: Purdy+ created_at: '2026-02-14T17:18:37.168Z'+ updated_at: '2026-02-14T17:18:37.465Z'+ addresses:+ - id: addr_gbHJdmfrXB+ firstname: John+ lastname: Doe+ full_name: John Doe+ address1: 6 Lovely Street+ address2: Northwest+ city: Herndon+ zipcode: '35005'+ phone: 555-555-0199+ company: Company+ country_name: United States of America+ country_iso: US+ state_text: STATE_ABBR_6+ state_abbr: STATE_ABBR_6+ state_name: STATE_NAME_6- id: addr_UkLWZg9DAJfirstname: Johnlastname: Doefull_name: John Doe- address1: 1 Lovely Street+ address1: 5 Lovely Streetaddress2: Northwestcity: Herndonzipcode: '35005'@@ -119,30 +232,45 @@ paths:company: Companycountry_name: United States of Americacountry_iso: US- state_text: STATE_ABBR_2- state_abbr: STATE_ABBR_2- state_name: STATE_NAME_2- meta:- page: 1- limit: 25- count: 3- pages: 1- from: 1- to: 3- in: 3- previous:- next:+ state_text: STATE_ABBR_5+ state_abbr: STATE_ABBR_5+ state_name: STATE_NAME_5+ default_billing_address:+ id: addr_gbHJdmfrXB+ firstname: John+ lastname: Doe+ full_name: John Doe+ address1: 6 Lovely Street+ address2: Northwest+ city: Herndon+ zipcode: '35005'+ phone: 555-555-0199+ company: Company+ country_name: United States of America+ country_iso: US+ state_text: STATE_ABBR_6+ state_abbr: STATE_ABBR_6+ state_name: STATE_NAME_6+ default_shipping_address:+ id: addr_UkLWZg9DAJ+ firstname: John+ lastname: Doe+ full_name: John Doe+ address1: 5 Lovely Street+ address2: Northwest+ city: Herndon+ zipcode: '35005'+ phone: 555-555-0199+ company: Company+ country_name: United States of America+ country_iso: US+ state_text: STATE_ABBR_5+ state_abbr: STATE_ABBR_5+ state_name: STATE_NAME_5schema:- type: object- properties:- data:- type: array- items:- "$ref": "#/components/schemas/StoreAddress"- meta:- "$ref": "#/components/schemas/PaginationMeta"+ "$ref": "#/components/schemas/StoreCustomer"'401':- description: unauthorized+ description: unauthorized - no tokencontent:application/json:example:@@ -151,14 +279,17 @@ paths:message: Authentication requiredschema:"$ref": "#/components/schemas/ErrorResponse"+ "/api/v3/store/orders/{order_id}/coupon_codes":post:- summary: Create an address+ summary: Apply coupon codetags:- - Addresses+ - Coupon Codessecurity:- api_key: []bearer_auth: []- description: Adds a new address to the customer address book+ description: |+ Applies a coupon code to the order. Supports both promotion coupon codes and gift card codes.+ The code is matched case-insensitively.parameters:- name: x-spree-api-keyin: header@@ -167,55 +298,82 @@ paths:type: string- name: Authorizationin: header+ required: false+ description: Bearer token for authenticated customers+ schema:+ type: string+ - name: order_id+ in: pathrequired: true+ description: Order ID+ schema:+ type: string+ - name: order_token+ in: query+ required: false+ description: Order token for guest accessschema:type: stringresponses:'201':- description: address created+ description: coupon code applied (gift card)content:application/json:example:- id: addr_VqXmZF31wY- firstname: John- lastname: Doe- full_name: John Doe- address1: 123 Main St- address2:- city: New York- zipcode: '10001'- phone: "+1 555 123 4567"- company:- country_name: NAME_3- country_iso: I3- state_text: STATE_ABBR_7- state_abbr: STATE_ABBR_7- state_name: STATE_NAME_7+ id: or_UkLWZg9DAJ+ number: R565584986+ state: cart+ token: dKpSWdbd57LMbvnj3zKq35skoosb1Dyfa1q+ email: [email protected]+ special_instructions:+ currency: USD+ item_count: 1+ shipment_state:+ payment_state:+ item_total: '10.0'+ display_item_total: "$10.00"+ ship_total: '100.0'+ display_ship_total: "$100.00"+ adjustment_total: '0.0'+ display_adjustment_total: "$0.00"+ promo_total: '0.0'+ display_promo_total: "$0.00"+ tax_total: '0.0'+ display_tax_total: "$0.00"+ included_tax_total: '0.0'+ display_included_tax_total: "$0.00"+ additional_tax_total: '0.0'+ display_additional_tax_total: "$0.00"+ total: '110.0'+ display_total: "$110.00"+ completed_at:+ created_at: '2026-02-14T17:18:39.107Z'+ updated_at: '2026-02-14T17:18:39.283Z'+ payment_methods:+ - id: pm_UkLWZg9DAJ+ name: Store Credit+ description:+ type: Spree::PaymentMethod::StoreCreditschema:- "$ref": "#/components/schemas/StoreAddress"- '422':- description: validation error+ "$ref": "#/components/schemas/StoreOrder"+ '404':+ description: order not foundcontent:application/json:example:error:- code: validation_error- message: First Name can't be blank, Last Name can't be blank, Address- can't be blank, City can't be blank, Country can't be blank, and- Zip Code can't be blank- details:- firstname:- - can't be blank- lastname:- - can't be blank- address1:- - can't be blank- city:- - can't be blank- country:- - can't be blank- zipcode:- - can't be blank+ code: order_not_found+ message: Order not found+ schema:+ "$ref": "#/components/schemas/ErrorResponse"+ '422':+ description: invalid coupon code+ content:+ application/json:+ example:+ error:+ code: processing_error+ message: The coupon code you entered doesn't exist. Please try again.schema:"$ref": "#/components/schemas/ErrorResponse"requestBody:@@ -224,58 +382,21 @@ paths:schema:type: objectproperties:- firstname:- type: string- example: John- lastname:- type: string- example: Doe- address1:- type: string- example: 123 Main St- address2:- type: string- example: Apt 4B- city:- type: string- example: New York- zipcode:- type: string- example: '10001'- phone:- type: string- example: "+1 555 123 4567"- company:- type: string- example: Acme Inc- country_iso:- type: string- example: US- description: ISO 3166-1 alpha-2 country code (e.g., "US", "DE")- state_abbr:- type: string- example: NY- description: ISO 3166-2 subdivision code without country prefix- (e.g., "CA", "NY")- state_name:+ code:type: string- example: New York- description: State name - for countries without predefined states+ example: SAVE10+ description: Coupon code or gift card code to applyrequired:- - firstname- - lastname- - address1- - city- - zipcode- - country_iso- "/api/v3/store/customer/addresses/{id}":- get:- summary: Get an address+ - code+ "/api/v3/store/orders/{order_id}/coupon_codes/{id}":+ delete:+ summary: Remove coupon codetags:- - Addresses+ - Coupon Codessecurity:- api_key: []bearer_auth: []+ description: Removes a previously applied coupon code from the order.parameters:- name: x-spree-api-keyin: header@@ -284,61 +405,183 @@ paths:type: string- name: Authorizationin: header+ required: false+ description: Bearer token for authenticated customers+ schema:+ type: string+ - name: order_id+ in: pathrequired: true+ description: Order IDschema:type: string- name: idin: pathrequired: true+ description: Order promotion ID+ schema:+ type: string+ - name: order_token+ in: query+ required: false+ description: Order token for guest accessschema:type: stringresponses:- '200':- description: address found- content:- application/json:- example:- id: addr_EfhxLZ9ck8- firstname: John- lastname: Doe- full_name: John Doe- address1: 15 Lovely Street- address2: Northwest- city: Herndon- zipcode: '35005'- phone: 555-555-0199- company: Company- country_name: NAME_5- country_iso: I5- state_text: STATE_ABBR_13- state_abbr: STATE_ABBR_13- state_name: STATE_NAME_13- schema:- "$ref": "#/components/schemas/StoreAddress"'404':- description: address not found+ description: coupon code not found on ordercontent:application/json:example:error:code: record_not_found- message: Address not found+ message: Order promotion not foundschema:"$ref": "#/components/schemas/ErrorResponse"- patch:- summary: Update an address+ '200':+ description: coupon code removed+ content:+ application/json:+ example:+ id: or_UkLWZg9DAJ+ number: R220533920+ state: cart+ token: jwg5nhPb8w8cGLjPcfXX86XjnDUopGv37VC+ email: [email protected]+ special_instructions:+ currency: USD+ item_count: 1+ shipment_state:+ payment_state:+ item_total: '10.0'+ display_item_total: "$10.00"+ ship_total: '100.0'+ display_ship_total: "$100.00"+ adjustment_total: '0.0'+ display_adjustment_total: "$0.00"+ promo_total: '0.0'+ display_promo_total: "$0.00"+ tax_total: '0.0'+ display_tax_total: "$0.00"+ included_tax_total: '0.0'+ display_included_tax_total: "$0.00"+ additional_tax_total: '0.0'+ display_additional_tax_total: "$0.00"+ total: '110.0'+ display_total: "$110.00"+ completed_at:+ created_at: '2026-02-14T17:18:42.089Z'+ updated_at: '2026-02-14T17:18:42.293Z'+ payment_methods: []+ schema:+ "$ref": "#/components/schemas/StoreOrder"+ "/api/v3/store/taxonomies":+ get:+ summary: List taxonomiestags:- - Addresses+ - Taxonomiessecurity:- api_key: []- bearer_auth: []+ description: Returns a list of taxonomies (category hierarchies) for the current+ storeparameters:- name: x-spree-api-keyin: headerrequired: trueschema:type: string- - name: Authorization+ - name: page+ in: query+ required: false+ schema:+ type: integer+ - name: per_page+ in: query+ required: false+ schema:+ type: integer+ - name: includes+ in: query+ required: false+ description: Include root taxon+ schema:+ type: string+ responses:+ '200':+ description: taxonomies found+ content:+ application/json:+ example:+ data:+ - id: txnmy_UkLWZg9DAJ+ name: Categories+ position: 1+ created_at: '2026-02-14T17:18:35.511Z'+ updated_at: '2026-02-14T17:18:35.530Z'+ root_id: txn_UkLWZg9DAJ+ - id: txnmy_gbHJdmfrXB+ name: Brands+ position: 2+ created_at: '2026-02-14T17:18:35.531Z'+ updated_at: '2026-02-14T17:18:35.539Z'+ root_id: txn_gbHJdmfrXB+ - id: txnmy_EfhxLZ9ck8+ name: Collections+ position: 3+ created_at: '2026-02-14T17:18:35.540Z'+ updated_at: '2026-02-14T17:18:35.653Z'+ root_id: txn_EfhxLZ9ck8+ - id: txnmy_VqXmZF31wY+ name: taxonomy_1+ position: 4+ created_at: '2026-02-14T17:18:42.303Z'+ updated_at: '2026-02-14T17:18:42.312Z'+ root_id: txn_OIJLhNcSbf+ - id: txnmy_uw2YK1rnl0+ name: taxonomy_2+ position: 5+ created_at: '2026-02-14T17:18:42.313Z'+ updated_at: '2026-02-14T17:18:42.322Z'+ root_id: txn_AXs1igzRC6+ meta:+ page: 1+ limit: 25+ count: 5+ pages: 1+ from: 1+ to: 5+ in: 5+ previous:+ next:+ schema:+ type: object+ properties:+ data:+ type: array+ items:+ "$ref": "#/components/schemas/StoreTaxonomy"+ meta:+ "$ref": "#/components/schemas/PaginationMeta"+ '401':+ description: unauthorized+ content:+ application/json:+ example:+ error:+ code: invalid_token+ message: Valid API key required+ schema:+ "$ref": "#/components/schemas/ErrorResponse"+ "/api/v3/store/taxonomies/{id}":+ get:+ summary: Get a taxonomy+ tags:+ - Taxonomies+ security:+ - api_key: []+ description: Returns a single taxonomy with its taxon tree+ parameters:+ - name: x-spree-api-keyin: headerrequired: trueschema:@@ -346,56 +589,48 @@ paths:- name: idin: pathrequired: true+ description: Taxonomy ID (prefixed)+ schema:+ type: string+ - name: includes+ in: query+ required: false+ description: Include taxonsschema:type: stringresponses:'200':- description: address updated+ description: taxonomy foundcontent:application/json:example:- id: addr_EfhxLZ9ck8- firstname: John- lastname: Doe- full_name: John Doe- address1: 21 Lovely Street- address2: Northwest- city: Los Angeles- zipcode: '35005'- phone: 555-555-0199- company: Company- country_name: NAME_7- country_iso: I7- state_text: STATE_ABBR_19- state_abbr: STATE_ABBR_19- state_name: STATE_NAME_19+ id: txnmy_VqXmZF31wY+ name: taxonomy_7+ position: 4+ created_at: '2026-02-14T17:18:42.689Z'+ updated_at: '2026-02-14T17:18:42.699Z'+ root_id: txn_OIJLhNcSbfschema:- "$ref": "#/components/schemas/StoreAddress"- requestBody:- content:- application/json:- schema:- type: object- properties:- firstname:- type: string- example: John- lastname:- type: string- example: Doe- address1:- type: string- example: 456 Oak Ave- city:- type: string- example: Los Angeles- delete:- summary: Delete an address+ "$ref": "#/components/schemas/StoreTaxonomy"+ '404':+ description: taxonomy from other store+ content:+ application/json:+ example:+ error:+ code: record_not_found+ message: Taxonomy not found+ schema:+ "$ref": "#/components/schemas/ErrorResponse"+ "/api/v3/store/orders/{order_id}/shipments":+ get:+ summary: List shipments for an ordertags:- - Addresses+ - Shipmentssecurity:- api_key: []bearer_auth: []+ description: Returns all shipments associated with the orderparameters:- name: x-spree-api-keyin: header@@ -404,124 +639,303 @@ paths:type: string- name: Authorizationin: header- required: true+ required: falseschema:type: string- - name: id+ - name: order_idin: pathrequired: trueschema:type: string+ - name: token+ in: query+ required: false+ description: Order token for guest access+ schema:+ type: stringresponses:- '204':- description: address deleted+ '200':+ description: shipments found+ content:+ application/json:+ example:+ data:+ - id: ship_UkLWZg9DAJ+ number: H55430180322+ state: pending+ tracking: U10000+ tracking_url:+ cost: '100.0'+ display_cost: "$100.00"+ shipped_at:+ created_at: '2026-02-14T17:18:43.910Z'+ updated_at: '2026-02-14T17:18:43.933Z'+ shipping_method:+ id: shpm_UkLWZg9DAJ+ name: UPS Ground+ code: UPS_GROUND+ stock_location:+ id: sloc_UkLWZg9DAJ+ state_abbr: STATE_ABBR_31+ name: Rosy Feil+ address1: 1600 Pennsylvania Ave NW+ city: Washington+ zipcode: '20500'+ country_iso: US+ country_name: United States of America+ state_text: STATE_ABBR_31+ shipping_rates:+ - id: shpr_UkLWZg9DAJ+ shipping_method_id: shpm_UkLWZg9DAJ+ name: UPS Ground+ selected: true+ cost: 100.0+ display_cost: "$100.00"+ shipping_method:+ id: shpm_UkLWZg9DAJ+ name: UPS Ground+ code: UPS_GROUND+ meta:+ page: 1+ limit: 25+ count: 1+ pages: 1+ from: 1+ to: 1+ in: 1+ previous:+ next:+ schema:+ type: object+ properties:+ data:+ type: array+ items:+ "$ref": "#/components/schemas/StoreShipment"+ meta:+ "$ref": "#/components/schemas/PaginationMeta"'404':- description: address not found+ description: order not foundcontent:application/json:example:error:- code: record_not_found- message: Address not found+ code: order_not_found+ message: Order not foundschema:"$ref": "#/components/schemas/ErrorResponse"- "/api/v3/store/auth/login":- post:- summary: Login+ "/api/v3/store/orders/{order_id}/shipments/{id}":+ get:+ summary: Get a shipmenttags:- - Authentication+ - Shipmentssecurity:- api_key: []- description: Authenticates a customer with email/password and returns a JWT- token+ bearer_auth: []+ description: Returns details of a specific shipmentparameters:- name: x-spree-api-keyin: headerrequired: trueschema:type: string+ - name: Authorization+ in: header+ required: false+ schema:+ type: string+ - name: order_id+ in: path+ required: true+ schema:+ type: string+ - name: id+ in: path+ required: true+ description: Shipment ID+ schema:+ type: string+ - name: token+ in: query+ required: false+ description: Order token for guest access+ schema:+ type: string+ - name: includes+ in: query+ required: false+ description: Include shipping_rates+ schema:+ type: stringresponses:'200':- description: login successful+ description: shipment foundcontent:application/json:example:- token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImV4cCI6MTc3MTEwOTY3M30._gUPT1vMgJdV-pAmrnglS1KX_RvrJo4-Xx-mNeg5KX8- user:- id: cus_UkLWZg9DAJ- email: [email protected]- first_name: Jessie- last_name: Hayes- created_at: '2026-02-13T22:54:33.444Z'- updated_at: '2026-02-13T22:54:33.444Z'- addresses: []- default_billing_address:- default_shipping_address:+ id: ship_UkLWZg9DAJ+ number: H41372378538+ state: pending+ tracking: U10000+ tracking_url:+ cost: '100.0'+ display_cost: "$100.00"+ shipped_at:+ created_at: '2026-02-14T17:18:45.368Z'+ updated_at: '2026-02-14T17:18:45.396Z'+ shipping_method:+ id: shpm_UkLWZg9DAJ+ name: UPS Ground+ code: UPS_GROUND+ stock_location:+ id: sloc_UkLWZg9DAJ+ state_abbr: STATE_ABBR_39+ name: Valene Halvorson+ address1: 1600 Pennsylvania Ave NW+ city: Washington+ zipcode: '20500'+ country_iso: US+ country_name: United States of America+ state_text: STATE_ABBR_39+ shipping_rates:+ - id: shpr_UkLWZg9DAJ+ shipping_method_id: shpm_UkLWZg9DAJ+ name: UPS Ground+ selected: true+ cost: 100.0+ display_cost: "$100.00"+ shipping_method:+ id: shpm_UkLWZg9DAJ+ name: UPS Ground+ code: UPS_GROUNDschema:- "$ref": "#/components/schemas/AuthResponse"- '401':- description: missing API key+ "$ref": "#/components/schemas/StoreShipment"+ '404':+ description: shipment not foundcontent:application/json:example:error:- code: invalid_token- message: Valid API key required+ code: record_not_found+ message: Shipment not foundschema:"$ref": "#/components/schemas/ErrorResponse"- requestBody:- content:- application/json:- schema:- type: object- properties:- provider:- type: string- example: email- description: 'Authentication provider (default: email)'- email:- type: string- format: email- example: [email protected]- password:- type: string- example: password123- required:- - password- "/api/v3/store/auth/register":- post:- summary: Register+ patch:+ summary: Select shipping rate for shipmenttags:- - Authentication+ - Shipmentssecurity:- api_key: []- description: Creates a new customer account and returns a JWT token+ bearer_auth: []+ description: Selects a shipping rate for the shipmentparameters:- name: x-spree-api-keyin: headerrequired: trueschema:type: string+ - name: Authorization+ in: header+ required: false+ schema:+ type: string+ - name: order_id+ in: path+ required: true+ schema:+ type: string+ - name: id+ in: path+ required: true+ description: Shipment ID+ schema:+ type: string+ - name: token+ in: query+ required: false+ description: Order token for guest access+ schema:+ type: stringresponses:- '201':- description: registration successful+ '200':+ description: shipping rate selectedcontent:application/json:example:- token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImV4cCI6MTc3MTEwOTY3NH0.o4jL60_0a75DtOuFf8CMKhbgaO5kdkcQtjOGfnKSaP0- user:- id: cus_UkLWZg9DAJ- email: [email protected]- first_name: John- last_name: Doe- created_at: '2026-02-13T22:54:34.898Z'- updated_at: '2026-02-13T22:54:34.898Z'- addresses: []- default_billing_address:- default_shipping_address:+ id: ship_UkLWZg9DAJ+ number: H80762433143+ state: pending+ tracking: U10000+ tracking_url:+ cost: '100.0'+ display_cost: "$100.00"+ shipped_at:+ created_at: '2026-02-14T17:18:46.837Z'+ updated_at: '2026-02-14T17:18:46.889Z'+ shipping_method:+ id: shpm_UkLWZg9DAJ+ name: UPS Ground+ code: UPS_GROUND+ stock_location:+ id: sloc_UkLWZg9DAJ+ state_abbr: STATE_ABBR_47+ name: Darla Windler+ address1: 1600 Pennsylvania Ave NW+ city: Washington+ zipcode: '20500'+ country_iso: US+ country_name: United States of America+ state_text: STATE_ABBR_47+ shipping_rates:+ - id: shpr_UkLWZg9DAJ+ shipping_method_id: shpm_UkLWZg9DAJ+ name: UPS Ground+ selected: true+ cost: 100.0+ display_cost: "$100.00"+ shipping_method:+ id: shpm_UkLWZg9DAJ+ name: UPS Ground+ code: UPS_GROUNDschema:- "$ref": "#/components/schemas/AuthResponse"+ "$ref": "#/components/schemas/StoreShipment"+ '404':+ description: shipping rate not found+ content:+ application/json:+ example:+ error:+ code: record_not_found+ message: Shipping rate not found+ schema:+ "$ref": "#/components/schemas/ErrorResponse"+ requestBody:+ content:+ application/json:+ schema:+ type: object+ properties:+ selected_shipping_rate_id:+ type: string+ example: shprt_abc123+ description: Shipping rate ID to select+ required:+ - selected_shipping_rate_id+ "/api/v3/store/auth/register":+ post:+ summary: Register+ tags:+ - Authentication+ security:+ - api_key: []+ description: Creates a new customer account and returns a JWT token+ parameters:+ - name: x-spree-api-key+ in: header+ required: true+ schema:+ type: string+ responses:'422':description: email already takencontent:@@ -535,6 +949,24 @@ paths:- has already been takenschema:"$ref": "#/components/schemas/ErrorResponse"+ '201':+ description: registration successful+ content:+ application/json:+ example:+ token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImV4cCI6MTc3MTE3NTkyOH0.vfcRB9L23UqJgvOaSuA5Ze3KwXZlAHVRtLo4SM6p3c4+ user:+ id: cus_UkLWZg9DAJ+ email: [email protected]+ first_name: John+ last_name: Doe+ created_at: '2026-02-14T17:18:48.141Z'+ updated_at: '2026-02-14T17:18:48.141Z'+ addresses: []+ default_billing_address:+ default_shipping_address:+ schema:+ "$ref": "#/components/schemas/AuthResponse"requestBody:content:application/json:@@ -561,67 +993,79 @@ paths:required:- password- "/api/v3/store/auth/refresh":+ "/api/v3/store/auth/login":post:- summary: Refresh token+ summary: Logintags:- Authenticationsecurity:- api_key: []- bearer_auth: []- description: Generates a new JWT token for the authenticated user+ description: Authenticates a customer with email/password and returns a JWT+ tokenparameters:- name: x-spree-api-keyin: headerrequired: trueschema:type: string- - name: Authorization- in: header- required: true- description: Bearer token- schema:- type: stringresponses:'200':- description: token refreshed+ description: login successfulcontent:application/json:example:- token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImV4cCI6MTc3MTEwOTY3NX0.R5mfkzvFlLjX0laCI4GSMYfBjCd4FE_BHZ-ys9jYhx4+ token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImV4cCI6MTc3MTE3NTkyOH0.vfcRB9L23UqJgvOaSuA5Ze3KwXZlAHVRtLo4SM6p3c4user:id: cus_UkLWZg9DAJemail: [email protected]- first_name: Jacqueline- last_name: Kreiger- created_at: '2026-02-13T22:54:35.461Z'- updated_at: '2026-02-13T22:54:35.461Z'+ first_name: Corrina+ last_name: Bernhard+ created_at: '2026-02-14T17:18:48.417Z'+ updated_at: '2026-02-14T17:18:48.417Z'addresses: []default_billing_address:default_shipping_address:schema:"$ref": "#/components/schemas/AuthResponse"'401':- description: missing or invalid token+ description: missing API keycontent:application/json:example:error:- code: authentication_required- message: Authentication required+ code: invalid_token+ message: Valid API key requiredschema:"$ref": "#/components/schemas/ErrorResponse"- "/api/v3/store/cart":- get:- summary: Get current cart+ requestBody:+ content:+ application/json:+ schema:+ type: object+ properties:+ provider:+ type: string+ example: email+ description: 'Authentication provider (default: email)'+ email:+ type: string+ format: email+ example: [email protected]+ password:+ type: string+ example: password123+ required:+ - password+ "/api/v3/store/auth/refresh":+ post:+ summary: Refresh tokentags:- - Cart+ - Authenticationsecurity:- api_key: []bearer_auth: []- description: |- Returns the current shopping cart (incomplete order).- Authenticate via JWT token for logged-in users or via order_token parameter for guests.+ description: Generates a new JWT token for the authenticated userparameters:- name: x-spree-api-keyin: header@@ -630,396 +1074,255 @@ paths:type: string- name: Authorizationin: header- required: false- description: Bearer JWT token for authenticated customers- schema:- type: string- - name: order_token- in: query- required: false- description: Order token for guest checkout+ required: true+ description: Bearer tokenschema:type: stringresponses:'200':- description: cart found (authenticated)+ description: token refreshedcontent:application/json:example:- id: or_UkLWZg9DAJ- number: R700220801- state: cart- token: dbaLTqHmY9Vka6KbwmFuMyxYUgTHwkCQ6Hc- email: [email protected]- special_instructions:- currency: USD- item_count: 1- shipment_state:- payment_state:- item_total: '10.0'- display_item_total: "$10.00"- ship_total: '100.0'- display_ship_total: "$100.00"- adjustment_total: '0.0'- display_adjustment_total: "$0.00"- promo_total: '0.0'- display_promo_total: "$0.00"- tax_total: '0.0'- display_tax_total: "$0.00"- included_tax_total: '0.0'- display_included_tax_total: "$0.00"- additional_tax_total: '0.0'- display_additional_tax_total: "$0.00"- total: '110.0'- display_total: "$110.00"- completed_at:- created_at: '2026-02-13T22:54:36.606Z'- updated_at: '2026-02-13T22:54:36.746Z'- line_items:- - id: li_UkLWZg9DAJ- variant_id: variant_UkLWZg9DAJ- quantity: 1- name: Product 23562- slug: product-23562- options_text: ''- price: '10.0'- display_price: "$10.00"- total: '10.0'- display_total: "$10.00"- adjustment_total: '0.0'- display_adjustment_total: "$0.00"- additional_tax_total: '0.0'- display_additional_tax_total: "$0.00"- included_tax_total: '0.0'- display_included_tax_total: "$0.00"- promo_total: '0.0'- display_promo_total: "$0.00"- pre_tax_amount: '10.0'- display_pre_tax_amount: "$10.00"- discounted_amount: '10.0'- display_discounted_amount: "$10.00"- display_compare_at_amount: "$0.00"- created_at: '2026-02-13T22:54:36.684Z'- updated_at: '2026-02-13T22:54:36.684Z'- compare_at_amount:- thumbnail_url:- option_values: []- payment_methods: []+ token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImV4cCI6MTc3MTE3NTkyOX0.T9UcZGb5SxlKWa3tXYppxwfv0c0Tqe9_RfAYMOWw9dU+ user:+ id: cus_UkLWZg9DAJ+ email: [email protected]+ first_name: Wenona+ last_name: Jaskolski+ created_at: '2026-02-14T17:18:49.790Z'+ updated_at: '2026-02-14T17:18:49.790Z'+ addresses: []+ default_billing_address:+ default_shipping_address:schema:- type: object- allOf:- - "$ref": "#/components/schemas/StoreOrder"- - type: object- properties:- token:- type: string- '404':- description: no cart found+ "$ref": "#/components/schemas/AuthResponse"+ '401':+ description: missing or invalid tokencontent:application/json:example:error:- code: order_not_found- message: Order not found+ code: authentication_required+ message: Authentication requiredschema:"$ref": "#/components/schemas/ErrorResponse"- "/api/v3/store/cart/associate":- patch:- summary: Associate guest cart with authenticated user+ "/api/v3/store/taxons/{id}":+ get:+ summary: Get a taxontags:- - Cart+ - Taxonssecurity:- api_key: []- bearer_auth: []- description: |- Associates a guest cart with the currently authenticated user.- Requires both JWT authentication and an order token.- The order must not be completed and must not belong to another user.+ description: Returns a single taxon by permalink or prefix IDparameters:- name: x-spree-api-keyin: headerrequired: trueschema:type: string- - name: Authorization- in: header+ - name: id+ in: pathrequired: true- description: Bearer JWT token (required)+ description: Taxon permalink (e.g., categories/clothing/shirts) or prefix+ ID (e.g., taxon_abc123)schema:type: string- - name: x-spree-order-token- in: header+ - name: includes+ in: queryrequired: false- description: Order token (can also be passed as query param)- schema:- type: string- - name: order_token- in: query- required: false- description: Order token (alternative to header)+ description: Include associations (children, products, parent)schema:type: stringresponses:- '200':- description: cart associated successfully+ '404':+ description: taxon not foundcontent:application/json:example:- id: or_UkLWZg9DAJ- number: R898477747- state: cart- token: u2KoozWeYS7MwdQ3yhHtfZfXfUAyDgTpkEy- email: [email protected]- special_instructions:- currency: USD- item_count: 1- shipment_state:- payment_state:- item_total: '10.0'- display_item_total: "$10.00"- ship_total: '100.0'- display_ship_total: "$100.00"- adjustment_total: '0.0'- display_adjustment_total: "$0.00"- promo_total: '0.0'- display_promo_total: "$0.00"- tax_total: '0.0'- display_tax_total: "$0.00"- included_tax_total: '0.0'- display_included_tax_total: "$0.00"- additional_tax_total: '0.0'- display_additional_tax_total: "$0.00"- total: '110.0'- display_total: "$110.00"- completed_at:- created_at: '2026-02-13T22:54:36.834Z'- updated_at: '2026-02-13T22:54:36.977Z'- line_items:- - id: li_UkLWZg9DAJ- variant_id: variant_UkLWZg9DAJ- quantity: 1- name: Product 31075- slug: product-31075- options_text: ''- price: '10.0'- display_price: "$10.00"- total: '10.0'- display_total: "$10.00"- adjustment_total: '0.0'- display_adjustment_total: "$0.00"- additional_tax_total: '0.0'- display_additional_tax_total: "$0.00"- included_tax_total: '0.0'- display_included_tax_total: "$0.00"- promo_total: '0.0'- display_promo_total: "$0.00"- pre_tax_amount: '10.0'- display_pre_tax_amount: "$10.00"- discounted_amount: '10.0'- display_discounted_amount: "$10.00"- display_compare_at_amount: "$0.00"- created_at: '2026-02-13T22:54:36.920Z'- updated_at: '2026-02-13T22:54:36.920Z'- compare_at_amount:- thumbnail_url:- option_values: []- payment_methods: []+ error:+ code: record_not_found+ message: Taxon not foundschema:- type: object- allOf:- - "$ref": "#/components/schemas/StoreOrder"- - type: object- properties:- token:- type: string+ "$ref": "#/components/schemas/ErrorResponse"'401':- description: unauthorized - JWT required+ description: unauthorizedcontent:application/json:example:error:- code: authentication_required- message: Authentication required+ code: invalid_token+ message: Valid API key requiredschema:"$ref": "#/components/schemas/ErrorResponse"- '404':- description: cart already completed+ '200':+ description: taxon found by permalinkcontent:application/json:example:- error:- code: order_not_found- message: Order not found+ id: txn_AXs1igzRC6+ name: taxon_13+ permalink: taxonomy-24/taxon-13+ position: 0+ depth: 1+ meta_title:+ meta_description:+ meta_keywords:+ children_count: 1+ created_at: '2026-02-14T17:18:50.533Z'+ updated_at: '2026-02-14T17:18:50.552Z'+ parent_id: txn_OIJLhNcSbf+ taxonomy_id: txnmy_VqXmZF31wY+ description: ''+ description_html: ''+ image_url:+ square_image_url:+ is_root: false+ is_child: true+ is_leaf: falseschema:- "$ref": "#/components/schemas/ErrorResponse"- "/api/v3/store/countries":- get:- summary: List checkout countries+ "$ref": "#/components/schemas/StoreTaxon"+ "/api/v3/store/orders/{order_id}/line_items/{id}":+ patch:+ summary: Update line item quantitytags:- - Countries+ - Line Itemssecurity:- api_key: []- description: Returns countries available for checkout from the store checkout- zone+ bearer_auth: []+ description: Updates the quantity of a line item in the cartparameters:- name: x-spree-api-keyin: headerrequired: trueschema:type: string+ - name: Authorization+ in: header+ required: false+ schema:+ type: string+ - name: order_id+ in: path+ required: true+ schema:+ type: string+ - name: id+ in: path+ required: true+ description: Line item ID+ schema:+ type: string+ - name: order_token+ in: query+ required: false+ schema:+ type: stringresponses:'200':- description: countries found- content:- application/json:- example:- data:- - iso: DE- iso3: IS16- name: Germany- states_required: false- zipcode_required: true- default_currency: EUR- default_locale: de- - iso: US- iso3: USA- name: United States of America- states_required: true- zipcode_required: true- default_currency: USD- default_locale: en- schema:- type: object- properties:- data:- type: array- items:- type: object- properties:- iso:- type: string- description: ISO 3166-1 alpha-2 code- iso3:- type: string- description: ISO 3166-1 alpha-3 code- name:- type: string- states_required:- type: boolean- zipcode_required:- type: boolean- required:- - iso- - iso3- - name- - states_required- - zipcode_required- required:- - data- '401':- description: unauthorized+ description: line item updatedcontent:application/json:example:- error:- code: invalid_token- message: Valid API key required+ id: li_UkLWZg9DAJ+ variant_id: variant_UkLWZg9DAJ+ quantity: 5+ name: Product 135213+ slug: product-135213+ options_text: ''+ price: '19.99'+ display_price: "$19.99"+ total: '99.95'+ display_total: "$99.95"+ adjustment_total: '0.0'+ display_adjustment_total: "$0.00"+ additional_tax_total: '0.0'+ display_additional_tax_total: "$0.00"+ included_tax_total: '0.0'+ display_included_tax_total: "$0.00"+ promo_total: '0.0'+ display_promo_total: "$0.00"+ pre_tax_amount: '99.95'+ display_pre_tax_amount: "$99.95"+ discounted_amount: '99.95'+ display_discounted_amount: "$99.95"+ display_compare_at_amount: "$0.00"+ created_at: '2026-02-14T17:18:51.320Z'+ updated_at: '2026-02-14T17:18:51.354Z'+ compare_at_amount:+ thumbnail_url:+ option_values: []schema:- "$ref": "#/components/schemas/ErrorResponse"- "/api/v3/store/countries/{iso}":- get:- summary: Get a country with states+ "$ref": "#/components/schemas/StoreLineItem"+ requestBody:+ content:+ application/json:+ schema:+ type: object+ properties:+ quantity:+ type: integer+ minimum: 1+ example: 5+ required:+ - quantity+ delete:+ summary: Remove line item from carttags:- - Countries+ - Line Itemssecurity:- api_key: []- description: Returns a single country by ISO code with its states+ bearer_auth: []+ description: Removes a line item from the orderparameters:- name: x-spree-api-keyin: headerrequired: trueschema:type: string- - name: iso+ - name: Authorization+ in: header+ required: false+ schema:+ type: string+ - name: order_idin: pathrequired: true- description: Country ISO 3166-1 alpha-2 code (e.g., "US", "DE", "CA")+ schema:+ type: string+ - name: id+ in: path+ required: true+ schema:+ type: string+ - name: order_token+ in: query+ required: falseschema:type: stringresponses:- '200':- description: country found- content:- application/json:- example:- iso: US- iso3: USA- name: United States of America- states_required: true- zipcode_required: true- default_currency: USD- default_locale: en- states:- - abbr: CA- name: California- - abbr: NY- name: New York- schema:- type: object- properties:- iso:- type: string- description: ISO 3166-1 alpha-2 code- iso3:- type: string- description: ISO 3166-1 alpha-3 code- name:- type: string- states_required:- type: boolean- zipcode_required:- type: boolean- states:- type: array- items:- type: object- properties:- abbr:- type: string- description: State abbreviation code- name:- type: string- required:- - abbr- - name- required:- - iso- - iso3- - name- - states_required- - zipcode_required- - states- '404':- description: country not found+ '404':+ description: line item not foundcontent:application/json:example:error:- code: record_not_found- message: Country not found+ code: line_item_not_found+ message: Line item not foundschema:"$ref": "#/components/schemas/ErrorResponse"- "/api/v3/store/orders/{order_id}/coupon_codes":+ '204':+ description: line item removed+ "/api/v3/store/orders/{order_id}/line_items":post:- summary: Apply coupon code+ summary: Add item to carttags:- - Coupon Codes+ - Line Itemssecurity:- api_key: []bearer_auth: []- description: |- Applies a coupon code to the order. Supports both promotion coupon codes and gift card codes.- The code is matched case-insensitively.+ description: Adds a variant to the order. Creates a new line item or increases+ quantity if variant already in cart.parameters:- name: x-spree-api-keyin: header@@ -1035,7 +1338,7 @@ paths:- name: order_idin: pathrequired: true- description: Order ID+ description: Order ID or numberschema:type: string- name: order_token@@ -1045,88 +1348,135 @@ paths:schema:type: stringresponses:+ '404':+ description: order not found+ content:+ application/json:+ example:+ error:+ code: order_not_found+ message: Order not found+ schema:+ "$ref": "#/components/schemas/ErrorResponse"'201':- description: coupon code applied (gift card)+ description: line item createdcontent:application/json:example:- id: or_UkLWZg9DAJ- number: R396504267- state: cart- token: HwebgrqHZPMiPasFUNUd5RuRkriQ9TRSYFb- email: [email protected]- special_instructions:- currency: USD- item_count: 1- shipment_state:- payment_state:- item_total: '10.0'- display_item_total: "$10.00"- ship_total: '100.0'- display_ship_total: "$100.00"+ id: li_gbHJdmfrXB+ variant_id: variant_gbHJdmfrXB+ quantity: 2+ name: Product 189863+ slug: product-189863+ options_text: ''+ price: '19.99'+ display_price: "$19.99"+ total: '39.98'+ display_total: "$39.98"adjustment_total: '0.0'display_adjustment_total: "$0.00"- promo_total: '0.0'- display_promo_total: "$0.00"- tax_total: '0.0'- display_tax_total: "$0.00"- included_tax_total: '0.0'- display_included_tax_total: "$0.00"additional_tax_total: '0.0'display_additional_tax_total: "$0.00"- total: '110.0'- display_total: "$110.00"- completed_at:- created_at: '2026-02-13T22:54:41.468Z'- updated_at: '2026-02-13T22:54:41.663Z'- payment_methods:- - id: pm_UkLWZg9DAJ- name: Store Credit- description:- type: Spree::PaymentMethod::StoreCredit+ included_tax_total: '0.0'+ display_included_tax_total: "$0.00"+ promo_total: '0.0'+ display_promo_total: "$0.00"+ pre_tax_amount: '39.98'+ display_pre_tax_amount: "$39.98"+ discounted_amount: '39.98'+ display_discounted_amount: "$39.98"+ display_compare_at_amount: "$0.00"+ created_at: '2026-02-14T17:18:54.002Z'+ updated_at: '2026-02-14T17:18:54.002Z'+ compare_at_amount:+ thumbnail_url:+ option_values: []schema:- "$ref": "#/components/schemas/StoreOrder"- '422':- description: invalid coupon code+ "$ref": "#/components/schemas/StoreLineItem"+ requestBody:+ content:+ application/json:+ schema:+ type: object+ properties:+ variant_id:+ type: string+ example: variant_abc123+ description: Variant ID to add+ quantity:+ type: integer+ example: 2+ description: 'Quantity to add (default: 1)'+ required:+ - variant_id+ "/api/v3/store/store":+ get:+ summary: Get current store+ tags:+ - Store+ security:+ - api_key: []+ description: Returns information about the current store based on the API key+ parameters:+ - name: x-spree-api-key+ in: header+ required: true+ schema:+ type: string+ responses:+ '200':+ description: store foundcontent:application/json:example:- error:- code: processing_error- message: The coupon code you entered doesn't exist. Please try again.+ id: store_UkLWZg9DAJ+ name: Spree Test Store+ url: www.example.com+ meta_description: Sample store description.+ meta_keywords:+ seo_title:+ default_currency: USD+ code: spree_1+ default: true+ facebook: spreecommerce+ twitter: spreecommerce+ instagram: spreecommerce+ customer_support_email: [email protected]+ default_locale: en+ created_at: '2026-02-14T17:18:35.503Z'+ updated_at: '2026-02-14T17:18:35.648Z'+ default_country_iso: US+ supported_currencies:+ - USD+ - EUR+ - GBP+ favicon_image_url:+ logo_image_url:+ social_image_url:+ supported_locales:+ - en+ payment_methods: []schema:- "$ref": "#/components/schemas/ErrorResponse"- '404':- description: order not found+ "$ref": "#/components/schemas/StoreStore"+ '401':+ description: unauthorized - invalid API keycontent:application/json:example:error:- code: order_not_found- message: Order not found+ code: invalid_token+ message: Valid API key requiredschema:"$ref": "#/components/schemas/ErrorResponse"- requestBody:- content:- application/json:- schema:- type: object- properties:- code:- type: string- example: SAVE10- description: Coupon code or gift card code to apply- required:- - code- "/api/v3/store/orders/{order_id}/coupon_codes/{id}":- delete:- summary: Remove coupon code+ "/api/v3/store/orders":+ get:+ summary: List orderstags:- - Coupon Codes+ - Orderssecurity:- api_key: []bearer_auth: []- description: Removes a previously applied coupon code from the order.+ description: Returns a paginated list of orders for the authenticated customerparameters:- name: x-spree-api-keyin: header@@ -1135,48 +1485,138 @@ paths:type: string- name: Authorizationin: header- required: false- description: Bearer token for authenticated customers- schema:- type: string- - name: order_id- in: pathrequired: true- description: Order IDschema:type: string- - name: id- in: path- required: true- description: Order promotion ID+ - name: page+ in: query+ required: false+ schema:+ type: integer+ - name: per_page+ in: query+ required: false+ schema:+ type: integer+ - name: q[state_eq]+ in: query+ required: false+ description: Filter by order stateschema:type: string- - name: order_token+ - name: q[completed_at_gte]in: queryrequired: false- description: Order token for guest access+ description: Filter by completion date (after)schema:type: stringresponses:'200':- description: coupon code removed+ description: orders foundcontent:application/json:example:- id: or_UkLWZg9DAJ- number: R040524368- state: cart- token: 6fri4d6ggcTzTuFw1EeH5y5DEbAQiXmExTs- email: [email protected]- special_instructions:- currency: USD- item_count: 1+ data:+ - id: or_UkLWZg9DAJ+ number: R920944376+ state: cart+ token: FRbB5nvtLdaUzzgZKoyC1hFscC3P1ynBi48+ email: [email protected]+ special_instructions:+ currency: USD+ item_count: 1+ shipment_state:+ payment_state:+ item_total: '10.0'+ display_item_total: "$10.00"+ ship_total: '100.0'+ display_ship_total: "$100.00"+ adjustment_total: '0.0'+ display_adjustment_total: "$0.00"+ promo_total: '0.0'+ display_promo_total: "$0.00"+ tax_total: '0.0'+ display_tax_total: "$0.00"+ included_tax_total: '0.0'+ display_included_tax_total: "$0.00"+ additional_tax_total: '0.0'+ display_additional_tax_total: "$0.00"+ total: '110.0'+ display_total: "$110.00"+ completed_at:+ created_at: '2026-02-14T17:18:55.231Z'+ updated_at: '2026-02-14T17:18:55.370Z'+ payment_methods: []+ meta:+ page: 1+ limit: 25+ count: 1+ pages: 1+ from: 1+ to: 1+ in: 1+ previous:+ next:+ schema:+ type: object+ properties:+ data:+ type: array+ items:+ "$ref": "#/components/schemas/StoreOrder"+ meta:+ "$ref": "#/components/schemas/PaginationMeta"+ '401':+ description: unauthorized - authentication required+ content:+ application/json:+ example:+ error:+ code: authentication_required+ message: Authentication required+ schema:+ "$ref": "#/components/schemas/ErrorResponse"+ post:+ summary: Create a cart+ tags:+ - Orders+ security:+ - api_key: []+ description: |+ Creates a new order (shopping cart). Can be created by guests or authenticated customers.+ Returns an `order_token` that must be used for guest access to the order.+ parameters:+ - name: x-spree-api-key+ in: header+ required: true+ schema:+ type: string+ - name: Authorization+ in: header+ required: false+ description: Bearer JWT token (optional - for authenticated customers)+ schema:+ type: string+ responses:+ '201':+ description: cart created (guest)+ content:+ application/json:+ example:+ id: or_gbHJdmfrXB+ number: R262979595+ state: cart+ token: PSQqteox8xTXetssoZmoBacxBckedPKGVmV+ email:+ special_instructions:+ currency: USD+ item_count: 0shipment_state:payment_state:- item_total: '10.0'- display_item_total: "$10.00"- ship_total: '100.0'- display_ship_total: "$100.00"+ item_total: '0.0'+ display_item_total: "$0.00"+ ship_total: '0.0'+ display_ship_total: "$0.00"adjustment_total: '0.0'display_adjustment_total: "$0.00"promo_total: '0.0'@@ -1187,33 +1627,41 @@ paths:display_included_tax_total: "$0.00"additional_tax_total: '0.0'display_additional_tax_total: "$0.00"- total: '110.0'- display_total: "$110.00"+ total: '0.0'+ display_total: "$0.00"completed_at:- created_at: '2026-02-13T22:54:43.722Z'- updated_at: '2026-02-13T22:54:43.937Z'+ created_at: '2026-02-14T17:18:58.149Z'+ updated_at: '2026-02-14T17:18:58.149Z'payment_methods: []+ order_token: PSQqteox8xTXetssoZmoBacxBckedPKGVmVschema:- "$ref": "#/components/schemas/StoreOrder"- '404':- description: coupon code not found on order+ type: object+ allOf:+ - "$ref": "#/components/schemas/StoreOrder"+ - type: object+ properties:+ order_token:+ type: string+ description: Token for guest access to this order+ '401':+ description: unauthorized - invalid API keycontent:application/json:example:error:- code: record_not_found- message: Order promotion not found+ code: invalid_token+ message: Valid API key requiredschema:"$ref": "#/components/schemas/ErrorResponse"- "/api/v3/store/customer":- get:- summary: Get current customer profile+ "/api/v3/store/orders/{order_id}/store_credits":+ delete:+ summary: Remove store credittags:- - Customers+ - Orderssecurity:- api_key: []bearer_auth: []- description: Returns the profile of the currently authenticated customer+ description: Removes store credit from the orderparameters:- name: x-spree-api-keyin: header@@ -1223,104 +1671,64 @@ paths:- name: Authorizationin: headerrequired: true- description: Bearer JWT token+ schema:+ type: string+ - name: order_id+ in: path+ required: true+ schema:+ type: string+ - name: order_token+ in: query+ required: falseschema:type: stringresponses:'200':- description: profile found- content:- application/json:- example:- id: cus_UkLWZg9DAJ- email: [email protected]- first_name: Jeremiah- last_name: Huel- created_at: '2026-02-13T22:54:44.954Z'- updated_at: '2026-02-13T22:54:45.235Z'- addresses:- - id: addr_gbHJdmfrXB- firstname: John- lastname: Doe- full_name: John Doe- address1: 75 Lovely Street- address2: Northwest- city: Herndon- zipcode: '35005'- phone: 555-555-0199- company: Company- country_name: United States of America- country_iso: US- state_text: STATE_ABBR_75- state_abbr: STATE_ABBR_75- state_name: STATE_NAME_75- - id: addr_UkLWZg9DAJ- firstname: John- lastname: Doe- full_name: John Doe- address1: 74 Lovely Street- address2: Northwest- city: Herndon- zipcode: '35005'- phone: 555-555-0199- company: Company- country_name: United States of America- country_iso: US- state_text: STATE_ABBR_74- state_abbr: STATE_ABBR_74- state_name: STATE_NAME_74- default_billing_address:- id: addr_gbHJdmfrXB- firstname: John- lastname: Doe- full_name: John Doe- address1: 75 Lovely Street- address2: Northwest- city: Herndon- zipcode: '35005'- phone: 555-555-0199- company: Company- country_name: United States of America- country_iso: US- state_text: STATE_ABBR_75- state_abbr: STATE_ABBR_75- state_name: STATE_NAME_75- default_shipping_address:- id: addr_UkLWZg9DAJ- firstname: John- lastname: Doe- full_name: John Doe- address1: 74 Lovely Street- address2: Northwest- city: Herndon- zipcode: '35005'- phone: 555-555-0199- company: Company- country_name: United States of America- country_iso: US- state_text: STATE_ABBR_74- state_abbr: STATE_ABBR_74- state_name: STATE_NAME_74- schema:- "$ref": "#/components/schemas/StoreCustomer"- '401':- description: unauthorized - invalid token+ description: store credit removedcontent:application/json:example:- error:- code: authentication_required- message: Authentication required+ id: or_UkLWZg9DAJ+ number: R644173136+ state: cart+ token: f6RLcPBgfpR62dsS8Fz9C6449EsebvqfuMv+ email: [email protected]+ special_instructions:+ currency: USD+ item_count: 1+ shipment_state:+ payment_state:+ item_total: '10.0'+ display_item_total: "$10.00"+ ship_total: '100.0'+ display_ship_total: "$100.00"+ adjustment_total: '0.0'+ display_adjustment_total: "$0.00"+ promo_total: '0.0'+ display_promo_total: "$0.00"+ tax_total: '0.0'+ display_tax_total: "$0.00"+ included_tax_total: '0.0'+ display_included_tax_total: "$0.00"+ additional_tax_total: '0.0'+ display_additional_tax_total: "$0.00"+ total: '110.0'+ display_total: "$110.00"+ completed_at:+ created_at: '2026-02-14T17:18:58.752Z'+ updated_at: '2026-02-14T17:18:58.876Z'+ payment_methods: []schema:- "$ref": "#/components/schemas/ErrorResponse"- patch:- summary: Update current customer profile+ "$ref": "#/components/schemas/StoreOrder"+ post:+ summary: Add store credittags:- - Customers+ - Orderssecurity:- api_key: []bearer_auth: []- description: Updates the profile of the currently authenticated customer+ description: Applies store credit to the orderparameters:- name: x-spree-api-keyin: header@@ -1332,94 +1740,66 @@ paths:required: trueschema:type: string+ - name: order_id+ in: path+ required: true+ schema:+ type: string+ - name: order_token+ in: query+ required: false+ schema:+ type: stringresponses:'200':- description: profile updated+ description: store credit appliedcontent:application/json:example:- id: cus_UkLWZg9DAJ- email: [email protected]- first_name: Updated- last_name: Name- created_at: '2026-02-13T22:54:45.524Z'- updated_at: '2026-02-13T22:54:45.817Z'- addresses:- - id: addr_gbHJdmfrXB- firstname: John- lastname: Doe- full_name: John Doe- address1: 77 Lovely Street- address2: Northwest- city: Herndon- zipcode: '35005'- phone: 555-555-0199- company: Company- country_name: United States of America- country_iso: US- state_text: STATE_ABBR_77- state_abbr: STATE_ABBR_77- state_name: STATE_NAME_77- - id: addr_UkLWZg9DAJ- firstname: John- lastname: Doe- full_name: John Doe- address1: 76 Lovely Street- address2: Northwest- city: Herndon- zipcode: '35005'- phone: 555-555-0199- company: Company- country_name: United States of America- country_iso: US- state_text: STATE_ABBR_76- state_abbr: STATE_ABBR_76- state_name: STATE_NAME_76- default_billing_address:- id: addr_gbHJdmfrXB- firstname: John- lastname: Doe- full_name: John Doe- address1: 77 Lovely Street- address2: Northwest- city: Herndon- zipcode: '35005'- phone: 555-555-0199- company: Company- country_name: United States of America- country_iso: US- state_text: STATE_ABBR_77- state_abbr: STATE_ABBR_77- state_name: STATE_NAME_77- default_shipping_address:- id: addr_UkLWZg9DAJ- firstname: John- lastname: Doe- full_name: John Doe- address1: 76 Lovely Street- address2: Northwest- city: Herndon- zipcode: '35005'- phone: 555-555-0199- company: Company- country_name: United States of America- country_iso: US- state_text: STATE_ABBR_76- state_abbr: STATE_ABBR_76- state_name: STATE_NAME_76+ id: or_UkLWZg9DAJ+ number: R633382445+ state: cart+ token: HvPSYphQaqYsd6D32FjFMFvVunKQsQTEGYx+ email: [email protected]+ special_instructions:+ currency: USD+ item_count: 1+ shipment_state:+ payment_state:+ item_total: '10.0'+ display_item_total: "$10.00"+ ship_total: '100.0'+ display_ship_total: "$100.00"+ adjustment_total: '0.0'+ display_adjustment_total: "$0.00"+ promo_total: '0.0'+ display_promo_total: "$0.00"+ tax_total: '0.0'+ display_tax_total: "$0.00"+ included_tax_total: '0.0'+ display_included_tax_total: "$0.00"+ additional_tax_total: '0.0'+ display_additional_tax_total: "$0.00"+ total: '110.0'+ display_total: "$110.00"+ completed_at:+ created_at: '2026-02-14T17:18:59.467Z'+ updated_at: '2026-02-14T17:18:59.963Z'+ payment_methods:+ - id: pm_UkLWZg9DAJ+ name: Store Credit+ description: Store Credit+ type: Spree::PaymentMethod::StoreCreditschema:- "$ref": "#/components/schemas/StoreCustomer"+ "$ref": "#/components/schemas/StoreOrder"'422':- description: validation error+ description: no store credit availablecontent:application/json:example:error:- code: validation_error- message: Email can't be blank- details:- email:- - can't be blank+ code: processing_error+ message: User does not have any Store Credits availableschema:"$ref": "#/components/schemas/ErrorResponse"requestBody:@@ -1428,32 +1808,19 @@ paths:schema:type: objectproperties:- first_name:- type: string- example: John- last_name:- type: string- example: Doe- email:- type: string- format: email- example: [email protected]- password:- type: string- example: newpassword123- password_confirmation:- type: string- example: newpassword123- "/api/v3/store/orders/{order_id}/line_items":- post:- summary: Add item to cart+ amount:+ type: number+ example: 10.0+ description: Amount to apply (optional - defaults to max available)+ "/api/v3/store/orders/{id}/advance":+ patch:+ summary: Advance through checkouttags:- - Line Items+ - Orderssecurity:- api_key: []bearer_auth: []- description: Adds a variant to the order. Creates a new line item or increases- quantity if variant already in cart.+ description: Advances the order through all possible checkout statesparameters:- name: x-spree-api-keyin: header@@ -1463,92 +1830,65 @@ paths:- name: Authorizationin: headerrequired: false- description: Bearer token for authenticated customersschema:type: string- - name: order_id+ - name: idin: pathrequired: true- description: Order ID or numberschema:type: string- name: order_tokenin: queryrequired: false- description: Order token for guest accessschema:type: stringresponses:- '201':- description: line item created+ '200':+ description: order advancedcontent:application/json:example:- id: li_gbHJdmfrXB- variant_id: variant_gbHJdmfrXB- quantity: 2- name: Product 143907- slug: product-143907- options_text: ''- price: '19.99'- display_price: "$19.99"- total: '39.98'- display_total: "$39.98"+ id: or_gbHJdmfrXB+ number: R579308003+ state: payment+ token: jtU8mPj9Wg7m4Nc3nZD4fJSdsbv7hsJVPtN+ email: [email protected]+ special_instructions:+ currency: USD+ item_count: 1+ shipment_state: backorder+ payment_state: balance_due+ item_total: '19.99'+ display_item_total: "$19.99"+ ship_total: '10.0'+ display_ship_total: "$10.00"adjustment_total: '0.0'display_adjustment_total: "$0.00"- additional_tax_total: '0.0'- display_additional_tax_total: "$0.00"- included_tax_total: '0.0'- display_included_tax_total: "$0.00"promo_total: '0.0'display_promo_total: "$0.00"- pre_tax_amount: '39.98'- display_pre_tax_amount: "$39.98"- discounted_amount: '39.98'- display_discounted_amount: "$39.98"- display_compare_at_amount: "$0.00"- created_at: '2026-02-13T22:54:47.235Z'- updated_at: '2026-02-13T22:54:47.235Z'- compare_at_amount:- thumbnail_url:- option_values: []- schema:- "$ref": "#/components/schemas/StoreLineItem"- '404':- description: order not found- content:- application/json:- example:- error:- code: order_not_found- message: Order not found+ tax_total: '0.0'+ display_tax_total: "$0.00"+ included_tax_total: '0.0'+ display_included_tax_total: "$0.00"+ additional_tax_total: '0.0'+ display_additional_tax_total: "$0.00"+ total: '29.99'+ display_total: "$29.99"+ completed_at:+ created_at: '2026-02-14T17:19:01.358Z'+ updated_at: '2026-02-14T17:19:01.595Z'+ payment_methods: []schema:- "$ref": "#/components/schemas/ErrorResponse"- requestBody:- content:- application/json:- schema:- type: object- properties:- variant_id:- type: string- example: variant_abc123- description: Variant ID to add- quantity:- type: integer- example: 2- description: 'Quantity to add (default: 1)'- required:- - variant_id- "/api/v3/store/orders/{order_id}/line_items/{id}":+ "$ref": "#/components/schemas/StoreOrder"+ "/api/v3/store/orders/{id}/complete":patch:- summary: Update line item quantity+ summary: Complete the ordertags:- - Line Items+ - Orderssecurity:- api_key: []bearer_auth: []- description: Updates the quantity of a line item in the cart+ description: Completes the order (finalizes the purchase)parameters:- name: x-spree-api-keyin: header@@ -1560,15 +1900,9 @@ paths:required: falseschema:type: string- - name: order_id- in: path- required: true- schema:- type: string- name: idin: pathrequired: true- description: Line item IDschema:type: string- name: order_token@@ -1578,108 +1912,69 @@ paths:type: stringresponses:'200':- description: line item updated+ description: order completedcontent:application/json:example:- id: li_UkLWZg9DAJ- variant_id: variant_UkLWZg9DAJ- quantity: 5- name: Product 171235- slug: product-171235- options_text: ''- price: '19.99'- display_price: "$19.99"- total: '99.95'- display_total: "$99.95"+ id: or_gbHJdmfrXB+ number: R622128321+ state: complete+ token: mh1j4g8cwF7WTeuCZAnEu6EroS7MbVT8qpm+ email: [email protected]+ special_instructions:+ currency: USD+ item_count: 1+ shipment_state: backorder+ payment_state: balance_due+ item_total: '19.99'+ display_item_total: "$19.99"+ ship_total: '10.0'+ display_ship_total: "$10.00"adjustment_total: '0.0'display_adjustment_total: "$0.00"- additional_tax_total: '0.0'- display_additional_tax_total: "$0.00"- included_tax_total: '0.0'- display_included_tax_total: "$0.00"promo_total: '0.0'display_promo_total: "$0.00"- pre_tax_amount: '99.95'- display_pre_tax_amount: "$99.95"- discounted_amount: '99.95'- display_discounted_amount: "$99.95"- display_compare_at_amount: "$0.00"- created_at: '2026-02-13T22:54:49.287Z'- updated_at: '2026-02-13T22:54:49.316Z'- compare_at_amount:- thumbnail_url:- option_values: []+ tax_total: '0.0'+ display_tax_total: "$0.00"+ included_tax_total: '0.0'+ display_included_tax_total: "$0.00"+ additional_tax_total: '0.0'+ display_additional_tax_total: "$0.00"+ total: '29.99'+ display_total: "$29.99"+ completed_at: '2026-02-14T17:19:02.693Z'+ created_at: '2026-02-14T17:19:02.296Z'+ updated_at: '2026-02-14T17:19:02.693Z'+ payment_methods:+ - id: pm_UkLWZg9DAJ+ name: Check+ description:+ type: Spree::PaymentMethod::Check+ - id: pm_gbHJdmfrXB+ name: Credit Card+ description:+ type: Spree::Gateway::Bogusschema:- "$ref": "#/components/schemas/StoreLineItem"- requestBody:- content:- application/json:- schema:- type: object- properties:- quantity:- type: integer- minimum: 1- example: 5- required:- - quantity- delete:- summary: Remove line item from cart- tags:- - Line Items- security:- - api_key: []- bearer_auth: []- description: Removes a line item from the order- parameters:- - name: x-spree-api-key- in: header- required: true- schema:- type: string- - name: Authorization- in: header- required: false- schema:- type: string- - name: order_id- in: path- required: true- schema:- type: string- - name: id- in: path- required: true- schema:- type: string- - name: order_token- in: query- required: false- schema:- type: string- responses:- '204':- description: line item removed- '404':- description: line item not found+ "$ref": "#/components/schemas/StoreOrder"+ '422':+ description: cannot completecontent:application/json:example:error:- code: line_item_not_found- message: Line item not found+ code: order_already_completed+ message: No payment foundschema:"$ref": "#/components/schemas/ErrorResponse"- "/api/v3/store/orders":- get:- summary: List orders+ "/api/v3/store/orders/{id}/next":+ patch:+ summary: Advance to next checkout steptags:- Orderssecurity:- api_key: []bearer_auth: []- description: Returns a paginated list of orders for the authenticated customer+ description: Advances the order to the next state in the checkout flowparameters:- name: x-spree-api-keyin: header@@ -1688,138 +1983,39 @@ paths:type: string- name: Authorizationin: header- required: true- schema:- type: string- - name: page- in: query- required: false- schema:- type: integer- - name: per_page- in: query- required: false- schema:- type: integer- - name: q[state_eq]- in: query- required: false- description: Filter by order state- schema:- type: string- - name: q[completed_at_gte]- in: queryrequired: false- description: Filter by completion date (after)schema:type: string- responses:- '200':- description: orders found- content:- application/json:- example:- data:- - id: or_UkLWZg9DAJ- number: R181050718- state: cart- token: NFeNLXSHJy1ccpQzpezi8Z83GHbVmLZH3o6- email: [email protected]- special_instructions:- currency: USD- item_count: 1- shipment_state:- payment_state:- item_total: '10.0'- display_item_total: "$10.00"- ship_total: '100.0'- display_ship_total: "$100.00"- adjustment_total: '0.0'- display_adjustment_total: "$0.00"- promo_total: '0.0'- display_promo_total: "$0.00"- tax_total: '0.0'- display_tax_total: "$0.00"- included_tax_total: '0.0'- display_included_tax_total: "$0.00"- additional_tax_total: '0.0'- display_additional_tax_total: "$0.00"- total: '110.0'- display_total: "$110.00"- completed_at:- created_at: '2026-02-13T22:54:51.281Z'- updated_at: '2026-02-13T22:54:51.404Z'- payment_methods: []- meta:- page: 1- limit: 25- count: 1- pages: 1- from: 1- to: 1- in: 1- previous:- next:- schema:- type: object- properties:- data:- type: array- items:- "$ref": "#/components/schemas/StoreOrder"- meta:- "$ref": "#/components/schemas/PaginationMeta"- '401':- description: unauthorized - authentication required- content:- application/json:- example:- error:- code: authentication_required- message: Authentication required- schema:- "$ref": "#/components/schemas/ErrorResponse"- post:- summary: Create a cart- tags:- - Orders- security:- - api_key: []- description: |- Creates a new order (shopping cart). Can be created by guests or authenticated customers.- Returns an `order_token` that must be used for guest access to the order.- parameters:- - name: x-spree-api-key- in: header+ - name: id+ in: pathrequired: trueschema:type: string- - name: Authorization- in: header+ - name: order_token+ in: queryrequired: false- description: Bearer JWT token (optional - for authenticated customers)schema:type: stringresponses:- '201':- description: cart created (authenticated)+ '200':+ description: order advancedcontent:application/json:example:id: or_gbHJdmfrXB- number: R445676982- state: cart- token: AGXwy1eZoY5ZCxxZ4XKbrgf4a6xBFtwWosk- email: [email protected]+ number: R801853052+ state: address+ token: TXY29NH58suQwkmJAZ8tGECtD367vEFu1UQ+ email: [email protected]special_instructions:currency: USD- item_count: 0+ item_count: 1shipment_state:payment_state:- item_total: '0.0'- display_item_total: "$0.00"- ship_total: '0.0'- display_ship_total: "$0.00"+ item_total: '10.0'+ display_item_total: "$10.00"+ ship_total: '100.0'+ display_ship_total: "$100.00"adjustment_total: '0.0'display_adjustment_total: "$0.00"promo_total: '0.0'@@ -1830,29 +2026,23 @@ paths:display_included_tax_total: "$0.00"additional_tax_total: '0.0'display_additional_tax_total: "$0.00"- total: '0.0'- display_total: "$0.00"+ total: '110.0'+ display_total: "$110.00"completed_at:- created_at: '2026-02-13T22:54:53.502Z'- updated_at: '2026-02-13T22:54:53.502Z'+ created_at: '2026-02-14T17:19:04.340Z'+ updated_at: '2026-02-14T17:19:04.467Z'payment_methods: []- order_token: AGXwy1eZoY5ZCxxZ4XKbrgf4a6xBFtwWoskschema:- type: object- allOf:- - "$ref": "#/components/schemas/StoreOrder"- - type: object- properties:- order_token:- type: string- '401':- description: unauthorized - invalid API key+ "$ref": "#/components/schemas/StoreOrder"+ '422':+ description: cannot advance - validation errorscontent:application/json:example:error:- code: invalid_token- message: Valid API key required+ code: order_cannot_transition+ message: We are unable to calculate shipping rates for the selected+ items.schema:"$ref": "#/components/schemas/ErrorResponse""/api/v3/store/orders/{id}":@@ -1894,16 +2084,26 @@ paths:schema:type: stringresponses:+ '404':+ description: not found - order belongs to another user+ content:+ application/json:+ example:+ error:+ code: order_not_found+ message: Order not found+ schema:+ "$ref": "#/components/schemas/ErrorResponse"'200':- description: order found (guest with token)+ description: order found (authenticated)content:application/json:example:- id: or_gbHJdmfrXB- number: R606775356+ id: or_UkLWZg9DAJ+ number: R281415027state: cart- token: Ci8u7oTgSnsDkQGM6VYBHRTdjHvsmc9ssWj- email:+ token: U3K88PGLb7mdwroDwhcdvU2v8PuBYjJTyvZ+ email: [email protected]special_instructions:currency: USDitem_count: 1@@ -1926,21 +2126,11 @@ paths:total: '110.0'display_total: "$110.00"completed_at:- created_at: '2026-02-13T22:54:55.579Z'- updated_at: '2026-02-13T22:54:55.708Z'+ created_at: '2026-02-14T17:19:08.254Z'+ updated_at: '2026-02-14T17:19:08.378Z'payment_methods: []schema:"$ref": "#/components/schemas/StoreOrder"- '404':- description: not found - order belongs to another user- content:- application/json:- example:- error:- code: order_not_found- message: Order not found- schema:- "$ref": "#/components/schemas/ErrorResponse"patch:summary: Update an ordertags:@@ -1977,10 +2167,10 @@ paths:application/json:example:id: or_UkLWZg9DAJ- number: R194378431+ number: R301256028state: cart- token: ECHb6eFJQK9nPiaCda4SjiuEs6u9xL48PrG- email: [email protected]+ token: uLSqFe4UePgQMDe7fozpKRXmMgUQh1HJBog+ email: [email protected]special_instructions: Leave at doorcurrency: USDitem_count: 1@@ -2003,8 +2193,8 @@ paths:total: '110.0'display_total: "$110.00"completed_at:- created_at: '2026-02-13T22:54:57.905Z'- updated_at: '2026-02-13T22:54:58.043Z'+ created_at: '2026-02-14T17:19:08.952Z'+ updated_at: '2026-02-14T17:19:09.088Z'payment_methods: []schema:"$ref": "#/components/schemas/StoreOrder"@@ -2096,94 +2286,171 @@ paths:state_abbr:type: stringexample: CA- "/api/v3/store/orders/{id}/next":- patch:- summary: Advance to next checkout step+ "/api/v3/store/countries":+ get:+ summary: List checkout countriestags:- - Orders+ - Countriessecurity:- api_key: []- bearer_auth: []- description: Advances the order to the next state in the checkout flow+ description: Returns countries available for checkout from the store checkout+ zoneparameters:- name: x-spree-api-keyin: headerrequired: trueschema:type: string- - name: Authorization- in: header- required: false- schema:- type: string- - name: id- in: path- required: true- schema:- type: string- - name: order_token- in: query- required: false- schema:- type: stringresponses:'200':- description: order advanced+ description: countries foundcontent:application/json:example:- id: or_gbHJdmfrXB- number: R291667319- state: address- token: b5NrYe1JdE1P7rJMA2iF9Z318p5mJT1EXgE- email: [email protected]- special_instructions:- currency: USD- item_count: 1- shipment_state:- payment_state:- item_total: '10.0'- display_item_total: "$10.00"- ship_total: '100.0'- display_ship_total: "$100.00"- adjustment_total: '0.0'- display_adjustment_total: "$0.00"- promo_total: '0.0'- display_promo_total: "$0.00"- tax_total: '0.0'- display_tax_total: "$0.00"- included_tax_total: '0.0'- display_included_tax_total: "$0.00"- additional_tax_total: '0.0'- display_additional_tax_total: "$0.00"- total: '110.0'- display_total: "$110.00"- completed_at:- created_at: '2026-02-13T22:54:59.665Z'- updated_at: '2026-02-13T22:54:59.789Z'- payment_methods: []+ data:+ - iso: DE+ iso3: IS32+ name: Germany+ states_required: false+ zipcode_required: true+ default_currency: EUR+ default_locale: de+ - iso: US+ iso3: USA+ name: United States of America+ states_required: true+ zipcode_required: true+ default_currency: USD+ default_locale: enschema:- "$ref": "#/components/schemas/StoreOrder"- '422':- description: cannot advance - validation errors+ type: object+ properties:+ data:+ type: array+ items:+ type: object+ properties:+ iso:+ type: string+ description: ISO 3166-1 alpha-2 code+ iso3:+ type: string+ description: ISO 3166-1 alpha-3 code+ name:+ type: string+ states_required:+ type: boolean+ zipcode_required:+ type: boolean+ required:+ - iso+ - iso3+ - name+ - states_required+ - zipcode_required+ required:+ - data+ '401':+ description: unauthorizedcontent:application/json:example:error:- code: order_cannot_transition- message: We are unable to calculate shipping rates for the selected- items.+ code: invalid_token+ message: Valid API key requiredschema:"$ref": "#/components/schemas/ErrorResponse"- "/api/v3/store/orders/{id}/advance":- patch:- summary: Advance through checkout+ "/api/v3/store/countries/{iso}":+ get:+ summary: Get a country with statestags:- - Orders+ - Countries+ security:+ - api_key: []+ description: Returns a single country by ISO code with its states+ parameters:+ - name: x-spree-api-key+ in: header+ required: true+ schema:+ type: string+ - name: iso+ in: path+ required: true+ description: Country ISO 3166-1 alpha-2 code (e.g., "US", "DE", "CA")+ schema:+ type: string+ responses:+ '404':+ description: country not found+ content:+ application/json:+ example:+ error:+ code: record_not_found+ message: Country not found+ schema:+ "$ref": "#/components/schemas/ErrorResponse"+ '200':+ description: country found+ content:+ application/json:+ example:+ iso: US+ iso3: USA+ name: United States of America+ states_required: true+ zipcode_required: true+ default_currency: USD+ default_locale: en+ states:+ - abbr: CA+ name: California+ - abbr: NY+ name: New York+ schema:+ type: object+ properties:+ iso:+ type: string+ description: ISO 3166-1 alpha-2 code+ iso3:+ type: string+ description: ISO 3166-1 alpha-3 code+ name:+ type: string+ states_required:+ type: boolean+ zipcode_required:+ type: boolean+ states:+ type: array+ items:+ type: object+ properties:+ abbr:+ type: string+ description: State abbreviation code+ name:+ type: string+ required:+ - abbr+ - name+ required:+ - iso+ - iso3+ - name+ - states_required+ - zipcode_required+ - states+ "/api/v3/store/wishlists/{wishlist_id}/items/{id}":+ delete:+ summary: Remove item from wishlist+ tags:+ - Wishlistssecurity:- api_key: []bearer_auth: []- description: Advances the order through all possible checkout statesparameters:- name: x-spree-api-keyin: header@@ -2192,66 +2459,38 @@ paths:type: string- name: Authorizationin: header- required: false+ required: trueschema:type: string- - name: id+ - name: wishlist_idin: pathrequired: trueschema:type: string- - name: order_token- in: query- required: false+ - name: id+ in: path+ required: trueschema:type: stringresponses:- '200':- description: order advanced+ '404':+ description: item not foundcontent:application/json:example:- id: or_gbHJdmfrXB- number: R399744985- state: payment- token: 7n9FpQZKUh8WCK5xvUbd1hSr6YgLgkiaMNo- email: [email protected]- special_instructions:- currency: USD- item_count: 1- shipment_state: backorder- payment_state: balance_due- item_total: '19.99'- display_item_total: "$19.99"- ship_total: '10.0'- display_ship_total: "$10.00"- adjustment_total: '0.0'- display_adjustment_total: "$0.00"- promo_total: '0.0'- display_promo_total: "$0.00"- tax_total: '0.0'- display_tax_total: "$0.00"- included_tax_total: '0.0'- display_included_tax_total: "$0.00"- additional_tax_total: '0.0'- display_additional_tax_total: "$0.00"- total: '29.99'- display_total: "$29.99"- completed_at:- created_at: '2026-02-13T22:55:01.237Z'- updated_at: '2026-02-13T22:55:01.464Z'- payment_methods: []- schema:- "$ref": "#/components/schemas/StoreOrder"- "/api/v3/store/orders/{id}/complete":- patch:- summary: Complete the order+ error:+ code: record_not_found+ message: Wished item not found+ '204':+ description: item removed+ "/api/v3/store/wishlists/{id}":+ get:+ summary: Get a wishlisttags:- - Orders+ - Wishlistssecurity:- api_key: []bearer_auth: []- description: Completes the order (finalizes the purchase)parameters:- name: x-spree-api-keyin: header@@ -2260,7 +2499,7 @@ paths:type: string- name: Authorizationin: header- required: false+ required: trueschema:type: string- name: id@@ -2268,76 +2507,44 @@ paths:required: trueschema:type: string- - name: order_token+ - name: includesin: queryrequired: false+ description: Include wished_itemsschema:type: stringresponses:'200':- description: order completed+ description: wishlist foundcontent:application/json:example:- id: or_gbHJdmfrXB- number: R249142990- state: complete- token: dThXyC6LfC3MVkbH6uXDi3TGsqELrVGr6Qb- email: [email protected]- special_instructions:- currency: USD- item_count: 1- shipment_state: backorder- payment_state: balance_due- item_total: '19.99'- display_item_total: "$19.99"- ship_total: '10.0'- display_ship_total: "$10.00"- adjustment_total: '0.0'- display_adjustment_total: "$0.00"- promo_total: '0.0'- display_promo_total: "$0.00"- tax_total: '0.0'- display_tax_total: "$0.00"- included_tax_total: '0.0'- display_included_tax_total: "$0.00"- additional_tax_total: '0.0'- display_additional_tax_total: "$0.00"- total: '29.99'- display_total: "$29.99"- completed_at: '2026-02-13T22:55:02.474Z'- created_at: '2026-02-13T22:55:02.154Z'- updated_at: '2026-02-13T22:55:02.474Z'- payment_methods:- - id: pm_UkLWZg9DAJ- name: Check- description:- type: Spree::PaymentMethod::Check- - id: pm_gbHJdmfrXB- name: Credit Card- description:- type: Spree::Gateway::Bogus+ id: wl_UkLWZg9DAJ+ name: My Wishlist+ token: HcySek6tYYrDX8WAhtnjpBiA+ created_at: '2026-02-14T17:19:11.836Z'+ updated_at: '2026-02-14T17:19:11.836Z'+ is_default: false+ is_private: trueschema:- "$ref": "#/components/schemas/StoreOrder"- '422':- description: cannot complete+ "$ref": "#/components/schemas/StoreWishlist"+ '404':+ description: wishlist not foundcontent:application/json:example:error:- code: order_already_completed- message: No payment found+ code: record_not_found+ message: Wishlist not foundschema:"$ref": "#/components/schemas/ErrorResponse"- "/api/v3/store/orders/{order_id}/store_credits":- post:- summary: Add store credit+ delete:+ summary: Delete a wishlisttags:- - Orders+ - Wishlistssecurity:- api_key: []bearer_auth: []- description: Applies store credit to the orderparameters:- name: x-spree-api-keyin: header@@ -2349,86 +2556,76 @@ paths:required: trueschema:type: string- - name: order_id+ - name: idin: pathrequired: trueschema:type: string- - name: order_token- in: query- required: false+ responses:+ '204':+ description: wishlist deleted+ patch:+ summary: Update a wishlist+ tags:+ - Wishlists+ security:+ - api_key: []+ bearer_auth: []+ parameters:+ - name: x-spree-api-key+ in: header+ required: true+ schema:+ type: string+ - name: Authorization+ in: header+ required: true+ schema:+ type: string+ - name: id+ in: path+ required: trueschema:type: stringresponses:'200':- description: store credit applied- content:- application/json:- example:- id: or_UkLWZg9DAJ- number: R081685430- state: cart- token: cAB8wi9pviTeBSPRW42uvkFRmoNWHtgDysL- email: [email protected]- special_instructions:- currency: USD- item_count: 1- shipment_state:- payment_state:- item_total: '10.0'- display_item_total: "$10.00"- ship_total: '100.0'- display_ship_total: "$100.00"- adjustment_total: '0.0'- display_adjustment_total: "$0.00"- promo_total: '0.0'- display_promo_total: "$0.00"- tax_total: '0.0'- display_tax_total: "$0.00"- included_tax_total: '0.0'- display_included_tax_total: "$0.00"- additional_tax_total: '0.0'- display_additional_tax_total: "$0.00"- total: '110.0'- display_total: "$110.00"- completed_at:- created_at: '2026-02-13T22:55:03.953Z'- updated_at: '2026-02-13T22:55:04.413Z'- payment_methods:- - id: pm_UkLWZg9DAJ- name: Store Credit- description: Store Credit- type: Spree::PaymentMethod::StoreCredit- schema:- "$ref": "#/components/schemas/StoreOrder"- '422':- description: no store credit available+ description: wishlist updatedcontent:application/json:example:- error:- code: processing_error- message: User does not have any Store Credits available+ id: wl_UkLWZg9DAJ+ name: Updated Name+ token: vNS49SptMxAmLwYdyfiLAsdo+ created_at: '2026-02-14T17:19:13.708Z'+ updated_at: '2026-02-14T17:19:13.806Z'+ is_default: false+ is_private: trueschema:- "$ref": "#/components/schemas/ErrorResponse"+ "$ref": "#/components/schemas/StoreWishlist"requestBody:content:application/json:schema:type: objectproperties:- amount:- type: number- example: 10.0- description: Amount to apply (optional - defaults to max available)- delete:- summary: Remove store credit+ name:+ type: string+ example: Updated Name+ is_private:+ type: boolean+ example: true+ is_default:+ type: boolean+ example: false+ "/api/v3/store/wishlists":+ post:+ summary: Create a wishlisttags:- - Orders+ - Wishlistssecurity:- api_key: []bearer_auth: []- description: Removes store credit from the order+ description: Creates a new wishlist for the customerparameters:- name: x-spree-api-keyin: header@@ -2440,64 +2637,59 @@ paths:required: trueschema:type: string- - name: order_id- in: path- required: true- schema:- type: string- - name: order_token- in: query- required: false- schema:- type: stringresponses:- '200':- description: store credit removed+ '422':+ description: validation errorcontent:application/json:example:- id: or_UkLWZg9DAJ- number: R900356464- state: cart- token: pkV4emiDoau2VerwvYoDkyBw8nhKNU37QWz- email: [email protected]- special_instructions:- currency: USD- item_count: 1- shipment_state:- payment_state:- item_total: '10.0'- display_item_total: "$10.00"- ship_total: '100.0'- display_ship_total: "$100.00"- adjustment_total: '0.0'- display_adjustment_total: "$0.00"- promo_total: '0.0'- display_promo_total: "$0.00"- tax_total: '0.0'- display_tax_total: "$0.00"- included_tax_total: '0.0'- display_included_tax_total: "$0.00"- additional_tax_total: '0.0'- display_additional_tax_total: "$0.00"- total: '110.0'- display_total: "$110.00"- completed_at:- created_at: '2026-02-13T22:55:05.752Z'- updated_at: '2026-02-13T22:55:05.898Z'- payment_methods: []+ error:+ code: validation_error+ message: Name can't be blank+ details:+ name:+ - can't be blankschema:- "$ref": "#/components/schemas/StoreOrder"- "/api/v3/store/orders/{order_id}/payment_methods":+ "$ref": "#/components/schemas/ErrorResponse"+ '201':+ description: wishlist created+ content:+ application/json:+ example:+ id: wl_gbHJdmfrXB+ name: Birthday Ideas+ token: jhkGW62wifRNYmKrBiVsc218+ created_at: '2026-02-14T17:19:15.124Z'+ updated_at: '2026-02-14T17:19:15.124Z'+ is_default: false+ is_private: true+ schema:+ "$ref": "#/components/schemas/StoreWishlist"+ requestBody:+ content:+ application/json:+ schema:+ type: object+ properties:+ name:+ type: string+ example: Birthday Ideas+ is_private:+ type: boolean+ example: true+ is_default:+ type: boolean+ example: false+ required:+ - nameget:- summary: List available payment methods+ summary: List wishliststags:- - Payment Methods+ - Wishlistssecurity:- api_key: []bearer_auth: []- description: Returns payment methods available for the order based on store- configuration and order state+ description: Returns all wishlists for the authenticated customerparameters:- name: x-spree-api-keyin: header@@ -2506,563 +2698,71 @@ paths:type: string- name: Authorizationin: header- required: false- schema:- type: string- - name: order_id- in: pathrequired: trueschema:type: string- - name: order_token+ - name: pagein: queryrequired: falseschema:- type: string+ type: integer+ - name: per_page+ in: query+ required: false+ schema:+ type: integerresponses:+ '401':+ description: unauthorized+ content:+ application/json:+ example:+ error:+ code: authentication_required+ message: Authentication required+ schema:+ "$ref": "#/components/schemas/ErrorResponse"'200':- description: payment methods found+ description: wishlists foundcontent:application/json:example:data:- - id: pm_UkLWZg9DAJ- name: Credit Card- description:- type: Spree::Gateway::Bogus+ - id: wl_UkLWZg9DAJ+ name: My Wishlist+ token: KyximyUTwdPsUoNGByJ3Y2t5+ created_at: '2026-02-14T17:19:16.319Z'+ updated_at: '2026-02-14T17:19:16.319Z'+ is_default: false+ is_private: truemeta:+ page: 1+ limit: 25count: 1+ pages: 1+ from: 1+ to: 1+ in: 1+ previous:+ next:schema:type: objectproperties:data:type: arrayitems:- "$ref": "#/components/schemas/StorePaymentMethod"+ "$ref": "#/components/schemas/StoreWishlist"meta:- type: object- properties:- count:- type: integer- '404':- description: order not found- content:- application/json:- example:- error:- code: order_not_found- message: Order not found- schema:- "$ref": "#/components/schemas/ErrorResponse"- '401':- description: unauthorized- content:- application/json:- example:- error:- code: invalid_token- message: Valid API key required- schema:- "$ref": "#/components/schemas/ErrorResponse"- "/api/v3/store/orders/{order_id}/payments":- parameters:- - name: x-spree-api-key- in: header- required: true- schema:- type: string- - name: Authorization- in: header- required: true- schema:- type: string- - name: order_id- in: path- description: Order prefix ID- required: true- schema:- type: string- get:- summary: List payments- tags:- - Payments- security:- - api_key: []- bearer_auth: []- description: Returns a list of payments for the specified order- responses:- '200':- description: payments found- content:- application/json:- example:- data:- - id: py_UkLWZg9DAJ- payment_method_id: pm_UkLWZg9DAJ- state: checkout- response_code: '12345'- number: P3WHZ9DO- amount: '110.0'- display_amount: "$110.00"- created_at: '2026-02-13T22:55:07.896Z'- updated_at: '2026-02-13T22:55:07.896Z'- payment_method:- id: pm_UkLWZg9DAJ- name: Credit Card- description:- type: Spree::Gateway::Bogus- meta: {}- schema:- type: object- properties:- data:- type: array- items:- "$ref": "#/components/schemas/StorePayment"- meta:- type: object- '404':- description: order not found- content:- application/json:- example:- error:- code: order_not_found- message: Order not found- schema:- "$ref": "#/components/schemas/ErrorResponse"- "/api/v3/store/orders/{order_id}/payments/{id}":- parameters:- - name: x-spree-api-key- in: header- required: true- schema:- type: string- - name: Authorization- in: header- required: true- schema:- type: string- - name: order_id- in: path- description: Order prefix ID- required: true- schema:- type: string- - name: id- in: path- description: Payment ID- required: true- schema:- type: string- get:- summary: Get payment- tags:- - Payments- security:- - api_key: []- bearer_auth: []- description: Returns a single payment by ID- responses:- '200':- description: payment found- content:- application/json:- example:- id: py_UkLWZg9DAJ- payment_method_id: pm_UkLWZg9DAJ- state: checkout- response_code: '12345'- number: PQ3F37XF- amount: '110.0'- display_amount: "$110.00"- created_at: '2026-02-13T22:55:09.395Z'- updated_at: '2026-02-13T22:55:09.395Z'- payment_method:- id: pm_UkLWZg9DAJ- name: Credit Card- description:- type: Spree::Gateway::Bogus- schema:- "$ref": "#/components/schemas/StorePayment"- '404':- description: payment not found- content:- application/json:- example:- error:- code: record_not_found- message: Payment not found- schema:- "$ref": "#/components/schemas/ErrorResponse"- "/api/v3/store/products":- get:- summary: List products- tags:- - Products- security:- - api_key: []- description: Returns a paginated list of active products for the current store- parameters:- - name: x-spree-api-key- in: header- required: true- description: Publishable API key- schema:- type: string- - name: page- in: query- required: false- description: 'Page number (default: 1)'- schema:- type: integer- - name: per_page- in: query- required: false- description: 'Number of items per page (default: 25, max: 100)'- schema:- type: integer- - name: q[name_cont]- in: query- required: false- description: Filter by name containing string- schema:- type: string- - name: q[taxons_id_eq]- in: query- required: false- description: Filter by taxon ID- schema:- type: string- - name: includes- in: query- required: false- description: Comma-separated associations to include (variants, images, taxons,- option_types)- schema:- type: string- responses:- '200':- description: products found- content:- application/json:- example:- data:- - id: prod_UkLWZg9DAJ- name: Product 529798- description: |-- Harum eveniet nisi quaerat magnam autem quas praesentium necessitatibus. Minima soluta nesciunt porro quis quo sunt. Debitis dolorum eligendi dignissimos nisi voluptates autem quaerat cupiditate. Fugiat culpa impedit temporibus repellendus.- Alias inventore nulla ab architecto id. Earum nisi dolore minus hic. Numquam nemo accusamus eaque laborum quaerat provident praesentium repellendus.- At laudantium illo reprehenderit magni enim libero porro suscipit. Optio quia dolores fugiat maiores commodi laboriosam dicta. Dolorum molestiae dolor saepe consequuntur repudiandae cupiditate magnam facilis. Necessitatibus odio at doloribus soluta quidem. Libero illo nam porro error ab.- Sunt ipsum culpa repudiandae laboriosam quis modi sed quaerat. In odio excepturi quod saepe laboriosam. Dolores dolorum molestiae totam sunt nobis libero sint. Quas ad id delectus nemo nostrum voluptatum aliquam. At laborum dolore adipisci consectetur quis.- Nesciunt totam incidunt consectetur itaque maiores iure esse. Iusto eveniet numquam modi incidunt doloremque. Harum explicabo illum beatae repellendus labore unde.- slug: product-529798- meta_description:- meta_keywords:- variant_count: 1- available_on: '2025-02-13T22:55:10.156Z'- created_at: '2026-02-13T22:55:10.175Z'- updated_at: '2026-02-13T22:55:10.263Z'- purchasable: true- in_stock: false- backorderable: true- available: true- default_variant_id: variant_gbHJdmfrXB- thumbnail_url:- tags: []- price:- id: price_gbHJdmfrXB- amount: '19.99'- amount_in_cents: 1999- compare_at_amount:- compare_at_amount_in_cents:- currency: USD- display_amount: "$19.99"- display_compare_at_amount:- price_list_id:- original_price:- - id: prod_gbHJdmfrXB- name: Product 531785- description: |-- Laborum nostrum aperiam hic repellat enim sit. Ipsum provident numquam ducimus laudantium doloribus nostrum saepe omnis. Quis dolor porro quaerat adipisci cum. Officiis necessitatibus quisquam placeat repellendus quae dicta ex. Commodi porro a molestiae ipsam molestias.- Recusandae nesciunt nam sunt ipsam iure nihil facere autem. Doloremque aspernatur enim sint fuga. Totam inventore minima delectus quod tempora. Est id laudantium provident accusantium modi. Nesciunt non veritatis totam optio ducimus nam est quidem.- slug: product-531785- meta_description:- meta_keywords:- variant_count: 0- available_on: '2025-02-13T22:55:10.282Z'- created_at: '2026-02-13T22:55:10.293Z'- updated_at: '2026-02-13T22:55:10.319Z'- purchasable: true- in_stock: false- backorderable: true- available: true- default_variant_id: variant_EfhxLZ9ck8- thumbnail_url:- tags: []- price:- id: price_EfhxLZ9ck8- amount: '19.99'- amount_in_cents: 1999- compare_at_amount:- compare_at_amount_in_cents:- currency: USD- display_amount: "$19.99"- display_compare_at_amount:- price_list_id:- original_price:- meta:- page: 1- limit: 25- count: 2- pages: 1- from: 1- to: 2- in: 2- previous:- next:- schema:- type: object- properties:- data:- type: array- items:- "$ref": "#/components/schemas/StoreProduct"- meta:- "$ref": "#/components/schemas/PaginationMeta"- required:- - data- - meta- '401':- description: unauthorized - invalid or missing API key- content:- application/json:- example:- error:- code: invalid_token- message: Valid API key required- schema:- "$ref": "#/components/schemas/ErrorResponse"- "/api/v3/store/products/{id}":- get:- summary: Get a product- tags:- - Products- security:- - api_key: []- description: Returns a single product by slug or prefix ID- parameters:- - name: x-spree-api-key- in: header- required: true- description: Publishable API key- schema:- type: string- - name: id- in: path- required: true- description: Product slug (e.g., ruby-on-rails-tote) or prefix ID (e.g., product_abc123)- schema:- type: string- - name: includes- in: query- required: false- description: Comma-separated associations to include- schema:- type: string- responses:- '200':- description: product found by prefix ID- content:- application/json:- example:- id: prod_UkLWZg9DAJ- name: Product 646792- description: Aliquid voluptatem eos in tenetur itaque adipisci. Minima- dicta vitae nihil facilis id vel eius laborum. Sapiente necessitatibus- optio doloribus error natus. Repellendus nostrum assumenda recusandae- omnis. Atque omnis magnam numquam eaque asperiores.- slug: product-646792- meta_description:- meta_keywords:- variant_count: 1- available_on: '2025-02-13T22:55:11.495Z'- created_at: '2026-02-13T22:55:11.525Z'- updated_at: '2026-02-13T22:55:11.626Z'- purchasable: true- in_stock: false- backorderable: true- available: true- default_variant_id: variant_gbHJdmfrXB- thumbnail_url:- tags: []- price:- id: price_gbHJdmfrXB- amount: '19.99'- amount_in_cents: 1999- compare_at_amount:- compare_at_amount_in_cents:- currency: USD- display_amount: "$19.99"- display_compare_at_amount:- price_list_id:- original_price:- schema:- "$ref": "#/components/schemas/StoreProduct"- '404':- description: draft product not visible- content:- application/json:- example:- error:- code: record_not_found- message: Product not found- schema:- "$ref": "#/components/schemas/ErrorResponse"- "/api/v3/store/products/filters":- get:- summary: Get product filters- tags:- - Products- security:- - api_key: []- description: |- Returns available filters for products with their options and counts.- Use this endpoint to build filter UIs for product listing pages.-- The filters are context-aware - when a taxon_id is provided, only filters- relevant to products in that taxon are returned.- parameters:- - name: x-spree-api-key- in: header- required: true- description: Publishable API key- schema:- type: string- - name: taxon_id- in: query- required: false- description: Scope filters to products in this taxon (prefix ID)- schema:- type: string- - name: q[name_cont]- in: query- required: false- description: Filter by name containing string- schema:- type: string- responses:- '200':- description: filters scoped to taxon- content:- application/json:- example:- filters:- - id: price- type: price_range- label: Price- min: 19.99- max: 19.99- currency: USD- - id: availability- type: availability- label: availability- options:- - id: in_stock- label: In Stock- count: 0- - id: out_of_stock- label: Out of Stock- count: 2- - id: opt_UkLWZg9DAJ- type: option- label: Size- name: size- options:- - id: optval_UkLWZg9DAJ- label: S- name: small- position: 1- count: 1- - id: taxons- type: taxon- label: Category- options:- - id: txn_p6klVeMgbn- label: Shirts- permalink: taxonomy-9/taxon-9/shirts- count: 2- sort_options:- - id: manual- label: Manual- - id: best-selling- label: Best Selling- - id: price-low-to-high- label: Price (low-high)- - id: price-high-to-low- label: Price (high-low)- - id: newest-first- label: Newest- - id: oldest-first- label: Oldest- - id: name-a-z- label: Alphabetically, A-Z- - id: name-z-a- label: Alphabetically, Z-A- default_sort: manual- total_count: 2- schema:- type: object- properties:- filters:- type: array- description: Available filters (price_range, availability, option,- taxon)- items:- type: object- sort_options:- type: array- description: Available sort options- items:- type: object- properties:- id:- type: string- label:- type: string- required:- - id- - label- default_sort:- type: string- description: Default sort option ID- total_count:- type: integer- description: Total products matching current filters- required:- - filters- - sort_options- - default_sort- - total_count- '401':- description: unauthorized - invalid or missing API key- content:- application/json:- example:- error:- code: invalid_token- message: Valid API key required- schema:- "$ref": "#/components/schemas/ErrorResponse"- "/api/v3/store/orders/{order_id}/shipments":- get:- summary: List shipments for an order+ "$ref": "#/components/schemas/PaginationMeta"+ "/api/v3/store/wishlists/{wishlist_id}/items":+ post:+ summary: Add item to wishlisttags:- - Shipments+ - Wishlistssecurity:- api_key: []bearer_auth: []- description: Returns all shipments associated with the order+ description: Adds a variant to the wishlistparameters:- name: x-spree-api-keyin: header@@ -3071,100 +2771,84 @@ paths:type: string- name: Authorizationin: header- required: false+ required: trueschema:type: string- - name: order_id+ - name: wishlist_idin: pathrequired: trueschema:type: string- - name: token- in: query- required: false- description: Order token for guest access- schema:- type: stringresponses:- '200':- description: shipments found- content:- application/json:- example:- data:- - id: ship_UkLWZg9DAJ- number: H76038004023- state: pending- tracking: U10000- tracking_url:- cost: '100.0'- display_cost: "$100.00"- shipped_at:- created_at: '2026-02-13T22:55:15.436Z'- updated_at: '2026-02-13T22:55:15.472Z'- shipping_method:- id: shpm_UkLWZg9DAJ- name: UPS Ground- code: UPS_GROUND- stock_location:- id: sloc_UkLWZg9DAJ- state_abbr: STATE_ABBR_219- name: Alton Hyatt- address1: 1600 Pennsylvania Ave NW- city: Washington- zipcode: '20500'- country_iso: US- country_name: United States of America- state_text: STATE_ABBR_219- shipping_rates:- - id: shpr_UkLWZg9DAJ- shipping_method_id: shpm_UkLWZg9DAJ- name: UPS Ground- selected: true- cost: 100.0- display_cost: "$100.00"- shipping_method:- id: shpm_UkLWZg9DAJ- name: UPS Ground- code: UPS_GROUND- meta:- page: 1- limit: 25- count: 1- pages: 1- from: 1- to: 1- in: 1- previous:- next:- schema:- type: object- properties:- data:- type: array- items:- "$ref": "#/components/schemas/StoreShipment"- meta:- "$ref": "#/components/schemas/PaginationMeta"- '404':- description: order not found+ '201':+ description: item addedcontent:application/json:example:- error:- code: order_not_found- message: Order not found+ id: wi_gbHJdmfrXB+ variant_id: variant_gbHJdmfrXB+ wishlist_id: wl_UkLWZg9DAJ+ quantity: 1+ created_at: '2026-02-14T17:19:17.066Z'+ updated_at: '2026-02-14T17:19:17.066Z'+ variant:+ id: variant_gbHJdmfrXB+ product_id: prod_gbHJdmfrXB+ sku: SKU-56+ is_master: true+ options_text: ''+ track_inventory: true+ image_count: 0+ created_at: '2026-02-14T17:19:17.026Z'+ updated_at: '2026-02-14T17:19:17.047Z'+ thumbnail:+ purchasable: true+ in_stock: false+ backorderable: true+ weight: 0.0+ height:+ width:+ depth:+ price:+ id: price_gbHJdmfrXB+ amount: '19.99'+ amount_in_cents: 1999+ compare_at_amount:+ compare_at_amount_in_cents:+ currency: USD+ display_amount: "$19.99"+ display_compare_at_amount:+ price_list_id:+ original_price:+ option_values: []schema:- "$ref": "#/components/schemas/ErrorResponse"- "/api/v3/store/orders/{order_id}/shipments/{id}":- get:- summary: Get a shipment+ "$ref": "#/components/schemas/StoreWishedItem"+ requestBody:+ content:+ application/json:+ schema:+ type: object+ properties:+ variant_id:+ type: string+ example: variant_abc123+ quantity:+ type: integer+ example: 1+ required:+ - variant_id+ "/api/v3/store/cart/associate":+ patch:+ summary: Associate guest cart with authenticated usertags:- - Shipments+ - Cartsecurity:- api_key: []bearer_auth: []- description: Returns details of a specific shipment+ description: |+ Associates a guest cart with the currently authenticated user.+ Requires both JWT authentication and an order token.+ The order must not be completed and must not belong to another user.parameters:- name: x-spree-api-keyin: header@@ -3173,93 +2857,126 @@ paths:type: string- name: Authorizationin: header- required: false- schema:- type: string- - name: order_id- in: path- required: true- schema:- type: string- - name: id- in: pathrequired: true- description: Shipment ID+ description: Bearer JWT token (required)schema:type: string- - name: token- in: query+ - name: x-spree-order-token+ in: headerrequired: false- description: Order token for guest access+ description: Order token (can also be passed as query param)schema:type: string- - name: includes+ - name: order_tokenin: queryrequired: false- description: Include shipping_rates+ description: Order token (alternative to header)schema:type: stringresponses:- '200':- description: shipment found+ '404':+ description: cart already completedcontent:application/json:example:- id: ship_UkLWZg9DAJ- number: H54546353798- state: pending- tracking: U10000- tracking_url:- cost: '100.0'- display_cost: "$100.00"- shipped_at:- created_at: '2026-02-13T22:55:16.872Z'- updated_at: '2026-02-13T22:55:16.917Z'- shipping_method:- id: shpm_UkLWZg9DAJ- name: UPS Ground- code: UPS_GROUND- stock_location:- id: sloc_UkLWZg9DAJ- state_abbr: STATE_ABBR_227- name: Manuela Schimmel- address1: 1600 Pennsylvania Ave NW- city: Washington- zipcode: '20500'- country_iso: US- country_name: United States of America- state_text: STATE_ABBR_227- shipping_rates:- - id: shpr_UkLWZg9DAJ- shipping_method_id: shpm_UkLWZg9DAJ- name: UPS Ground- selected: true- cost: 100.0- display_cost: "$100.00"- shipping_method:- id: shpm_UkLWZg9DAJ- name: UPS Ground- code: UPS_GROUND+ error:+ code: order_not_found+ message: Order not foundschema:- "$ref": "#/components/schemas/StoreShipment"- '404':- description: shipment not found+ "$ref": "#/components/schemas/ErrorResponse"+ '401':+ description: unauthorized - JWT requiredcontent:application/json:example:error:- code: record_not_found- message: Shipment not found+ code: authentication_required+ message: Authentication requiredschema:"$ref": "#/components/schemas/ErrorResponse"- patch:- summary: Select shipping rate for shipment+ '200':+ description: cart associated successfully+ content:+ application/json:+ example:+ id: or_UkLWZg9DAJ+ number: R972232618+ state: cart+ token: 1ejBzeKGHSHNdgsZBHoLbvSG1W75B1TFGS3+ email: [email protected]+ special_instructions:+ currency: USD+ item_count: 1+ shipment_state:+ payment_state:+ item_total: '10.0'+ display_item_total: "$10.00"+ ship_total: '100.0'+ display_ship_total: "$100.00"+ adjustment_total: '0.0'+ display_adjustment_total: "$0.00"+ promo_total: '0.0'+ display_promo_total: "$0.00"+ tax_total: '0.0'+ display_tax_total: "$0.00"+ included_tax_total: '0.0'+ display_included_tax_total: "$0.00"+ additional_tax_total: '0.0'+ display_additional_tax_total: "$0.00"+ total: '110.0'+ display_total: "$110.00"+ completed_at:+ created_at: '2026-02-14T17:19:18.764Z'+ updated_at: '2026-02-14T17:19:18.886Z'+ line_items:+ - id: li_UkLWZg9DAJ+ variant_id: variant_UkLWZg9DAJ+ quantity: 1+ name: Product 597288+ slug: product-597288+ options_text: ''+ price: '10.0'+ display_price: "$10.00"+ total: '10.0'+ display_total: "$10.00"+ adjustment_total: '0.0'+ display_adjustment_total: "$0.00"+ additional_tax_total: '0.0'+ display_additional_tax_total: "$0.00"+ included_tax_total: '0.0'+ display_included_tax_total: "$0.00"+ promo_total: '0.0'+ display_promo_total: "$0.00"+ pre_tax_amount: '10.0'+ display_pre_tax_amount: "$10.00"+ discounted_amount: '10.0'+ display_discounted_amount: "$10.00"+ display_compare_at_amount: "$0.00"+ created_at: '2026-02-14T17:19:18.836Z'+ updated_at: '2026-02-14T17:19:18.836Z'+ compare_at_amount:+ thumbnail_url:+ option_values: []+ payment_methods: []+ schema:+ type: object+ allOf:+ - "$ref": "#/components/schemas/StoreOrder"+ - type: object+ properties:+ token:+ type: string+ "/api/v3/store/cart":+ get:+ summary: Get current carttags:- - Shipments+ - Cartsecurity:- api_key: []bearer_auth: []- description: Selects a shipping rate for the shipment+ description: |+ Returns the current shopping cart (incomplete order).+ Authenticate via JWT token for logged-in users or via order_token parameter for guests.parameters:- name: x-spree-api-keyin: header@@ -3269,141 +2986,151 @@ paths:- name: Authorizationin: headerrequired: false+ description: Bearer JWT token for authenticated customersschema:type: string- - name: order_id- in: path- required: true- schema:- type: string- - name: id- in: path- required: true- description: Shipment ID- schema:- type: string- - name: token+ - name: order_tokenin: queryrequired: false- description: Order token for guest access+ description: Order token for guest checkoutschema:type: stringresponses:'200':- description: shipping rate selected+ description: cart found (authenticated)content:application/json:example:- id: ship_UkLWZg9DAJ- number: H86011346559- state: pending- tracking: U10000- tracking_url:- cost: '100.0'- display_cost: "$100.00"- shipped_at:- created_at: '2026-02-13T22:55:18.377Z'- updated_at: '2026-02-13T22:55:18.432Z'- shipping_method:- id: shpm_UkLWZg9DAJ- name: UPS Ground- code: UPS_GROUND- stock_location:- id: sloc_UkLWZg9DAJ- state_abbr: STATE_ABBR_235- name: Love Labadie- address1: 1600 Pennsylvania Ave NW- city: Washington- zipcode: '20500'- country_iso: US- country_name: United States of America- state_text: STATE_ABBR_235- shipping_rates:- - id: shpr_UkLWZg9DAJ- shipping_method_id: shpm_UkLWZg9DAJ- name: UPS Ground- selected: true- cost: 100.0- display_cost: "$100.00"- shipping_method:- id: shpm_UkLWZg9DAJ- name: UPS Ground- code: UPS_GROUND+ id: or_UkLWZg9DAJ+ number: R380109999+ state: cart+ token: qsA2EsWMoWchgSSJwVtbBE5Jh9NRp73YTUz+ email: [email protected]+ special_instructions:+ currency: USD+ item_count: 1+ shipment_state:+ payment_state:+ item_total: '10.0'+ display_item_total: "$10.00"+ ship_total: '100.0'+ display_ship_total: "$100.00"+ adjustment_total: '0.0'+ display_adjustment_total: "$0.00"+ promo_total: '0.0'+ display_promo_total: "$0.00"+ tax_total: '0.0'+ display_tax_total: "$0.00"+ included_tax_total: '0.0'+ display_included_tax_total: "$0.00"+ additional_tax_total: '0.0'+ display_additional_tax_total: "$0.00"+ total: '110.0'+ display_total: "$110.00"+ completed_at:+ created_at: '2026-02-14T17:19:21.176Z'+ updated_at: '2026-02-14T17:19:21.300Z'+ line_items:+ - id: li_UkLWZg9DAJ+ variant_id: variant_UkLWZg9DAJ+ quantity: 1+ name: Product 621779+ slug: product-621779+ options_text: ''+ price: '10.0'+ display_price: "$10.00"+ total: '10.0'+ display_total: "$10.00"+ adjustment_total: '0.0'+ display_adjustment_total: "$0.00"+ additional_tax_total: '0.0'+ display_additional_tax_total: "$0.00"+ included_tax_total: '0.0'+ display_included_tax_total: "$0.00"+ promo_total: '0.0'+ display_promo_total: "$0.00"+ pre_tax_amount: '10.0'+ display_pre_tax_amount: "$10.00"+ discounted_amount: '10.0'+ display_discounted_amount: "$10.00"+ display_compare_at_amount: "$0.00"+ created_at: '2026-02-14T17:19:21.246Z'+ updated_at: '2026-02-14T17:19:21.246Z'+ compare_at_amount:+ thumbnail_url:+ option_values: []+ payment_methods: []schema:- "$ref": "#/components/schemas/StoreShipment"+ type: object+ allOf:+ - "$ref": "#/components/schemas/StoreOrder"+ - type: object+ properties:+ token:+ type: string'404':- description: shipping rate not found+ description: no cart foundcontent:application/json:- example:- error:- code: record_not_found- message: Shipping rate not found- schema:- "$ref": "#/components/schemas/ErrorResponse"- requestBody:- content:- application/json:- schema:- type: object- properties:- selected_shipping_rate_id:- type: string- example: shprt_abc123- description: Shipping rate ID to select- required:- - selected_shipping_rate_id- "/api/v3/store/store":+ example:+ error:+ code: order_not_found+ message: Order not found+ schema:+ "$ref": "#/components/schemas/ErrorResponse"+ "/api/v3/store/digitals/{token}":get:- summary: Get current store+ summary: Download a digital producttags:- - Store+ - Digitalssecurity:- api_key: []- description: Returns information about the current store based on the API key+ description: |+ Downloads a digital product file using the digital link token.+ The token is provided in the order confirmation or digital links list.+ Each download increments the access counter. Downloads may be limited by+ store settings (number of downloads and/or time-based expiration).parameters:- name: x-spree-api-keyin: headerrequired: trueschema:type: string+ - name: token+ in: path+ required: true+ description: Digital link token+ schema:+ type: stringresponses:- '200':- description: store found+ '404':+ description: digital link not foundcontent:application/json:example:- id: store_UkLWZg9DAJ- name: Spree Test Store- url: www.example.com- meta_description: Sample store description.- meta_keywords:- seo_title:- default_currency: USD- code: spree_1- default: true- facebook: spreecommerce- twitter: spreecommerce- instagram: spreecommerce- customer_support_email: [email protected]- default_locale: en- created_at: '2026-02-13T22:54:27.463Z'- updated_at: '2026-02-13T22:54:27.660Z'- default_country_iso: US- supported_currencies:- - USD- - EUR- - GBP- favicon_image_url:- logo_image_url:- social_image_url:- supported_locales:- - en- payment_methods: []+ error:+ code: record_not_found+ message: Digital link not foundschema:- "$ref": "#/components/schemas/StoreStore"+ "$ref": "#/components/schemas/ErrorResponse"+ application/octet-stream:+ schema:+ "$ref": "#/components/schemas/ErrorResponse"+ '403':+ description: download link expired or limit exceeded+ content:+ application/json:+ example:+ error:+ code: digital_link_expired+ message: Download link expired or invalid+ schema:+ "$ref": "#/components/schemas/ErrorResponse"+ application/octet-stream:+ schema:+ "$ref": "#/components/schemas/ErrorResponse"'401':- description: unauthorized - missing API key+ description: unauthorized - invalid API keycontent:application/json:example:@@ -3412,237 +3139,296 @@ paths:message: Valid API key requiredschema:"$ref": "#/components/schemas/ErrorResponse"- "/api/v3/store/taxonomies":- get:- summary: List taxonomies+ application/octet-stream:+ schema:+ "$ref": "#/components/schemas/ErrorResponse"+ '200':+ description: file downloaded+ content:+ application/json: {}+ "/api/v3/store/customer/addresses/{id}":+ patch:+ summary: Update an addresstags:- - Taxonomies+ - Addressessecurity:- api_key: []- description: Returns a list of taxonomies (category hierarchies) for the current- store+ bearer_auth: []parameters:- name: x-spree-api-keyin: headerrequired: trueschema:type: string- - name: page- in: query- required: false- schema:- type: integer- - name: per_page- in: query- required: false+ - name: Authorization+ in: header+ required: trueschema:- type: integer- - name: includes- in: query- required: false- description: Include root taxon+ type: string+ - name: id+ in: path+ required: trueschema:type: stringresponses:'200':- description: taxonomies found- content:- application/json:- example:- data:- - id: txnmy_UkLWZg9DAJ- name: Categories- position: 1- created_at: '2026-02-13T22:54:27.472Z'- updated_at: '2026-02-13T22:54:27.537Z'- root_id: txn_UkLWZg9DAJ- - id: txnmy_gbHJdmfrXB- name: Brands- position: 2- created_at: '2026-02-13T22:54:27.540Z'- updated_at: '2026-02-13T22:54:27.570Z'- root_id: txn_gbHJdmfrXB- - id: txnmy_EfhxLZ9ck8- name: Collections- position: 3- created_at: '2026-02-13T22:54:27.573Z'- updated_at: '2026-02-13T22:54:27.664Z'- root_id: txn_EfhxLZ9ck8- - id: txnmy_VqXmZF31wY- name: taxonomy_11- position: 4- created_at: '2026-02-13T22:55:19.272Z'- updated_at: '2026-02-13T22:55:19.283Z'- root_id: txn_OIJLhNcSbf- - id: txnmy_uw2YK1rnl0- name: taxonomy_12- position: 5- created_at: '2026-02-13T22:55:19.284Z'- updated_at: '2026-02-13T22:55:19.294Z'- root_id: txn_AXs1igzRC6- meta:- page: 1- limit: 25- count: 5- pages: 1- from: 1- to: 5- in: 5- previous:- next:- schema:- type: object- properties:- data:- type: array- items:- "$ref": "#/components/schemas/StoreTaxonomy"- meta:- "$ref": "#/components/schemas/PaginationMeta"- '401':- description: unauthorized+ description: address updatedcontent:application/json:example:- error:- code: invalid_token- message: Valid API key required+ id: addr_EfhxLZ9ck8+ firstname: John+ lastname: Doe+ full_name: John Doe+ address1: 224 Lovely Street+ address2: Northwest+ city: Los Angeles+ zipcode: '35005'+ phone: 555-555-0199+ company: Company+ country_name: NAME_42+ country_iso: I42+ state_text: STATE_ABBR_222+ state_abbr: STATE_ABBR_222+ state_name: STATE_NAME_222schema:- "$ref": "#/components/schemas/ErrorResponse"- "/api/v3/store/taxonomies/{id}":+ "$ref": "#/components/schemas/StoreAddress"+ requestBody:+ content:+ application/json:+ schema:+ type: object+ properties:+ firstname:+ type: string+ example: John+ lastname:+ type: string+ example: Doe+ address1:+ type: string+ example: 456 Oak Ave+ city:+ type: string+ example: Los Angelesget:- summary: Get a taxonomy+ summary: Get an addresstags:- - Taxonomies+ - Addressessecurity:- api_key: []- description: Returns a single taxonomy with its taxon tree+ bearer_auth: []parameters:- name: x-spree-api-keyin: headerrequired: trueschema:type: string- - name: id- in: path+ - name: Authorization+ in: headerrequired: true- description: Taxonomy ID (prefixed)schema:type: string- - name: includes- in: query- required: false- description: Include taxons+ - name: id+ in: path+ required: trueschema:type: stringresponses:'200':- description: taxonomy found+ description: address foundcontent:application/json:example:- id: txnmy_VqXmZF31wY- name: taxonomy_17- position: 4- created_at: '2026-02-13T22:55:19.591Z'- updated_at: '2026-02-13T22:55:19.600Z'- root_id: txn_OIJLhNcSbf+ id: addr_EfhxLZ9ck8+ firstname: John+ lastname: Doe+ full_name: John Doe+ address1: 227 Lovely Street+ address2: Northwest+ city: Herndon+ zipcode: '35005'+ phone: 555-555-0199+ company: Company+ country_name: NAME_43+ country_iso: I43+ state_text: STATE_ABBR_225+ state_abbr: STATE_ABBR_225+ state_name: STATE_NAME_225schema:- "$ref": "#/components/schemas/StoreTaxonomy"+ "$ref": "#/components/schemas/StoreAddress"'404':- description: taxonomy from other store+ description: address not foundcontent:application/json:example:error:code: record_not_found- message: Taxonomy not found+ message: Address not foundschema:"$ref": "#/components/schemas/ErrorResponse"- "/api/v3/store/taxons/{id}":- get:- summary: Get a taxon+ delete:+ summary: Delete an addresstags:- - Taxons+ - Addressessecurity:- api_key: []- description: Returns a single taxon by permalink or prefix ID+ bearer_auth: []parameters:- name: x-spree-api-keyin: headerrequired: trueschema:type: string- - name: id- in: path+ - name: Authorization+ in: headerrequired: true- description: Taxon permalink (e.g., categories/clothing/shirts) or prefix- ID (e.g., taxon_abc123)schema:type: string- - name: includes- in: query- required: false- description: Include associations (children, products, parent)+ - name: id+ in: path+ required: trueschema:type: stringresponses:- '200':- description: taxon found by prefix ID- content:- application/json:- example:- id: txn_AXs1igzRC6- name: taxon_14- permalink: taxonomy-28/taxon-14- position: 0- depth: 1- meta_title:- meta_description:- meta_keywords:- children_count: 1- created_at: '2026-02-13T22:55:20.297Z'- updated_at: '2026-02-13T22:55:20.315Z'- parent_id: txn_OIJLhNcSbf- taxonomy_id: txnmy_VqXmZF31wY- description: ''- description_html: ''- image_url:- square_image_url:- is_root: false- is_child: true- is_leaf: false- schema:- "$ref": "#/components/schemas/StoreTaxon"+ '204':+ description: address deleted'404':- description: taxon from other store not accessible+ description: address not foundcontent:application/json:example:error:code: record_not_found- message: Taxon not found+ message: Address not foundschema:"$ref": "#/components/schemas/ErrorResponse"- '401':- description: unauthorized+ "/api/v3/store/customer/addresses":+ post:+ summary: Create an address+ tags:+ - Addresses+ security:+ - api_key: []+ bearer_auth: []+ description: Adds a new address to the customer address book+ parameters:+ - name: x-spree-api-key+ in: header+ required: true+ schema:+ type: string+ - name: Authorization+ in: header+ required: true+ schema:+ type: string+ responses:+ '201':+ description: address created+ content:+ application/json:+ example:+ id: addr_VqXmZF31wY+ firstname: John+ lastname: Doe+ full_name: John Doe+ address1: 123 Main St+ address2:+ city: New York+ zipcode: '10001'+ phone: "+1 555 123 4567"+ company:+ country_name: NAME_47+ country_iso: I47+ state_text: STATE_ABBR_237+ state_abbr: STATE_ABBR_237+ state_name: STATE_NAME_237+ schema:+ "$ref": "#/components/schemas/StoreAddress"+ '422':+ description: validation errorcontent:application/json:example:error:- code: invalid_token- message: Valid API key required+ code: validation_error+ message: First Name can't be blank, Last Name can't be blank, Address+ can't be blank, City can't be blank, Country can't be blank, and+ Zip Code can't be blank+ details:+ firstname:+ - can't be blank+ lastname:+ - can't be blank+ address1:+ - can't be blank+ city:+ - can't be blank+ country:+ - can't be blank+ zipcode:+ - can't be blankschema:"$ref": "#/components/schemas/ErrorResponse"- "/api/v3/store/wishlists":+ requestBody:+ content:+ application/json:+ schema:+ type: object+ properties:+ firstname:+ type: string+ example: John+ lastname:+ type: string+ example: Doe+ address1:+ type: string+ example: 123 Main St+ address2:+ type: string+ example: Apt 4B+ city:+ type: string+ example: New York+ zipcode:+ type: string+ example: '10001'+ phone:+ type: string+ example: "+1 555 123 4567"+ company:+ type: string+ example: Acme Inc+ country_iso:+ type: string+ example: US+ description: ISO 3166-1 alpha-2 country code (e.g., "US", "DE")+ state_abbr:+ type: string+ example: NY+ description: ISO 3166-2 subdivision code without country prefix+ (e.g., "CA", "NY")+ state_name:+ type: string+ example: New York+ description: State name - for countries without predefined states+ required:+ - firstname+ - lastname+ - address1+ - city+ - zipcode+ - country_isoget:- summary: List wishlists+ summary: List customer addressestags:- - Wishlists+ - Addressessecurity:- api_key: []bearer_auth: []- description: Returns all wishlists for the authenticated customer+ description: Returns all addresses in the customer address bookparameters:- name: x-spree-api-keyin: header@@ -3666,26 +3452,64 @@ paths:type: integerresponses:'200':- description: wishlists found+ description: addresses foundcontent:application/json:example:data:- - id: wl_UkLWZg9DAJ- name: My Wishlist- token: 7tqWRM2szBf5uBtcsxaxcz6C- created_at: '2026-02-13T22:55:21.537Z'- updated_at: '2026-02-13T22:55:21.537Z'- is_default: false- is_private: true+ - id: addr_EfhxLZ9ck8+ firstname: John+ lastname: Doe+ full_name: John Doe+ address1: 245 Lovely Street+ address2: Northwest+ city: Herndon+ zipcode: '35005'+ phone: 555-555-0199+ company: Company+ country_name: NAME_49+ country_iso: I49+ state_text: STATE_ABBR_243+ state_abbr: STATE_ABBR_243+ state_name: STATE_NAME_243+ - id: addr_gbHJdmfrXB+ firstname: John+ lastname: Doe+ full_name: John Doe+ address1: 244 Lovely Street+ address2: Northwest+ city: Herndon+ zipcode: '35005'+ phone: 555-555-0199+ company: Company+ country_name: United States of America+ country_iso: US+ state_text: STATE_ABBR_245+ state_abbr: STATE_ABBR_245+ state_name: STATE_NAME_245+ - id: addr_UkLWZg9DAJ+ firstname: John+ lastname: Doe+ full_name: John Doe+ address1: 243 Lovely Street+ address2: Northwest+ city: Herndon+ zipcode: '35005'+ phone: 555-555-0199+ company: Company+ country_name: United States of America+ country_iso: US+ state_text: STATE_ABBR_244+ state_abbr: STATE_ABBR_244+ state_name: STATE_NAME_244meta:page: 1limit: 25- count: 1+ count: 3pages: 1from: 1- to: 1- in: 1+ to: 3+ in: 3previous:next:schema:@@ -3694,7 +3518,7 @@ paths:data:type: arrayitems:- "$ref": "#/components/schemas/StoreWishlist"+ "$ref": "#/components/schemas/StoreAddress"meta:"$ref": "#/components/schemas/PaginationMeta"'401':@@ -3707,259 +3531,414 @@ paths:message: Authentication requiredschema:"$ref": "#/components/schemas/ErrorResponse"- post:- summary: Create a wishlist+ "/api/v3/store/orders/{order_id}/payments":+ parameters:+ - name: x-spree-api-key+ in: header+ required: true+ schema:+ type: string+ - name: Authorization+ in: header+ required: true+ schema:+ type: string+ - name: order_id+ in: path+ description: Order prefix ID+ required: true+ schema:+ type: string+ get:+ summary: List payments+ tags:+ - Payments+ security:+ - api_key: []+ bearer_auth: []+ description: Returns a list of payments for the specified order+ responses:+ '404':+ description: order not found+ content:+ application/json:+ example:+ error:+ code: order_not_found+ message: Order not found+ schema:+ "$ref": "#/components/schemas/ErrorResponse"+ '200':+ description: payments found+ content:+ application/json:+ example:+ data:+ - id: py_UkLWZg9DAJ+ payment_method_id: pm_UkLWZg9DAJ+ state: checkout+ response_code: '12345'+ number: PBB3PIAM+ amount: '110.0'+ display_amount: "$110.00"+ created_at: '2026-02-14T17:19:31.164Z'+ updated_at: '2026-02-14T17:19:31.164Z'+ payment_method:+ id: pm_UkLWZg9DAJ+ name: Credit Card+ description:+ type: Spree::Gateway::Bogus+ meta: {}+ schema:+ type: object+ properties:+ data:+ type: array+ items:+ "$ref": "#/components/schemas/StorePayment"+ meta:+ type: object+ "/api/v3/store/orders/{order_id}/payments/{id}":+ parameters:+ - name: x-spree-api-key+ in: header+ required: true+ schema:+ type: string+ - name: Authorization+ in: header+ required: true+ schema:+ type: string+ - name: order_id+ in: path+ description: Order prefix ID+ required: true+ schema:+ type: string+ - name: id+ in: path+ description: Payment ID+ required: true+ schema:+ type: string+ get:+ summary: Get paymenttags:- - Wishlists+ - Paymentssecurity:- api_key: []bearer_auth: []- description: Creates a new wishlist for the customer- parameters:- - name: x-spree-api-key- in: header- required: true- schema:- type: string- - name: Authorization- in: header- required: true- schema:- type: string+ description: Returns a single payment by IDresponses:- '201':- description: wishlist created+ '404':+ description: payment not foundcontent:application/json:example:- id: wl_gbHJdmfrXB- name: Birthday Ideas- token: b711CQXSbp9Hii3dvuQxDhMw- created_at: '2026-02-13T22:55:22.990Z'- updated_at: '2026-02-13T22:55:22.990Z'- is_default: false- is_private: true+ error:+ code: record_not_found+ message: Payment not foundschema:- "$ref": "#/components/schemas/StoreWishlist"- '422':- description: validation error+ "$ref": "#/components/schemas/ErrorResponse"+ '200':+ description: payment foundcontent:application/json:example:- error:- code: validation_error- message: Name can't be blank- details:- name:- - can't be blank+ id: py_UkLWZg9DAJ+ payment_method_id: pm_UkLWZg9DAJ+ state: checkout+ response_code: '12345'+ number: PKXQ827O+ amount: '110.0'+ display_amount: "$110.00"+ created_at: '2026-02-14T17:19:32.593Z'+ updated_at: '2026-02-14T17:19:32.593Z'+ payment_method:+ id: pm_UkLWZg9DAJ+ name: Credit Card+ description:+ type: Spree::Gateway::Bogusschema:- "$ref": "#/components/schemas/ErrorResponse"- requestBody:- content:- application/json:- schema:- type: object- properties:- name:- type: string- example: Birthday Ideas- is_private:- type: boolean- example: true- is_default:- type: boolean- example: false- required:- - name- "/api/v3/store/wishlists/{id}":+ "$ref": "#/components/schemas/StorePayment"+ "/api/v3/store/products/filters":get:- summary: Get a wishlist+ summary: Get product filterstags:- - Wishlists+ - Productssecurity:- api_key: []- bearer_auth: []+ description: |+ Returns available filters for products with their options and counts.+ Use this endpoint to build filter UIs for product listing pages.++ The filters are context-aware - when a taxon_id is provided, only filters+ relevant to products in that taxon are returned.parameters:- name: x-spree-api-keyin: headerrequired: true+ description: Publishable API keyschema:type: string- - name: Authorization- in: header- required: true- schema:- type: string- - name: id- in: path- required: true+ - name: taxon_id+ in: query+ required: false+ description: Scope filters to products in this taxon (prefix ID)schema:type: string- - name: includes+ - name: q[name_cont]in: queryrequired: false- description: Include wished_items+ description: Filter by name containing stringschema:type: stringresponses:- '200':- description: wishlist found- content:- application/json:- example:- id: wl_UkLWZg9DAJ- name: My Wishlist- token: dsjXKDqCNGLkBQRMfxMrFFvd- created_at: '2026-02-13T22:55:24.217Z'- updated_at: '2026-02-13T22:55:24.217Z'- is_default: false- is_private: true- schema:- "$ref": "#/components/schemas/StoreWishlist"- '404':- description: wishlist not found+ '401':+ description: unauthorized - invalid or missing API keycontent:application/json:example:error:- code: record_not_found- message: Wishlist not found+ code: invalid_token+ message: Valid API key requiredschema:"$ref": "#/components/schemas/ErrorResponse"- patch:- summary: Update a wishlist- tags:- - Wishlists- security:- - api_key: []- bearer_auth: []- parameters:- - name: x-spree-api-key- in: header- required: true- schema:- type: string- - name: Authorization- in: header- required: true- schema:- type: string- - name: id- in: path- required: true- schema:- type: string- responses:'200':- description: wishlist updated+ description: filters retrieved successfullycontent:application/json:example:- id: wl_UkLWZg9DAJ- name: Updated Name- token: Re8VP71zCaEKTHzEpFMoqaNt- created_at: '2026-02-13T22:55:25.516Z'- updated_at: '2026-02-13T22:55:25.596Z'- is_default: false- is_private: true+ filters:+ - id: price+ type: price_range+ label: Price+ min: 19.99+ max: 19.99+ currency: USD+ - id: availability+ type: availability+ label: availability+ options:+ - id: in_stock+ label: In Stock+ count: 0+ - id: out_of_stock+ label: Out of Stock+ count: 2+ - id: opt_UkLWZg9DAJ+ type: option+ label: Size+ name: size+ options:+ - id: optval_UkLWZg9DAJ+ label: S+ name: small+ position: 1+ count: 1+ sort_options:+ - id: manual+ label: Manual+ - id: best-selling+ label: Best Selling+ - id: price-low-to-high+ label: Price (low-high)+ - id: price-high-to-low+ label: Price (high-low)+ - id: newest-first+ label: Newest+ - id: oldest-first+ label: Oldest+ - id: name-a-z+ label: Alphabetically, A-Z+ - id: name-z-a+ label: Alphabetically, Z-A+ default_sort: manual+ total_count: 2schema:- "$ref": "#/components/schemas/StoreWishlist"- requestBody:- content:- application/json:- schema:- type: object- properties:- name:- type: string- example: Updated Name- is_private:- type: boolean- example: true- is_default:- type: boolean- example: false- delete:- summary: Delete a wishlist+ type: object+ properties:+ filters:+ type: array+ items:+ type: object+ description: Available filters (price_range, availability, option,+ taxon)+ sort_options:+ type: array+ items:+ type: object+ properties:+ id:+ type: string+ label:+ type: string+ required:+ - id+ - label+ description: Available sort options+ default_sort:+ type: string+ description: Default sort option ID+ total_count:+ type: integer+ description: Total products matching current filters+ required:+ - filters+ - sort_options+ - default_sort+ - total_count+ "/api/v3/store/products/{id}":+ get:+ summary: Get a producttags:- - Wishlists+ - Productssecurity:- api_key: []- bearer_auth: []+ description: Returns a single product by slug or prefix IDparameters:- name: x-spree-api-keyin: headerrequired: true- schema:- type: string- - name: Authorization- in: header- required: true+ description: Publishable API keyschema:type: string- name: idin: pathrequired: true+ description: Product slug (e.g., ruby-on-rails-tote) or prefix ID (e.g., product_abc123)+ schema:+ type: string+ - name: includes+ in: query+ required: false+ description: Comma-separated associations to includeschema:type: stringresponses:- '204':- description: wishlist deleted- "/api/v3/store/wishlists/{wishlist_id}/items":- post:- summary: Add item to wishlist+ '404':+ description: draft product not visible+ content:+ application/json:+ example:+ error:+ code: record_not_found+ message: Product not found+ schema:+ "$ref": "#/components/schemas/ErrorResponse"+ '200':+ description: product found by slug+ content:+ application/json:+ example:+ id: prod_UkLWZg9DAJ+ name: Product 1033316+ description: Maiores consequuntur nulla voluptatibus alias dignissimos+ dicta ut. Rerum accusamus saepe beatae ab. Expedita delectus blanditiis+ animi consectetur dolor. Voluptate aliquid recusandae est laudantium+ culpa. Dicta quos ea quaerat vitae consequatur provident.+ slug: product-1033316+ meta_description:+ meta_keywords:+ variant_count: 1+ available_on: '2025-02-14T17:19:36.044Z'+ created_at: '2026-02-14T17:19:36.059Z'+ updated_at: '2026-02-14T17:19:36.133Z'+ purchasable: true+ in_stock: false+ backorderable: true+ available: true+ default_variant_id: variant_gbHJdmfrXB+ thumbnail_url:+ tags: []+ price:+ id: price_gbHJdmfrXB+ amount: '19.99'+ amount_in_cents: 1999+ compare_at_amount:+ compare_at_amount_in_cents:+ currency: USD+ display_amount: "$19.99"+ display_compare_at_amount:+ price_list_id:+ original_price:+ schema:+ "$ref": "#/components/schemas/StoreProduct"+ "/api/v3/store/products":+ get:+ summary: List productstags:- - Wishlists+ - Productssecurity:- api_key: []- bearer_auth: []- description: Adds a variant to the wishlist+ description: Returns a paginated list of active products for the current storeparameters:- name: x-spree-api-keyin: headerrequired: true+ description: Publishable API keyschema:type: string- - name: Authorization- in: header- required: true+ - name: page+ in: query+ required: false+ description: 'Page number (default: 1)'+ schema:+ type: integer+ - name: per_page+ in: query+ required: false+ description: 'Number of items per page (default: 25, max: 100)'+ schema:+ type: integer+ - name: q[name_cont]+ in: query+ required: false+ description: Filter by name containing stringschema:type: string- - name: wishlist_id- in: path- required: true+ - name: q[taxons_id_eq]+ in: query+ required: false+ description: Filter by taxon ID+ schema:+ type: string+ - name: includes+ in: query+ required: false+ description: Comma-separated associations to include (variants, images, taxons,+ option_types)schema:type: stringresponses:- '201':- description: item added+ '200':+ description: products foundcontent:application/json:example:- id: wi_gbHJdmfrXB- variant_id: variant_gbHJdmfrXB- wishlist_id: wl_UkLWZg9DAJ- quantity: 1- created_at: '2026-02-13T22:55:26.957Z'- updated_at: '2026-02-13T22:55:26.957Z'- variant:- id: variant_gbHJdmfrXB- product_id: prod_gbHJdmfrXB- sku: SKU-117- is_master: true- options_text: ''- track_inventory: true- image_count: 0- created_at: '2026-02-13T22:55:26.900Z'- updated_at: '2026-02-13T22:55:26.924Z'- thumbnail:+ data:+ - id: prod_UkLWZg9DAJ+ name: Product 1075048+ description: |-+ Beatae adipisci sapiente reiciendis quibusdam culpa placeat ad est. At molestiae corrupti dolore eaque quidem excepturi quaerat. Itaque error voluptates aliquid tempora occaecati quam.+ Quis atque dolorum dignissimos odio. Libero nam repellendus exercitationem possimus optio. Beatae expedita quisquam quaerat fuga blanditiis. Unde aut corporis quas officia facere debitis.+ A voluptatem sunt vero animi repellat. Necessitatibus sapiente cumque sunt ipsam eum. Architecto non qui veritatis doloribus. Exercitationem ex officia consequuntur incidunt.+ Sequi reprehenderit cumque animi exercitationem. Quos temporibus mollitia sit quibusdam earum nam eius doloribus. Numquam in eius ab quas libero est.+ slug: product-1075048+ meta_description:+ meta_keywords:+ variant_count: 1+ available_on: '2025-02-14T17:19:36.445Z'+ created_at: '2026-02-14T17:19:36.467Z'+ updated_at: '2026-02-14T17:19:36.566Z'purchasable: truein_stock: falsebackorderable: true- weight: 0.0- height:- width:- depth:+ available: true+ default_variant_id: variant_gbHJdmfrXB+ thumbnail_url:+ tags: []price:id: price_gbHJdmfrXBamount: '19.99'@@ -3971,31 +3950,78 @@ paths:display_compare_at_amount:price_list_id:original_price:- option_values: []+ - id: prod_gbHJdmfrXB+ name: Product 1083289+ description: Cupiditate aperiam consequatur numquam non nulla repudiandae.+ Totam rem magni doloremque reiciendis vitae natus. Atque est velit+ adipisci dicta voluptas.+ slug: product-1083289+ meta_description:+ meta_keywords:+ variant_count: 0+ available_on: '2025-02-14T17:19:36.585Z'+ created_at: '2026-02-14T17:19:36.597Z'+ updated_at: '2026-02-14T17:19:36.634Z'+ purchasable: true+ in_stock: false+ backorderable: true+ available: true+ default_variant_id: variant_EfhxLZ9ck8+ thumbnail_url:+ tags: []+ price:+ id: price_EfhxLZ9ck8+ amount: '19.99'+ amount_in_cents: 1999+ compare_at_amount:+ compare_at_amount_in_cents:+ currency: USD+ display_amount: "$19.99"+ display_compare_at_amount:+ price_list_id:+ original_price:+ meta:+ page: 1+ limit: 25+ count: 2+ pages: 1+ from: 1+ to: 2+ in: 2+ previous:+ next:schema:- "$ref": "#/components/schemas/StoreWishedItem"- requestBody:- content:- application/json:- schema:- type: object- properties:- variant_id:- type: string- example: variant_abc123- quantity:- type: integer- example: 1- required:- - variant_id- "/api/v3/store/wishlists/{wishlist_id}/items/{id}":- delete:- summary: Remove item from wishlist+ type: object+ properties:+ data:+ type: array+ items:+ "$ref": "#/components/schemas/StoreProduct"+ meta:+ "$ref": "#/components/schemas/PaginationMeta"+ required:+ - data+ - meta+ '401':+ description: unauthorized - invalid or missing API key+ content:+ application/json:+ example:+ error:+ code: invalid_token+ message: Valid API key required+ schema:+ "$ref": "#/components/schemas/ErrorResponse"+ "/api/v3/store/orders/{order_id}/payment_methods":+ get:+ summary: List available payment methodstags:- - Wishlists+ - Payment Methodssecurity:- api_key: []bearer_auth: []+ description: Returns payment methods available for the order based on store+ configuration and order stateparameters:- name: x-spree-api-keyin: header@@ -4004,30 +4030,64 @@ paths:type: string- name: Authorizationin: header- required: true+ required: falseschema:type: string- - name: wishlist_id+ - name: order_idin: pathrequired: trueschema:type: string- - name: id- in: path- required: true+ - name: order_token+ in: query+ required: falseschema:type: stringresponses:- '204':- description: item removed+ '401':+ description: unauthorized+ content:+ application/json:+ example:+ error:+ code: invalid_token+ message: Valid API key required+ schema:+ "$ref": "#/components/schemas/ErrorResponse"+ '200':+ description: payment methods found+ content:+ application/json:+ example:+ data:+ - id: pm_UkLWZg9DAJ+ name: Credit Card+ description:+ type: Spree::Gateway::Bogus+ meta:+ count: 1+ schema:+ type: object+ properties:+ data:+ type: array+ items:+ "$ref": "#/components/schemas/StorePaymentMethod"+ meta:+ type: object+ properties:+ count:+ type: integer'404':- description: item not found+ description: order not foundcontent:application/json:example:error:- code: record_not_found- message: Wished item not found+ code: order_not_found+ message: Order not found+ schema:+ "$ref": "#/components/schemas/ErrorResponse"servers:- url: http://{defaultHost}variables:diff --git a/packages/next/package.json b/packages/next/package.jsonindex 2b28325e1b..c22616df4a 100644--- a/packages/next/package.json+++ b/packages/next/package.json@@ -55,7 +55,7 @@"url": "https://github.com/spree/spree/issues"},"peerDependencies": {- "@spree/sdk": ">=0.1.5",+ "@spree/sdk": ">=0.1.6","next": ">=15.0.0","react": ">=19.0.0"},diff --git a/packages/sdk/.changeset/deep-oranges-hug.md b/packages/sdk/.changeset/deep-oranges-hug.mdnew file mode 100644index 0000000000..969142f6db--- /dev/null+++ b/packages/sdk/.changeset/deep-oranges-hug.md@@ -0,0 +1,5 @@+---+"@spree/sdk": patch+---++Add digital_links to StoreLineItem type and zod schema, exposing digital download metadata (filename, content_type, access status) on line itemsdiff --git a/packages/sdk/CHANGELOG.md b/packages/sdk/CHANGELOG.mdindex 45bbe82221..20def1a02d 100644--- a/packages/sdk/CHANGELOG.md+++ b/packages/sdk/CHANGELOG.md@@ -1,5 +1,13 @@# @spree/sdk+## 0.1.6++### Patch Changes++- Add digital_links to StoreLineItem type and zod schema, exposing digital download metadata (filename, content_type, access status) on line items++- Rename StoreUser/AdminUser types to StoreCustomer/AdminCustomer to align with industry naming conventions and avoid future AdminUser model conflict+## 0.1.5### Patch Changesdiff --git a/packages/sdk/package.json b/packages/sdk/package.jsonindex 39a57b1550..88f5749594 100644--- a/packages/sdk/package.json+++ b/packages/sdk/package.json@@ -1,6 +1,6 @@{"name": "@spree/sdk",- "version": "0.1.5",+ "version": "0.1.6","description": "Official TypeScript SDK for Spree Commerce API","type": "module","main": "./dist/index.cjs",diff --git a/packages/sdk/src/types/generated/StoreLineItem.ts b/packages/sdk/src/types/generated/StoreLineItem.tsindex 61f93263fe..3afa7f9f98 100644--- a/packages/sdk/src/types/generated/StoreLineItem.ts+++ b/packages/sdk/src/types/generated/StoreLineItem.ts@@ -1,7 +1,7 @@-// Typelizer digest 2ed123356d0b083b118b251b6e967d3b+// Typelizer digest 888612404fca0e07463d6791f71c8c2d//// DO NOT MODIFY: This file was automatically generated by Typelizer.-import type {StoreOptionValue} from '@/types'+import type {StoreOptionValue, StoreDigitalLink} from '@/types'type StoreLineItem = {id: string;@@ -32,6 +32,7 @@ type StoreLineItem = {compare_at_amount: string | null;thumbnail_url: string | null;option_values: Array<StoreOptionValue>;+ digital_links: Array<StoreDigitalLink>;}export default StoreLineItem;diff --git a/packages/sdk/src/zod/generated/StoreLineItem.ts b/packages/sdk/src/zod/generated/StoreLineItem.tsindex 30ee305a78..305371f4b5 100644--- a/packages/sdk/src/zod/generated/StoreLineItem.ts+++ b/packages/sdk/src/zod/generated/StoreLineItem.ts@@ -1,6 +1,7 @@// This file is auto-generated. Do not edit directly.import { z } from 'zod';import { StoreOptionValueSchema } from './StoreOptionValue';+import { StoreDigitalLinkSchema } from './StoreDigitalLink';export const StoreLineItemSchema = z.object({id: z.string(),@@ -31,6 +32,7 @@ export const StoreLineItemSchema = z.object({compare_at_amount: z.string().nullable(),thumbnail_url: z.string().nullable(),option_values: z.array(StoreOptionValueSchema),+ digital_links: z.array(StoreDigitalLinkSchema),});export type StoreLineItem = z.infer<typeof StoreLineItemSchema>;