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.

Added support for storing Order/Cart locale (#13666)

Damian Legawiecb41e9c8dbf92
diff --git a/docs/api-reference/store.yaml b/docs/api-reference/store.yaml
index ef546c821f..18d797ae74 100644
--- a/docs/api-reference/store.yaml
+++ b/docs/api-reference/store.yaml
@@ -640,14 +640,14 @@ paths:
content:
application/json:
example:
- token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImV4cCI6MTc3MjE5MjQ4OH0.zIIKYDb6DNUVIJ29oW9b7bMljuGTdG9kN0JleXdirU0
+ token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImV4cCI6MTc3MjIwODM3MH0.YLtokUuSh_rje6lOhjD2-sHrnEQFYzCzMOqA5Z_lWU4
user:
id: cus_UkLWZg9DAJ
- first_name: Vilma
- last_name: Glover
- created_at: '2026-02-26T11:41:28.416Z'
- updated_at: '2026-02-26T11:41:28.416Z'
+ first_name: Tuan
+ last_name: Deckow
+ created_at: '2026-02-26T16:06:09.736Z'
+ updated_at: '2026-02-26T16:06:09.736Z'
addresses: []
default_billing_address:
default_shipping_address:
@@ -720,14 +720,14 @@ paths:
content:
application/json:
example:
- token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImV4cCI6MTc3MjE5MjQ4OX0.ZMdM0hnUM0BGaGlvdcxtFn7m3ydCaaeWWNosCUyMWPA
+ token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImV4cCI6MTc3MjIwODM3MX0.rNbg7hOKqAXPuGSyqkx_St68urMcafNnSe6oJ8qSR9I
user:
id: cus_UkLWZg9DAJ
first_name: John
last_name: Doe
- created_at: '2026-02-26T11:41:29.858Z'
- updated_at: '2026-02-26T11:41:29.858Z'
+ created_at: '2026-02-26T16:06:11.154Z'
+ updated_at: '2026-02-26T16:06:11.154Z'
addresses: []
default_billing_address:
default_shipping_address:
@@ -813,14 +813,14 @@ paths:
content:
application/json:
example:
- token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImV4cCI6MTc3MjE5MjQ5MH0.VQPyPIHqptxQ64EIMD6y6Kg1UqGDYb797PVoRRxp3GI
+ token: eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX3R5cGUiOiJjdXN0b21lciIsImV4cCI6MTc3MjIwODM3MX0.rNbg7hOKqAXPuGSyqkx_St68urMcafNnSe6oJ8qSR9I
user:
id: cus_UkLWZg9DAJ
- first_name: Caridad
- last_name: Heidenreich
- created_at: '2026-02-26T11:41:30.480Z'
- updated_at: '2026-02-26T11:41:30.480Z'
+ first_name: Brigitte
+ last_name: Murazik
+ created_at: '2026-02-26T16:06:11.709Z'
+ updated_at: '2026-02-26T16:06:11.709Z'
addresses: []
default_billing_address:
default_shipping_address:
@@ -877,12 +877,13 @@ paths:
application/json:
example:
id: or_UkLWZg9DAJ
- number: R889188160
+ number: R662213211
state: cart
- token: VKJg2VsN6Aua1ELeRRuArFia2Az8zdA4cbb
+ token: y4ZWxkrOPzLG4YnvITrMPA1772121972327
special_instructions:
currency: USD
+ locale: en
item_count: 0
shipment_state:
payment_state:
@@ -903,8 +904,8 @@ paths:
total: '0.0'
display_total: "$0.00"
completed_at:
- created_at: '2026-02-26T11:41:31.065Z'
- updated_at: '2026-02-26T11:41:31.065Z'
+ created_at: '2026-02-26T16:06:12.329Z'
+ updated_at: '2026-02-26T16:06:12.329Z'
order_promotions: []
line_items: []
shipments: []
@@ -979,12 +980,13 @@ paths:
application/json:
example:
id: or_UkLWZg9DAJ
- number: R751659322
+ number: R595550244
state: cart
- token: fWqo2DdAKZq7oPfSCS6w5fmr1TRQFy94YXz
+ token: SzBmh4WrnFsoxcg6CzwTeF8brhdmHSAgobu
special_instructions:
currency: USD
+ locale: en
item_count: 1
shipment_state:
payment_state:
@@ -1005,16 +1007,16 @@ paths:
total: '110.0'
display_total: "$110.00"
completed_at:
- created_at: '2026-02-26T11:41:32.078Z'
- updated_at: '2026-02-26T11:41:32.139Z'
+ created_at: '2026-02-26T16:06:13.406Z'
+ updated_at: '2026-02-26T16:06:13.475Z'
order_promotions: []
line_items:
- id: li_UkLWZg9DAJ
variant_id: variant_UkLWZg9DAJ
quantity: 1
currency: USD
- name: Product 22698
- slug: product-22698
+ name: Product 23028
+ slug: product-23028
options_text: ''
price: '10.0'
display_price: "$10.00"
@@ -1033,23 +1035,23 @@ paths:
discounted_amount: '10.0'
display_discounted_amount: "$10.00"
display_compare_at_amount: "$0.00"
- created_at: '2026-02-26T11:41:32.116Z'
- updated_at: '2026-02-26T11:41:32.116Z'
+ created_at: '2026-02-26T16:06:13.449Z'
+ updated_at: '2026-02-26T16:06:13.449Z'
compare_at_amount:
thumbnail_url:
option_values: []
digital_links: []
shipments:
- id: ship_UkLWZg9DAJ
- number: H11214181886
+ number: H44243739611
state: pending
tracking: U10000
tracking_url:
cost: '100.0'
display_cost: "$100.00"
shipped_at:
- created_at: '2026-02-26T11:41:32.122Z'
- updated_at: '2026-02-26T11:41:32.137Z'
+ created_at: '2026-02-26T16:06:13.455Z'
+ updated_at: '2026-02-26T16:06:13.473Z'
shipping_method:
id: shpm_UkLWZg9DAJ
name: UPS Ground
@@ -1057,7 +1059,7 @@ paths:
stock_location:
id: sloc_UkLWZg9DAJ
state_abbr: STATE_ABBR_41
- name: Nancie Torphy
+ name: Jeanette Trantow
address1: 1600 Pennsylvania Ave NW
city: Washington
zipcode: '20500'
@@ -1179,12 +1181,13 @@ paths:
application/json:
example:
id: or_UkLWZg9DAJ
- number: R182778031
+ number: R623991697
state: cart
- token: H344YDqCe2uKxNcetXAH4NAQ8EF3VDSMQXb
+ token: VEAkgfRVvfwxGN5amfHXniD2DpPLfPzU1Gj
special_instructions:
currency: USD
+ locale: en
item_count: 1
shipment_state:
payment_state:
@@ -1205,16 +1208,16 @@ paths:
total: '110.0'
display_total: "$110.00"
completed_at:
- created_at: '2026-02-26T11:41:32.174Z'
- updated_at: '2026-02-26T11:41:32.240Z'
+ created_at: '2026-02-26T16:06:13.535Z'
+ updated_at: '2026-02-26T16:06:13.596Z'
order_promotions: []
line_items:
- id: li_UkLWZg9DAJ
variant_id: variant_UkLWZg9DAJ
quantity: 1
currency: USD
- name: Product 38384
- slug: product-38384
+ name: Product 31522
+ slug: product-31522
options_text: ''
price: '10.0'
display_price: "$10.00"
@@ -1233,23 +1236,23 @@ paths:
discounted_amount: '10.0'
display_discounted_amount: "$10.00"
display_compare_at_amount: "$0.00"
- created_at: '2026-02-26T11:41:32.208Z'
- updated_at: '2026-02-26T11:41:32.208Z'
+ created_at: '2026-02-26T16:06:13.572Z'
+ updated_at: '2026-02-26T16:06:13.572Z'
compare_at_amount:
thumbnail_url:
option_values: []
digital_links: []
shipments:
- id: ship_UkLWZg9DAJ
- number: H91569289732
+ number: H31166112196
state: pending
tracking: U10000
tracking_url:
cost: '100.0'
display_cost: "$100.00"
shipped_at:
- created_at: '2026-02-26T11:41:32.219Z'
- updated_at: '2026-02-26T11:41:32.238Z'
+ created_at: '2026-02-26T16:06:13.578Z'
+ updated_at: '2026-02-26T16:06:13.593Z'
shipping_method:
id: shpm_UkLWZg9DAJ
name: UPS Ground
@@ -1257,7 +1260,7 @@ paths:
stock_location:
id: sloc_UkLWZg9DAJ
state_abbr: STATE_ABBR_45
- name: Lean Armstrong
+ name: Kamilah Frami
address1: 1600 Pennsylvania Ave NW
city: Washington
zipcode: '20500'
@@ -1560,12 +1563,13 @@ paths:
application/json:
example:
id: or_UkLWZg9DAJ
- number: R646142334
+ number: R618569947
state: cart
- token: 4EWac6NtoQ4iDCyDV3Rnyk3cvxJde4K1DhP
+ token: qonjHhmXQzce1dZroHiHihQK35eXUN71Ysn
special_instructions:
currency: USD
+ locale: en
item_count: 1
shipment_state:
payment_state:
@@ -1586,16 +1590,16 @@ paths:
total: '110.0'
display_total: "$110.00"
completed_at:
- created_at: '2026-02-26T11:41:36.404Z'
- updated_at: '2026-02-26T11:41:36.509Z'
+ created_at: '2026-02-26T16:06:18.021Z'
+ updated_at: '2026-02-26T16:06:18.149Z'
order_promotions: []
line_items:
- id: li_UkLWZg9DAJ
variant_id: variant_UkLWZg9DAJ
quantity: 1
currency: USD
- name: Product 87465
- slug: product-87465
+ name: Product 82474
+ slug: product-82474
options_text: ''
price: '10.0'
display_price: "$10.00"
@@ -1614,23 +1618,23 @@ paths:
discounted_amount: '10.0'
display_discounted_amount: "$10.00"
display_compare_at_amount: "$0.00"
- created_at: '2026-02-26T11:41:36.438Z'
- updated_at: '2026-02-26T11:41:36.438Z'
+ created_at: '2026-02-26T16:06:18.058Z'
+ updated_at: '2026-02-26T16:06:18.058Z'
compare_at_amount:
thumbnail_url:
option_values: []
digital_links: []
shipments:
- id: ship_UkLWZg9DAJ
- number: H60652629622
+ number: H03085198747
state: pending
tracking: U10000
tracking_url:
cost: '100.0'
display_cost: "$100.00"
shipped_at:
- created_at: '2026-02-26T11:41:36.445Z'
- updated_at: '2026-02-26T11:41:36.461Z'
+ created_at: '2026-02-26T16:06:18.064Z'
+ updated_at: '2026-02-26T16:06:18.081Z'
shipping_method:
id: shpm_UkLWZg9DAJ
name: UPS Ground
@@ -1638,7 +1642,7 @@ paths:
stock_location:
id: sloc_UkLWZg9DAJ
state_abbr: STATE_ABBR_65
- name: Hannah Goldner
+ name: Tawnya Haley
address1: 1600 Pennsylvania Ave NW
city: Washington
zipcode: '20500'
@@ -1660,12 +1664,12 @@ paths:
- id: py_UkLWZg9DAJ
payment_method_id: pm_UkLWZg9DAJ
state: checkout
- response_code: 1-SC-20260226114136504508
- number: PESIM9MG
+ response_code: 1-SC-20260226160618143531
+ number: PBCWWV3L
amount: '50.0'
display_amount: "$50.00"
- created_at: '2026-02-26T11:41:36.508Z'
- updated_at: '2026-02-26T11:41:36.508Z'
+ created_at: '2026-02-26T16:06:18.148Z'
+ updated_at: '2026-02-26T16:06:18.148Z'
source_type: store_credit
source_id: credit_UkLWZg9DAJ
source:
@@ -1815,12 +1819,13 @@ paths:
application/json:
example:
id: or_UkLWZg9DAJ
- number: R014913128
+ number: R990925008
state: cart
- token: QeSeP3yBs4UG7qFGucinPQqdU2jn6fJP9y6
+ token: iz82uiX3ckDTKsWFnokTjUhzCMY7iBYeeC1
special_instructions:
currency: USD
+ locale: en
item_count: 1
shipment_state:
payment_state:
@@ -1841,16 +1846,16 @@ paths:
total: '110.0'
display_total: "$110.00"
completed_at:
- created_at: '2026-02-26T11:41:38.597Z'
- updated_at: '2026-02-26T11:41:38.707Z'
+ created_at: '2026-02-26T16:06:19.981Z'
+ updated_at: '2026-02-26T16:06:20.097Z'
order_promotions: []
line_items:
- id: li_UkLWZg9DAJ
variant_id: variant_UkLWZg9DAJ
quantity: 1
currency: USD
- name: Product 119631
- slug: product-119631
+ name: Product 113024
+ slug: product-113024
options_text: ''
price: '10.0'
display_price: "$10.00"
@@ -1869,23 +1874,23 @@ paths:
discounted_amount: '10.0'
display_discounted_amount: "$10.00"
display_compare_at_amount: "$0.00"
- created_at: '2026-02-26T11:41:38.630Z'
- updated_at: '2026-02-26T11:41:38.700Z'
+ created_at: '2026-02-26T16:06:20.010Z'
+ updated_at: '2026-02-26T16:06:20.091Z'
compare_at_amount:
thumbnail_url:
option_values: []
digital_links: []
shipments:
- id: ship_UkLWZg9DAJ
- number: H12443084583
+ number: H38489500513
state: pending
tracking: U10000
tracking_url:
cost: '100.0'
display_cost: "$100.00"
shipped_at:
- created_at: '2026-02-26T11:41:38.636Z'
- updated_at: '2026-02-26T11:41:38.649Z'
+ created_at: '2026-02-26T16:06:20.017Z'
+ updated_at: '2026-02-26T16:06:20.034Z'
shipping_method:
id: shpm_UkLWZg9DAJ
name: UPS Ground
@@ -1893,7 +1898,7 @@ paths:
stock_location:
id: sloc_UkLWZg9DAJ
state_abbr: STATE_ABBR_77
- name: Felica Wisozk
+ name: Serafina Jones
address1: 1600 Pennsylvania Ave NW
city: Washington
zipcode: '20500'
@@ -2286,12 +2291,13 @@ paths:
example:
data:
- id: or_UkLWZg9DAJ
- number: R566634890
+ number: R242827422
state: cart
- token: Jjkc5dmbYvLTruXionr6tLBWWHeo6UXGa2r
+ token: rZZsqmHdZzSDzoeiL8qbmGGz4CKveu2gf3K
special_instructions:
currency: USD
+ locale: en
item_count: 1
shipment_state:
payment_state:
@@ -2312,16 +2318,16 @@ paths:
total: '110.0'
display_total: "$110.00"
completed_at:
- created_at: '2026-02-26T11:41:43.597Z'
- updated_at: '2026-02-26T11:41:43.654Z'
+ created_at: '2026-02-26T16:06:24.850Z'
+ updated_at: '2026-02-26T16:06:24.911Z'
order_promotions: []
line_items:
- id: li_UkLWZg9DAJ
variant_id: variant_UkLWZg9DAJ
quantity: 1
currency: USD
- name: Product 137964
- slug: product-137964
+ name: Product 135006
+ slug: product-135006
options_text: ''
price: '10.0'
display_price: "$10.00"
@@ -2340,23 +2346,23 @@ paths:
discounted_amount: '10.0'
display_discounted_amount: "$10.00"
display_compare_at_amount: "$0.00"
- created_at: '2026-02-26T11:41:43.631Z'
- updated_at: '2026-02-26T11:41:43.631Z'
+ created_at: '2026-02-26T16:06:24.886Z'
+ updated_at: '2026-02-26T16:06:24.886Z'
compare_at_amount:
thumbnail_url:
option_values: []
digital_links: []
shipments:
- id: ship_UkLWZg9DAJ
- number: H24896850507
+ number: H90020135968
state: pending
tracking: U10000
tracking_url:
cost: '100.0'
display_cost: "$100.00"
shipped_at:
- created_at: '2026-02-26T11:41:43.637Z'
- updated_at: '2026-02-26T11:41:43.652Z'
+ created_at: '2026-02-26T16:06:24.892Z'
+ updated_at: '2026-02-26T16:06:24.909Z'
shipping_method:
id: shpm_UkLWZg9DAJ
name: UPS Ground
@@ -2364,7 +2370,7 @@ paths:
stock_location:
id: sloc_UkLWZg9DAJ
state_abbr: STATE_ABBR_100
- name: Vernice Koss
+ name: Naoma Renner
address1: 1600 Pennsylvania Ave NW
city: Washington
zipcode: '20500'
@@ -2487,11 +2493,11 @@ paths:
application/json:
example:
id: cus_UkLWZg9DAJ
- first_name: Hazel
- last_name: Shields
- created_at: '2026-02-26T11:41:44.567Z'
- updated_at: '2026-02-26T11:41:44.835Z'
+ first_name: Nobuko
+ last_name: Gutkowski
+ created_at: '2026-02-26T16:06:25.896Z'
+ updated_at: '2026-02-26T16:06:26.171Z'
addresses:
- id: addr_gbHJdmfrXB
firstname: John
@@ -2610,11 +2616,11 @@ paths:
application/json:
example:
id: cus_UkLWZg9DAJ
first_name: Updated
last_name: Name
- created_at: '2026-02-26T11:41:45.122Z'
- updated_at: '2026-02-26T11:41:45.397Z'
+ created_at: '2026-02-26T16:06:26.471Z'
+ updated_at: '2026-02-26T16:06:26.755Z'
addresses:
- id: addr_gbHJdmfrXB
firstname: John
@@ -2823,7 +2829,7 @@ paths:
example:
data:
- id: gc_UkLWZg9DAJ
- code: EF396C89C776625A
+ code: 2AAC52F0F6BB6F94
state: active
currency: USD
amount: 10.0
@@ -2837,8 +2843,8 @@ paths:
redeemed_at:
expired: false
active: true
- created_at: '2026-02-26T11:41:48.509Z'
- updated_at: '2026-02-26T11:41:48.509Z'
+ created_at: '2026-02-26T16:06:29.964Z'
+ updated_at: '2026-02-26T16:06:29.964Z'
meta:
page: 1
limit: 25
@@ -2914,7 +2920,7 @@ paths:
application/json:
example:
id: gc_UkLWZg9DAJ
- code: 68285C498D66CCE3
+ code: 0DE812863F92BC97
state: active
currency: USD
amount: 10.0
@@ -2928,8 +2934,8 @@ paths:
redeemed_at:
expired: false
active: true
- created_at: '2026-02-26T11:41:49.619Z'
- updated_at: '2026-02-26T11:41:49.619Z'
+ created_at: '2026-02-26T16:06:31.064Z'
+ updated_at: '2026-02-26T16:06:31.064Z'
schema:
"$ref": "#/components/schemas/StoreGiftCard"
'404':
@@ -3000,12 +3006,13 @@ paths:
application/json:
example:
id: or_UkLWZg9DAJ
- number: R738120824
+ number: R597448967
state: cart
- token: 2AWHtGTGDftkrAjWm1UoqT33TGtTRzKjAaw
+ token: YW1p6zL8VQkY3kxsmxrxH9e9bkgRHiiHgHL
special_instructions:
currency: USD
+ locale: en
item_count: 3
shipment_state:
payment_state:
@@ -3026,16 +3033,16 @@ paths:
total: '49.98'
display_total: "$49.98"
completed_at:
- created_at: '2026-02-26T11:41:50.751Z'
- updated_at: '2026-02-26T11:41:50.833Z'
+ created_at: '2026-02-26T16:06:32.180Z'
+ updated_at: '2026-02-26T16:06:32.270Z'
order_promotions: []
line_items:
- id: li_UkLWZg9DAJ
variant_id: variant_UkLWZg9DAJ
quantity: 1
currency: USD
- name: Product 214140
- slug: product-214140
+ name: Product 219775
+ slug: product-219775
options_text: ''
price: '10.0'
display_price: "$10.00"
@@ -3054,8 +3061,8 @@ paths:
discounted_amount: '10.0'
display_discounted_amount: "$10.00"
display_compare_at_amount: "$0.00"
- created_at: '2026-02-26T11:41:50.789Z'
- updated_at: '2026-02-26T11:41:50.789Z'
+ created_at: '2026-02-26T16:06:32.219Z'
+ updated_at: '2026-02-26T16:06:32.219Z'
compare_at_amount:
thumbnail_url:
option_values: []
@@ -3064,8 +3071,8 @@ paths:
variant_id: variant_gbHJdmfrXB
quantity: 2
currency: USD
- name: Product 225479
- slug: product-225479
+ name: Product 222849
+ slug: product-222849
options_text: ''
price: '19.99'
display_price: "$19.99"
@@ -3084,8 +3091,8 @@ paths:
discounted_amount: '39.98'
display_discounted_amount: "$39.98"
display_compare_at_amount: "$0.00"
- created_at: '2026-02-26T11:41:50.833Z'
- updated_at: '2026-02-26T11:41:50.833Z'
+ created_at: '2026-02-26T16:06:32.269Z'
+ updated_at: '2026-02-26T16:06:32.269Z'
compare_at_amount:
thumbnail_url:
option_values: []
@@ -3197,12 +3204,13 @@ paths:
application/json:
example:
id: or_UkLWZg9DAJ
- number: R689546946
+ number: R878872326
state: cart
- token: Hw5gWsz98Q9Jj6fg7KRRSbjmq9Ar7YdW5Wo
+ token: scnnzKhFbbvqXTiCAAd8tyvsXPhsDPaiDFd
special_instructions:
currency: USD
+ locale: en
item_count: 5
shipment_state:
payment_state:
@@ -3223,16 +3231,16 @@ paths:
total: '99.95'
display_total: "$99.95"
completed_at:
- created_at: '2026-02-26T11:41:52.605Z'
- updated_at: '2026-02-26T11:41:52.649Z'
+ created_at: '2026-02-26T16:06:34.343Z'
+ updated_at: '2026-02-26T16:06:34.441Z'
order_promotions: []
line_items:
- id: li_UkLWZg9DAJ
variant_id: variant_UkLWZg9DAJ
quantity: 5
currency: USD
- name: Product 251967
- slug: product-251967
+ name: Product 255494
+ slug: product-255494
options_text: ''
price: '19.99'
display_price: "$19.99"
@@ -3251,8 +3259,8 @@ paths:
discounted_amount: '99.95'
display_discounted_amount: "$99.95"
display_compare_at_amount: "$0.00"
- created_at: '2026-02-26T11:41:52.636Z'
- updated_at: '2026-02-26T11:41:52.656Z'
+ created_at: '2026-02-26T16:06:34.402Z'
+ updated_at: '2026-02-26T16:06:34.453Z'
compare_at_amount:
thumbnail_url:
option_values: []
@@ -3346,12 +3354,13 @@ paths:
application/json:
example:
id: or_UkLWZg9DAJ
- number: R480151428
+ number: R607747365
state: cart
- token: kdEaQ6e5i9eXa2sGLf4HUu5MGUZ6EQxtpam
+ token: LfZh7JBDTFdufLQbGsdjhaVS3wFb69ewyYv
special_instructions:
currency: USD
+ locale: en
item_count: 0
shipment_state:
payment_state:
@@ -3372,8 +3381,8 @@ paths:
total: '0.0'
display_total: "$0.00"
completed_at:
- created_at: '2026-02-26T11:41:53.212Z'
- updated_at: '2026-02-26T11:41:53.267Z'
+ created_at: '2026-02-26T16:06:35.093Z'
+ updated_at: '2026-02-26T16:06:35.215Z'
order_promotions: []
line_items: []
shipments: []
@@ -3525,12 +3534,13 @@ paths:
application/json:
example:
id: or_gbHJdmfrXB
- number: R397999758
+ number: R510961949
state: cart
- token: ZakXZ2T7RDAeeByv9aArNYi9FXe397L2vob
+ token: sXxjRt6Dd7wEdkbBmPXfcrQbegPnc3U6aYj
email:
special_instructions:
currency: USD
+ locale: en
item_count: 1
shipment_state:
payment_state:
@@ -3551,16 +3561,16 @@ paths:
total: '110.0'
display_total: "$110.00"
completed_at:
- created_at: '2026-02-26T11:41:55.144Z'
- updated_at: '2026-02-26T11:41:55.200Z'
+ created_at: '2026-02-26T16:06:37.325Z'
+ updated_at: '2026-02-26T16:06:37.378Z'
order_promotions: []
line_items:
- id: li_gbHJdmfrXB
variant_id: variant_gbHJdmfrXB
quantity: 1
currency: USD
- name: Product 30770
- slug: product-30770
+ name: Product 303966
+ slug: product-303966
options_text: ''
price: '10.0'
display_price: "$10.00"
@@ -3579,23 +3589,23 @@ paths:
discounted_amount: '10.0'
display_discounted_amount: "$10.00"
display_compare_at_amount: "$0.00"
- created_at: '2026-02-26T11:41:55.178Z'
- updated_at: '2026-02-26T11:41:55.178Z'
+ created_at: '2026-02-26T16:06:37.355Z'
+ updated_at: '2026-02-26T16:06:37.355Z'
compare_at_amount:
thumbnail_url:
option_values: []
digital_links: []
shipments:
- id: ship_gbHJdmfrXB
- number: H10415395650
+ number: H83993143341
state: pending
tracking: U10000
tracking_url:
cost: '100.0'
display_cost: "$100.00"
shipped_at:
- created_at: '2026-02-26T11:41:55.186Z'
- updated_at: '2026-02-26T11:41:55.198Z'
+ created_at: '2026-02-26T16:06:37.364Z'
+ updated_at: '2026-02-26T16:06:37.376Z'
shipping_method:
id: shpm_gbHJdmfrXB
name: UPS Ground
@@ -3603,7 +3613,7 @@ paths:
stock_location:
id: sloc_UkLWZg9DAJ
state_abbr: STATE_ABBR_153
- name: Maurine Fahey
+ name: Cassandra Kunde
address1: 1600 Pennsylvania Ave NW
city: Washington
zipcode: '20500'
@@ -3729,12 +3739,13 @@ paths:
application/json:
example:
id: or_UkLWZg9DAJ
- number: R256104755
+ number: R211667730
state: cart
- token: zCwMuYrESkzYJ99HGKwz3p3Xsv682f6sQ9j
+ token: Xd1teakK9MvNmzE1xZCQoqELjpKZ9CJLg7K
special_instructions: Leave at door
currency: USD
+ locale: en
item_count: 1
shipment_state:
payment_state:
@@ -3755,16 +3766,16 @@ paths:
total: '110.0'
display_total: "$110.00"
completed_at:
- created_at: '2026-02-26T11:41:57.323Z'
- updated_at: '2026-02-26T11:41:57.379Z'
+ created_at: '2026-02-26T16:06:39.520Z'
+ updated_at: '2026-02-26T16:06:39.592Z'
order_promotions: []
line_items:
- id: li_UkLWZg9DAJ
variant_id: variant_UkLWZg9DAJ
quantity: 1
currency: USD
- name: Product 339850
- slug: product-339850
+ name: Product 335541
+ slug: product-335541
options_text: ''
price: '10.0'
display_price: "$10.00"
@@ -3783,23 +3794,23 @@ paths:
discounted_amount: '10.0'
display_discounted_amount: "$10.00"
display_compare_at_amount: "$0.00"
- created_at: '2026-02-26T11:41:57.352Z'
- updated_at: '2026-02-26T11:41:57.352Z'
+ created_at: '2026-02-26T16:06:39.555Z'
+ updated_at: '2026-02-26T16:06:39.555Z'
compare_at_amount:
thumbnail_url:
option_values: []
digital_links: []
shipments:
- id: ship_UkLWZg9DAJ
- number: H04064517342
+ number: H92007203717
state: pending
tracking: U10000
tracking_url:
cost: '100.0'
display_cost: "$100.00"
shipped_at:
- created_at: '2026-02-26T11:41:57.356Z'
- updated_at: '2026-02-26T11:41:57.369Z'
+ created_at: '2026-02-26T16:06:39.560Z'
+ updated_at: '2026-02-26T16:06:39.576Z'
shipping_method:
id: shpm_UkLWZg9DAJ
name: UPS Ground
@@ -3807,7 +3818,7 @@ paths:
stock_location:
id: sloc_UkLWZg9DAJ
state_abbr: STATE_ABBR_168
- name: Fawn Reichert
+ name: Kathrine Buckridge
address1: 1600 Pennsylvania Ave NW
city: Washington
zipcode: '20500'
@@ -3881,6 +3892,9 @@ paths:
type: string
format: email
+ locale:
+ type: string
+ example: en
special_instructions:
type: string
example: Leave at door
@@ -4000,12 +4014,13 @@ paths:
application/json:
example:
id: or_gbHJdmfrXB
- number: R907135198
+ number: R151590989
state: address
- token: Aue7PmqX5By9sGXftw2v3FQfDNuhroYwjW7
+ token: heV3JDRqV1dtHv4JqzWDM48j21TkXNqMm4m
special_instructions:
currency: USD
+ locale: en
item_count: 1
shipment_state:
payment_state:
@@ -4026,16 +4041,16 @@ paths:
total: '110.0'
display_total: "$110.00"
completed_at:
- created_at: '2026-02-26T11:41:58.680Z'
- updated_at: '2026-02-26T11:41:58.736Z'
+ created_at: '2026-02-26T16:06:40.887Z'
+ updated_at: '2026-02-26T16:06:40.955Z'
order_promotions: []
line_items:
- id: li_gbHJdmfrXB
variant_id: variant_gbHJdmfrXB
quantity: 1
currency: USD
- name: Product 372532
- slug: product-372532
+ name: Product 37843
+ slug: product-37843
options_text: ''
price: '10.0'
display_price: "$10.00"
@@ -4054,23 +4069,23 @@ paths:
discounted_amount: '10.0'
display_discounted_amount: "$10.00"
display_compare_at_amount: "$0.00"
- created_at: '2026-02-26T11:41:58.708Z'
- updated_at: '2026-02-26T11:41:58.708Z'
+ created_at: '2026-02-26T16:06:40.916Z'
+ updated_at: '2026-02-26T16:06:40.916Z'
compare_at_amount:
thumbnail_url:
option_values: []
digital_links: []
shipments:
- id: ship_gbHJdmfrXB
- number: H99162003545
+ number: H52890589487
state: pending
tracking: U10000
tracking_url:
cost: '100.0'
display_cost: "$100.00"
shipped_at:
- created_at: '2026-02-26T11:41:58.714Z'
- updated_at: '2026-02-26T11:41:58.724Z'
+ created_at: '2026-02-26T16:06:40.924Z'
+ updated_at: '2026-02-26T16:06:40.937Z'
shipping_method:
id: shpm_gbHJdmfrXB
name: UPS Ground
@@ -4078,7 +4093,7 @@ paths:
stock_location:
id: sloc_UkLWZg9DAJ
state_abbr: STATE_ABBR_178
- name: Dorthey Raynor
+ name: Tommye Schmeler
address1: 1600 Pennsylvania Ave NW
city: Washington
zipcode: '20500'
@@ -4194,12 +4209,13 @@ paths:
application/json:
example:
id: or_gbHJdmfrXB
- number: R764085831
+ number: R387628664
state: payment
- token: 5h6MRmrnGPMzrQqCypxNFkSP3swWjV3bnmX
+ token: emaMP4HvqjqkeBoQbWzv5orZgWCsdkukyVu
special_instructions:
currency: USD
+ locale: en
item_count: 1
shipment_state: backorder
payment_state: balance_due
@@ -4220,16 +4236,16 @@ paths:
total: '29.99'
display_total: "$29.99"
completed_at:
- created_at: '2026-02-26T11:41:59.981Z'
- updated_at: '2026-02-26T11:42:00.146Z'
+ created_at: '2026-02-26T16:06:42.230Z'
+ updated_at: '2026-02-26T16:06:42.371Z'
order_promotions: []
line_items:
- id: li_gbHJdmfrXB
variant_id: variant_gbHJdmfrXB
quantity: 1
currency: USD
- name: Product 401111
- slug: product-401111
+ name: Product 408267
+ slug: product-408267
options_text: ''
price: '19.99'
display_price: "$19.99"
@@ -4248,23 +4264,23 @@ paths:
discounted_amount: '19.99'
display_discounted_amount: "$19.99"
display_compare_at_amount: "$0.00"
- created_at: '2026-02-26T11:42:00.013Z'
- updated_at: '2026-02-26T11:42:00.065Z'
+ created_at: '2026-02-26T16:06:42.261Z'
+ updated_at: '2026-02-26T16:06:42.312Z'
compare_at_amount:
thumbnail_url:
option_values: []
digital_links: []
shipments:
- id: ship_EfhxLZ9ck8
- number: H63224626064
+ number: H07035178380
state: pending
tracking:
tracking_url:
cost: '10.0'
display_cost: "$10.00"
shipped_at:
- created_at: '2026-02-26T11:42:00.082Z'
- updated_at: '2026-02-26T11:42:00.097Z'
+ created_at: '2026-02-26T16:06:42.330Z'
+ updated_at: '2026-02-26T16:06:42.345Z'
shipping_method:
id: shpm_UkLWZg9DAJ
name: UPS Ground
@@ -4272,7 +4288,7 @@ paths:
stock_location:
id: sloc_UkLWZg9DAJ
state_abbr: STATE_ABBR_188
- name: Allene Upton
+ name: Anitra Conroy
address1: 1600 Pennsylvania Ave NW
city: Washington
zipcode: '20500'
@@ -4387,12 +4403,13 @@ paths:
application/json:
example:
id: or_gbHJdmfrXB
- number: R849591921
+ number: R263983914
state: complete
- token: iovAQVHHnM44CFfuvLaaR7SzSSJ3Eb4N5K3
+ token: 7MN1mJ9Xfbgq5zHdr2rsXsXiLLesNWrMVgh
special_instructions:
currency: USD
+ locale: en
item_count: 1
shipment_state: backorder
payment_state: balance_due
@@ -4412,17 +4429,17 @@ paths:
display_additional_tax_total: "$0.00"
total: '29.99'
display_total: "$29.99"
- completed_at: '2026-02-26T11:42:01.066Z'
- created_at: '2026-02-26T11:42:00.865Z'
- updated_at: '2026-02-26T11:42:01.066Z'
+ completed_at: '2026-02-26T16:06:43.216Z'
+ created_at: '2026-02-26T16:06:42.998Z'
+ updated_at: '2026-02-26T16:06:43.216Z'
order_promotions: []
line_items:
- id: li_gbHJdmfrXB
variant_id: variant_gbHJdmfrXB
quantity: 1
currency: USD
- name: Product 428592
- slug: product-428592
+ name: Product 424684
+ slug: product-424684
options_text: ''
price: '19.99'
display_price: "$19.99"
@@ -4441,23 +4458,23 @@ paths:
discounted_amount: '19.99'
display_discounted_amount: "$19.99"
display_compare_at_amount: "$0.00"
- created_at: '2026-02-26T11:42:00.896Z'
- updated_at: '2026-02-26T11:42:01.064Z'
+ created_at: '2026-02-26T16:06:43.037Z'
+ updated_at: '2026-02-26T16:06:43.214Z'
compare_at_amount:
thumbnail_url:
option_values: []
digital_links: []
shipments:
- id: ship_EfhxLZ9ck8
- number: H43056156600
+ number: H89931858575
state: pending
tracking:
tracking_url:
cost: '10.0'
display_cost: "$10.00"
shipped_at:
- created_at: '2026-02-26T11:42:00.967Z'
- updated_at: '2026-02-26T11:42:01.055Z'
+ created_at: '2026-02-26T16:06:43.117Z'
+ updated_at: '2026-02-26T16:06:43.204Z'
shipping_method:
id: shpm_UkLWZg9DAJ
name: UPS Ground
@@ -4465,7 +4482,7 @@ paths:
stock_location:
id: sloc_UkLWZg9DAJ
state_abbr: STATE_ABBR_194
- name: Earline Ziemann
+ name: Ozella Schumm
address1: 1600 Pennsylvania Ave NW
city: Washington
zipcode: '20500'
@@ -4498,11 +4515,11 @@ paths:
payment_method_id: pm_UkLWZg9DAJ
state: checkout
response_code: '12345'
- number: PY9IZKLF
+ number: PFVO4BKA
amount: '29.99'
display_amount: "$29.99"
- created_at: '2026-02-26T11:42:01.030Z'
- updated_at: '2026-02-26T11:42:01.030Z'
+ created_at: '2026-02-26T16:06:43.173Z'
+ updated_at: '2026-02-26T16:06:43.173Z'
source_type: credit_card
source_id: card_UkLWZg9DAJ
source:
@@ -4726,13 +4743,13 @@ paths:
id: ps_gbHJdmfrXB
status: pending
currency: USD
- external_id: bogus_a7730f19137fd48aa5c9a01b
+ external_id: bogus_a35846384dfec32fa182f9f4
external_data:
- client_secret: bogus_secret_c852937e7ab874a1
+ client_secret: bogus_secret_e12b873786b78a6f
customer_external_id:
expires_at:
- created_at: '2026-02-26T11:42:03.544Z'
- updated_at: '2026-02-26T11:42:03.544Z'
+ created_at: '2026-02-26T16:06:45.817Z'
+ updated_at: '2026-02-26T16:06:45.817Z'
amount: '110.0'
payment_method_id: pm_UkLWZg9DAJ
order_id: or_UkLWZg9DAJ
@@ -4837,13 +4854,13 @@ paths:
id: ps_UkLWZg9DAJ
status: pending
currency: USD
- external_id: bogus_ad8b7d5456c1ea22e091df6e
+ external_id: bogus_b483cb208f4fa3aca12331a4
external_data:
client_secret: secret_123
customer_external_id:
expires_at:
- created_at: '2026-02-26T11:42:04.763Z'
- updated_at: '2026-02-26T11:42:04.763Z'
+ created_at: '2026-02-26T16:06:47.069Z'
+ updated_at: '2026-02-26T16:06:47.069Z'
amount: '110.0'
payment_method_id: pm_UkLWZg9DAJ
order_id: or_UkLWZg9DAJ
@@ -4900,13 +4917,13 @@ paths:
id: ps_UkLWZg9DAJ
status: pending
currency: USD
- external_id: bogus_11e7feb8922c2c7686a26b9b
+ external_id: bogus_7bbf029c12ede1b13b7a38ee
external_data:
client_secret: secret_123
customer_external_id:
expires_at:
- created_at: '2026-02-26T11:42:05.997Z'
- updated_at: '2026-02-26T11:42:06.005Z'
+ created_at: '2026-02-26T16:06:48.322Z'
+ updated_at: '2026-02-26T16:06:48.336Z'
amount: '50.0'
payment_method_id: pm_UkLWZg9DAJ
order_id: or_UkLWZg9DAJ
@@ -4997,13 +5014,13 @@ paths:
id: ps_UkLWZg9DAJ
status: completed
currency: USD
- external_id: bogus_845c259e23ed86fb07b81795
+ external_id: bogus_13f93fdf6baa1fe9071cccdd
external_data:
client_secret: secret_123
customer_external_id:
expires_at:
- created_at: '2026-02-26T11:42:06.613Z'
- updated_at: '2026-02-26T11:42:06.620Z'
+ created_at: '2026-02-26T16:06:48.959Z'
+ updated_at: '2026-02-26T16:06:48.975Z'
amount: '110.0'
payment_method_id: pm_UkLWZg9DAJ
order_id: or_UkLWZg9DAJ
@@ -5083,11 +5100,11 @@ paths:
example:
id: pss_gbHJdmfrXB
status: pending
- external_id: bogus_seti_b8324b7eba44ee3c37352cd2
- external_client_secret: bogus_seti_secret_2d0a953185866158
+ external_id: bogus_seti_83ea1b70ca0777a7731c3ba2
+ external_client_secret: bogus_seti_secret_8cafb86d39c598c5
external_data: {}
- created_at: '2026-02-26T11:42:07.935Z'
- updated_at: '2026-02-26T11:42:07.935Z'
+ created_at: '2026-02-26T16:06:50.178Z'
+ updated_at: '2026-02-26T16:06:50.178Z'
payment_method_id: pm_UkLWZg9DAJ
payment_source_id:
payment_source_type:
@@ -5184,12 +5201,12 @@ paths:
example:
id: pss_UkLWZg9DAJ
status: pending
- external_id: seti_test_0ec1c00ef1231455bb67f22f
- external_client_secret: seti_secret_1df89fced8225818870b5cde
+ external_id: seti_test_75a798944200a6e4b5fa7cfe
+ external_client_secret: seti_secret_5fd237f5eade04d0eb069878
external_data:
client_secret: secret_123
- created_at: '2026-02-26T11:42:09.594Z'
- updated_at: '2026-02-26T11:42:09.594Z'
+ created_at: '2026-02-26T16:06:51.806Z'
+ updated_at: '2026-02-26T16:06:51.806Z'
payment_method_id: pm_UkLWZg9DAJ
payment_source_id:
payment_source_type:
@@ -5262,12 +5279,12 @@ paths:
example:
id: pss_UkLWZg9DAJ
status: completed
- external_id: seti_test_3832dc128510f1b9cf9ecd73
- external_client_secret: seti_secret_29744714ba020766ee14933e
+ external_id: seti_test_9fda407f2651357c30480aa0
+ external_client_secret: seti_secret_dc0c917b78e49b3646c2cbcb
external_data:
client_secret: secret_123
- created_at: '2026-02-26T11:42:10.700Z'
- updated_at: '2026-02-26T11:42:10.710Z'
+ created_at: '2026-02-26T16:06:52.904Z'
+ updated_at: '2026-02-26T16:06:52.915Z'
payment_method_id: pm_UkLWZg9DAJ
payment_source_id: card_UkLWZg9DAJ
payment_source_type: Spree::CreditCard
@@ -5350,11 +5367,11 @@ paths:
payment_method_id: pm_UkLWZg9DAJ
state: checkout
response_code: '12345'
- number: PW9WVRTF
+ number: PY8GCCRD
amount: '110.0'
display_amount: "$110.00"
- created_at: '2026-02-26T11:42:11.870Z'
- updated_at: '2026-02-26T11:42:11.870Z'
+ created_at: '2026-02-26T16:06:54.121Z'
+ updated_at: '2026-02-26T16:06:54.121Z'
source_type: credit_card
source_id: card_UkLWZg9DAJ
source:
@@ -5448,11 +5465,11 @@ paths:
payment_method_id: pm_UkLWZg9DAJ
state: checkout
response_code: '12345'
- number: PM9WBLCJ
+ number: P1IWRAQU
amount: '110.0'
display_amount: "$110.00"
- created_at: '2026-02-26T11:42:13.138Z'
- updated_at: '2026-02-26T11:42:13.138Z'
+ created_at: '2026-02-26T16:06:55.390Z'
+ updated_at: '2026-02-26T16:06:55.390Z'
source_type: credit_card
source_id: card_UkLWZg9DAJ
source:
@@ -5552,18 +5569,17 @@ paths:
example:
data:
- id: prod_UkLWZg9DAJ
- name: Product 597739
+ name: Product 592245
description: |-
- Cumque rem laboriosam non maiores enim voluptas ipsum. Tempore pariatur rerum vero molestiae. Qui libero nobis rerum laboriosam eveniet voluptatibus. Necessitatibus officiis nam delectus enim quibusdam. Perferendis quisquam eveniet et occaecati neque voluptatibus molestiae.
- Odio iste ipsum laborum at corporis dignissimos. Non sed cupiditate ad iure reiciendis accusamus autem molestiae. Cum fugiat veritatis incidunt praesentium sapiente tempora pariatur nobis. Cum repellat hic quos corrupti molestias quas. Laudantium repellat impedit velit libero commodi ullam quas assumenda.
- Repudiandae tenetur nisi suscipit voluptatum. Error excepturi quos reiciendis odio praesentium rem delectus repudiandae. Deserunt earum quaerat ut eveniet assumenda repellat. Ratione perferendis laudantium eveniet doloremque molestiae in cum magni. Accusamus explicabo eveniet sapiente autem omnis occaecati vel.
- slug: product-597739
+ Sapiente vel ipsam possimus ex assumenda tempora praesentium quae. Quia labore culpa voluptate amet veniam natus nulla. Vel velit molestiae ullam esse illo aspernatur officiis architecto.
+ Laudantium eaque delectus error non adipisci. Provident inventore atque culpa ut tenetur aliquid. Magni nemo saepe cupiditate aspernatur quod aliquam explicabo. Aspernatur ab illum suscipit cupiditate ratione esse.
+ slug: product-592245
meta_description:
meta_keywords:
variant_count: 1
- available_on: '2025-02-26T11:42:13.803Z'
- created_at: '2026-02-26T11:42:13.825Z'
- updated_at: '2026-02-26T11:42:13.879Z'
+ available_on: '2025-02-26T16:06:56.098Z'
+ created_at: '2026-02-26T16:06:56.120Z'
+ updated_at: '2026-02-26T16:06:56.176Z'
purchasable: true
in_stock: false
backorderable: true
@@ -5583,18 +5599,19 @@ paths:
price_list_id:
original_price:
- id: prod_gbHJdmfrXB
- name: Product 605739
- description: Dolor veritatis quo pariatur debitis beatae minima.
- At consequuntur adipisci eius expedita. Repellendus consectetur
- nihil reprehenderit perspiciatis incidunt. Mollitia sequi quam
- architecto explicabo a pariatur occaecati saepe.
- slug: product-605739
+ name: Product 607963
+ description: |-
+ Optio ipsum illum tenetur sequi. Nobis aperiam distinctio dolore pariatur. Laboriosam maxime vel facere provident nihil sapiente. Occaecati eum labore praesentium officia ducimus fuga sequi nesciunt. Excepturi deserunt eum beatae quos voluptates nostrum debitis.
+ Eveniet illum exercitationem beatae debitis. Aut alias harum maiores reiciendis exercitationem natus eaque. Ipsam assumenda accusantium voluptas hic vitae voluptates. Vero vel corporis repudiandae fugiat dolor error. Ipsum dolore dolor officiis itaque porro labore a enim.
+ Repellendus quasi amet ex porro. Ratione expedita necessitatibus cupiditate soluta repellat quas magni corrupti. Exercitationem a ut magnam accusamus. Fugiat necessitatibus adipisci ab autem labore non ad laudantium. Accusamus eum ratione quos facere hic.
+ Totam voluptatibus voluptas rem dignissimos sit. Voluptates dolores magni exercitationem voluptate reprehenderit laborum. Laborum explicabo in minus accusamus saepe. Incidunt provident facilis praesentium debitis perspiciatis dolore.
+ slug: product-607963
meta_description:
meta_keywords:
variant_count: 0
- available_on: '2025-02-26T11:42:13.886Z'
- created_at: '2026-02-26T11:42:13.896Z'
- updated_at: '2026-02-26T11:42:13.910Z'
+ available_on: '2025-02-26T16:06:56.183Z'
+ created_at: '2026-02-26T16:06:56.197Z'
+ updated_at: '2026-02-26T16:06:56.211Z'
purchasable: true
in_stock: false
backorderable: true
@@ -5693,17 +5710,18 @@ paths:
application/json:
example:
id: prod_UkLWZg9DAJ
- name: Product 719897
- description: |-
- Dignissimos blanditiis corporis ab accusamus. Perspiciatis magni provident tempora adipisci. Quas eum repellendus incidunt tempore perspiciatis aliquam. Repellendus dolorum libero ducimus ullam cum mollitia. Harum fugit accusamus doloribus quia tenetur culpa.
- Labore sed repellat ipsam accusamus enim aliquid. Incidunt in saepe eius ut quo officiis distinctio. Temporibus debitis labore dolorum ipsa.
- slug: product-719897
+ name: Product 712906
+ description: Hic reprehenderit reiciendis adipisci excepturi. Deleniti
+ voluptas culpa aperiam error ut modi voluptatem. Animi earum ab
+ atque illo occaecati excepturi pariatur rerum. Iusto distinctio
+ eveniet hic consequuntur quod.
+ slug: product-712906
meta_description:
meta_keywords:
variant_count: 1
- available_on: '2025-02-26T11:42:14.838Z'
- created_at: '2026-02-26T11:42:14.863Z'
- updated_at: '2026-02-26T11:42:14.908Z'
+ available_on: '2025-02-26T16:06:57.103Z'
+ created_at: '2026-02-26T16:06:57.124Z'
+ updated_at: '2026-02-26T16:06:57.175Z'
purchasable: true
in_stock: false
backorderable: true
@@ -5936,15 +5954,15 @@ paths:
example:
data:
- id: ship_UkLWZg9DAJ
- number: H83334417576
+ number: H00581383513
state: pending
tracking: U10000
tracking_url:
cost: '100.0'
display_cost: "$100.00"
shipped_at:
- created_at: '2026-02-26T11:42:17.558Z'
- updated_at: '2026-02-26T11:42:17.588Z'
+ created_at: '2026-02-26T16:06:59.878Z'
+ updated_at: '2026-02-26T16:06:59.895Z'
shipping_method:
id: shpm_UkLWZg9DAJ
name: UPS Ground
@@ -5952,7 +5970,7 @@ paths:
stock_location:
id: sloc_UkLWZg9DAJ
state_abbr: STATE_ABBR_280
- name: Migdalia Bechtelar
+ name: Vincenza Schmeler
address1: 1600 Pennsylvania Ave NW
city: Washington
zipcode: '20500'
@@ -6049,15 +6067,15 @@ paths:
application/json:
example:
id: ship_UkLWZg9DAJ
- number: H21826711187
+ number: H44850365869
state: pending
tracking: U10000
tracking_url:
cost: '100.0'
display_cost: "$100.00"
shipped_at:
- created_at: '2026-02-26T11:42:18.837Z'
- updated_at: '2026-02-26T11:42:18.849Z'
+ created_at: '2026-02-26T16:07:01.138Z'
+ updated_at: '2026-02-26T16:07:01.153Z'
shipping_method:
id: shpm_UkLWZg9DAJ
name: UPS Ground
@@ -6065,7 +6083,7 @@ paths:
stock_location:
id: sloc_UkLWZg9DAJ
state_abbr: STATE_ABBR_288
- name: Trudy Steuber
+ name: Juliana Bernhard
address1: 1600 Pennsylvania Ave NW
city: Washington
zipcode: '20500'
@@ -6154,12 +6172,13 @@ paths:
application/json:
example:
id: or_UkLWZg9DAJ
- number: R781156033
+ number: R844460335
state: delivery
- token: LFDS1Xg84tbtChVaGmNzbjqBhRiygYcYySg
+ token: ix19m3o6oMjYx271o1qYgTJjJXbqLQ9Rz3f
special_instructions:
currency: USD
+ locale: en
item_count: 1
shipment_state:
payment_state:
@@ -6180,16 +6199,16 @@ paths:
total: '110.0'
display_total: "$110.00"
completed_at:
- created_at: '2026-02-26T11:42:19.999Z'
- updated_at: '2026-02-26T11:42:20.063Z'
+ created_at: '2026-02-26T16:07:02.412Z'
+ updated_at: '2026-02-26T16:07:02.497Z'
order_promotions: []
line_items:
- id: li_UkLWZg9DAJ
variant_id: variant_UkLWZg9DAJ
quantity: 1
currency: USD
- name: Product 1035745
- slug: product-1035745
+ name: Product 1036143
+ slug: product-1036143
options_text: ''
price: '10.0'
display_price: "$10.00"
@@ -6208,23 +6227,23 @@ paths:
discounted_amount: '10.0'
display_discounted_amount: "$10.00"
display_compare_at_amount: "$0.00"
- created_at: '2026-02-26T11:42:20.031Z'
- updated_at: '2026-02-26T11:42:20.031Z'
+ created_at: '2026-02-26T16:07:02.453Z'
+ updated_at: '2026-02-26T16:07:02.453Z'
compare_at_amount:
thumbnail_url:
option_values: []
digital_links: []
shipments:
- id: ship_UkLWZg9DAJ
- number: H49309318773
+ number: H29850229362
state: pending
tracking: U10000
tracking_url:
cost: '100.0'
display_cost: "$100.00"
shipped_at:
- created_at: '2026-02-26T11:42:20.037Z'
- updated_at: '2026-02-26T11:42:20.062Z'
+ created_at: '2026-02-26T16:07:02.460Z'
+ updated_at: '2026-02-26T16:07:02.496Z'
shipping_method:
id: shpm_UkLWZg9DAJ
name: UPS Ground
@@ -6232,7 +6251,7 @@ paths:
stock_location:
id: sloc_UkLWZg9DAJ
state_abbr: STATE_ABBR_296
- name: Preston Yost
+ name: Annalisa Stoltenberg
address1: 1600 Pennsylvania Ave NW
city: Washington
zipcode: '20500'
@@ -6359,12 +6378,13 @@ paths:
application/json:
example:
id: or_UkLWZg9DAJ
- number: R741382140
+ number: R623082718
state: cart
- token: YgEudija1nniqi9VETBa9sKutCzX3J1J8QN
+ token: RwkhfXM15QXDm4cAX8oHturaRjKhX3L7naL
special_instructions:
currency: USD
+ locale: en
item_count: 1
shipment_state:
payment_state:
@@ -6385,16 +6405,16 @@ paths:
total: '110.0'
display_total: "$110.00"
completed_at:
- created_at: '2026-02-26T11:42:21.503Z'
- updated_at: '2026-02-26T11:42:21.878Z'
+ created_at: '2026-02-26T16:07:03.663Z'
+ updated_at: '2026-02-26T16:07:04.023Z'
order_promotions: []
line_items:
- id: li_UkLWZg9DAJ
variant_id: variant_UkLWZg9DAJ
quantity: 1
currency: USD
- name: Product 1057383
- slug: product-1057383
+ name: Product 1053979
+ slug: product-1053979
options_text: ''
price: '10.0'
display_price: "$10.00"
@@ -6413,23 +6433,23 @@ paths:
discounted_amount: '10.0'
display_discounted_amount: "$10.00"
display_compare_at_amount: "$0.00"
- created_at: '2026-02-26T11:42:21.545Z'
- updated_at: '2026-02-26T11:42:21.545Z'
+ created_at: '2026-02-26T16:07:03.695Z'
+ updated_at: '2026-02-26T16:07:03.695Z'
compare_at_amount:
thumbnail_url:
option_values: []
digital_links: []
shipments:
- id: ship_UkLWZg9DAJ
- number: H24991461272
+ number: H77762020401
state: pending
tracking: U10000
tracking_url:
cost: '100.0'
display_cost: "$100.00"
shipped_at:
- created_at: '2026-02-26T11:42:21.551Z'
- updated_at: '2026-02-26T11:42:21.567Z'
+ created_at: '2026-02-26T16:07:03.701Z'
+ updated_at: '2026-02-26T16:07:03.715Z'
shipping_method:
id: shpm_UkLWZg9DAJ
name: UPS Ground
@@ -6437,7 +6457,7 @@ paths:
stock_location:
id: sloc_UkLWZg9DAJ
state_abbr: STATE_ABBR_304
- name: Lecia Waelchi
+ name: Dexter Keebler
address1: 1600 Pennsylvania Ave NW
city: Washington
zipcode: '20500'
@@ -6459,12 +6479,12 @@ paths:
- id: py_UkLWZg9DAJ
payment_method_id: pm_UkLWZg9DAJ
state: checkout
- response_code: 1-SC-20260226114221873904
- number: PU2GZGSV
+ response_code: 1-SC-20260226160704018453
+ number: PKV3NO72
amount: '10.0'
display_amount: "$10.00"
- created_at: '2026-02-26T11:42:21.877Z'
- updated_at: '2026-02-26T11:42:21.877Z'
+ created_at: '2026-02-26T16:07:04.022Z'
+ updated_at: '2026-02-26T16:07:04.022Z'
source_type: store_credit
source_id: credit_UkLWZg9DAJ
source:
@@ -6592,12 +6612,13 @@ paths:
application/json:
example:
id: or_UkLWZg9DAJ
- number: R114748061
+ number: R686595009
state: cart
- token: 2x3Az8nw9D7ZfzSysX5pEKsdAnK5kJe8jBz
+ token: BEn5aWH53b8zEh26iU6wgZbpfJNvfoBPdza
special_instructions:
currency: USD
+ locale: en
item_count: 1
shipment_state:
payment_state:
@@ -6618,16 +6639,16 @@ paths:
total: '110.0'
display_total: "$110.00"
completed_at:
- created_at: '2026-02-26T11:42:23.064Z'
- updated_at: '2026-02-26T11:42:23.126Z'
+ created_at: '2026-02-26T16:07:05.214Z'
+ updated_at: '2026-02-26T16:07:05.274Z'
order_promotions: []
line_items:
- id: li_UkLWZg9DAJ
variant_id: variant_UkLWZg9DAJ
quantity: 1
currency: USD
- name: Product 107944
- slug: product-107944
+ name: Product 1078975
+ slug: product-1078975
options_text: ''
price: '10.0'
display_price: "$10.00"
@@ -6646,23 +6667,23 @@ paths:
discounted_amount: '10.0'
display_discounted_amount: "$10.00"
display_compare_at_amount: "$0.00"
- created_at: '2026-02-26T11:42:23.102Z'
- updated_at: '2026-02-26T11:42:23.102Z'
+ created_at: '2026-02-26T16:07:05.250Z'
+ updated_at: '2026-02-26T16:07:05.250Z'
compare_at_amount:
thumbnail_url:
option_values: []
digital_links: []
shipments:
- id: ship_UkLWZg9DAJ
- number: H95140039534
+ number: H69105341832
state: pending
tracking: U10000
tracking_url:
cost: '100.0'
display_cost: "$100.00"
shipped_at:
- created_at: '2026-02-26T11:42:23.108Z'
- updated_at: '2026-02-26T11:42:23.123Z'
+ created_at: '2026-02-26T16:07:05.256Z'
+ updated_at: '2026-02-26T16:07:05.272Z'
shipping_method:
id: shpm_UkLWZg9DAJ
name: UPS Ground
@@ -6670,7 +6691,7 @@ paths:
stock_location:
id: sloc_UkLWZg9DAJ
state_abbr: STATE_ABBR_312
- name: Tyson Wisoky
+ name: Della Erdman
address1: 1600 Pennsylvania Ave NW
city: Washington
zipcode: '20500'
@@ -6767,8 +6788,8 @@ paths:
twitter: spreecommerce
instagram: spreecommerce
customer_support_email: [email protected]
- created_at: '2026-02-26T11:41:19.911Z'
- updated_at: '2026-02-26T11:41:20.096Z'
+ created_at: '2026-02-26T16:06:02.056Z'
+ updated_at: '2026-02-26T16:06:02.164Z'
favicon_image_url:
logo_image_url:
social_image_url:
@@ -6841,32 +6862,32 @@ paths:
- id: txnmy_UkLWZg9DAJ
name: Categories
position: 1
- created_at: '2026-02-26T11:41:19.921Z'
- updated_at: '2026-02-26T11:41:19.949Z'
+ created_at: '2026-02-26T16:06:02.066Z'
+ updated_at: '2026-02-26T16:06:02.086Z'
root_id: txn_UkLWZg9DAJ
- id: txnmy_gbHJdmfrXB
name: Brands
position: 2
- created_at: '2026-02-26T11:41:19.950Z'
- updated_at: '2026-02-26T11:41:19.967Z'
+ created_at: '2026-02-26T16:06:02.087Z'
+ updated_at: '2026-02-26T16:06:02.097Z'
root_id: txn_gbHJdmfrXB
- id: txnmy_EfhxLZ9ck8
name: Collections
position: 3
- created_at: '2026-02-26T11:41:19.968Z'
- updated_at: '2026-02-26T11:41:20.099Z'
+ created_at: '2026-02-26T16:06:02.099Z'
+ updated_at: '2026-02-26T16:06:02.167Z'
root_id: txn_EfhxLZ9ck8
- id: txnmy_VqXmZF31wY
name: taxonomy_11
position: 4
- created_at: '2026-02-26T11:42:23.181Z'
- updated_at: '2026-02-26T11:42:23.190Z'
+ created_at: '2026-02-26T16:07:05.347Z'
+ updated_at: '2026-02-26T16:07:05.355Z'
root_id: txn_OIJLhNcSbf
- id: txnmy_uw2YK1rnl0
name: taxonomy_12
position: 5
- created_at: '2026-02-26T11:42:23.191Z'
- updated_at: '2026-02-26T11:42:23.201Z'
+ created_at: '2026-02-26T16:07:05.356Z'
+ updated_at: '2026-02-26T16:07:05.363Z'
root_id: txn_AXs1igzRC6
meta:
page: 1
@@ -6946,8 +6967,8 @@ paths:
id: txnmy_VqXmZF31wY
name: taxonomy_17
position: 4
- created_at: '2026-02-26T11:42:23.488Z'
- updated_at: '2026-02-26T11:42:23.496Z'
+ created_at: '2026-02-26T16:07:05.634Z'
+ updated_at: '2026-02-26T16:07:05.642Z'
root_id: txn_OIJLhNcSbf
schema:
"$ref": "#/components/schemas/StoreTaxonomy"
@@ -7023,8 +7044,8 @@ paths:
meta_description:
meta_keywords:
children_count: 0
- created_at: '2026-02-26T11:41:19.936Z'
- updated_at: '2026-02-26T11:41:19.947Z'
+ created_at: '2026-02-26T16:06:02.077Z'
+ updated_at: '2026-02-26T16:06:02.085Z'
parent_id:
taxonomy_id: txnmy_UkLWZg9DAJ
description: ''
@@ -7043,8 +7064,8 @@ paths:
meta_description:
meta_keywords:
children_count: 0
- created_at: '2026-02-26T11:41:19.955Z'
- updated_at: '2026-02-26T11:41:19.965Z'
+ created_at: '2026-02-26T16:06:02.090Z'
+ updated_at: '2026-02-26T16:06:02.093Z'
parent_id:
taxonomy_id: txnmy_gbHJdmfrXB
description: ''
@@ -7063,8 +7084,8 @@ paths:
meta_description:
meta_keywords:
children_count: 2
- created_at: '2026-02-26T11:41:19.971Z'
- updated_at: '2026-02-26T11:41:20.098Z'
+ created_at: '2026-02-26T16:06:02.102Z'
+ updated_at: '2026-02-26T16:06:02.167Z'
parent_id:
taxonomy_id: txnmy_EfhxLZ9ck8
description: ''
@@ -7083,8 +7104,8 @@ paths:
meta_description:
meta_keywords:
children_count: 0
- created_at: '2026-02-26T11:41:19.986Z'
- updated_at: '2026-02-26T11:41:19.990Z'
+ created_at: '2026-02-26T16:06:02.114Z'
+ updated_at: '2026-02-26T16:06:02.115Z'
parent_id: txn_EfhxLZ9ck8
taxonomy_id: txnmy_EfhxLZ9ck8
description: ''
@@ -7103,8 +7124,8 @@ paths:
meta_description:
meta_keywords:
children_count: 0
- created_at: '2026-02-26T11:41:20.008Z'
- updated_at: '2026-02-26T11:41:20.013Z'
+ created_at: '2026-02-26T16:06:02.126Z'
+ updated_at: '2026-02-26T16:06:02.127Z'
parent_id: txn_EfhxLZ9ck8
taxonomy_id: txnmy_EfhxLZ9ck8
description: ''
@@ -7123,8 +7144,8 @@ paths:
meta_description:
meta_keywords:
children_count: 1
- created_at: '2026-02-26T11:42:23.918Z'
- updated_at: '2026-02-26T11:42:23.978Z'
+ created_at: '2026-02-26T16:07:06.138Z'
+ updated_at: '2026-02-26T16:07:06.247Z'
parent_id:
taxonomy_id: txnmy_VqXmZF31wY
description: ''
@@ -7143,8 +7164,8 @@ paths:
meta_description:
meta_keywords:
children_count: 1
- created_at: '2026-02-26T11:42:23.928Z'
- updated_at: '2026-02-26T11:42:23.977Z'
+ created_at: '2026-02-26T16:07:06.161Z'
+ updated_at: '2026-02-26T16:07:06.246Z'
parent_id: txn_OIJLhNcSbf
taxonomy_id: txnmy_VqXmZF31wY
description: ''
@@ -7163,8 +7184,8 @@ paths:
meta_description:
meta_keywords:
children_count: 0
- created_at: '2026-02-26T11:42:23.941Z'
- updated_at: '2026-02-26T11:42:23.948Z'
+ created_at: '2026-02-26T16:07:06.178Z'
+ updated_at: '2026-02-26T16:07:06.191Z'
parent_id: txn_AXs1igzRC6
taxonomy_id: txnmy_VqXmZF31wY
description: ''
@@ -7259,8 +7280,8 @@ paths:
meta_description:
meta_keywords:
children_count: 1
- created_at: '2026-02-26T11:42:24.546Z'
- updated_at: '2026-02-26T11:42:24.583Z'
+ created_at: '2026-02-26T16:07:06.841Z'
+ updated_at: '2026-02-26T16:07:06.881Z'
parent_id: txn_OIJLhNcSbf
taxonomy_id: txnmy_VqXmZF31wY
description: ''
@@ -7346,17 +7367,19 @@ paths:
example:
data:
- id: prod_UkLWZg9DAJ
- name: Product 115777
- description: Labore culpa ipsam delectus magni voluptates sed. Ipsa
- porro provident atque culpa reiciendis et deleniti numquam. Dolorem
- magni saepe fugiat et modi.
- slug: product-115777
+ name: Product 1151850
+ description: |-
+ Fugiat facilis itaque impedit veritatis suscipit porro doloremque ab. Optio vitae ab tempora aliquid pariatur eveniet doloribus. Ducimus reprehenderit repudiandae ut voluptatum dolorem officiis. Quos ducimus architecto laborum aliquid.
+ Voluptatem voluptate blanditiis esse ducimus animi officia. Ducimus commodi odit dolores consequuntur. Debitis aut molestiae cumque placeat. Amet at a minima sit illo.
+ Soluta aperiam amet doloremque iste cumque animi laboriosam. Assumenda aliquam porro perferendis magnam quibusdam doloribus error. Dignissimos tenetur deserunt harum ratione animi. Quisquam atque eveniet autem molestiae harum voluptas laudantium facilis.
+ Laboriosam minus pariatur corrupti modi. Officiis tempore temporibus in provident ratione culpa. Iste architecto omnis beatae distinctio. Nobis ea molestias possimus tempora. Quasi nam est in odit.
+ slug: product-1151850
meta_description:
meta_keywords:
variant_count: 0
- available_on: '2025-02-26T11:42:25.403Z'
- created_at: '2026-02-26T11:42:25.418Z'
- updated_at: '2026-02-26T11:42:25.431Z'
+ available_on: '2025-02-26T16:07:07.825Z'
+ created_at: '2026-02-26T16:07:07.843Z'
+ updated_at: '2026-02-26T16:07:07.859Z'
purchasable: true
in_stock: false
backorderable: true
@@ -7467,9 +7490,9 @@ paths:
data:
- id: wl_UkLWZg9DAJ
name: My Wishlist
- token: SBnJKB1Z4KN5cmrFcajeeVQG
- created_at: '2026-02-26T11:42:26.520Z'
- updated_at: '2026-02-26T11:42:26.520Z'
+ token: 4yP2gFKtvZqvwXsvs9ccmjDU
+ created_at: '2026-02-26T16:07:08.934Z'
+ updated_at: '2026-02-26T16:07:08.934Z'
is_default: false
is_private: true
meta:
@@ -7545,9 +7568,9 @@ paths:
example:
id: wl_gbHJdmfrXB
name: Birthday Ideas
- token: D7McnnLj8hFJy7KYBdg3884h
- created_at: '2026-02-26T11:42:27.703Z'
- updated_at: '2026-02-26T11:42:27.703Z'
+ token: bEZMqZHuvxFfo8SwSMzDBbxR
+ created_at: '2026-02-26T16:07:10.155Z'
+ updated_at: '2026-02-26T16:07:10.155Z'
is_default: false
is_private: true
schema:
@@ -7636,9 +7659,9 @@ paths:
example:
id: wl_UkLWZg9DAJ
name: My Wishlist
- token: oQc8GTNzvZCPWUb44PMtgXwY
- created_at: '2026-02-26T11:42:28.831Z'
- updated_at: '2026-02-26T11:42:28.831Z'
+ token: GQXNVQ8hEz2HaDVmSxti5QAg
+ created_at: '2026-02-26T16:07:11.274Z'
+ updated_at: '2026-02-26T16:07:11.274Z'
is_default: false
is_private: true
schema:
@@ -7700,9 +7723,9 @@ paths:
example:
id: wl_UkLWZg9DAJ
name: Updated Name
- token: vkkaJGr1xkWgQsCokngNKCYe
- created_at: '2026-02-26T11:42:29.972Z'
- updated_at: '2026-02-26T11:42:30.012Z'
+ token: zxYXceeDiZD1MeKy7AA9RvK8
+ created_at: '2026-02-26T16:07:12.483Z'
+ updated_at: '2026-02-26T16:07:12.541Z'
is_default: false
is_private: true
schema:
@@ -7814,8 +7837,8 @@ paths:
variant_id: variant_gbHJdmfrXB
wishlist_id: wl_UkLWZg9DAJ
quantity: 1
- created_at: '2026-02-26T11:42:31.204Z'
- updated_at: '2026-02-26T11:42:31.204Z'
+ created_at: '2026-02-26T16:07:13.772Z'
+ updated_at: '2026-02-26T16:07:13.772Z'
variant:
id: variant_gbHJdmfrXB
product_id: prod_gbHJdmfrXB
@@ -7824,8 +7847,8 @@ paths:
options_text: ''
track_inventory: true
image_count: 0
- created_at: '2026-02-26T11:42:31.185Z'
- updated_at: '2026-02-26T11:42:31.195Z'
+ created_at: '2026-02-26T16:07:13.745Z'
+ updated_at: '2026-02-26T16:07:13.756Z'
thumbnail:
purchasable: true
in_stock: false
@@ -8225,6 +8248,9 @@ components:
nullable: true
currency:
type: string
+ locale:
+ type: string
+ nullable: true
item_count:
type: number
shipment_state:
@@ -8340,6 +8366,7 @@ components:
- email
- special_instructions
- currency
+ - locale
- item_count
- shipment_state
- payment_state
@@ -9585,6 +9612,9 @@ components:
nullable: true
currency:
type: string
+ locale:
+ type: string
+ nullable: true
item_count:
type: number
shipment_state:
@@ -9668,6 +9698,7 @@ components:
- email
- special_instructions
- currency
+ - locale
- item_count
- shipment_state
- payment_state
diff --git a/packages/sdk/src/types/generated/AdminOrder.ts b/packages/sdk/src/types/generated/AdminOrder.ts
index 36b92893b8..36a2f51209 100644
--- a/packages/sdk/src/types/generated/AdminOrder.ts
+++ b/packages/sdk/src/types/generated/AdminOrder.ts
@@ -1,4 +1,4 @@
-// Typelizer digest 27fb550b430b537a9a47f74394f755f4
+// Typelizer digest b633a39a364d8a8ed7451adf14156950
//
// DO NOT MODIFY: This file was automatically generated by Typelizer.
import type {StoreOrderPromotion, StoreLineItem, StoreShipment, StorePayment, StoreAddress, StorePaymentMethod, AdminCustomer} from '@/types'
@@ -11,6 +11,7 @@ type AdminOrder = {
email: string | null;
special_instructions: string | null;
currency: string;
+ locale: string | null;
item_count: number;
shipment_state: string | null;
payment_state: string | null;
diff --git a/packages/sdk/src/types/generated/StoreOrder.ts b/packages/sdk/src/types/generated/StoreOrder.ts
index 1606db970f..e72754c499 100644
--- a/packages/sdk/src/types/generated/StoreOrder.ts
+++ b/packages/sdk/src/types/generated/StoreOrder.ts
@@ -1,4 +1,4 @@
-// Typelizer digest c18c0a31a6e4c871248911fa95bd6dbe
+// Typelizer digest 548a010f17c42be5433624531dd6783a
//
// DO NOT MODIFY: This file was automatically generated by Typelizer.
import type {StoreOrderPromotion, StoreLineItem, StoreShipment, StorePayment, StoreAddress, StorePaymentMethod} from '@/types'
@@ -11,6 +11,7 @@ type StoreOrder = {
email: string | null;
special_instructions: string | null;
currency: string;
+ locale: string | null;
item_count: number;
shipment_state: string | null;
payment_state: string | null;
diff --git a/packages/sdk/src/types/index.ts b/packages/sdk/src/types/index.ts
index 730413eea2..7c5b1f0ad2 100644
--- a/packages/sdk/src/types/index.ts
+++ b/packages/sdk/src/types/index.ts
@@ -104,6 +104,7 @@ export interface AddressParams {
export interface UpdateOrderParams {
email?: string;
currency?: string;
+ locale?: string;
special_instructions?: string;
/** Existing address ID to use */
bill_address_id?: string;
diff --git a/packages/sdk/src/zod/generated/AdminOrder.ts b/packages/sdk/src/zod/generated/AdminOrder.ts
index 1982a7a6ad..65816322ef 100644
--- a/packages/sdk/src/zod/generated/AdminOrder.ts
+++ b/packages/sdk/src/zod/generated/AdminOrder.ts
@@ -16,6 +16,7 @@ export const AdminOrderSchema: z.ZodObject<any> = z.object({
email: z.string().nullable(),
special_instructions: z.string().nullable(),
currency: z.string(),
+ locale: z.string().nullable(),
item_count: z.number(),
shipment_state: z.string().nullable(),
payment_state: z.string().nullable(),
diff --git a/packages/sdk/src/zod/generated/StoreOrder.ts b/packages/sdk/src/zod/generated/StoreOrder.ts
index 3236581f81..820e1e6c6c 100644
--- a/packages/sdk/src/zod/generated/StoreOrder.ts
+++ b/packages/sdk/src/zod/generated/StoreOrder.ts
@@ -15,6 +15,7 @@ export const StoreOrderSchema = z.object({
email: z.string().nullable(),
special_instructions: z.string().nullable(),
currency: z.string(),
+ locale: z.string().nullable(),
item_count: z.number(),
shipment_state: z.string().nullable(),
payment_state: z.string().nullable(),
diff --git a/spree/admin/app/presenters/spree/admin/order_summary_presenter.rb b/spree/admin/app/presenters/spree/admin/order_summary_presenter.rb
index aa0c1952d0..e2e43d03db 100644
--- a/spree/admin/app/presenters/spree/admin/order_summary_presenter.rb
+++ b/spree/admin/app/presenters/spree/admin/order_summary_presenter.rb
@@ -13,6 +13,7 @@ module Spree
[
*metadata_rows,
:separator,
+ locale_row,
currency_row,
subtotal_row,
shipping_row,
@@ -71,6 +72,17 @@ module Spree
rows
end
+ def locale_row
+ return nil if order.locale.blank?
+
+ {
+ label: Spree.t(:locale),
+ value: order.locale,
+ id: 'locale',
+ type: :code
+ }
+ end
+
def currency_row
{
label: Spree.t(:currency),
diff --git a/spree/admin/spec/presenters/spree/admin/order_summary_presenter_spec.rb b/spree/admin/spec/presenters/spree/admin/order_summary_presenter_spec.rb
index ba79f3f66d..9b4aaddce7 100644
--- a/spree/admin/spec/presenters/spree/admin/order_summary_presenter_spec.rb
+++ b/spree/admin/spec/presenters/spree/admin/order_summary_presenter_spec.rb
@@ -79,6 +79,29 @@ RSpec.describe Spree::Admin::OrderSummaryPresenter do
end
end
+ describe '#locale_row' do
+ subject { presenter.locale_row }
+
+ context 'when order has locale' do
+ before { order.update_column(:locale, 'fr') }
+
+ it 'returns locale info' do
+ expect(subject[:label]).to eq(Spree.t(:locale))
+ expect(subject[:value]).to eq('fr')
+ expect(subject[:type]).to eq(:code)
+ expect(subject[:id]).to eq('locale')
+ end
+ end
+
+ context 'when order has no locale' do
+ before { order.update_column(:locale, nil) }
+
+ it 'returns nil' do
+ expect(subject).to be_nil
+ end
+ end
+ end
+
describe '#currency_row' do
subject { presenter.currency_row }
diff --git a/spree/api/app/controllers/spree/api/v3/store/cart_controller.rb b/spree/api/app/controllers/spree/api/v3/store/cart_controller.rb
index f89e9966d0..5171871c93 100644
--- a/spree/api/app/controllers/spree/api/v3/store/cart_controller.rb
+++ b/spree/api/app/controllers/spree/api/v3/store/cart_controller.rb
@@ -11,13 +11,19 @@ module Spree
# Creates a new shopping cart (order)
# Can be created by guests or authenticated customers
def create
- @cart = Spree::Order.create!(
+ result = Spree.cart_create_service.call(
+ user: current_user,
store: current_store,
currency: current_currency,
- user: current_user # nil for guests
+ locale: current_locale
)
- render json: serialize_resource(@cart), status: :created
+ if result.success?
+ @cart = result.value
+ render json: serialize_resource(@cart), status: :created
+ else
+ render_service_error(result.error.to_s)
+ end
end
# GET /api/v3/store/cart
diff --git a/spree/api/app/controllers/spree/api/v3/store/orders_controller.rb b/spree/api/app/controllers/spree/api/v3/store/orders_controller.rb
index 18f6874bce..c9d84c43d5 100644
--- a/spree/api/app/controllers/spree/api/v3/store/orders_controller.rb
+++ b/spree/api/app/controllers/spree/api/v3/store/orders_controller.rb
@@ -103,6 +103,7 @@ module Spree
params.permit(
:email,
:currency,
+ :locale,
:special_instructions,
:ship_address_id,
:bill_address_id,
diff --git a/spree/api/app/serializers/spree/api/v3/order_serializer.rb b/spree/api/app/serializers/spree/api/v3/order_serializer.rb
index 102ce254b3..5d435ed7ec 100644
--- a/spree/api/app/serializers/spree/api/v3/order_serializer.rb
+++ b/spree/api/app/serializers/spree/api/v3/order_serializer.rb
@@ -5,7 +5,7 @@ module Spree
# Customer-facing order data
class OrderSerializer < BaseSerializer
typelize number: :string, state: :string, token: :string, email: [:string, nullable: true],
- special_instructions: [:string, nullable: true], currency: :string, item_count: :number,
+ special_instructions: [:string, nullable: true], currency: :string, locale: [:string, nullable: true], item_count: :number,
shipment_state: [:string, nullable: true], payment_state: [:string, nullable: true],
item_total: :string, display_item_total: :string,
ship_total: :string, display_ship_total: :string,
@@ -18,7 +18,7 @@ module Spree
bill_address: { nullable: true }, ship_address: { nullable: true }
attributes :number, :state, :token, :email, :special_instructions,
- :currency, :item_count, :shipment_state, :payment_state,
+ :currency, :locale, :item_count, :shipment_state, :payment_state,
:item_total, :display_item_total, :ship_total, :display_ship_total,
:adjustment_total, :display_adjustment_total, :promo_total, :display_promo_total,
:tax_total, :display_tax_total, :included_tax_total, :display_included_tax_total,
diff --git a/spree/api/app/services/spree/api/v3/orders/update.rb b/spree/api/app/services/spree/api/v3/orders/update.rb
index 3934187aa2..cb7e1a5d95 100644
--- a/spree/api/app/services/spree/api/v3/orders/update.rb
+++ b/spree/api/app/services/spree/api/v3/orders/update.rb
@@ -54,6 +54,7 @@ module Spree
order.email = params[:email] if params[:email].present?
order.special_instructions = params[:special_instructions] if params.key?(:special_instructions)
order.currency = params[:currency].upcase if params[:currency].present?
+ order.locale = params[:locale] if params[:locale].present?
end
def assign_address(address_type)
diff --git a/spree/api/spec/controllers/spree/api/v3/store/cart_controller_spec.rb b/spree/api/spec/controllers/spree/api/v3/store/cart_controller_spec.rb
index 1d78706725..0818819b9f 100644
--- a/spree/api/spec/controllers/spree/api/v3/store/cart_controller_spec.rb
+++ b/spree/api/spec/controllers/spree/api/v3/store/cart_controller_spec.rb
@@ -32,6 +32,13 @@ RSpec.describe Spree::Api::V3::Store::CartController, type: :controller do
expect(Spree::Order.last.store_id).to eq(store.id)
end
+ it 'sets locale on the cart' do
+ post :create
+
+ expect(json_response['locale']).to be_present
+ expect(Spree::Order.last.locale).to be_present
+ end
+
context 'for authenticated user' do
before do
request.headers['Authorization'] = "Bearer #{jwt_token}"
diff --git a/spree/api/spec/controllers/spree/api/v3/store/orders_controller_spec.rb b/spree/api/spec/controllers/spree/api/v3/store/orders_controller_spec.rb
index 2768956afb..534ae2370d 100644
--- a/spree/api/spec/controllers/spree/api/v3/store/orders_controller_spec.rb
+++ b/spree/api/spec/controllers/spree/api/v3/store/orders_controller_spec.rb
@@ -104,6 +104,24 @@ RSpec.describe Spree::Api::V3::Store::OrdersController, type: :controller do
expect(response).to have_http_status(:ok)
expect(order.reload.special_instructions).to eq('Leave at door')
end
+
+ it 'updates the order locale' do
+ allow(store).to receive(:supported_locales_list).and_return(['en', 'fr'])
+
+ patch :update, params: { id: order.to_param, locale: 'fr' }
+
+ expect(response).to have_http_status(:ok)
+ expect(order.reload.locale).to eq('fr')
+ expect(json_response['locale']).to eq('fr')
+ end
+
+ it 'returns error when locale is not supported by store' do
+ allow(store).to receive(:supported_locales_list).and_return(['en'])
+
+ patch :update, params: { id: order.to_param, locale: 'de' }
+
+ expect(response).to have_http_status(:unprocessable_entity)
+ end
end
context 'with order token' do
diff --git a/spree/api/spec/integration/spree/api/v3/store/orders_spec.rb b/spree/api/spec/integration/spree/api/v3/store/orders_spec.rb
index 1d1ca9116d..0032d72871 100644
--- a/spree/api/spec/integration/spree/api/v3/store/orders_spec.rb
+++ b/spree/api/spec/integration/spree/api/v3/store/orders_spec.rb
@@ -112,6 +112,7 @@ RSpec.describe 'Orders API', type: :request, swagger_doc: 'api-reference/store.y
type: :object,
properties: {
email: { type: :string, format: 'email', example: '[email protected]' },
+ locale: { type: :string, example: 'en' },
special_instructions: { type: :string, example: 'Leave at door' },
bill_address: {
type: :object,
diff --git a/spree/core/app/mailers/spree/base_mailer.rb b/spree/core/app/mailers/spree/base_mailer.rb
index 2c2301b70b..f6b3ab32dd 100644
--- a/spree/core/app/mailers/spree/base_mailer.rb
+++ b/spree/core/app/mailers/spree/base_mailer.rb
@@ -47,8 +47,11 @@ module Spree
ActionMailer::Base.default_url_options[:host] = host_url
end
+ # Sets the I18n locale for the email.
+ # Prefers the order's locale (the language the customer used),
+ # falls back to the store's default locale.
def set_email_locale
- locale = @order&.store&.default_locale || current_store&.default_locale
+ locale = @order&.locale.presence || @order&.store&.default_locale || current_store&.default_locale
I18n.locale = locale if locale.present?
end
end
diff --git a/spree/core/app/models/spree/order.rb b/spree/core/app/models/spree/order.rb
index 326b2a17b1..c6dd41c8d3 100644
--- a/spree/core/app/models/spree/order.rb
+++ b/spree/core/app/models/spree/order.rb
@@ -159,6 +159,7 @@ module Spree
# Needs to happen before save_permalink is called
before_validation :ensure_store_presence
before_validation :ensure_currency_presence
+ before_validation :ensure_locale_presence
before_validation :clone_billing_address, if: :use_billing?
before_validation :clone_shipping_address, if: :use_shipping?
@@ -174,6 +175,7 @@ module Spree
validates :item_count, numericality: { greater_than_or_equal_to: 0, less_than: 2**31, only_integer: true, allow_blank: true }
validates :store
validates :currency
+ validates :locale
end
validates :payment_state, inclusion: { in: PAYMENT_STATES, allow_blank: true }
validates :shipment_state, inclusion: { in: SHIPMENT_STATES, allow_blank: true }
@@ -186,6 +188,7 @@ module Spree
validates :promo_total, NEGATIVE_MONEY_VALIDATION
validates :total, MONEY_VALIDATION
validate :currency_must_be_supported_by_store
+ validate :locale_must_be_supported_by_store
delegate :update_totals, :persist_totals, to: :updater
delegate :merge!, to: :merger
@@ -997,6 +1000,12 @@ module Spree
self.currency ||= store&.default_currency
end
+ # Sets the locale from Spree::Current.locale when not already set.
+ # Called as a before_validation callback, mirroring ensure_currency_presence.
+ def ensure_locale_presence
+ self.locale ||= Spree::Current.locale
+ end
+
def currency_must_be_supported_by_store
return if currency.blank? || store.blank?
@@ -1006,6 +1015,16 @@ module Spree
end
end
+ # Validates that the order's locale is within the store's supported locales.
+ # Mirrors currency_must_be_supported_by_store.
+ def locale_must_be_supported_by_store
+ return if locale.blank? || store.blank?
+
+ unless store.supported_locales_list.include?(locale)
+ errors.add(:locale, Spree.t(:locale_not_supported_by_store))
+ end
+ end
+
def collect_payment_methods
Spree::Deprecation.warn('`Order#collect_payment_methods` is deprecated and will be removed in Spree 5.5. Use `collect_frontend_payment_methods` instead.')
diff --git a/spree/core/app/services/spree/cart/create.rb b/spree/core/app/services/spree/cart/create.rb
index d52564dd18..a54c7eccc7 100644
--- a/spree/core/app/services/spree/cart/create.rb
+++ b/spree/core/app/services/spree/cart/create.rb
@@ -3,7 +3,15 @@ module Spree
class Create
prepend Spree::ServiceModule::Base
- def call(user:, store:, currency:, public_metadata: {}, private_metadata: {}, order_params: {})
+ # @param user [Spree.user_class, nil] the user to associate with the cart
+ # @param store [Spree::Store] the store for the cart
+ # @param currency [String, nil] ISO currency code, defaults to store's default currency
+ # @param locale [String, nil] locale for the cart (e.g. 'en', 'fr'), defaults to Spree::Current.locale
+ # @param public_metadata [Hash] public metadata for the order
+ # @param private_metadata [Hash] private metadata for the order
+ # @param order_params [Hash] additional order attributes
+ # @return [Spree::ServiceModule::Result]
+ def call(user:, store:, currency:, locale: nil, public_metadata: {}, private_metadata: {}, order_params: {})
order_params ||= {}
# we cannot create an order without store
@@ -12,6 +20,7 @@ module Spree
default_params = {
user: user,
currency: currency || store.default_currency,
+ locale: locale || Spree::Current.locale,
token: Spree::GenerateToken.new.call(Spree::Order),
public_metadata: public_metadata.to_h,
private_metadata: private_metadata.to_h
diff --git a/spree/core/config/locales/en.yml b/spree/core/config/locales/en.yml
index 8bae23cfb0..94827f9833 100644
--- a/spree/core/config/locales/en.yml
+++ b/spree/core/config/locales/en.yml
@@ -1334,7 +1334,9 @@ en:
list: List
live: Live
loading: Loading
+ locale: Locale
locale_changed: Locale Changed
+ locale_not_supported_by_store: is not supported by this store
location: Location
lock: Lock
log_entries: Log Entries
diff --git a/spree/core/db/migrate/20260226000000_add_locale_to_spree_orders.rb b/spree/core/db/migrate/20260226000000_add_locale_to_spree_orders.rb
new file mode 100644
index 0000000000..fa78f7ed97
--- /dev/null
+++ b/spree/core/db/migrate/20260226000000_add_locale_to_spree_orders.rb
@@ -0,0 +1,5 @@
+class AddLocaleToSpreeOrders < ActiveRecord::Migration[7.2]
+ def change
+ add_column :spree_orders, :locale, :string
+ end
+end
diff --git a/spree/core/lib/spree/permitted_attributes.rb b/spree/core/lib/spree/permitted_attributes.rb
index c6020bf34c..dd9e147919 100644
--- a/spree/core/lib/spree/permitted_attributes.rb
+++ b/spree/core/lib/spree/permitted_attributes.rb
@@ -97,7 +97,7 @@ module Spree
@@checkout_attributes = [
:coupon_code, :email, :shipping_method_id, :special_instructions, :use_billing, :use_shipping,
- :user_id, :bill_address_id, :ship_address_id, :accept_marketing, :signup_for_an_account, :currency,
+ :user_id, :bill_address_id, :ship_address_id, :accept_marketing, :signup_for_an_account, :currency, :locale,
:internal_note
]
diff --git a/spree/core/lib/spree/testing_support/factories/order_factory.rb b/spree/core/lib/spree/testing_support/factories/order_factory.rb
index 96cc9ff433..b32890f353 100644
--- a/spree/core/lib/spree/testing_support/factories/order_factory.rb
+++ b/spree/core/lib/spree/testing_support/factories/order_factory.rb
@@ -5,6 +5,7 @@ FactoryBot.define do
completed_at { nil }
email { user&.email }
currency { 'USD' }
+ locale { 'en' }
transient do
line_items_price { BigDecimal(10) }
diff --git a/spree/core/spec/models/spree/order_spec.rb b/spree/core/spec/models/spree/order_spec.rb
index 42b19ad3df..36497ecb70 100644
--- a/spree/core/spec/models/spree/order_spec.rb
+++ b/spree/core/spec/models/spree/order_spec.rb
@@ -117,6 +117,48 @@ describe Spree::Order, type: :model do
end
end
end
+
+ describe '#locale_must_be_supported_by_store' do
+ let(:order) { build(:order, store: store, locale: locale) }
+
+ before do
+ allow(store).to receive(:supported_locales_list).and_return(['en', 'fr'])
+ end
+
+ context 'when locale is supported by the store' do
+ let(:locale) { 'fr' }
+
+ it 'is valid' do
+ expect(order).to be_valid
+ end
+ end
+
+ context 'when locale is not supported by the store' do
+ let(:locale) { 'de' }
+
+ it 'is invalid' do
+ expect(order).not_to be_valid
+ expect(order.errors[:locale]).to include(Spree.t(:locale_not_supported_by_store))
+ end
+ end
+ end
+
+ describe '#ensure_locale_presence' do
+ it 'sets locale from Spree::Current.locale when blank' do
+ allow(Spree::Current).to receive(:locale).and_return('fr')
+ order = build(:order, store: store, locale: nil)
+ allow(store).to receive(:supported_locales_list).and_return(['en', 'fr'])
+ order.valid?
+ expect(order.locale).to eq('fr')
+ end
+
+ it 'does not override locale when already set' do
+ allow(Spree::Current).to receive(:locale).and_return('fr')
+ order = build(:order, store: store, locale: 'en')
+ order.valid?
+ expect(order.locale).to eq('en')
+ end
+ end
end
describe '#full_name' do
diff --git a/spree/core/spec/services/spree/cart/create_spec.rb b/spree/core/spec/services/spree/cart/create_spec.rb
index bc7e2bd48e..7adf570053 100644
--- a/spree/core/spec/services/spree/cart/create_spec.rb
+++ b/spree/core/spec/services/spree/cart/create_spec.rb
@@ -39,6 +39,36 @@ module Spree
end
end
+ context 'create an order with locale' do
+ let(:execute) { subject.call user: user, store: store, currency: currency, locale: 'fr' }
+ let(:value) { execute.value }
+
+ before do
+ allow(store).to receive(:supported_locales_list).and_return(['en', 'fr'])
+ end
+
+ it do
+ expect { execute }.to change(Order, :count)
+ expect(execute).to be_success
+ expect(value.locale).to eq('fr')
+ end
+ end
+
+ context 'create an order with default locale from Spree::Current' do
+ let(:execute) { subject.call user: user, store: store, currency: currency }
+ let(:value) { execute.value }
+
+ before do
+ allow(Spree::Current).to receive(:locale).and_return('en')
+ end
+
+ it do
+ expect { execute }.to change(Order, :count)
+ expect(execute).to be_success
+ expect(value.locale).to eq('en')
+ end
+ end
+
context 'returns failure when no store is passed' do
let!(:default_store) { create :store, default: true }
let(:execute) { subject.call user: user, store: nil, currency: nil }
diff --git a/spree/emails/spec/mailers/spree/order_mailer_spec.rb b/spree/emails/spec/mailers/spree/order_mailer_spec.rb
index 00faf4450c..73385ae9ec 100644
--- a/spree/emails/spec/mailers/spree/order_mailer_spec.rb
+++ b/spree/emails/spec/mailers/spree/order_mailer_spec.rb
@@ -207,6 +207,7 @@ describe Spree::OrderMailer, type: :mailer do
I18n.locale = :'pt-BR'
store.update(default_locale: 'pt-BR')
+ order.update_column(:locale, 'pt-BR')
end
after do
@@ -221,6 +222,7 @@ describe Spree::OrderMailer, type: :mailer do
before do
order
order.store.update!(default_locale: 'pt-BR')
+ order.update_column(:locale, 'pt-BR')
end
after do
@@ -233,6 +235,45 @@ describe Spree::OrderMailer, type: :mailer do
end
end
+ context 'uses order locale for emails' do
+ before do
+ I18n.enforce_available_locales = false
+ pt_br_confirm_mail = { spree: { order_mailer: { confirm_email: { dear_customer: 'Caro Cliente,' } } } }
+ pt_br_cancel_mail = { spree: { order_mailer: { cancel_email: { order_summary_canceled: 'Resumo da Pedido [CANCELADA]' } } } }
+ I18n.backend.store_translations :'pt-BR', pt_br_confirm_mail
+ I18n.backend.store_translations :'pt-BR', pt_br_cancel_mail
+
+ I18n.backend.store_translations :'pt-BR', {
+ spree: {
+ default_post_categories: {
+ articles: 'Artigos',
+ news: 'Notícias',
+ resources: 'Recursos'
+ }
+ }
+ }
+
+ # Store stays with default_locale 'en', but order has locale 'pt-BR'
+ order
+ order.update_column(:locale, 'pt-BR')
+ end
+
+ after do
+ I18n.enforce_available_locales = true
+ I18n.locale = :en
+ end
+
+ it 'sends confirm_email in order locale' do
+ confirmation_email = described_class.confirm_email(order)
+ expect(confirmation_email).to have_body_text('Caro Cliente,')
+ end
+
+ it 'sends cancel_email in order locale' do
+ cancel_email = described_class.cancel_email(order)
+ expect(cancel_email).to have_body_text('Resumo da Pedido [CANCELADA]')
+ end
+ end
+
context 'with preference :send_core_emails set to false' do
it 'sends no email' do
Spree::Config.set(:send_core_emails, false)
diff --git a/spree/emails/spec/mailers/spree/shipment_mailer_spec.rb b/spree/emails/spec/mailers/spree/shipment_mailer_spec.rb
index 4eae061a44..ef86e8ea6a 100644
--- a/spree/emails/spec/mailers/spree/shipment_mailer_spec.rb
+++ b/spree/emails/spec/mailers/spree/shipment_mailer_spec.rb
@@ -48,6 +48,7 @@ describe Spree::ShipmentMailer, type: :mailer do
pt_br_shipped_email = { spree: { shipment_mailer: { shipped_email: { dear_customer: 'Caro Cliente,' } } } }
I18n.backend.store_translations :'pt-BR', pt_br_shipped_email
store.update(default_locale: 'pt-BR')
+ order.update_column(:locale, 'pt-BR')
end
after do
@@ -64,6 +65,27 @@ describe Spree::ShipmentMailer, type: :mailer do
end
end
+ context 'uses order locale for emails' do
+ before do
+ I18n.enforce_available_locales = false
+ pt_br_shipped_email = { spree: { shipment_mailer: { shipped_email: { dear_customer: 'Caro Cliente,' } } } }
+ I18n.backend.store_translations :'pt-BR', pt_br_shipped_email
+
+ # Store stays with default_locale 'en', but order has locale 'pt-BR'
+ order.update_column(:locale, 'pt-BR')
+ end
+
+ after do
+ I18n.enforce_available_locales = true
+ I18n.locale = :en
+ end
+
+ it 'sends shipped_email in order locale' do
+ shipped_email = described_class.shipped_email(shipment)
+ expect(shipped_email).to have_body_text('Caro Cliente,')
+ end
+ end
+
context 'shipped_email' do
let(:shipped_email) { described_class.shipped_email(shipment) }