Skip to content

armgit / spree

Public Imported from GitHub
0

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.

Fixed OpenAPI generation re-ordering issues

Damian Legawiec9c55b30d243c
diff --git a/backend/engines/api/Rakefile b/backend/engines/api/Rakefile
index 771bfcf5f0..d6cbe7366b 100644
--- a/backend/engines/api/Rakefile
+++ b/backend/engines/api/Rakefile
@@ -23,6 +23,8 @@ namespace :rswag do
'spec/integration/**/*_spec.rb'
)
+ # OPENAPI env var prevents spec_helper from overriding --order defined with :random
+ ENV['OPENAPI'] = 'true'
t.rspec_opts = ['--format Rswag::Specs::SwaggerFormatter', '--order defined']
end
end
diff --git a/backend/engines/api/spec/spec_helper.rb b/backend/engines/api/spec/spec_helper.rb
index 1a43587d4a..92df7916ae 100644
--- a/backend/engines/api/spec/spec_helper.rb
+++ b/backend/engines/api/spec/spec_helper.rb
@@ -89,5 +89,5 @@ RSpec.configure do |config|
Spree::Current.reset
end
- config.order = :random
+ config.order = :random unless ENV['OPENAPI'] == 'true'
end
diff --git a/docs/api-reference/store.yaml b/docs/api-reference/store.yaml
index a4792a6319..c72e13a4cf 100644
--- a/docs/api-reference/store.yaml
+++ b/docs/api-reference/store.yaml
@@ -40,17 +40,15 @@ info:
```
version: v3
paths:
- "/api/v3/store/cart":
+ "/api/v3/store/customer/addresses":
get:
- summary: Get current cart
+ summary: List customer addresses
tags:
- - Cart
+ - Addresses
security:
- 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: Returns all addresses in the customer address book
parameters:
- name: x-spree-api-key
in: header
@@ -59,112 +57,108 @@ paths:
type: string
- name: Authorization
in: header
- required: false
- description: Bearer JWT token for authenticated customers
+ required: true
schema:
type: string
- - name: order_token
+ - name: page
in: query
required: false
- description: Order token for guest checkout
schema:
- type: string
+ type: integer
+ - name: per_page
+ in: query
+ required: false
+ schema:
+ type: integer
responses:
'200':
- description: cart found (guest)
+ description: addresses found
content:
application/json:
example:
- id: or_UkLWZg9DAJ
- number: R908760653
- state: cart
- token: XQYajpzkbaMsp4KPNSjRFPaKQEUM616mXns
- 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-14T19:47:06.333Z'
- updated_at: '2026-02-14T19:47:06.457Z'
- line_items:
- - id: li_UkLWZg9DAJ
- variant_id: variant_UkLWZg9DAJ
- quantity: 1
- name: Product 25146
- slug: product-25146
- 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-14T19:47:06.406Z'
- updated_at: '2026-02-14T19:47:06.406Z'
- compare_at_amount:
- thumbnail_url:
- option_values: []
- digital_links: []
- payment_methods: []
+ data:
+ - id: addr_EfhxLZ9ck8
+ firstname: John
+ lastname: Doe
+ full_name: John Doe
+ address1: 3 Lovely Street
+ address2: Northwest
+ city: Herndon
+ zipcode: '35005'
+ phone: 555-555-0199
+ company: 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
+ firstname: John
+ lastname: Doe
+ full_name: John Doe
+ address1: 2 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_3
+ state_abbr: STATE_ABBR_3
+ state_name: STATE_NAME_3
+ - id: addr_UkLWZg9DAJ
+ firstname: John
+ lastname: Doe
+ full_name: John Doe
+ address1: 1 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_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:
schema:
type: object
- allOf:
- - "$ref": "#/components/schemas/StoreOrder"
- - type: object
- properties:
- token:
- type: string
- '404':
- description: no cart found
+ properties:
+ data:
+ type: array
+ items:
+ "$ref": "#/components/schemas/StoreAddress"
+ meta:
+ "$ref": "#/components/schemas/PaginationMeta"
+ '401':
+ description: unauthorized
content:
application/json:
example:
error:
- code: order_not_found
- message: Order not found
+ code: authentication_required
+ message: Authentication required
schema:
"$ref": "#/components/schemas/ErrorResponse"
- "/api/v3/store/cart/associate":
- patch:
- summary: Associate guest cart with authenticated user
+ post:
+ summary: Create an address
tags:
- - Cart
+ - Addresses
security:
- 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: Adds a new address to the customer address book
parameters:
- name: x-spree-api-key
in: header
@@ -174,173 +168,111 @@ paths:
- name: Authorization
in: header
required: true
- description: Bearer JWT token (required)
- schema:
- type: string
- - name: x-spree-order-token
- in: header
- required: 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)
schema:
type: string
responses:
- '404':
- description: cart belongs to another user
- content:
- application/json:
- example:
- error:
- code: order_not_found
- message: Order not found
- schema:
- "$ref": "#/components/schemas/ErrorResponse"
- '200':
- description: cart associated successfully
+ '201':
+ description: address created
content:
application/json:
example:
- id: or_UkLWZg9DAJ
- number: R342807255
- state: cart
- token: tJzSrEsVuHqepWuAqyj94RZCFCSVFJDyQ76
- 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-14T19:47:07.230Z'
- updated_at: '2026-02-14T19:47:07.345Z'
- line_items:
- - id: li_UkLWZg9DAJ
- variant_id: variant_UkLWZg9DAJ
- quantity: 1
- name: Product 43960
- slug: product-43960
- 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-14T19:47:07.293Z'
- updated_at: '2026-02-14T19:47:07.293Z'
- compare_at_amount:
- thumbnail_url:
- option_values: []
- digital_links: []
- payment_methods: []
+ 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
schema:
- type: object
- allOf:
- - "$ref": "#/components/schemas/StoreOrder"
- - type: object
- properties:
- token:
- type: string
- '401':
- description: unauthorized - JWT required
+ "$ref": "#/components/schemas/StoreAddress"
+ '422':
+ description: validation error
content:
application/json:
example:
error:
- code: authentication_required
- message: Authentication required
- schema:
- "$ref": "#/components/schemas/ErrorResponse"
- "/api/v3/store/wishlists/{id}":
- 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
- content:
- application/json:
- example:
- id: wl_UkLWZg9DAJ
- name: Updated Name
- token: pTjuUq7zGXbr1e8srB3e6f1x
- created_at: '2026-02-14T19:47:10.212Z'
- updated_at: '2026-02-14T19:47:10.305Z'
- is_default: false
- is_private: true
+ 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
schema:
- "$ref": "#/components/schemas/StoreWishlist"
+ "$ref": "#/components/schemas/ErrorResponse"
requestBody:
content:
application/json:
schema:
type: object
properties:
- name:
+ firstname:
type: string
- example: Updated Name
- is_private:
- type: boolean
- example: true
- is_default:
- type: boolean
- example: false
- delete:
- summary: Delete a wishlist
+ 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_iso
+ "/api/v3/store/customer/addresses/{id}":
+ get:
+ summary: Get an address
tags:
- - Wishlists
+ - Addresses
security:
- api_key: []
bearer_auth: []
@@ -361,12 +293,42 @@ paths:
schema:
type: string
responses:
- '204':
- description: wishlist deleted
- get:
- summary: Get a wishlist
+ '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
+ content:
+ application/json:
+ example:
+ error:
+ code: record_not_found
+ message: Address not found
+ schema:
+ "$ref": "#/components/schemas/ErrorResponse"
+ patch:
+ summary: Update an address
tags:
- - Wishlists
+ - Addresses
security:
- api_key: []
bearer_auth: []
@@ -386,42 +348,51 @@ paths:
required: true
schema:
type: string
- - name: includes
- in: query
- required: false
- description: Include wished_items
- schema:
- type: string
responses:
- '404':
- description: wishlist not found
- content:
- application/json:
- example:
- error:
- code: record_not_found
- message: Wishlist not found
- schema:
- "$ref": "#/components/schemas/ErrorResponse"
'200':
- description: wishlist found
+ description: address updated
content:
application/json:
example:
- id: wl_UkLWZg9DAJ
- name: My Wishlist
- token: efJEmea94PawydeiJh9JR99b
- created_at: '2026-02-14T19:47:12.162Z'
- updated_at: '2026-02-14T19:47:12.162Z'
- is_default: false
- is_private: true
+ 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
schema:
- "$ref": "#/components/schemas/StoreWishlist"
- "/api/v3/store/wishlists/{wishlist_id}/items/{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 Angeles
delete:
- summary: Remove item from wishlist
+ summary: Delete an address
tags:
- - Wishlists
+ - Addresses
security:
- api_key: []
bearer_auth: []
@@ -436,11 +407,6 @@ paths:
required: true
schema:
type: string
- - name: wishlist_id
- in: path
- required: true
- schema:
- type: string
- name: id
in: path
required: true
@@ -448,24 +414,27 @@ paths:
type: string
responses:
'204':
- description: item removed
+ description: address deleted
'404':
- description: item not found
+ description: address not found
content:
application/json:
example:
error:
code: record_not_found
- message: Wished item not found
- "/api/v3/store/wishlists/{wishlist_id}/items":
- post:
- summary: Add item to wishlist
+ message: Address not found
+ schema:
+ "$ref": "#/components/schemas/ErrorResponse"
+ "/api/v3/store/customer/addresses/{id}/mark_as_default":
+ patch:
+ summary: Mark address as default
tags:
- - Wishlists
+ - Addresses
security:
- api_key: []
bearer_auth: []
- description: Adds a variant to the wishlist
+ description: Sets the address as the default billing or shipping address for
+ the customer
parameters:
- name: x-spree-api-key
in: header
@@ -477,115 +446,177 @@ paths:
required: true
schema:
type: string
- - name: wishlist_id
+ - name: id
in: path
required: true
schema:
type: string
responses:
- '201':
- description: item added
+ '200':
+ description: address marked as default
content:
application/json:
example:
- id: wi_gbHJdmfrXB
- variant_id: variant_gbHJdmfrXB
- wishlist_id: wl_UkLWZg9DAJ
- quantity: 1
- created_at: '2026-02-14T19:47:14.280Z'
- updated_at: '2026-02-14T19:47:14.280Z'
- variant:
- id: variant_gbHJdmfrXB
- product_id: prod_gbHJdmfrXB
- sku: SKU-14
- is_master: true
- options_text: ''
- track_inventory: true
- image_count: 0
- created_at: '2026-02-14T19:47:14.208Z'
- updated_at: '2026-02-14T19:47:14.240Z'
- 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: []
+ id: addr_EfhxLZ9ck8
+ firstname: John
+ lastname: Doe
+ full_name: John Doe
+ address1: 30 Lovely Street
+ address2: Northwest
+ city: Herndon
+ zipcode: '35005'
+ phone: 555-555-0199
+ company: Company
+ country_name: NAME_10
+ country_iso: I10
+ state_text: STATE_ABBR_28
+ state_abbr: STATE_ABBR_28
+ state_name: STATE_NAME_28
schema:
- "$ref": "#/components/schemas/StoreWishedItem"
+ "$ref": "#/components/schemas/StoreAddress"
+ '422':
+ description: invalid kind parameter
+ content:
+ application/json:
+ example:
+ error:
+ code: invalid_request
+ message: kind must be billing or shipping
+ schema:
+ "$ref": "#/components/schemas/ErrorResponse"
+ '404':
+ description: address not found
+ content:
+ application/json:
+ example:
+ error:
+ code: record_not_found
+ message: Address not found
+ schema:
+ "$ref": "#/components/schemas/ErrorResponse"
requestBody:
content:
application/json:
schema:
type: object
properties:
- variant_id:
+ kind:
type: string
- example: variant_abc123
- quantity:
- type: integer
- example: 1
+ enum:
+ - billing
+ - shipping
+ example: billing
+ description: 'Address kind: billing or shipping'
required:
- - variant_id
- "/api/v3/store/wishlists":
+ - kind
+ "/api/v3/store/auth/login":
post:
- summary: Create a wishlist
+ summary: Login
tags:
- - Wishlists
+ - Authentication
security:
- api_key: []
- bearer_auth: []
- description: Creates a new wishlist for the customer
+ description: Authenticates a customer with email/password and returns a JWT
+ token
parameters:
- name: x-spree-api-key
in: header
required: true
schema:
type: string
- - name: Authorization
+ responses:
+ '200':
+ description: login successful
+ content:
+ application/json:
+ example:
+ token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImV4cCI6MTc3MTM0NDg5OH0.7dVNylZj2YlKsnl4tSGGAkCM4QZ78zz0FrPnfDs-nCw
+ user:
+ id: cus_UkLWZg9DAJ
+ first_name: Alexander
+ last_name: Schmidt
+ created_at: '2026-02-16T16:14:58.027Z'
+ updated_at: '2026-02-16T16:14:58.027Z'
+ addresses: []
+ default_billing_address:
+ default_shipping_address:
+ schema:
+ "$ref": "#/components/schemas/AuthResponse"
+ '401':
+ description: missing API key
+ content:
+ application/json:
+ example:
+ error:
+ code: invalid_token
+ message: Valid API key required
+ schema:
+ "$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
+ password:
+ type: string
+ example: password123
+ required:
+ - email
+ - password
+ "/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:
'201':
- description: wishlist created
+ description: registration successful
content:
application/json:
example:
- id: wl_gbHJdmfrXB
- name: Birthday Ideas
- token: gpEV78fdp4HbbTWgMHWKktDh
- created_at: '2026-02-14T19:47:15.000Z'
- updated_at: '2026-02-14T19:47:15.000Z'
- is_default: false
- is_private: true
+ token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImV4cCI6MTc3MTM0NDg5OX0.igtWmefJanQR7zJctekDblgpH8N0m6CfS4zCpMHPxsI
+ user:
+ id: cus_UkLWZg9DAJ
+ first_name: John
+ last_name: Doe
+ created_at: '2026-02-16T16:14:59.367Z'
+ updated_at: '2026-02-16T16:14:59.367Z'
+ addresses: []
+ default_billing_address:
+ default_shipping_address:
schema:
- "$ref": "#/components/schemas/StoreWishlist"
+ "$ref": "#/components/schemas/AuthResponse"
'422':
- description: validation error
+ description: email already taken
content:
application/json:
example:
error:
code: validation_error
- message: Name can't be blank
+ message: Email has already been taken
details:
- name:
- - can't be blank
+ email:
+ - has already been taken
schema:
"$ref": "#/components/schemas/ErrorResponse"
requestBody:
@@ -594,25 +625,35 @@ paths:
schema:
type: object
properties:
- name:
+ email:
type: string
- example: Birthday Ideas
- is_private:
- type: boolean
- example: true
- is_default:
- type: boolean
- example: false
+ format: email
+ password:
+ type: string
+ minLength: 6
+ example: password123
+ password_confirmation:
+ type: string
+ example: password123
+ first_name:
+ type: string
+ example: John
+ last_name:
+ type: string
+ example: Doe
required:
- - name
- get:
- summary: List wishlists
+ - email
+ - password
+ "/api/v3/store/auth/refresh":
+ post:
+ summary: Refresh token
tags:
- - Wishlists
+ - Authentication
security:
- api_key: []
bearer_auth: []
- description: Returns all wishlists for the authenticated customer
+ description: Generates a new JWT token for the authenticated user
parameters:
- name: x-spree-api-key
in: header
@@ -622,53 +663,30 @@ paths:
- name: Authorization
in: header
required: true
+ description: Bearer token
schema:
type: string
- - name: page
- in: query
- required: false
- schema:
- type: integer
- - name: per_page
- in: query
- required: false
- schema:
- type: integer
responses:
'200':
- description: wishlists found
+ description: token refreshed
content:
application/json:
example:
- data:
- - id: wl_UkLWZg9DAJ
- name: My Wishlist
- token: Habm2oifceLMh9SfxyNC1baP
- created_at: '2026-02-14T19:47:16.233Z'
- updated_at: '2026-02-14T19:47:16.233Z'
- is_default: false
- is_private: true
- meta:
- page: 1
- limit: 25
- count: 1
- pages: 1
- from: 1
- to: 1
- in: 1
- previous:
- next:
+ token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImV4cCI6MTc3MTM0NDg5OX0.igtWmefJanQR7zJctekDblgpH8N0m6CfS4zCpMHPxsI
+ user:
+ id: cus_UkLWZg9DAJ
+ first_name: Ozell
+ last_name: Wuckert
+ created_at: '2026-02-16T16:14:59.912Z'
+ updated_at: '2026-02-16T16:14:59.912Z'
+ addresses: []
+ default_billing_address:
+ default_shipping_address:
schema:
- type: object
- properties:
- data:
- type: array
- items:
- "$ref": "#/components/schemas/StoreWishlist"
- meta:
- "$ref": "#/components/schemas/PaginationMeta"
+ "$ref": "#/components/schemas/AuthResponse"
'401':
- description: unauthorized
+ description: missing or invalid token
content:
application/json:
example:
@@ -677,391 +695,417 @@ paths:
message: Authentication required
schema:
"$ref": "#/components/schemas/ErrorResponse"
- "/api/v3/store/taxonomies":
+ "/api/v3/store/cart":
get:
- summary: List taxonomies
+ summary: Get current cart
tags:
- - Taxonomies
+ - Cart
security:
- api_key: []
- description: Returns a list of taxonomies (category hierarchies) for the current
- store
+ 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.
parameters:
- name: x-spree-api-key
in: header
required: true
schema:
type: string
- - name: page
- in: query
- required: false
- schema:
- type: integer
- - name: per_page
- in: query
+ - name: Authorization
+ in: header
required: false
+ description: Bearer JWT token for authenticated customers
schema:
- type: integer
- - name: includes
+ type: string
+ - name: order_token
in: query
required: false
- description: Include root taxon
+ description: Order token for guest checkout
schema:
type: string
responses:
- '401':
- description: unauthorized
- content:
- application/json:
- example:
- error:
- code: invalid_token
- message: Valid API key required
- schema:
- "$ref": "#/components/schemas/ErrorResponse"
'200':
- description: taxonomies found
+ description: cart found (authenticated)
content:
application/json:
example:
- data:
- - id: txnmy_UkLWZg9DAJ
- name: Categories
- position: 1
- created_at: '2026-02-14T19:47:04.996Z'
- updated_at: '2026-02-14T19:47:05.018Z'
- root_id: txn_UkLWZg9DAJ
- - id: txnmy_gbHJdmfrXB
- name: Brands
- position: 2
- created_at: '2026-02-14T19:47:05.020Z'
- updated_at: '2026-02-14T19:47:05.028Z'
- root_id: txn_gbHJdmfrXB
- - id: txnmy_EfhxLZ9ck8
- name: Collections
- position: 3
- created_at: '2026-02-14T19:47:05.029Z'
- updated_at: '2026-02-14T19:47:05.138Z'
- root_id: txn_EfhxLZ9ck8
- - id: txnmy_VqXmZF31wY
- name: taxonomy_4
- position: 4
- created_at: '2026-02-14T19:47:17.093Z'
- updated_at: '2026-02-14T19:47:17.105Z'
- root_id: txn_OIJLhNcSbf
- - id: txnmy_uw2YK1rnl0
- name: taxonomy_5
- position: 5
- created_at: '2026-02-14T19:47:17.106Z'
- updated_at: '2026-02-14T19:47:17.115Z'
- root_id: txn_AXs1igzRC6
- meta:
- page: 1
- limit: 25
- count: 5
- pages: 1
- from: 1
- to: 5
- in: 5
- previous:
- next:
+ id: or_UkLWZg9DAJ
+ number: R464168932
+ state: cart
+ token: TP688VCLL38PusKEbpaTGvk7WQR6bnsXvsu
+ 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-16T16:15:00.957Z'
+ updated_at: '2026-02-16T16:15:01.132Z'
+ line_items:
+ - id: li_UkLWZg9DAJ
+ variant_id: variant_UkLWZg9DAJ
+ quantity: 1
+ name: Product 28481
+ slug: product-28481
+ 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-16T16:15:01.085Z'
+ updated_at: '2026-02-16T16:15:01.085Z'
+ compare_at_amount:
+ thumbnail_url:
+ option_values: []
+ digital_links: []
+ payment_methods: []
schema:
type: object
- properties:
- data:
- type: array
- items:
- "$ref": "#/components/schemas/StoreTaxonomy"
- meta:
- "$ref": "#/components/schemas/PaginationMeta"
- "/api/v3/store/taxonomies/{id}":
- get:
- summary: Get a taxonomy
+ allOf:
+ - "$ref": "#/components/schemas/StoreOrder"
+ - type: object
+ properties:
+ token:
+ type: string
+ '404':
+ description: no cart found
+ content:
+ application/json:
+ example:
+ error:
+ code: order_not_found
+ message: Order not found
+ schema:
+ "$ref": "#/components/schemas/ErrorResponse"
+ "/api/v3/store/cart/associate":
+ patch:
+ summary: Associate guest cart with authenticated user
tags:
- - Taxonomies
+ - Cart
security:
- api_key: []
- description: Returns a single taxonomy with its taxon tree
+ 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.
parameters:
- name: x-spree-api-key
in: header
required: true
schema:
type: string
- - name: id
- in: path
+ - name: Authorization
+ in: header
required: true
- description: Taxonomy ID (prefixed)
+ description: Bearer JWT token (required)
schema:
type: string
- - name: includes
+ - name: x-spree-order-token
+ in: header
+ required: false
+ description: Order token (can also be passed as query param)
+ schema:
+ type: string
+ - name: order_token
in: query
required: false
- description: Include taxons
+ description: Order token (alternative to header)
schema:
type: string
responses:
'200':
- description: taxonomy found
+ description: cart associated successfully
content:
application/json:
example:
- id: txnmy_VqXmZF31wY
- name: taxonomy_7
- position: 4
- created_at: '2026-02-14T19:47:17.246Z'
- updated_at: '2026-02-14T19:47:17.256Z'
- root_id: txn_OIJLhNcSbf
+ id: or_UkLWZg9DAJ
+ number: R148452683
+ state: cart
+ token: RBmspC7A2teitDfpGcXXV8qHP2ykFAGWJ5i
+ 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-16T16:15:01.156Z'
+ updated_at: '2026-02-16T16:15:01.250Z'
+ line_items:
+ - id: li_UkLWZg9DAJ
+ variant_id: variant_UkLWZg9DAJ
+ quantity: 1
+ name: Product 35539
+ slug: product-35539
+ 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-16T16:15:01.211Z'
+ updated_at: '2026-02-16T16:15:01.211Z'
+ compare_at_amount:
+ thumbnail_url:
+ option_values: []
+ digital_links: []
+ payment_methods: []
schema:
- "$ref": "#/components/schemas/StoreTaxonomy"
+ type: object
+ allOf:
+ - "$ref": "#/components/schemas/StoreOrder"
+ - type: object
+ properties:
+ token:
+ type: string
+ '401':
+ description: unauthorized - JWT required
+ content:
+ application/json:
+ example:
+ error:
+ code: authentication_required
+ message: Authentication required
+ schema:
+ "$ref": "#/components/schemas/ErrorResponse"
'404':
- description: taxonomy not found
+ description: cart already completed
content:
application/json:
example:
error:
- code: record_not_found
- message: Taxonomy not found
+ code: order_not_found
+ message: Order not found
schema:
"$ref": "#/components/schemas/ErrorResponse"
- "/api/v3/store/customer/addresses":
+ "/api/v3/store/countries":
get:
- summary: List customer addresses
+ summary: List checkout countries
tags:
- - Addresses
+ - Countries
security:
- api_key: []
- bearer_auth: []
- description: Returns all addresses in the customer address book
+ description: Returns countries available for checkout from the store checkout
+ zone
parameters:
- name: x-spree-api-key
in: header
required: true
schema:
type: string
- - name: Authorization
- in: 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
responses:
'200':
- description: addresses found
+ description: countries found
content:
application/json:
example:
data:
- - id: addr_EfhxLZ9ck8
- firstname: John
- lastname: Doe
- full_name: John Doe
- address1: 47 Lovely Street
- address2: Northwest
- city: Herndon
- zipcode: '35005'
- phone: 555-555-0199
- company: Company
- country_name: NAME_7
- country_iso: I7
- state_text: STATE_ABBR_45
- state_abbr: STATE_ABBR_45
- state_name: STATE_NAME_45
- - id: addr_gbHJdmfrXB
- firstname: John
- lastname: Doe
- full_name: John Doe
- address1: 46 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_47
- state_abbr: STATE_ABBR_47
- state_name: STATE_NAME_47
- - id: addr_UkLWZg9DAJ
- firstname: John
- lastname: Doe
- full_name: John Doe
- address1: 45 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_46
- state_abbr: STATE_ABBR_46
- state_name: STATE_NAME_46
- meta:
- page: 1
- limit: 25
- count: 3
- pages: 1
- from: 1
- to: 3
- in: 3
- previous:
- next:
+ - iso: DE
+ iso3: IS19
+ 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:
- "$ref": "#/components/schemas/StoreAddress"
- meta:
- "$ref": "#/components/schemas/PaginationMeta"
+ 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
content:
application/json:
example:
error:
- code: authentication_required
- message: Authentication required
+ code: invalid_token
+ message: Valid API key required
schema:
"$ref": "#/components/schemas/ErrorResponse"
- post:
- summary: Create an address
+ "/api/v3/store/countries/{iso}":
+ get:
+ summary: Get a country with states
tags:
- - Addresses
+ - Countries
security:
- api_key: []
- bearer_auth: []
- description: Adds a new address to the customer address book
+ 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: Authorization
- in: header
+ - name: iso
+ in: path
required: true
+ description: Country ISO 3166-1 alpha-2 code (e.g., "US", "DE", "CA")
schema:
type: string
responses:
- '201':
- description: address created
+ '200':
+ description: country found
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_9
- country_iso: I9
- state_text: STATE_ABBR_51
- state_abbr: STATE_ABBR_51
- state_name: STATE_NAME_51
+ 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:
- "$ref": "#/components/schemas/StoreAddress"
- '422':
- description: validation error
+ 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
content:
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: record_not_found
+ message: Country not found
schema:
"$ref": "#/components/schemas/ErrorResponse"
- 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_iso
- "/api/v3/store/customer/addresses/{id}/mark_as_default":
- patch:
- summary: Mark address as default
+ "/api/v3/store/orders/{order_id}/coupon_codes":
+ post:
+ summary: Apply coupon code
tags:
- - Addresses
+ - Coupon Codes
security:
- api_key: []
bearer_auth: []
- description: Sets the address as the default billing or shipping address for
- the customer
+ 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-key
in: header
@@ -1070,200 +1114,106 @@ paths:
type: string
- name: Authorization
in: header
- required: true
+ required: false
+ description: Bearer token for authenticated customers
schema:
type: string
- - name: id
+ - name: order_id
in: path
required: true
+ description: Order ID
+ schema:
+ type: string
+ - name: order_token
+ in: query
+ required: false
+ description: Order token for guest access
schema:
type: string
responses:
- '200':
- description: address marked as default
+ '201':
+ description: coupon code applied (gift card)
content:
application/json:
example:
- id: addr_EfhxLZ9ck8
- firstname: John
- lastname: Doe
- full_name: John Doe
- address1: 59 Lovely Street
- address2: Northwest
- city: Herndon
- zipcode: '35005'
- phone: 555-555-0199
- company: Company
- country_name: NAME_11
- country_iso: I11
- state_text: STATE_ABBR_57
- state_abbr: STATE_ABBR_57
- state_name: STATE_NAME_57
- schema:
- "$ref": "#/components/schemas/StoreAddress"
- '422':
- description: invalid kind parameter
- content:
- application/json:
- example:
- error:
- code: invalid_request
- message: kind must be billing or shipping
+ id: or_UkLWZg9DAJ
+ number: R741220635
+ state: cart
+ token: ZQdKx8qAxMYLRscYj65heR9VEwRBJ8vWEZc
+ 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-16T16:15:05.383Z'
+ updated_at: '2026-02-16T16:15:05.529Z'
+ payment_methods:
+ - id: pm_UkLWZg9DAJ
+ name: Store Credit
+ description:
+ type: Spree::PaymentMethod::StoreCredit
+ session_required: false
schema:
- "$ref": "#/components/schemas/ErrorResponse"
- '404':
- description: address not found
+ "$ref": "#/components/schemas/StoreOrder"
+ '422':
+ description: invalid coupon code
content:
application/json:
example:
error:
- code: record_not_found
- message: Address not found
+ code: processing_error
+ message: The coupon code you entered doesn't exist. Please try again.
schema:
"$ref": "#/components/schemas/ErrorResponse"
- requestBody:
- content:
- application/json:
- schema:
- type: object
- properties:
- kind:
- type: string
- enum:
- - billing
- - shipping
- example: billing
- description: 'Address kind: billing or shipping'
- required:
- - kind
- "/api/v3/store/customer/addresses/{id}":
- get:
- summary: Get an address
- tags:
- - Addresses
- 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: address found
- content:
- application/json:
- example:
- id: addr_EfhxLZ9ck8
- firstname: John
- lastname: Doe
- full_name: John Doe
- address1: 68 Lovely Street
- address2: Northwest
- city: Herndon
- zipcode: '35005'
- phone: 555-555-0199
- company: Company
- country_name: NAME_14
- country_iso: I14
- state_text: STATE_ABBR_66
- state_abbr: STATE_ABBR_66
- state_name: STATE_NAME_66
- schema:
- "$ref": "#/components/schemas/StoreAddress"
'404':
- description: address not found
+ description: order not found
content:
application/json:
example:
error:
- code: record_not_found
- message: Address not found
+ code: order_not_found
+ message: Order not found
schema:
"$ref": "#/components/schemas/ErrorResponse"
- patch:
- summary: Update an address
- tags:
- - Addresses
- 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: address updated
- content:
- application/json:
- example:
- id: addr_EfhxLZ9ck8
- firstname: John
- lastname: Doe
- full_name: John Doe
- address1: 74 Lovely Street
- address2: Northwest
- city: Los Angeles
- zipcode: '35005'
- phone: 555-555-0199
- company: Company
- country_name: NAME_16
- country_iso: I16
- state_text: STATE_ABBR_72
- state_abbr: STATE_ABBR_72
- state_name: STATE_NAME_72
- schema:
- "$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:
+ code:
type: string
- example: Los Angeles
+ example: SAVE10
+ description: Coupon code or gift card code to apply
+ required:
+ - code
+ "/api/v3/store/orders/{order_id}/coupon_codes/{id}":
delete:
- summary: Delete an address
+ summary: Remove coupon code
tags:
- - Addresses
+ - Coupon Codes
security:
- api_key: []
bearer_auth: []
+ description: Removes a previously applied coupon code from the order.
parameters:
- name: x-spree-api-key
in: header
@@ -1272,68 +1222,39 @@ paths:
type: string
- name: Authorization
in: header
- required: true
+ required: false
+ description: Bearer token for authenticated customers
schema:
type: string
- - name: id
+ - name: order_id
in: path
required: true
+ description: Order ID
schema:
type: string
- responses:
- '204':
- description: address deleted
- '404':
- description: address not found
- content:
- application/json:
- example:
- error:
- code: record_not_found
- message: Address not found
- schema:
- "$ref": "#/components/schemas/ErrorResponse"
- "/api/v3/store/orders/{order_id}/store_credits":
- delete:
- summary: Remove store credit
- tags:
- - Orders
- security:
- - api_key: []
- bearer_auth: []
- description: Removes store credit from the order
- 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
+ - name: id
in: path
required: true
+ description: Order promotion ID
schema:
type: string
- name: order_token
in: query
required: false
+ description: Order token for guest access
schema:
type: string
responses:
'200':
- description: store credit removed
+ description: coupon code removed
content:
application/json:
example:
id: or_UkLWZg9DAJ
- number: R379134890
+ number: R701477378
state: cart
- token: ho3jgjKZXVnnVyVgG7sUBFtvPtXL3a8zFGn
+ token: VYUvV3XEBLzwQUBE8Rpn2iyFeF1uCs9m4ig
special_instructions:
currency: USD
item_count: 1
@@ -1356,19 +1277,30 @@ paths:
total: '110.0'
display_total: "$110.00"
completed_at:
- created_at: '2026-02-14T19:47:24.980Z'
- updated_at: '2026-02-14T19:47:25.095Z'
+ created_at: '2026-02-16T16:15:07.404Z'
+ updated_at: '2026-02-16T16:15:07.576Z'
payment_methods: []
schema:
"$ref": "#/components/schemas/StoreOrder"
- post:
- summary: Add store credit
+ '404':
+ description: coupon code not found on order
+ content:
+ application/json:
+ example:
+ error:
+ code: record_not_found
+ message: Order promotion not found
+ schema:
+ "$ref": "#/components/schemas/ErrorResponse"
+ "/api/v3/store/customer":
+ get:
+ summary: Get current customer profile
tags:
- - Orders
+ - Customers
security:
- api_key: []
bearer_auth: []
- description: Applies store credit to the order
+ description: Returns the profile of the currently authenticated customer
parameters:
- name: x-spree-api-key
in: header
@@ -1378,89 +1310,104 @@ paths:
- name: Authorization
in: header
required: true
- schema:
- type: string
- - name: order_id
- in: path
- required: true
- schema:
- type: string
- - name: order_token
- in: query
- required: false
+ description: Bearer JWT token
schema:
type: string
responses:
'200':
- description: store credit applied
+ description: profile found
content:
application/json:
example:
- id: or_UkLWZg9DAJ
- number: R502200759
- state: cart
- token: vyHT8ez2ugRVV1ZRhQkuypz9R7YvHQZE7w8
- 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-14T19:47:25.677Z'
- updated_at: '2026-02-14T19:47:26.127Z'
- payment_methods:
- - id: pm_UkLWZg9DAJ
- name: Store Credit
- description: Store Credit
- type: Spree::PaymentMethod::StoreCredit
+ id: cus_UkLWZg9DAJ
+ first_name: Hal
+ last_name: Bartoletti
+ created_at: '2026-02-16T16:15:08.533Z'
+ updated_at: '2026-02-16T16:15:08.813Z'
+ addresses:
+ - id: addr_gbHJdmfrXB
+ firstname: John
+ lastname: Doe
+ full_name: John Doe
+ address1: 84 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_84
+ state_abbr: STATE_ABBR_84
+ state_name: STATE_NAME_84
+ - id: addr_UkLWZg9DAJ
+ firstname: John
+ lastname: Doe
+ full_name: John Doe
+ address1: 83 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_83
+ state_abbr: STATE_ABBR_83
+ state_name: STATE_NAME_83
+ default_billing_address:
+ id: addr_gbHJdmfrXB
+ firstname: John
+ lastname: Doe
+ full_name: John Doe
+ address1: 84 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_84
+ state_abbr: STATE_ABBR_84
+ state_name: STATE_NAME_84
+ default_shipping_address:
+ id: addr_UkLWZg9DAJ
+ firstname: John
+ lastname: Doe
+ full_name: John Doe
+ address1: 83 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_83
+ state_abbr: STATE_ABBR_83
+ state_name: STATE_NAME_83
schema:
- "$ref": "#/components/schemas/StoreOrder"
- '422':
- description: no store credit available
+ "$ref": "#/components/schemas/StoreCustomer"
+ '401':
+ description: unauthorized - invalid token
content:
application/json:
example:
error:
- code: processing_error
- message: User does not have any Store Credits available
+ code: authentication_required
+ message: Authentication required
schema:
"$ref": "#/components/schemas/ErrorResponse"
- requestBody:
- content:
- application/json:
- schema:
- type: object
- properties:
- 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 checkout
+ summary: Update current customer profile
tags:
- - Orders
+ - Customers
security:
- api_key: []
bearer_auth: []
- description: Advances the order through all possible checkout states
+ description: Updates the profile of the currently authenticated customer
parameters:
- name: x-spree-api-key
in: header
@@ -1469,124 +1416,182 @@ paths:
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: string
responses:
'200':
- description: order advanced
+ description: profile updated
content:
application/json:
example:
- id: or_gbHJdmfrXB
- number: R493155655
- state: payment
- token: CWSQBZar4J6AWaN28M8gzBLAWYcPs5vQtjg
- 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-14T19:47:27.529Z'
- updated_at: '2026-02-14T19:47:27.732Z'
- payment_methods: []
+ id: cus_UkLWZg9DAJ
+ first_name: Updated
+ last_name: Name
+ created_at: '2026-02-16T16:15:09.108Z'
+ updated_at: '2026-02-16T16:15:09.395Z'
+ addresses:
+ - id: addr_gbHJdmfrXB
+ firstname: John
+ lastname: Doe
+ full_name: John Doe
+ address1: 86 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_86
+ state_abbr: STATE_ABBR_86
+ state_name: STATE_NAME_86
+ - id: addr_UkLWZg9DAJ
+ firstname: John
+ lastname: Doe
+ full_name: John Doe
+ address1: 85 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_85
+ state_abbr: STATE_ABBR_85
+ state_name: STATE_NAME_85
+ default_billing_address:
+ id: addr_gbHJdmfrXB
+ firstname: John
+ lastname: Doe
+ full_name: John Doe
+ address1: 86 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_86
+ state_abbr: STATE_ABBR_86
+ state_name: STATE_NAME_86
+ default_shipping_address:
+ id: addr_UkLWZg9DAJ
+ firstname: John
+ lastname: Doe
+ full_name: John Doe
+ address1: 85 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_85
+ state_abbr: STATE_ABBR_85
+ state_name: STATE_NAME_85
schema:
- "$ref": "#/components/schemas/StoreOrder"
- "/api/v3/store/orders":
- post:
- summary: Create a cart
+ "$ref": "#/components/schemas/StoreCustomer"
+ '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"
+ 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
+ password:
+ type: string
+ example: newpassword123
+ password_confirmation:
+ type: string
+ example: newpassword123
+ accepts_email_marketing:
+ type: boolean
+ example: true
+ phone:
+ type: string
+ example: "+1 555 123 4567"
+ "/api/v3/store/digitals/{token}":
+ get:
+ summary: Download a digital product
tags:
- - Orders
+ - Digitals
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.
+ 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-key
in: header
required: true
schema:
type: string
- - name: Authorization
- in: header
- required: false
- description: Bearer JWT token (optional - for authenticated customers)
+ - name: token
+ in: path
+ required: true
+ description: Digital link token
schema:
type: string
responses:
- '201':
- description: cart created (authenticated)
+ '200':
+ description: file downloaded
+ content:
+ application/json: {}
+ '403':
+ description: download link expired or limit exceeded
content:
application/json:
example:
- id: or_gbHJdmfrXB
- number: R130962790
- state: cart
- token: 1nM9hfybFbcur9qMdTgevQevG4SsQDC9SCf
- special_instructions:
- currency: USD
- item_count: 0
- shipment_state:
- payment_state:
- 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'
- 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: '0.0'
- display_total: "$0.00"
- completed_at:
- created_at: '2026-02-14T19:47:29.767Z'
- updated_at: '2026-02-14T19:47:29.767Z'
- payment_methods: []
- order_token: 1nM9hfybFbcur9qMdTgevQevG4SsQDC9SCf
+ error:
+ code: digital_link_expired
+ message: Download link expired or invalid
schema:
- type: object
- allOf:
- - "$ref": "#/components/schemas/StoreOrder"
- - type: object
- properties:
- order_token:
- type: string
+ "$ref": "#/components/schemas/ErrorResponse"
+ application/octet-stream:
+ schema:
+ "$ref": "#/components/schemas/ErrorResponse"
+ '404':
+ description: digital link not found
+ content:
+ application/json:
+ example:
+ error:
+ code: record_not_found
+ message: Digital link not found
+ schema:
+ "$ref": "#/components/schemas/ErrorResponse"
+ application/octet-stream:
+ schema:
+ "$ref": "#/components/schemas/ErrorResponse"
'401':
description: unauthorized - invalid API key
content:
@@ -1597,14 +1602,19 @@ paths:
message: Valid API key required
schema:
"$ref": "#/components/schemas/ErrorResponse"
- get:
- summary: List orders
+ application/octet-stream:
+ schema:
+ "$ref": "#/components/schemas/ErrorResponse"
+ "/api/v3/store/orders/{order_id}/line_items":
+ post:
+ summary: Add item to cart
tags:
- - Orders
+ - Line Items
security:
- api_key: []
bearer_auth: []
- description: Returns a paginated list of orders for the authenticated customer
+ 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-key
in: header
@@ -1613,106 +1623,94 @@ paths:
type: string
- name: Authorization
in: header
- required: true
- schema:
- type: string
- - name: page
- in: query
- required: false
- schema:
- type: integer
- - name: per_page
- in: query
required: false
+ description: Bearer token for authenticated customers
schema:
- type: integer
- - name: q[state_eq]
- in: query
- required: false
- description: Filter by order state
+ type: string
+ - name: order_id
+ in: path
+ required: true
+ description: Order ID or number
schema:
type: string
- - name: q[completed_at_gte]
+ - name: order_token
in: query
required: false
- description: Filter by completion date (after)
+ description: Order token for guest access
schema:
type: string
responses:
- '200':
- description: orders found
+ '201':
+ description: line item created
content:
application/json:
example:
- data:
- - id: or_UkLWZg9DAJ
- number: R156061788
- state: cart
- token: WBFpQ69VtHRV5QftrNmdXvdyZE6f4PiWKJB
- 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-14T19:47:30.328Z'
- updated_at: '2026-02-14T19:47:30.431Z'
- payment_methods: []
- meta:
- page: 1
- limit: 25
- count: 1
- pages: 1
- from: 1
- to: 1
- in: 1
- previous:
- next:
+ id: li_gbHJdmfrXB
+ variant_id: variant_gbHJdmfrXB
+ quantity: 2
+ name: Product 224122
+ slug: product-224122
+ 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"
+ 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-16T16:15:13.978Z'
+ updated_at: '2026-02-16T16:15:13.978Z'
+ compare_at_amount:
+ thumbnail_url:
+ option_values: []
+ digital_links: []
schema:
- type: object
- properties:
- data:
- type: array
- items:
- "$ref": "#/components/schemas/StoreOrder"
- meta:
- "$ref": "#/components/schemas/PaginationMeta"
- '401':
- description: unauthorized - authentication required
+ "$ref": "#/components/schemas/StoreLineItem"
+ '404':
+ description: order not found
content:
application/json:
example:
error:
- code: authentication_required
- message: Authentication required
+ code: order_not_found
+ message: Order not found
schema:
"$ref": "#/components/schemas/ErrorResponse"
- "/api/v3/store/orders/{id}/complete":
+ 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}":
patch:
- summary: Complete the order
+ summary: Update line item quantity
tags:
- - Orders
+ - Line Items
security:
- api_key: []
bearer_auth: []
- description: Completes the order (finalizes the purchase)
+ description: Updates the quantity of a line item in the cart
parameters:
- name: x-spree-api-key
in: header
@@ -1724,9 +1722,15 @@ paths:
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
@@ -1735,225 +1739,62 @@ paths:
schema:
type: string
responses:
- '422':
- description: cannot complete
- content:
- application/json:
- example:
- error:
- code: order_already_completed
- message: No payment found
- schema:
- "$ref": "#/components/schemas/ErrorResponse"
'200':
- description: order completed
+ description: line item updated
content:
application/json:
example:
- id: or_gbHJdmfrXB
- number: R647140788
- state: complete
- token: Yr2X4aRYjfLExzdprSQ1SjxkenorGCmknak
- 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"
+ id: li_UkLWZg9DAJ
+ variant_id: variant_UkLWZg9DAJ
+ quantity: 5
+ name: Product 255992
+ slug: product-255992
+ 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"
- 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-14T19:47:32.991Z'
- created_at: '2026-02-14T19:47:32.667Z'
- updated_at: '2026-02-14T19:47:32.991Z'
- payment_methods:
- - id: pm_UkLWZg9DAJ
- name: Check
- description:
- type: Spree::PaymentMethod::Check
- - id: pm_gbHJdmfrXB
- name: Credit Card
- description:
- type: Spree::Gateway::Bogus
- schema:
- "$ref": "#/components/schemas/StoreOrder"
- "/api/v3/store/orders/{id}":
- patch:
- summary: Update an order
- tags:
- - Orders
- security:
- - api_key: []
- bearer_auth: []
- description: Updates order attributes like email, special instructions, or addresses
- parameters:
- - name: x-spree-api-key
- in: header
- required: true
- schema:
- 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: string
- responses:
- '200':
- description: order updated
- content:
- application/json:
- example:
- id: or_UkLWZg9DAJ
- number: R498676948
- state: cart
- token: ZrxK7b4eJwNK62He9tdpNS5mmTJUoQcM1YD
- special_instructions: Leave at door
- 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-14T19:47:33.567Z'
- updated_at: '2026-02-14T19:47:33.681Z'
- payment_methods: []
- schema:
- "$ref": "#/components/schemas/StoreOrder"
- '403':
- description: cannot update completed order
- content:
- application/json:
- example:
- error:
- code: access_denied
- message: You are not authorized to access this page.
+ 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-16T16:15:16.472Z'
+ updated_at: '2026-02-16T16:15:16.516Z'
+ compare_at_amount:
+ thumbnail_url:
+ option_values: []
+ digital_links: []
schema:
- "$ref": "#/components/schemas/ErrorResponse"
+ "$ref": "#/components/schemas/StoreLineItem"
requestBody:
content:
application/json:
schema:
type: object
properties:
- email:
- type: string
- format: email
- special_instructions:
- type: string
- example: Leave at door
- bill_address:
- 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
- state_abbr:
- type: string
- example: NY
- ship_address:
- type: object
- properties:
- firstname:
- type: string
- example: Jane
- lastname:
- type: string
- example: Smith
- address1:
- type: string
- example: 456 Oak Ave
- address2:
- type: string
- example: Suite 200
- city:
- type: string
- example: Los Angeles
- zipcode:
- type: string
- example: '90001'
- phone:
- type: string
- example: "+1 555 987 6543"
- company:
- type: string
- country_iso:
- type: string
- example: US
- state_abbr:
- type: string
- example: CA
- get:
- summary: Get an order
+ quantity:
+ type: integer
+ minimum: 1
+ example: 5
+ required:
+ - quantity
+ delete:
+ summary: Remove line item from cart
tags:
- - Orders
+ - Line Items
security:
- api_key: []
bearer_auth: []
- description: Returns a single order by ID or number. Guests must provide order_token.
+ description: Removes a line item from the order
parameters:
- name: x-spree-api-key
in: header
@@ -1965,81 +1806,43 @@ paths:
required: false
schema:
type: string
- - name: id
+ - name: order_id
in: path
required: true
- description: Order ID (prefixed) or order number
schema:
type: string
- - name: order_token
- in: query
- required: false
- description: Order token for guest access
+ - name: id
+ in: path
+ required: true
schema:
type: string
- - name: includes
+ - name: order_token
in: query
required: false
- description: Include associations (line_items, shipments, payments)
schema:
type: string
responses:
- '200':
- description: order found (authenticated)
- content:
- application/json:
- example:
- id: or_UkLWZg9DAJ
- number: R287925432
- state: cart
- token: 8XBYVGsUXcRj3FE6piEAxExNDnHKaXNUXwi
- 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-14T19:47:37.497Z'
- updated_at: '2026-02-14T19:47:37.604Z'
- payment_methods: []
- schema:
- "$ref": "#/components/schemas/StoreOrder"
+ '204':
+ description: line item removed
'404':
- description: not found - order belongs to another user
+ description: line item not found
content:
application/json:
example:
error:
- code: order_not_found
- message: Order not found
+ code: line_item_not_found
+ message: Line item not found
schema:
"$ref": "#/components/schemas/ErrorResponse"
- "/api/v3/store/orders/{id}/next":
- patch:
- summary: Advance to next checkout step
+ "/api/v3/store/orders":
+ get:
+ summary: List orders
tags:
- Orders
security:
- api_key: []
bearer_auth: []
- description: Advances the order to the next state in the checkout flow
+ description: Returns a paginated list of orders for the authenticated customer
parameters:
- name: x-spree-api-key
in: header
@@ -2048,39 +1851,138 @@ paths:
type: string
- name: Authorization
in: header
- required: false
+ required: true
schema:
type: string
- - name: id
- in: path
- required: true
+ - 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: order_token
+ - name: q[completed_at_gte]
in: query
required: false
+ description: Filter by completion date (after)
schema:
type: string
responses:
'200':
- description: order advanced
+ description: orders found
content:
application/json:
example:
- id: or_gbHJdmfrXB
- number: R886784435
- state: address
- token: t1cN9Df8UnTVz5XrAgdVuunQ19ukoUixy7d
- 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"
+ data:
+ - id: or_UkLWZg9DAJ
+ number: R805197208
+ state: cart
+ token: 9mxjWwWsowMctNPCvEqH1BW3G3rfuZGGMFG
+ 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-16T16:15:19.080Z'
+ updated_at: '2026-02-16T16:15:19.500Z'
+ 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 (authenticated)
+ content:
+ application/json:
+ example:
+ id: or_gbHJdmfrXB
+ number: R426086570
+ state: cart
+ token: yhhSCYMnP1L3j2P8ssPmLpYqgQjNR4YoSo5
+ special_instructions:
+ currency: USD
+ item_count: 0
+ shipment_state:
+ payment_state:
+ 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'
@@ -2091,250 +1993,281 @@ 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-14T19:47:38.303Z'
- updated_at: '2026-02-14T19:47:38.416Z'
+ created_at: '2026-02-16T16:15:22.873Z'
+ updated_at: '2026-02-16T16:15:22.873Z'
payment_methods: []
+ order_token: yhhSCYMnP1L3j2P8ssPmLpYqgQjNR4YoSo5
schema:
- "$ref": "#/components/schemas/StoreOrder"
- '422':
- description: cannot advance - validation errors
+ type: object
+ allOf:
+ - "$ref": "#/components/schemas/StoreOrder"
+ - type: object
+ properties:
+ order_token:
+ type: string
+ '401':
+ description: unauthorized - invalid API key
content:
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 required
schema:
"$ref": "#/components/schemas/ErrorResponse"
- "/api/v3/store/countries/{iso}":
+ "/api/v3/store/orders/{id}":
get:
- summary: Get a country with states
+ summary: Get an order
tags:
- - Countries
+ - Orders
security:
- api_key: []
- description: Returns a single country by ISO code with its states
+ bearer_auth: []
+ description: Returns a single order by ID or number. Guests must provide order_token.
parameters:
- name: x-spree-api-key
in: header
required: true
schema:
type: string
- - name: iso
+ - name: Authorization
+ in: header
+ required: false
+ schema:
+ type: string
+ - name: id
in: path
required: true
- description: Country ISO 3166-1 alpha-2 code (e.g., "US", "DE", "CA")
+ description: Order ID (prefixed) or order number
+ schema:
+ type: string
+ - name: order_token
+ in: query
+ required: false
+ description: Order token for guest access
+ schema:
+ type: string
+ - name: includes
+ in: query
+ required: false
+ description: Include associations (line_items, shipments, payments)
schema:
type: string
responses:
'200':
- description: country found
+ description: order found (guest with token)
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
+ id: or_gbHJdmfrXB
+ number: R257051194
+ state: cart
+ token: 8YRFttQxhVEWjyCNbQjV8fndM7zdqrbnYXF
+ email:
+ 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-16T16:15:25.410Z'
+ updated_at: '2026-02-16T16:15:25.601Z'
+ payment_methods: []
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
+ "$ref": "#/components/schemas/StoreOrder"
'404':
- description: country not found
+ description: not found - order belongs to another user
content:
application/json:
example:
error:
- code: record_not_found
- message: Country not found
+ code: order_not_found
+ message: Order not found
schema:
"$ref": "#/components/schemas/ErrorResponse"
- "/api/v3/store/countries":
- get:
- summary: List checkout countries
+ patch:
+ summary: Update an order
tags:
- - Countries
+ - Orders
security:
- api_key: []
- description: Returns countries available for checkout from the store checkout
- zone
+ bearer_auth: []
+ description: Updates order attributes like email, special instructions, or addresses
parameters:
- name: x-spree-api-key
in: header
required: true
schema:
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: string
responses:
'200':
- description: countries found
+ description: order updated
content:
application/json:
example:
- data:
- - iso: DE
- iso3: IS40
- 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
- content:
- application/json:
- example:
- error:
- code: invalid_token
- message: Valid API key required
+ id: or_UkLWZg9DAJ
+ number: R287319690
+ state: cart
+ token: w2wFsVLeAMy7zocDVyxQ4oMHxwrkJkHTMe8
+ special_instructions: Leave at door
+ 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-16T16:15:28.073Z'
+ updated_at: '2026-02-16T16:15:28.286Z'
+ payment_methods: []
schema:
- "$ref": "#/components/schemas/ErrorResponse"
- "/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:
- '401':
- description: unauthorized - invalid API key
+ "$ref": "#/components/schemas/StoreOrder"
+ '403':
+ description: cannot update completed order
content:
application/json:
example:
error:
- code: invalid_token
- message: Valid API key required
+ code: access_denied
+ message: You are not authorized to access this page.
schema:
"$ref": "#/components/schemas/ErrorResponse"
- '200':
- description: store found
- content:
- application/json:
- example:
- id: store_UkLWZg9DAJ
- name: Spree Test Store
- url: www.example.com
- meta_description: Sample store description.
- meta_keywords:
- seo_title:
- 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-14T19:47:04.988Z'
- updated_at: '2026-02-14T19:47:05.133Z'
- 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/StoreStore"
- "/api/v3/store/orders/{order_id}/coupon_codes/{id}":
- delete:
- summary: Remove coupon code
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ email:
+ type: string
+ format: email
+ special_instructions:
+ type: string
+ example: Leave at door
+ bill_address:
+ 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
+ state_abbr:
+ type: string
+ example: NY
+ ship_address:
+ type: object
+ properties:
+ firstname:
+ type: string
+ example: Jane
+ lastname:
+ type: string
+ example: Smith
+ address1:
+ type: string
+ example: 456 Oak Ave
+ address2:
+ type: string
+ example: Suite 200
+ city:
+ type: string
+ example: Los Angeles
+ zipcode:
+ type: string
+ example: '90001'
+ phone:
+ type: string
+ example: "+1 555 987 6543"
+ company:
+ type: string
+ country_iso:
+ type: string
+ example: US
+ state_abbr:
+ type: string
+ example: CA
+ "/api/v3/store/orders/{id}/next":
+ patch:
+ summary: Advance to next checkout step
tags:
- - Coupon Codes
+ - Orders
security:
- api_key: []
bearer_auth: []
- description: Removes a previously applied coupon code from the order.
+ description: Advances the order to the next state in the checkout flow
parameters:
- name: x-spree-api-key
in: header
@@ -2344,38 +2277,29 @@ paths:
- name: Authorization
in: header
required: false
- description: Bearer token for authenticated customers
- schema:
- type: string
- - name: order_id
- in: path
- required: true
- description: Order ID
schema:
type: string
- name: id
in: path
required: true
- description: Order promotion ID
schema:
type: string
- name: order_token
in: query
required: false
- description: Order token for guest access
schema:
type: string
responses:
'200':
- description: coupon code removed
+ description: order advanced
content:
application/json:
example:
- id: or_UkLWZg9DAJ
- number: R602639899
- state: cart
- token: CaPcQWxujFBSWBDdQxbPVFpVPjvqEsTY2Ef
+ id: or_gbHJdmfrXB
+ number: R441821800
+ state: address
+ token: 9oK2nCFLiTdDWRxTmED8tCbJk7Fu3NXDpoN
special_instructions:
currency: USD
item_count: 1
@@ -2398,32 +2322,31 @@ paths:
total: '110.0'
display_total: "$110.00"
completed_at:
- created_at: '2026-02-14T19:47:39.780Z'
- updated_at: '2026-02-14T19:47:40.000Z'
+ created_at: '2026-02-16T16:15:29.933Z'
+ updated_at: '2026-02-16T16:15:30.098Z'
payment_methods: []
schema:
"$ref": "#/components/schemas/StoreOrder"
- '404':
- description: coupon code not found on order
+ '422':
+ description: cannot advance - validation errors
content:
application/json:
example:
error:
- code: record_not_found
- message: Order promotion not found
+ 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/{order_id}/coupon_codes":
- post:
- summary: Apply coupon code
+ "/api/v3/store/orders/{id}/advance":
+ patch:
+ summary: Advance through checkout
tags:
- - Coupon Codes
+ - Orders
security:
- 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: Advances the order through all possible checkout states
parameters:
- name: x-spree-api-key
in: header
@@ -2433,449 +2356,304 @@ paths:
- name: Authorization
in: header
required: false
- description: Bearer token for authenticated customers
schema:
type: string
- - name: order_id
+ - name: id
in: path
required: true
- description: Order ID
schema:
type: string
- name: order_token
in: query
required: false
- description: Order token for guest access
schema:
type: string
responses:
- '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"
- '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 (promotion)
+ '200':
+ description: order advanced
content:
application/json:
example:
- id: or_UkLWZg9DAJ
- number: R848169888
- state: cart
- token: u3JL3vZx8igAt337UDY783FWiSA4oPtTQTx
+ id: or_gbHJdmfrXB
+ number: R144781842
+ state: payment
+ token: zq3f3ttb9QmmVmiSDCpJ8h4899Nq7RW7DCZ
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: "-10.0"
- display_adjustment_total: "-$10.00"
- promo_total: "-10.0"
- display_promo_total: "-$10.00"
+ 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: '100.0'
- display_total: "$100.00"
+ total: '29.99'
+ display_total: "$29.99"
completed_at:
- created_at: '2026-02-14T19:47:43.301Z'
- updated_at: '2026-02-14T19:47:43.478Z'
+ created_at: '2026-02-16T16:15:32.275Z'
+ updated_at: '2026-02-16T16:15:32.513Z'
payment_methods: []
schema:
"$ref": "#/components/schemas/StoreOrder"
- 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/products/{id}":
- get:
- summary: Get a product
+ "/api/v3/store/orders/{id}/complete":
+ patch:
+ summary: Complete the order
tags:
- - Products
+ - Orders
security:
- api_key: []
- description: Returns a single product by slug or prefix ID
+ bearer_auth: []
+ description: Completes the order (finalizes the purchase)
parameters:
- name: x-spree-api-key
in: header
required: true
- description: Publishable API key
+ schema:
+ type: string
+ - name: Authorization
+ in: header
+ required: false
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
+ - name: order_token
in: query
required: false
- description: Comma-separated associations to include
schema:
type: string
responses:
- '404':
- description: product not found
+ '200':
+ description: order completed
content:
application/json:
example:
- error:
- code: record_not_found
- message: Product not found
+ id: or_gbHJdmfrXB
+ number: R122773364
+ state: complete
+ token: WKuLToA9jFsSecB9AqAuqx8QQWmASKi5GGe
+ 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-16T16:15:33.544Z'
+ created_at: '2026-02-16T16:15:33.206Z'
+ updated_at: '2026-02-16T16:15:33.544Z'
+ payment_methods:
+ - id: pm_UkLWZg9DAJ
+ name: Check
+ description:
+ type: Spree::PaymentMethod::Check
+ session_required: false
+ - id: pm_gbHJdmfrXB
+ name: Credit Card
+ description:
+ type: Spree::Gateway::Bogus
+ session_required: true
schema:
- "$ref": "#/components/schemas/ErrorResponse"
- '200':
- description: product found by slug
+ "$ref": "#/components/schemas/StoreOrder"
+ '422':
+ description: cannot complete
content:
application/json:
example:
- id: prod_UkLWZg9DAJ
- name: Product 623111
- description: |-
- Sed consectetur officiis officia ab rem. Quae amet blanditiis harum eos consectetur. Maxime fugit laborum dicta saepe velit accusantium officia repellendus. Doloremque fugiat architecto quae temporibus odio beatae quo at.
- Facilis amet officia rerum officiis iure assumenda. Repudiandae aut fugiat fuga dolor voluptatum. Id delectus libero illo tenetur.
- Necessitatibus repudiandae saepe quis cum ab. Magni velit rerum eius modi ex saepe eum. Voluptatibus labore delectus velit neque laborum odit. Beatae maiores cumque saepe inventore qui dolores. Tempore odio inventore tenetur vero.
- Dolore architecto atque illo non veritatis earum totam quibusdam. Minima excepturi repudiandae placeat alias temporibus. Pariatur similique velit consequatur quidem ea voluptas mollitia eveniet. Laudantium repudiandae nisi consectetur culpa officiis.
- slug: product-623111
- meta_description:
- meta_keywords:
- variant_count: 1
- available_on: '2025-02-14T19:47:44.835Z'
- created_at: '2026-02-14T19:47:44.852Z'
- updated_at: '2026-02-14T19:47:44.926Z'
- 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:
+ error:
+ code: order_already_completed
+ message: No payment found
schema:
- "$ref": "#/components/schemas/StoreProduct"
- "/api/v3/store/products/filters":
- get:
- summary: Get product filters
+ "$ref": "#/components/schemas/ErrorResponse"
+ "/api/v3/store/orders/{order_id}/store_credits":
+ post:
+ summary: Add store credit
tags:
- - Products
+ - Orders
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.
+ bearer_auth: []
+ description: Applies store credit to the order
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)
+ - name: Authorization
+ in: header
+ required: true
schema:
type: string
- - name: q[name_cont]
+ - name: order_id
+ in: path
+ required: true
+ schema:
+ type: string
+ - name: order_token
in: query
required: false
- description: Filter by name containing string
schema:
type: string
responses:
'200':
- description: filters scoped to taxon
+ description: store credit applied
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-22/taxon-7/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
+ id: or_UkLWZg9DAJ
+ number: R596594892
+ state: cart
+ token: 7vqrdBg1QCrZRGPutpEmMQAbbs9SXg5BZtg
+ 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-16T16:15:35.009Z'
+ updated_at: '2026-02-16T16:15:35.444Z'
+ payment_methods:
+ - id: pm_UkLWZg9DAJ
+ name: Store Credit
+ description: Store Credit
+ type: Spree::PaymentMethod::StoreCredit
+ session_required: false
+ schema:
+ "$ref": "#/components/schemas/StoreOrder"
+ '422':
+ description: no store credit available
content:
application/json:
example:
error:
- code: invalid_token
- message: Valid API key required
+ code: processing_error
+ message: User does not have any Store Credits available
schema:
"$ref": "#/components/schemas/ErrorResponse"
- "/api/v3/store/products":
- get:
- summary: List products
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: object
+ properties:
+ amount:
+ type: number
+ example: 10.0
+ description: Amount to apply (optional - defaults to max available)
+ delete:
+ summary: Remove store credit
tags:
- - Products
+ - Orders
security:
- api_key: []
- description: Returns a paginated list of active products for the current store
+ bearer_auth: []
+ description: Removes store credit from the order
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
+ - name: Authorization
+ in: header
+ required: true
schema:
type: string
- - name: q[taxons_id_eq]
- in: query
- required: false
- description: Filter by taxon ID
+ - name: order_id
+ in: path
+ required: true
schema:
type: string
- - name: includes
+ - name: order_token
in: query
required: false
- description: Comma-separated associations to include (variants, images, taxons,
- option_types)
schema:
type: string
responses:
- '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"
'200':
- description: products found
+ description: store credit removed
content:
application/json:
example:
- data:
- - id: prod_UkLWZg9DAJ
- name: Product 867122
- description: |-
- Minus quo natus unde enim perferendis praesentium corporis. Id fuga modi enim sequi. Officiis temporibus rem ab ipsam.
- Reiciendis inventore voluptates eaque facere officia exercitationem. Accusamus fugiat alias ipsum nemo dicta nobis. Voluptatibus itaque voluptates ipsam omnis.
- slug: product-867122
- meta_description:
- meta_keywords:
- variant_count: 1
- available_on: '2025-02-14T19:47:47.512Z'
- created_at: '2026-02-14T19:47:47.526Z'
- updated_at: '2026-02-14T19:47:47.602Z'
- 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 871397
- description: |-
- Illum saepe explicabo ratione magni. Reprehenderit accusantium deleniti dolores similique. Dignissimos sed vero accusamus assumenda facilis at commodi. Veniam ad atque modi quos animi.
- Repudiandae consequatur facilis sit et magnam quas. Quos ipsa itaque molestias omnis culpa perspiciatis voluptatibus placeat. A enim voluptatibus vitae repellat temporibus ab est eius. Est illum quisquam minus sit ab quam.
- Adipisci facilis illo sapiente reprehenderit aliquam tempora voluptates. Quos quis voluptate dignissimos molestias magni quasi ducimus. Sequi nobis tempora quaerat occaecati ut eligendi blanditiis ipsum.
- slug: product-871397
- meta_description:
- meta_keywords:
- variant_count: 0
- available_on: '2025-02-14T19:47:47.621Z'
- created_at: '2026-02-14T19:47:47.631Z'
- updated_at: '2026-02-14T19:47:47.657Z'
- 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:
+ id: or_UkLWZg9DAJ
+ number: R245986610
+ state: cart
+ token: ZHNnLSBydpkkH5veVXV5WuVBr3ikoqxJpz8
+ 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-16T16:15:36.830Z'
+ updated_at: '2026-02-16T16:15:36.950Z'
+ payment_methods: []
schema:
- type: object
- properties:
- data:
- type: array
- items:
- "$ref": "#/components/schemas/StoreProduct"
- meta:
- "$ref": "#/components/schemas/PaginationMeta"
- required:
- - data
- - meta
+ "$ref": "#/components/schemas/StoreOrder"
"/api/v3/store/orders/{order_id}/payment_methods":
get:
summary: List available payment methods
@@ -2908,16 +2686,6 @@ paths:
schema:
type: string
responses:
- '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:
@@ -2928,6 +2696,7 @@ paths:
name: Credit Card
description:
type: Spree::Gateway::Bogus
+ session_required: true
meta:
count: 1
schema:
@@ -2952,15 +2721,27 @@ paths:
message: Order not found
schema:
"$ref": "#/components/schemas/ErrorResponse"
- "/api/v3/store/orders/{order_id}/line_items/{id}":
- patch:
- summary: Update line item quantity
+ '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}/payment_sessions":
+ post:
+ summary: Create payment session
tags:
- - Line Items
+ - Payment Sessions
security:
- api_key: []
bearer_auth: []
- description: Updates the quantity of a line item in the cart
+ description: Creates a new payment session for the specified order. Delegates
+ to the payment gateway to initialize a provider-specific session (e.g. Stripe
+ PaymentIntent, Adyen session, PayPal order).
parameters:
- name: x-spree-api-key
in: header
@@ -2970,443 +2751,569 @@ paths:
- name: Authorization
in: header
required: false
+ description: Bearer token for authenticated customers
schema:
type: string
- name: order_id
in: path
required: true
- schema:
- type: string
- - name: id
- in: path
- required: true
- description: Line item ID
+ description: Order ID or number
schema:
type: string
- name: order_token
in: query
required: false
+ description: Order token for guest access
schema:
type: string
responses:
- '200':
- description: line item updated
+ '201':
+ description: payment session created
content:
application/json:
example:
- id: li_UkLWZg9DAJ
- variant_id: variant_UkLWZg9DAJ
- quantity: 5
- name: Product 934666
- slug: product-934666
- 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-14T19:47:50.238Z'
- updated_at: '2026-02-14T19:47:50.269Z'
- compare_at_amount:
- thumbnail_url:
- option_values: []
- digital_links: []
+ id: ps_gbHJdmfrXB
+ status: pending
+ currency: USD
+ external_id: bogus_28c75d3b92d19d2dc003f530
+ external_data:
+ client_secret: bogus_secret_555bc52380a500bb
+ customer_external_id:
+ expires_at:
+ created_at: '2026-02-16T16:15:39.006Z'
+ updated_at: '2026-02-16T16:15:39.006Z'
+ amount: '110.0'
+ payment_method_id: pm_UkLWZg9DAJ
+ order_id: or_UkLWZg9DAJ
+ payment_method:
+ id: pm_UkLWZg9DAJ
+ name: Credit Card
+ description:
+ type: Spree::Gateway::Bogus
+ session_required: true
schema:
- "$ref": "#/components/schemas/StoreLineItem"
+ "$ref": "#/components/schemas/StorePaymentSession"
+ '404':
+ description: order not found
+ content:
+ application/json:
+ example:
+ error:
+ code: order_not_found
+ message: Order not found
+ schema:
+ "$ref": "#/components/schemas/ErrorResponse"
requestBody:
content:
application/json:
schema:
type: object
properties:
- quantity:
- type: integer
- minimum: 1
- example: 5
+ payment_method_id:
+ type: string
+ example: pm_abc123
+ description: Payment method ID
+ amount:
+ type: string
+ example: '99.99'
+ description: Payment amount (defaults to order total minus store
+ credits)
+ external_data:
+ type: object
+ description: Provider-specific data passed to the gateway
required:
- - quantity
- delete:
- summary: Remove line item from cart
+ - payment_method_id
+ "/api/v3/store/orders/{order_id}/payment_sessions/{id}":
+ parameters:
+ - name: x-spree-api-key
+ in: header
+ required: true
+ schema:
+ type: string
+ - name: Authorization
+ in: header
+ required: false
+ description: Bearer token for authenticated customers
+ schema:
+ type: string
+ - name: order_id
+ in: path
+ required: true
+ description: Order ID or number
+ schema:
+ type: string
+ - name: id
+ in: path
+ required: true
+ description: Payment session ID
+ schema:
+ type: string
+ - name: order_token
+ in: query
+ required: false
+ description: Order token for guest access
+ schema:
+ type: string
+ get:
+ summary: Get payment session
tags:
- - Line Items
+ - Payment Sessions
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
+ description: Returns a single payment session with its current status and provider
+ data.
responses:
+ '200':
+ description: payment session found
+ content:
+ application/json:
+ example:
+ id: ps_UkLWZg9DAJ
+ status: pending
+ currency: USD
+ external_id: bogus_ae9b4925d05bfc64af33c7e5
+ external_data:
+ client_secret: secret_123
+ customer_external_id:
+ expires_at:
+ created_at: '2026-02-16T16:15:40.417Z'
+ updated_at: '2026-02-16T16:15:40.417Z'
+ amount: '110.0'
+ payment_method_id: pm_UkLWZg9DAJ
+ order_id: or_UkLWZg9DAJ
+ payment_method:
+ id: pm_UkLWZg9DAJ
+ name: Credit Card
+ description:
+ type: Spree::Gateway::Bogus
+ session_required: true
+ schema:
+ "$ref": "#/components/schemas/StorePaymentSession"
'404':
- description: line item not found
+ description: payment session not found
content:
application/json:
example:
error:
- code: line_item_not_found
- message: Line item not found
+ code: record_not_found
+ message: Payment session not found
schema:
"$ref": "#/components/schemas/ErrorResponse"
- '204':
- description: line item removed
- "/api/v3/store/orders/{order_id}/line_items":
- post:
- summary: Add item to cart
+ patch:
+ summary: Update payment session
tags:
- - Line Items
+ - Payment Sessions
security:
- api_key: []
bearer_auth: []
- 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-key
- in: header
- required: true
- schema:
- type: string
- - name: Authorization
- in: header
- required: false
- description: Bearer token for authenticated customers
- schema:
- type: string
- - name: order_id
- in: path
- required: true
- description: Order ID or number
- schema:
- type: string
- - name: order_token
- in: query
- required: false
- description: Order token for guest access
- schema:
- type: string
+ description: Updates a payment session. Delegates to the payment gateway to
+ sync changes with the provider.
+ parameters: []
responses:
- '404':
- description: variant not found
- content:
- application/json:
- example:
- error:
- code: variant_not_found
- message: Variant not found
- schema:
- "$ref": "#/components/schemas/ErrorResponse"
- '201':
- description: line item created
+ '200':
+ description: payment session updated
content:
application/json:
example:
- id: li_gbHJdmfrXB
- variant_id: variant_gbHJdmfrXB
- quantity: 2
- name: Product 981861
- slug: product-981861
- 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"
- 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-14T19:47:52.938Z'
- updated_at: '2026-02-14T19:47:52.938Z'
- compare_at_amount:
- thumbnail_url:
- option_values: []
- digital_links: []
+ id: ps_UkLWZg9DAJ
+ status: pending
+ currency: USD
+ external_id: bogus_c29770f48e3088606d4cd91e
+ external_data:
+ client_secret: secret_123
+ customer_external_id:
+ expires_at:
+ created_at: '2026-02-16T16:15:41.846Z'
+ updated_at: '2026-02-16T16:15:41.862Z'
+ amount: '50.0'
+ payment_method_id: pm_UkLWZg9DAJ
+ order_id: or_UkLWZg9DAJ
+ payment_method:
+ id: pm_UkLWZg9DAJ
+ name: Credit Card
+ description:
+ type: Spree::Gateway::Bogus
+ session_required: true
schema:
- "$ref": "#/components/schemas/StoreLineItem"
+ "$ref": "#/components/schemas/StorePaymentSession"
requestBody:
content:
application/json:
schema:
type: object
properties:
- variant_id:
+ amount:
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/auth/register":
- post:
- summary: Register
+ example: '50.00'
+ description: Updated payment amount
+ external_data:
+ type: object
+ description: Provider-specific data to update
+ "/api/v3/store/orders/{order_id}/payment_sessions/{id}/complete":
+ parameters:
+ - name: x-spree-api-key
+ in: header
+ required: true
+ schema:
+ type: string
+ - name: Authorization
+ in: header
+ required: false
+ description: Bearer token for authenticated customers
+ schema:
+ type: string
+ - name: order_id
+ in: path
+ required: true
+ description: Order ID or number
+ schema:
+ type: string
+ - name: id
+ in: path
+ required: true
+ description: Payment session ID
+ schema:
+ type: string
+ - name: order_token
+ in: query
+ required: false
+ description: Order token for guest access
+ schema:
+ type: string
+ patch:
+ summary: Complete payment session
tags:
- - Authentication
+ - Payment Sessions
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
+ bearer_auth: []
+ description: Completes a payment session by confirming the payment with the
+ provider. This triggers payment capture/authorization and order completion.
+ parameters: []
responses:
- '422':
- description: email already taken
+ '200':
+ description: payment session completed
content:
application/json:
example:
- error:
- code: validation_error
- message: Email has already been taken
- details:
- email:
- - has already been taken
+ id: ps_UkLWZg9DAJ
+ status: completed
+ currency: USD
+ external_id: bogus_095ae49d6701c911b15fa243
+ external_data:
+ client_secret: secret_123
+ customer_external_id:
+ expires_at:
+ created_at: '2026-02-16T16:15:42.566Z'
+ updated_at: '2026-02-16T16:15:42.577Z'
+ amount: '110.0'
+ payment_method_id: pm_UkLWZg9DAJ
+ order_id: or_UkLWZg9DAJ
+ payment_method:
+ id: pm_UkLWZg9DAJ
+ name: Credit Card
+ description:
+ type: Spree::Gateway::Bogus
+ session_required: true
schema:
- "$ref": "#/components/schemas/ErrorResponse"
- '201':
- description: registration successful
+ "$ref": "#/components/schemas/StorePaymentSession"
+ '404':
+ description: payment session not found
content:
application/json:
example:
- token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImV4cCI6MTc3MTE4NDg3NH0.HeqmGqikQqAzGFp00HBHKajvzp7HlZTgALg1emsN_nU
- user:
- id: cus_UkLWZg9DAJ
- first_name: John
- last_name: Doe
- created_at: '2026-02-14T19:47:54.212Z'
- updated_at: '2026-02-14T19:47:54.212Z'
- addresses: []
- default_billing_address:
- default_shipping_address:
+ error:
+ code: record_not_found
+ message: Payment session not found
schema:
- "$ref": "#/components/schemas/AuthResponse"
+ "$ref": "#/components/schemas/ErrorResponse"
requestBody:
content:
application/json:
schema:
type: object
properties:
- email:
- type: string
- format: email
- password:
- type: string
- minLength: 6
- example: password123
- password_confirmation:
- type: string
- example: password123
- first_name:
- type: string
- example: John
- last_name:
+ session_result:
type: string
- example: Doe
- required:
- - email
- - password
- "/api/v3/store/auth/refresh":
- post:
- summary: Refresh token
+ description: Provider-specific session result token
+ external_data:
+ type: object
+ description: Provider-specific completion data
+ "/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:
- - Authentication
+ - Payments
security:
- api_key: []
bearer_auth: []
- description: Generates a new JWT token for the authenticated user
- parameters:
- - name: x-spree-api-key
- in: header
- required: true
- schema:
- type: string
- - name: Authorization
- in: header
- required: true
- description: Bearer token
- schema:
- type: string
+ description: Returns a list of payments for the specified order
responses:
'200':
- description: token refreshed
+ description: payments found
content:
application/json:
example:
- token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImV4cCI6MTc3MTE4NDg3NH0.HeqmGqikQqAzGFp00HBHKajvzp7HlZTgALg1emsN_nU
- user:
- id: cus_UkLWZg9DAJ
- first_name: Coletta
- last_name: Cruickshank
- created_at: '2026-02-14T19:47:54.491Z'
- updated_at: '2026-02-14T19:47:54.491Z'
- addresses: []
- default_billing_address:
- default_shipping_address:
+ data:
+ - id: py_UkLWZg9DAJ
+ payment_method_id: pm_UkLWZg9DAJ
+ state: checkout
+ response_code: '12345'
+ number: PR5LZM9Q
+ amount: '110.0'
+ display_amount: "$110.00"
+ created_at: '2026-02-16T16:15:43.973Z'
+ updated_at: '2026-02-16T16:15:43.973Z'
+ payment_method:
+ id: pm_UkLWZg9DAJ
+ name: Credit Card
+ description:
+ type: Spree::Gateway::Bogus
+ session_required: true
+ meta: {}
schema:
- "$ref": "#/components/schemas/AuthResponse"
- '401':
- description: missing or invalid token
+ 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: authentication_required
- message: Authentication required
+ code: order_not_found
+ message: Order not found
schema:
"$ref": "#/components/schemas/ErrorResponse"
- "/api/v3/store/auth/login":
- post:
- summary: Login
+ "/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:
- - Authentication
+ - Payments
security:
- api_key: []
- description: Authenticates a customer with email/password and returns a JWT
- token
- parameters:
- - name: x-spree-api-key
- in: header
- required: true
- schema:
- type: string
+ bearer_auth: []
+ description: Returns a single payment by ID
responses:
- '401':
- description: missing API key
+ '200':
+ description: payment found
content:
application/json:
example:
- error:
- code: invalid_token
- message: Valid API key required
+ id: py_UkLWZg9DAJ
+ payment_method_id: pm_UkLWZg9DAJ
+ state: checkout
+ response_code: '12345'
+ number: P8E8199P
+ amount: '110.0'
+ display_amount: "$110.00"
+ created_at: '2026-02-16T16:15:45.496Z'
+ updated_at: '2026-02-16T16:15:45.496Z'
+ payment_method:
+ id: pm_UkLWZg9DAJ
+ name: Credit Card
+ description:
+ type: Spree::Gateway::Bogus
+ session_required: true
schema:
- "$ref": "#/components/schemas/ErrorResponse"
- '200':
- description: login successful
+ "$ref": "#/components/schemas/StorePayment"
+ '404':
+ description: payment not found
content:
application/json:
example:
- token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImV4cCI6MTc3MTE4NDg3NX0.ttEJoVJuekYxHjkoXrwJNZcE_n0r1ycJYcY4W08pJN4
- user:
- id: cus_UkLWZg9DAJ
- first_name: Michal
- last_name: Sawayn
- created_at: '2026-02-14T19:47:55.346Z'
- updated_at: '2026-02-14T19:47:55.346Z'
- addresses: []
- default_billing_address:
- default_shipping_address:
+ error:
+ code: record_not_found
+ message: Payment not found
schema:
- "$ref": "#/components/schemas/AuthResponse"
- requestBody:
- content:
- application/json:
- schema:
- type: object
- properties:
- provider:
- type: string
- example: email
- description: 'Authentication provider (default: email)'
- email:
- type: string
- format: email
- password:
- type: string
- example: password123
- required:
- - email
- - password
- "/api/v3/store/digitals/{token}":
+ "$ref": "#/components/schemas/ErrorResponse"
+ "/api/v3/store/products":
get:
- summary: Download a digital product
+ summary: List products
tags:
- - Digitals
+ - Products
security:
- 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).
+ 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: token
- in: path
- required: true
- description: Digital link token
+ - 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:
- '404':
- description: digital link not found
- content:
+ '200':
+ description: products found
+ content:
application/json:
example:
- error:
- code: record_not_found
- message: Digital link not found
- schema:
- "$ref": "#/components/schemas/ErrorResponse"
- application/octet-stream:
+ data:
+ - id: prod_UkLWZg9DAJ
+ name: Product 672248
+ description: |-
+ Similique itaque adipisci soluta labore. Minus eveniet corporis esse eos cum sint vel nulla. Maxime incidunt eius nam doloremque voluptatum cumque inventore. Recusandae expedita alias earum soluta libero tempora laudantium. Deserunt itaque nesciunt assumenda exercitationem ad nobis cupiditate voluptate.
+ Sequi cupiditate provident ipsam esse eos natus fuga. Porro unde asperiores quidem molestias mollitia necessitatibus. Blanditiis incidunt molestiae molestias quibusdam enim sint.
+ Exercitationem facilis veniam similique sint. Perspiciatis voluptas aliquid neque quae ullam rem libero. Architecto consequatur quis ipsum sit expedita impedit id repellat.
+ Officiis error aperiam eos culpa molestias amet alias. Facere exercitationem adipisci nesciunt voluptatum recusandae harum. Nobis aliquam eius enim laborum reiciendis vel dicta praesentium. Unde natus nisi ipsam ullam dolore.
+ Tempore sit libero quo esse. Dolores laborum deleniti facilis aperiam beatae. Commodi ullam debitis distinctio dolores. Natus aliquid veniam sed mollitia deleniti fugiat.
+ slug: product-672248
+ meta_description:
+ meta_keywords:
+ variant_count: 1
+ available_on: '2025-02-16T16:15:46.255Z'
+ created_at: '2026-02-16T16:15:46.275Z'
+ updated_at: '2026-02-16T16:15:46.377Z'
+ 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 688583
+ description: |-
+ Tenetur ullam incidunt illo minus ipsum iure earum porro. Temporibus distinctio placeat non tenetur. Animi accusantium error at eum sapiente explicabo nobis earum.
+ In odit unde ipsa numquam quos. Iure soluta recusandae repellat praesentium sit sint quidem dolorem. Repudiandae vel possimus omnis et distinctio suscipit. Laudantium optio saepe praesentium perspiciatis.
+ Vel voluptatem itaque cupiditate deleniti consectetur nesciunt. Voluptatem vitae numquam illo ab illum facilis. Nesciunt commodi dicta deleniti provident. Alias non voluptates earum eos perspiciatis labore. Enim doloremque fugit eveniet totam necessitatibus error.
+ slug: product-688583
+ meta_description:
+ meta_keywords:
+ variant_count: 0
+ available_on: '2025-02-16T16:15:46.404Z'
+ created_at: '2026-02-16T16:15:46.415Z'
+ updated_at: '2026-02-16T16:15:46.439Z'
+ 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/ErrorResponse"
+ type: object
+ properties:
+ data:
+ type: array
+ items:
+ "$ref": "#/components/schemas/StoreProduct"
+ meta:
+ "$ref": "#/components/schemas/PaginationMeta"
+ required:
+ - data
+ - meta
'401':
- description: unauthorized - invalid API key
+ description: unauthorized - invalid or missing API key
content:
application/json:
example:
@@ -3415,486 +3322,996 @@ paths:
message: Valid API key required
schema:
"$ref": "#/components/schemas/ErrorResponse"
- application/octet-stream:
- schema:
- "$ref": "#/components/schemas/ErrorResponse"
- '200':
- description: file downloaded
- content:
- application/json: {}
- '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"
- "/api/v3/store/customer":
- patch:
- summary: Update current customer profile
+ "/api/v3/store/products/{id}":
+ get:
+ summary: Get a product
tags:
- - Customers
+ - Products
security:
- api_key: []
- bearer_auth: []
- description: Updates the profile of the currently authenticated customer
+ 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: Authorization
- in: header
+ - 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: profile updated
+ description: product found by prefix ID
content:
application/json:
example:
- id: cus_UkLWZg9DAJ
- first_name: Updated
- last_name: Name
- created_at: '2026-02-14T19:47:59.322Z'
- updated_at: '2026-02-14T19:47:59.621Z'
- addresses:
- - id: addr_gbHJdmfrXB
- firstname: John
- lastname: Doe
- full_name: John Doe
- address1: 235 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: 234 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_244
- default_billing_address:
- id: addr_gbHJdmfrXB
- firstname: John
- lastname: Doe
- full_name: John Doe
- address1: 235 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
- default_shipping_address:
- id: addr_UkLWZg9DAJ
- firstname: John
- lastname: Doe
- full_name: John Doe
- address1: 234 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_244
+ id: prod_UkLWZg9DAJ
+ name: Product 791508
+ description: |-
+ Repudiandae corporis perspiciatis nam harum deleniti ullam. Libero neque quod eum eius commodi amet ratione. Beatae eveniet iure quae dolorem nisi ipsam. Eos modi totam eaque itaque. Dolores nulla asperiores cumque optio repellat et necessitatibus.
+ Asperiores occaecati dolor aliquid ea. Iste itaque nostrum aliquam quos vitae autem ipsum. Quidem labore non recusandae minima. Non nemo accusantium facere ad. Consectetur inventore consequuntur temporibus aut reiciendis nemo natus.
+ Explicabo autem accusamus deserunt temporibus excepturi minus. Praesentium ipsam rem nobis enim sapiente alias blanditiis asperiores. Ad maiores voluptas modi ex. Consectetur molestias expedita fugiat ipsa. Iste pariatur consequatur necessitatibus perspiciatis repellat at quidem.
+ slug: product-791508
+ meta_description:
+ meta_keywords:
+ variant_count: 1
+ available_on: '2025-02-16T16:15:47.691Z'
+ created_at: '2026-02-16T16:15:47.707Z'
+ updated_at: '2026-02-16T16:15:47.786Z'
+ 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/StoreCustomer"
- '422':
- description: validation error
+ "$ref": "#/components/schemas/StoreProduct"
+ '404':
+ description: draft product not visible
content:
application/json:
example:
error:
- code: validation_error
- message: Email can't be blank
- details:
- email:
- - can't be blank
+ code: record_not_found
+ message: Product not found
schema:
"$ref": "#/components/schemas/ErrorResponse"
- 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
- password:
- type: string
- example: newpassword123
- password_confirmation:
- type: string
- example: newpassword123
- accepts_email_marketing:
- type: boolean
- example: true
- phone:
- type: string
- example: "+1 555 123 4567"
+ "/api/v3/store/products/filters":
get:
- summary: Get current customer profile
+ summary: Get product filters
tags:
- - Customers
+ - Products
security:
- api_key: []
- bearer_auth: []
- description: Returns the profile of the currently authenticated customer
+ 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: Authorization
- in: header
- required: true
- description: Bearer JWT token
- schema:
+ - 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
+ tags:
+ - Shipments
+ security:
+ - api_key: []
+ bearer_auth: []
+ description: Returns all shipments associated with 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: token
+ in: query
+ required: false
+ description: Order token for guest access
+ schema:
+ type: string
+ responses:
+ '200':
+ description: shipments found
+ content:
+ application/json:
+ example:
+ data:
+ - id: ship_UkLWZg9DAJ
+ number: H48260789801
+ state: pending
+ tracking: U10000
+ tracking_url:
+ cost: '100.0'
+ display_cost: "$100.00"
+ shipped_at:
+ created_at: '2026-02-16T16:15:51.828Z'
+ updated_at: '2026-02-16T16:15:51.856Z'
+ shipping_method:
+ id: shpm_UkLWZg9DAJ
+ name: UPS Ground
+ code: UPS_GROUND
+ stock_location:
+ id: sloc_UkLWZg9DAJ
+ state_abbr: STATE_ABBR_272
+ name: Valrie Macejkovic
+ address1: 1600 Pennsylvania Ave NW
+ city: Washington
+ zipcode: '20500'
+ country_iso: US
+ country_name: United States of America
+ state_text: STATE_ABBR_272
+ 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
+ content:
+ application/json:
+ example:
+ error:
+ code: order_not_found
+ message: Order not found
+ schema:
+ "$ref": "#/components/schemas/ErrorResponse"
+ "/api/v3/store/orders/{order_id}/shipments/{id}":
+ get:
+ summary: Get a shipment
+ tags:
+ - Shipments
+ security:
+ - api_key: []
+ bearer_auth: []
+ description: Returns details of a specific shipment
+ 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
+ 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: string
+ responses:
+ '200':
+ description: shipment found
+ content:
+ application/json:
+ example:
+ id: ship_UkLWZg9DAJ
+ number: H33904589350
+ state: pending
+ tracking: U10000
+ tracking_url:
+ cost: '100.0'
+ display_cost: "$100.00"
+ shipped_at:
+ created_at: '2026-02-16T16:15:53.309Z'
+ updated_at: '2026-02-16T16:15:53.335Z'
+ shipping_method:
+ id: shpm_UkLWZg9DAJ
+ name: UPS Ground
+ code: UPS_GROUND
+ stock_location:
+ id: sloc_UkLWZg9DAJ
+ state_abbr: STATE_ABBR_280
+ name: Kimber Gerhold
+ address1: 1600 Pennsylvania Ave NW
+ city: Washington
+ zipcode: '20500'
+ country_iso: US
+ country_name: United States of America
+ state_text: STATE_ABBR_280
+ 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
+ schema:
+ "$ref": "#/components/schemas/StoreShipment"
+ '404':
+ description: shipment not found
+ content:
+ application/json:
+ example:
+ error:
+ code: record_not_found
+ message: Shipment not found
+ schema:
+ "$ref": "#/components/schemas/ErrorResponse"
+ patch:
+ summary: Select shipping rate for shipment
+ tags:
+ - Shipments
+ security:
+ - api_key: []
+ bearer_auth: []
+ description: Selects a shipping rate for the shipment
+ 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
+ description: Shipment ID
+ schema:
+ type: string
+ - name: token
+ in: query
+ required: false
+ description: Order token for guest access
+ schema:
+ type: string
+ responses:
+ '200':
+ description: shipping rate selected
+ content:
+ application/json:
+ example:
+ id: ship_UkLWZg9DAJ
+ number: H82164636509
+ state: pending
+ tracking: U10000
+ tracking_url:
+ cost: '100.0'
+ display_cost: "$100.00"
+ shipped_at:
+ created_at: '2026-02-16T16:15:54.693Z'
+ updated_at: '2026-02-16T16:15:54.742Z'
+ shipping_method:
+ id: shpm_UkLWZg9DAJ
+ name: UPS Ground
+ code: UPS_GROUND
+ stock_location:
+ id: sloc_UkLWZg9DAJ
+ state_abbr: STATE_ABBR_288
+ name: Cathy O'Keefe
+ address1: 1600 Pennsylvania Ave NW
+ city: Washington
+ zipcode: '20500'
+ country_iso: US
+ country_name: United States of America
+ state_text: STATE_ABBR_288
+ 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
+ schema:
+ "$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/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 found
+ content:
+ application/json:
+ example:
+ id: store_UkLWZg9DAJ
+ name: Spree Test Store
+ url: www.example.com
+ meta_description: Sample store description.
+ meta_keywords:
+ seo_title:
+ 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-16T16:14:50.831Z'
+ updated_at: '2026-02-16T16:14:50.929Z'
+ 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/StoreStore"
+ '401':
+ description: unauthorized - missing API key
+ content:
+ application/json:
+ example:
+ error:
+ code: invalid_token
+ message: Valid API key required
+ schema:
+ "$ref": "#/components/schemas/ErrorResponse"
+ "/api/v3/store/taxonomies":
+ get:
+ summary: List taxonomies
+ tags:
+ - Taxonomies
+ security:
+ - api_key: []
+ description: Returns a list of taxonomies (category hierarchies) for the current
+ store
+ parameters:
+ - name: x-spree-api-key
+ in: 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: 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-16T16:14:50.839Z'
+ updated_at: '2026-02-16T16:14:50.860Z'
+ root_id: txn_UkLWZg9DAJ
+ - id: txnmy_gbHJdmfrXB
+ name: Brands
+ position: 2
+ created_at: '2026-02-16T16:14:50.861Z'
+ updated_at: '2026-02-16T16:14:50.868Z'
+ root_id: txn_gbHJdmfrXB
+ - id: txnmy_EfhxLZ9ck8
+ name: Collections
+ position: 3
+ created_at: '2026-02-16T16:14:50.869Z'
+ updated_at: '2026-02-16T16:14:50.933Z'
+ root_id: txn_EfhxLZ9ck8
+ - id: txnmy_VqXmZF31wY
+ name: taxonomy_11
+ position: 4
+ created_at: '2026-02-16T16:15:55.461Z'
+ updated_at: '2026-02-16T16:15:55.473Z'
+ root_id: txn_OIJLhNcSbf
+ - id: txnmy_uw2YK1rnl0
+ name: taxonomy_12
+ position: 5
+ created_at: '2026-02-16T16:15:55.474Z'
+ updated_at: '2026-02-16T16:15:55.486Z'
+ 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-key
+ in: header
+ required: true
+ schema:
+ type: string
+ - name: id
+ in: path
+ required: true
+ description: Taxonomy ID (prefixed)
+ schema:
+ type: string
+ - name: includes
+ in: query
+ required: false
+ description: Include taxons
+ schema:
type: string
responses:
- '401':
- description: unauthorized - invalid token
+ '200':
+ description: taxonomy found
+ content:
+ application/json:
+ example:
+ id: txnmy_VqXmZF31wY
+ name: taxonomy_17
+ position: 4
+ created_at: '2026-02-16T16:15:55.841Z'
+ updated_at: '2026-02-16T16:15:55.851Z'
+ root_id: txn_OIJLhNcSbf
+ schema:
+ "$ref": "#/components/schemas/StoreTaxonomy"
+ '404':
+ description: taxonomy from other store
content:
application/json:
example:
error:
- code: authentication_required
- message: Authentication required
+ code: record_not_found
+ message: Taxonomy not found
schema:
"$ref": "#/components/schemas/ErrorResponse"
+ "/api/v3/store/taxons/{id}":
+ get:
+ summary: Get a taxon
+ tags:
+ - Taxons
+ security:
+ - api_key: []
+ description: Returns a single taxon by permalink or prefix ID
+ parameters:
+ - name: x-spree-api-key
+ in: header
+ required: true
+ schema:
+ type: string
+ - name: id
+ in: path
+ required: 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)
+ schema:
+ type: string
+ responses:
'200':
- description: profile found
+ description: taxon found by prefix ID
content:
application/json:
example:
- id: cus_UkLWZg9DAJ
- first_name: Andrew
- last_name: Zemlak
- created_at: '2026-02-14T19:48:00.490Z'
- updated_at: '2026-02-14T19:48:00.781Z'
- addresses:
- - id: addr_gbHJdmfrXB
- firstname: John
- lastname: Doe
- full_name: John Doe
- address1: 239 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_249
- state_abbr: STATE_ABBR_249
- state_name: STATE_NAME_249
- - id: addr_UkLWZg9DAJ
- firstname: John
- lastname: Doe
- full_name: John Doe
- address1: 238 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_248
- state_abbr: STATE_ABBR_248
- state_name: STATE_NAME_248
- default_billing_address:
- id: addr_gbHJdmfrXB
- firstname: John
- lastname: Doe
- full_name: John Doe
- address1: 239 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_249
- state_abbr: STATE_ABBR_249
- state_name: STATE_NAME_249
- default_shipping_address:
- id: addr_UkLWZg9DAJ
- firstname: John
- lastname: Doe
- full_name: John Doe
- address1: 238 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_248
- state_abbr: STATE_ABBR_248
- state_name: STATE_NAME_248
+ 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-16T16:15:56.448Z'
+ updated_at: '2026-02-16T16:15:56.468Z'
+ 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/StoreCustomer"
- "/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
+ "$ref": "#/components/schemas/StoreTaxon"
+ '404':
+ description: taxon from other store not accessible
+ content:
+ application/json:
+ example:
+ error:
+ code: record_not_found
+ message: Taxon 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/wishlists":
get:
- summary: List payments
+ summary: List wishlists
tags:
- - Payments
+ - Wishlists
security:
- api_key: []
bearer_auth: []
- description: Returns a list of payments for the specified order
+ description: Returns all wishlists for the authenticated customer
+ parameters:
+ - name: x-spree-api-key
+ in: header
+ required: true
+ schema:
+ type: string
+ - name: Authorization
+ in: 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
responses:
'200':
- description: payments found
+ description: wishlists found
content:
application/json:
example:
data:
- - id: py_UkLWZg9DAJ
- payment_method_id: pm_UkLWZg9DAJ
- state: checkout
- response_code: '12345'
- number: PKVGMSI0
- amount: '110.0'
- display_amount: "$110.00"
- created_at: '2026-02-14T19:48:01.510Z'
- updated_at: '2026-02-14T19:48:01.510Z'
- payment_method:
- id: pm_UkLWZg9DAJ
- name: Credit Card
- description:
- type: Spree::Gateway::Bogus
- meta: {}
+ - id: wl_UkLWZg9DAJ
+ name: My Wishlist
+ token: ZWRmh4UkGyxhDnnsSYkiWAEp
+ created_at: '2026-02-16T16:15:57.727Z'
+ updated_at: '2026-02-16T16:15:57.727Z'
+ is_default: false
+ is_private: true
+ 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/StorePayment"
+ "$ref": "#/components/schemas/StoreWishlist"
meta:
- type: object
- '404':
- description: order not found
+ "$ref": "#/components/schemas/PaginationMeta"
+ '401':
+ description: unauthorized
content:
application/json:
example:
error:
- code: order_not_found
- message: Order not found
+ code: authentication_required
+ message: Authentication required
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
+ post:
+ summary: Create a wishlist
tags:
- - Payments
+ - Wishlists
security:
- api_key: []
bearer_auth: []
- description: Returns a single payment by ID
+ 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
responses:
- '200':
- description: payment found
+ '201':
+ description: wishlist created
content:
application/json:
example:
- id: py_UkLWZg9DAJ
- payment_method_id: pm_UkLWZg9DAJ
- state: checkout
- response_code: '12345'
- number: P8SGVUWG
- amount: '110.0'
- display_amount: "$110.00"
- created_at: '2026-02-14T19:48:02.881Z'
- updated_at: '2026-02-14T19:48:02.881Z'
- payment_method:
- id: pm_UkLWZg9DAJ
- name: Credit Card
- description:
- type: Spree::Gateway::Bogus
+ id: wl_gbHJdmfrXB
+ name: Birthday Ideas
+ token: zwdiBm94i9vDDKuTGDB9TLDV
+ created_at: '2026-02-16T16:15:59.143Z'
+ updated_at: '2026-02-16T16:15:59.143Z'
+ is_default: false
+ is_private: true
schema:
- "$ref": "#/components/schemas/StorePayment"
- '404':
- description: payment not found
+ "$ref": "#/components/schemas/StoreWishlist"
+ '422':
+ description: validation error
content:
application/json:
example:
error:
- code: record_not_found
- message: Payment not found
+ code: validation_error
+ message: Name can't be blank
+ details:
+ name:
+ - can't be blank
schema:
"$ref": "#/components/schemas/ErrorResponse"
- "/api/v3/store/taxons/{id}":
+ 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}":
get:
- summary: Get a taxon
+ summary: Get a wishlist
tags:
- - Taxons
+ - Wishlists
security:
- api_key: []
- description: Returns a single taxon by permalink or prefix ID
+ 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
- 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)
+ description: Include wished_items
schema:
type: string
responses:
- '404':
- description: taxon not found
+ '200':
+ description: wishlist found
content:
application/json:
example:
- error:
- code: record_not_found
- message: Taxon not found
+ id: wl_UkLWZg9DAJ
+ name: My Wishlist
+ token: mAsuyPiGs5tMDrtvxjajSaH5
+ created_at: '2026-02-16T16:16:00.345Z'
+ updated_at: '2026-02-16T16:16:00.345Z'
+ is_default: false
+ is_private: true
schema:
- "$ref": "#/components/schemas/ErrorResponse"
- '401':
- description: unauthorized
+ "$ref": "#/components/schemas/StoreWishlist"
+ '404':
+ description: wishlist not found
content:
application/json:
example:
error:
- code: invalid_token
- message: Valid API key required
+ code: record_not_found
+ message: Wishlist not found
schema:
"$ref": "#/components/schemas/ErrorResponse"
- '200':
- description: taxon found by prefix ID
- content:
- application/json:
- example:
- id: txn_AXs1igzRC6
- name: taxon_23
- permalink: taxonomy-34/taxon-23
- position: 0
- depth: 1
- meta_title:
- meta_description:
- meta_keywords:
- children_count: 1
- created_at: '2026-02-14T19:48:04.412Z'
- updated_at: '2026-02-14T19:48:04.427Z'
- 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"
- "/api/v3/store/orders/{order_id}/shipments":
- get:
- summary: List shipments for an order
+ patch:
+ summary: Update a wishlist
tags:
- - Shipments
+ - Wishlists
security:
- api_key: []
bearer_auth: []
- description: Returns all shipments associated with the order
parameters:
- name: x-spree-api-key
in: header
@@ -3903,100 +4320,51 @@ paths:
type: string
- name: Authorization
in: header
- required: false
+ required: true
schema:
type: string
- - name: order_id
+ - name: id
in: path
required: true
schema:
type: string
- - name: token
- in: query
- required: false
- description: Order token for guest access
- schema:
- type: string
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: shipments found
- content:
- application/json:
- example:
- data:
- - id: ship_UkLWZg9DAJ
- number: H93703696292
- state: pending
- tracking: U10000
- tracking_url:
- cost: '100.0'
- display_cost: "$100.00"
- shipped_at:
- created_at: '2026-02-14T19:48:06.012Z'
- updated_at: '2026-02-14T19:48:06.036Z'
- shipping_method:
- id: shpm_UkLWZg9DAJ
- name: UPS Ground
- code: UPS_GROUND
- stock_location:
- id: sloc_UkLWZg9DAJ
- state_abbr: STATE_ABBR_270
- name: Klara Volkman
- address1: 1600 Pennsylvania Ave NW
- city: Washington
- zipcode: '20500'
- country_iso: US
- country_name: United States of America
- state_text: STATE_ABBR_270
- 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"
- "/api/v3/store/orders/{order_id}/shipments/{id}":
- patch:
- summary: Select shipping rate for shipment
+ description: wishlist updated
+ content:
+ application/json:
+ example:
+ id: wl_UkLWZg9DAJ
+ name: Updated Name
+ token: sCViXvyzpVWHYcCMKgxQL475
+ created_at: '2026-02-16T16:16:01.615Z'
+ updated_at: '2026-02-16T16:16:01.704Z'
+ is_default: false
+ is_private: true
+ schema:
+ "$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
tags:
- - Shipments
+ - Wishlists
security:
- api_key: []
bearer_auth: []
- description: Selects a shipping rate for the shipment
parameters:
- name: x-spree-api-key
in: header
@@ -4005,99 +4373,108 @@ paths:
type: string
- name: Authorization
in: header
- required: false
+ required: true
schema:
type: string
- - name: order_id
+ - name: id
in: path
required: true
schema:
type: string
- - name: id
- in: path
+ responses:
+ '204':
+ description: wishlist deleted
+ "/api/v3/store/wishlists/{wishlist_id}/items":
+ post:
+ summary: Add item to wishlist
+ tags:
+ - Wishlists
+ security:
+ - api_key: []
+ bearer_auth: []
+ description: Adds a variant to the wishlist
+ parameters:
+ - name: x-spree-api-key
+ in: header
required: true
- description: Shipment ID
schema:
type: string
- - name: token
- in: query
- required: false
- description: Order token for guest access
+ - name: Authorization
+ in: header
+ required: true
+ schema:
+ type: string
+ - name: wishlist_id
+ in: path
+ required: true
schema:
type: string
responses:
- '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"
- '200':
- description: shipping rate selected
+ '201':
+ description: item added
content:
application/json:
example:
- id: ship_UkLWZg9DAJ
- number: H29726844584
- state: pending
- tracking: U10000
- tracking_url:
- cost: '100.0'
- display_cost: "$100.00"
- shipped_at:
- created_at: '2026-02-14T19:48:07.773Z'
- updated_at: '2026-02-14T19:48:07.851Z'
- shipping_method:
- id: shpm_UkLWZg9DAJ
- name: UPS Ground
- code: UPS_GROUND
- stock_location:
- id: sloc_UkLWZg9DAJ
- state_abbr: STATE_ABBR_278
- name: Victorina Mayer
- address1: 1600 Pennsylvania Ave NW
- city: Washington
- zipcode: '20500'
- country_iso: US
- country_name: United States of America
- state_text: STATE_ABBR_278
- 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: wi_gbHJdmfrXB
+ variant_id: variant_gbHJdmfrXB
+ wishlist_id: wl_UkLWZg9DAJ
+ quantity: 1
+ created_at: '2026-02-16T16:16:03.066Z'
+ updated_at: '2026-02-16T16:16:03.066Z'
+ variant:
+ id: variant_gbHJdmfrXB
+ product_id: prod_gbHJdmfrXB
+ sku: SKU-132
+ is_master: true
+ options_text: ''
+ track_inventory: true
+ image_count: 0
+ created_at: '2026-02-16T16:16:03.017Z'
+ updated_at: '2026-02-16T16:16:03.040Z'
+ 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/StoreShipment"
+ "$ref": "#/components/schemas/StoreWishedItem"
requestBody:
content:
application/json:
schema:
type: object
properties:
- selected_shipping_rate_id:
+ variant_id:
type: string
- example: shprt_abc123
- description: Shipping rate ID to select
+ example: variant_abc123
+ quantity:
+ type: integer
+ example: 1
required:
- - selected_shipping_rate_id
- get:
- summary: Get a shipment
+ - variant_id
+ "/api/v3/store/wishlists/{wishlist_id}/items/{id}":
+ delete:
+ summary: Remove item from wishlist
tags:
- - Shipments
+ - Wishlists
security:
- api_key: []
bearer_auth: []
- description: Returns details of a specific shipment
parameters:
- name: x-spree-api-key
in: header
@@ -4106,10 +4483,10 @@ paths:
type: string
- name: Authorization
in: header
- required: false
+ required: true
schema:
type: string
- - name: order_id
+ - name: wishlist_id
in: path
required: true
schema:
@@ -4117,74 +4494,19 @@ paths:
- 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: string
responses:
+ '204':
+ description: item removed
'404':
- description: shipment not found
+ description: item not found
content:
application/json:
example:
error:
code: record_not_found
- message: Shipment not found
- schema:
- "$ref": "#/components/schemas/ErrorResponse"
- '200':
- description: shipment found
- content:
- application/json:
- example:
- id: ship_UkLWZg9DAJ
- number: H78713691792
- state: pending
- tracking: U10000
- tracking_url:
- cost: '100.0'
- display_cost: "$100.00"
- shipped_at:
- created_at: '2026-02-14T19:48:09.679Z'
- updated_at: '2026-02-14T19:48:09.713Z'
- shipping_method:
- id: shpm_UkLWZg9DAJ
- name: UPS Ground
- code: UPS_GROUND
- stock_location:
- id: sloc_UkLWZg9DAJ
- state_abbr: STATE_ABBR_286
- name: Cayla Kling
- address1: 1600 Pennsylvania Ave NW
- city: Washington
- zipcode: '20500'
- country_iso: US
- country_name: United States of America
- state_text: STATE_ABBR_286
- 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
- schema:
- "$ref": "#/components/schemas/StoreShipment"
+ message: Wished item not found
servers:
- url: http://{defaultHost}
variables:
@@ -4213,6 +4535,8 @@ tags:
description: Coupon code and gift card management
- name: Payments
description: Payment processing
+- name: Payment Sessions
+ description: Provider-agnostic payment session management
- name: Payment Methods
description: Available payment options
- name: Shipments
@@ -4244,6 +4568,7 @@ x-tagGroups:
- Line Items
- Coupon Codes
- Payments
+ - Payment Sessions
- Payment Methods
- Shipments
- name: Customer
@@ -5539,11 +5864,14 @@ components:
nullable: true
type:
type: string
+ session_required:
+ type: boolean
x-typelizer: true
required:
- id
- name
- type
+ - session_required
StorePayment:
type: object
properties:
@@ -5579,6 +5907,52 @@ components:
- created_at
- updated_at
- payment_method
+ StorePaymentSession:
+ type: object
+ properties:
+ id:
+ type: string
+ status:
+ type: string
+ currency:
+ type: string
+ external_id:
+ type: string
+ external_data:
+ type: object
+ customer_external_id:
+ type: string
+ nullable: true
+ expires_at:
+ type: string
+ nullable: true
+ created_at:
+ type: string
+ updated_at:
+ type: string
+ amount:
+ type: string
+ payment_method_id:
+ type: string
+ order_id:
+ type: string
+ payment_method:
+ "$ref": "#/components/schemas/StorePaymentMethod"
+ payment:
+ "$ref": "#/components/schemas/StorePayment"
+ x-typelizer: true
+ required:
+ - id
+ - status
+ - currency
+ - external_id
+ - external_data
+ - created_at
+ - updated_at
+ - amount
+ - payment_method_id
+ - order_id
+ - payment_method
StorePrice:
type: object
properties: