@spree/docs 0.1.229 → 0.1.231
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-reference/store.yaml +78 -78
- package/dist/developer/agentic/agent-skills.md +1 -1
- package/dist/developer/cli/quickstart.md +2 -2
- package/dist/developer/core-concepts/addresses.md +13 -0
- package/dist/developer/core-concepts/calculators.md +6 -1
- package/dist/developer/core-concepts/carts.md +19 -1
- package/dist/developer/core-concepts/catalogs.md +51 -2
- package/dist/developer/core-concepts/channels.md +20 -1
- package/dist/developer/core-concepts/commissions.md +70 -1
- package/dist/developer/core-concepts/companies.md +74 -0
- package/dist/developer/core-concepts/customers.md +17 -5
- package/dist/developer/core-concepts/data-privacy.md +20 -7
- package/dist/developer/core-concepts/delivery-setup.md +57 -0
- package/dist/developer/core-concepts/discounts.md +7 -0
- package/dist/developer/core-concepts/events.md +13 -7
- package/dist/developer/core-concepts/fees.md +20 -0
- package/dist/developer/core-concepts/fulfillments.md +3 -3
- package/dist/developer/core-concepts/imports-exports.md +21 -5
- package/dist/developer/core-concepts/inventory.md +73 -1
- package/dist/developer/core-concepts/markets.md +5 -6
- package/dist/developer/core-concepts/media.md +66 -1
- package/dist/developer/core-concepts/metafields.md +1 -1
- package/dist/developer/core-concepts/order-totals.md +18 -1
- package/dist/developer/core-concepts/orders.md +2 -1
- package/dist/developer/core-concepts/payments.md +100 -20
- package/dist/developer/core-concepts/pricing.md +13 -8
- package/dist/developer/core-concepts/products.md +52 -1
- package/dist/developer/core-concepts/reporting.md +5 -5
- package/dist/developer/core-concepts/returns-exchanges-claims.md +41 -2
- package/dist/developer/core-concepts/search-filtering.md +1 -2
- package/dist/developer/core-concepts/sellers.md +109 -2
- package/dist/developer/core-concepts/slugs.md +1 -1
- package/dist/developer/core-concepts/staff-roles.md +23 -3
- package/dist/developer/core-concepts/stores.md +21 -0
- package/dist/developer/core-concepts/taxes.md +43 -0
- package/dist/developer/core-concepts/translations.md +9 -0
- package/dist/developer/core-concepts/webhooks.md +45 -3
- package/dist/developer/create-spree-app/quickstart.md +10 -10
- package/dist/developer/dashboard/deployment.md +4 -4
- package/dist/developer/dashboard/recipes/attribute-end-to-end.md +1 -1
- package/dist/developer/deployment/docker.md +2 -2
- package/dist/developer/how-to/custom-promotion.md +33 -13
- package/dist/developer/multi-tenant/quickstart.md +6 -6
- package/dist/developer/storefront/nextjs/testing.md +2 -2
- package/package.json +1 -1
|
@@ -879,8 +879,8 @@ paths:
|
|
|
879
879
|
example:
|
|
880
880
|
data:
|
|
881
881
|
- id: prod_UkLWZg9DAJ
|
|
882
|
-
name: Product
|
|
883
|
-
slug: product-
|
|
882
|
+
name: Product 2506979
|
|
883
|
+
slug: product-2506979
|
|
884
884
|
meta_title:
|
|
885
885
|
meta_description:
|
|
886
886
|
meta_keywords:
|
|
@@ -1054,8 +1054,8 @@ paths:
|
|
|
1054
1054
|
example:
|
|
1055
1055
|
data:
|
|
1056
1056
|
- id: prod_UkLWZg9DAJ
|
|
1057
|
-
name: Product
|
|
1058
|
-
slug: product-
|
|
1057
|
+
name: Product 2979085
|
|
1058
|
+
slug: product-2979085
|
|
1059
1059
|
meta_title:
|
|
1060
1060
|
meta_description:
|
|
1061
1061
|
meta_keywords:
|
|
@@ -1086,8 +1086,8 @@ paths:
|
|
|
1086
1086
|
original_price:
|
|
1087
1087
|
seller_id:
|
|
1088
1088
|
- id: prod_gbHJdmfrXB
|
|
1089
|
-
name: Product
|
|
1090
|
-
slug: product-
|
|
1089
|
+
name: Product 2988209
|
|
1090
|
+
slug: product-2988209
|
|
1091
1091
|
meta_title:
|
|
1092
1092
|
meta_description:
|
|
1093
1093
|
meta_keywords:
|
|
@@ -1216,8 +1216,8 @@ paths:
|
|
|
1216
1216
|
application/json:
|
|
1217
1217
|
example:
|
|
1218
1218
|
id: prod_UkLWZg9DAJ
|
|
1219
|
-
name: Product
|
|
1220
|
-
slug: product-
|
|
1219
|
+
name: Product 3256885
|
|
1220
|
+
slug: product-3256885
|
|
1221
1221
|
meta_title:
|
|
1222
1222
|
meta_description:
|
|
1223
1223
|
meta_keywords:
|
|
@@ -1576,8 +1576,8 @@ paths:
|
|
|
1576
1576
|
preorder_ships_at:
|
|
1577
1577
|
quantity: 1
|
|
1578
1578
|
currency: USD
|
|
1579
|
-
name: Product
|
|
1580
|
-
slug: product-
|
|
1579
|
+
name: Product 224715
|
|
1580
|
+
slug: product-224715
|
|
1581
1581
|
options_text: ''
|
|
1582
1582
|
price: '10.0'
|
|
1583
1583
|
display_price: "$10.00"
|
|
@@ -1695,8 +1695,8 @@ paths:
|
|
|
1695
1695
|
preorder_ships_at:
|
|
1696
1696
|
quantity: 1
|
|
1697
1697
|
currency: USD
|
|
1698
|
-
name: Product
|
|
1699
|
-
slug: product-
|
|
1698
|
+
name: Product 2252171
|
|
1699
|
+
slug: product-2252171
|
|
1700
1700
|
options_text: ''
|
|
1701
1701
|
price: '10.0'
|
|
1702
1702
|
display_price: "$10.00"
|
|
@@ -2004,7 +2004,7 @@ paths:
|
|
|
2004
2004
|
total_quantity: 0
|
|
2005
2005
|
warnings:
|
|
2006
2006
|
- code: line_item_removed
|
|
2007
|
-
message: Product
|
|
2007
|
+
message: Product 229307 was removed because it was sold out
|
|
2008
2008
|
line_item_id: li_UkLWZg9DAJ
|
|
2009
2009
|
variant_id: variant_UkLWZg9DAJ
|
|
2010
2010
|
coupon_code:
|
|
@@ -2244,8 +2244,8 @@ paths:
|
|
|
2244
2244
|
preorder_ships_at:
|
|
2245
2245
|
quantity: 1
|
|
2246
2246
|
currency: USD
|
|
2247
|
-
name: Product
|
|
2248
|
-
slug: product-
|
|
2247
|
+
name: Product 2303263
|
|
2248
|
+
slug: product-2303263
|
|
2249
2249
|
options_text: ''
|
|
2250
2250
|
price: '10.0'
|
|
2251
2251
|
display_price: "$10.00"
|
|
@@ -2530,8 +2530,8 @@ paths:
|
|
|
2530
2530
|
preorder_ships_at:
|
|
2531
2531
|
quantity: 1
|
|
2532
2532
|
currency: USD
|
|
2533
|
-
name: Product
|
|
2534
|
-
slug: product-
|
|
2533
|
+
name: Product 2328992
|
|
2534
|
+
slug: product-2328992
|
|
2535
2535
|
options_text: ''
|
|
2536
2536
|
price: '10.0'
|
|
2537
2537
|
display_price: "$10.00"
|
|
@@ -2562,7 +2562,7 @@ paths:
|
|
|
2562
2562
|
first_name: John
|
|
2563
2563
|
last_name: Doe
|
|
2564
2564
|
full_name: John Doe
|
|
2565
|
-
address1:
|
|
2565
|
+
address1: 252 Lovely Street
|
|
2566
2566
|
address2: Northwest
|
|
2567
2567
|
postal_code: '10118'
|
|
2568
2568
|
city: New York
|
|
@@ -2584,7 +2584,7 @@ paths:
|
|
|
2584
2584
|
first_name: John
|
|
2585
2585
|
last_name: Doe
|
|
2586
2586
|
full_name: John Doe
|
|
2587
|
-
address1:
|
|
2587
|
+
address1: 251 Lovely Street
|
|
2588
2588
|
address2: Northwest
|
|
2589
2589
|
postal_code: '10118'
|
|
2590
2590
|
city: New York
|
|
@@ -2743,8 +2743,8 @@ paths:
|
|
|
2743
2743
|
preorder_ships_at:
|
|
2744
2744
|
quantity: 1
|
|
2745
2745
|
currency: USD
|
|
2746
|
-
name: Product
|
|
2747
|
-
slug: product-
|
|
2746
|
+
name: Product 2354794
|
|
2747
|
+
slug: product-2354794
|
|
2748
2748
|
options_text: ''
|
|
2749
2749
|
price: '10.0'
|
|
2750
2750
|
display_price: "$10.00"
|
|
@@ -2878,7 +2878,7 @@ paths:
|
|
|
2878
2878
|
first_name: John
|
|
2879
2879
|
last_name: Doe
|
|
2880
2880
|
full_name: John Doe
|
|
2881
|
-
address1:
|
|
2881
|
+
address1: 258 Lovely Street
|
|
2882
2882
|
address2: Northwest
|
|
2883
2883
|
postal_code: '10118'
|
|
2884
2884
|
city: New York
|
|
@@ -2900,7 +2900,7 @@ paths:
|
|
|
2900
2900
|
first_name: John
|
|
2901
2901
|
last_name: Doe
|
|
2902
2902
|
full_name: John Doe
|
|
2903
|
-
address1:
|
|
2903
|
+
address1: 257 Lovely Street
|
|
2904
2904
|
address2: Northwest
|
|
2905
2905
|
postal_code: '10118'
|
|
2906
2906
|
city: New York
|
|
@@ -3083,8 +3083,8 @@ paths:
|
|
|
3083
3083
|
preorder_ships_at:
|
|
3084
3084
|
quantity: 1
|
|
3085
3085
|
currency: USD
|
|
3086
|
-
name: Product
|
|
3087
|
-
slug: product-
|
|
3086
|
+
name: Product 2642614
|
|
3087
|
+
slug: product-2642614
|
|
3088
3088
|
options_text: ''
|
|
3089
3089
|
price: '10.0'
|
|
3090
3090
|
display_price: "$10.00"
|
|
@@ -3282,8 +3282,8 @@ paths:
|
|
|
3282
3282
|
preorder_ships_at:
|
|
3283
3283
|
quantity: 1
|
|
3284
3284
|
currency: USD
|
|
3285
|
-
name: Product
|
|
3286
|
-
slug: product-
|
|
3285
|
+
name: Product 2653461
|
|
3286
|
+
slug: product-2653461
|
|
3287
3287
|
options_text: ''
|
|
3288
3288
|
price: '10.0'
|
|
3289
3289
|
display_price: "$10.00"
|
|
@@ -3469,8 +3469,8 @@ paths:
|
|
|
3469
3469
|
preorder_ships_at:
|
|
3470
3470
|
quantity: 1
|
|
3471
3471
|
currency: USD
|
|
3472
|
-
name: Product
|
|
3473
|
-
slug: product-
|
|
3472
|
+
name: Product 2678182
|
|
3473
|
+
slug: product-2678182
|
|
3474
3474
|
options_text: ''
|
|
3475
3475
|
price: '10.0'
|
|
3476
3476
|
display_price: "$10.00"
|
|
@@ -3580,7 +3580,7 @@ paths:
|
|
|
3580
3580
|
first_name: John
|
|
3581
3581
|
last_name: Doe
|
|
3582
3582
|
full_name: John Doe
|
|
3583
|
-
address1:
|
|
3583
|
+
address1: 354 Lovely Street
|
|
3584
3584
|
address2: Northwest
|
|
3585
3585
|
postal_code: '10118'
|
|
3586
3586
|
city: New York
|
|
@@ -3766,8 +3766,8 @@ paths:
|
|
|
3766
3766
|
preorder_ships_at:
|
|
3767
3767
|
quantity: 1
|
|
3768
3768
|
currency: USD
|
|
3769
|
-
name: Product
|
|
3770
|
-
slug: product-
|
|
3769
|
+
name: Product 2695702
|
|
3770
|
+
slug: product-2695702
|
|
3771
3771
|
options_text: ''
|
|
3772
3772
|
price: '10.0'
|
|
3773
3773
|
display_price: "$10.00"
|
|
@@ -4020,8 +4020,8 @@ paths:
|
|
|
4020
4020
|
preorder_ships_at:
|
|
4021
4021
|
quantity: 1
|
|
4022
4022
|
currency: USD
|
|
4023
|
-
name: Product
|
|
4024
|
-
slug: product-
|
|
4023
|
+
name: Product 2739569
|
|
4024
|
+
slug: product-2739569
|
|
4025
4025
|
options_text: ''
|
|
4026
4026
|
price: '10.0'
|
|
4027
4027
|
display_price: "$10.00"
|
|
@@ -4174,10 +4174,10 @@ paths:
|
|
|
4174
4174
|
total_quantity: 2
|
|
4175
4175
|
warnings:
|
|
4176
4176
|
- code: delivery_unavailable
|
|
4177
|
-
message: Product
|
|
4177
|
+
message: Product 27663 cannot be delivered to the selected address
|
|
4178
4178
|
line_item_id: li_UkLWZg9DAJ
|
|
4179
4179
|
- code: delivery_unavailable
|
|
4180
|
-
message: Product
|
|
4180
|
+
message: Product 277298 cannot be delivered to the selected address
|
|
4181
4181
|
line_item_id: li_gbHJdmfrXB
|
|
4182
4182
|
coupon_code:
|
|
4183
4183
|
item_total: '29.99'
|
|
@@ -4235,8 +4235,8 @@ paths:
|
|
|
4235
4235
|
preorder_ships_at:
|
|
4236
4236
|
quantity: 1
|
|
4237
4237
|
currency: USD
|
|
4238
|
-
name: Product
|
|
4239
|
-
slug: product-
|
|
4238
|
+
name: Product 27663
|
|
4239
|
+
slug: product-27663
|
|
4240
4240
|
options_text: ''
|
|
4241
4241
|
price: '10.0'
|
|
4242
4242
|
display_price: "$10.00"
|
|
@@ -4266,8 +4266,8 @@ paths:
|
|
|
4266
4266
|
preorder_ships_at:
|
|
4267
4267
|
quantity: 1
|
|
4268
4268
|
currency: USD
|
|
4269
|
-
name: Product
|
|
4270
|
-
slug: product-
|
|
4269
|
+
name: Product 277298
|
|
4270
|
+
slug: product-277298
|
|
4271
4271
|
options_text: ''
|
|
4272
4272
|
price: '19.99'
|
|
4273
4273
|
display_price: "$19.99"
|
|
@@ -4496,8 +4496,8 @@ paths:
|
|
|
4496
4496
|
preorder_ships_at:
|
|
4497
4497
|
quantity: 1
|
|
4498
4498
|
currency: USD
|
|
4499
|
-
name: Product
|
|
4500
|
-
slug: product-
|
|
4499
|
+
name: Product 2839165
|
|
4500
|
+
slug: product-2839165
|
|
4501
4501
|
options_text: ''
|
|
4502
4502
|
price: '10.0'
|
|
4503
4503
|
display_price: "$10.00"
|
|
@@ -5326,8 +5326,8 @@ paths:
|
|
|
5326
5326
|
preorder_ships_at:
|
|
5327
5327
|
quantity: 1
|
|
5328
5328
|
currency: USD
|
|
5329
|
-
name: Product
|
|
5330
|
-
slug: product-
|
|
5329
|
+
name: Product 3459789
|
|
5330
|
+
slug: product-3459789
|
|
5331
5331
|
options_text: ''
|
|
5332
5332
|
price: '10.0'
|
|
5333
5333
|
display_price: "$10.00"
|
|
@@ -5544,8 +5544,8 @@ paths:
|
|
|
5544
5544
|
preorder_ships_at:
|
|
5545
5545
|
quantity: 1
|
|
5546
5546
|
currency: USD
|
|
5547
|
-
name: Product
|
|
5548
|
-
slug: product-
|
|
5547
|
+
name: Product 347179
|
|
5548
|
+
slug: product-347179
|
|
5549
5549
|
options_text: ''
|
|
5550
5550
|
price: '10.0'
|
|
5551
5551
|
display_price: "$10.00"
|
|
@@ -5723,8 +5723,8 @@ paths:
|
|
|
5723
5723
|
preorder_ships_at:
|
|
5724
5724
|
quantity: 1
|
|
5725
5725
|
currency: USD
|
|
5726
|
-
name: Product
|
|
5727
|
-
slug: product-
|
|
5726
|
+
name: Product 287496
|
|
5727
|
+
slug: product-287496
|
|
5728
5728
|
options_text: ''
|
|
5729
5729
|
price: '10.0'
|
|
5730
5730
|
display_price: "$10.00"
|
|
@@ -5842,7 +5842,7 @@ paths:
|
|
|
5842
5842
|
first_name: John
|
|
5843
5843
|
last_name: Doe
|
|
5844
5844
|
full_name: John Doe
|
|
5845
|
-
address1:
|
|
5845
|
+
address1: 410 Lovely Street
|
|
5846
5846
|
address2: Northwest
|
|
5847
5847
|
postal_code: '10118'
|
|
5848
5848
|
city: New York
|
|
@@ -5864,7 +5864,7 @@ paths:
|
|
|
5864
5864
|
first_name: John
|
|
5865
5865
|
last_name: Doe
|
|
5866
5866
|
full_name: John Doe
|
|
5867
|
-
address1:
|
|
5867
|
+
address1: 411 Lovely Street
|
|
5868
5868
|
address2: Northwest
|
|
5869
5869
|
postal_code: '10118'
|
|
5870
5870
|
city: New York
|
|
@@ -5970,7 +5970,7 @@ paths:
|
|
|
5970
5970
|
first_name: John
|
|
5971
5971
|
last_name: Doe
|
|
5972
5972
|
full_name: John Doe
|
|
5973
|
-
address1:
|
|
5973
|
+
address1: 216 Lovely Street
|
|
5974
5974
|
address2: Northwest
|
|
5975
5975
|
postal_code: '10118'
|
|
5976
5976
|
city: New York
|
|
@@ -5991,7 +5991,7 @@ paths:
|
|
|
5991
5991
|
first_name: John
|
|
5992
5992
|
last_name: Doe
|
|
5993
5993
|
full_name: John Doe
|
|
5994
|
-
address1:
|
|
5994
|
+
address1: 217 Lovely Street
|
|
5995
5995
|
address2: Northwest
|
|
5996
5996
|
postal_code: '10118'
|
|
5997
5997
|
city: New York
|
|
@@ -6012,7 +6012,7 @@ paths:
|
|
|
6012
6012
|
first_name: John
|
|
6013
6013
|
last_name: Doe
|
|
6014
6014
|
full_name: John Doe
|
|
6015
|
-
address1:
|
|
6015
|
+
address1: 218 Lovely Street
|
|
6016
6016
|
address2: Northwest
|
|
6017
6017
|
postal_code: '10118'
|
|
6018
6018
|
city: New York
|
|
@@ -6270,7 +6270,7 @@ paths:
|
|
|
6270
6270
|
first_name: John
|
|
6271
6271
|
last_name: Doe
|
|
6272
6272
|
full_name: John Doe
|
|
6273
|
-
address1:
|
|
6273
|
+
address1: 230 Lovely Street
|
|
6274
6274
|
address2: Northwest
|
|
6275
6275
|
postal_code: '10118'
|
|
6276
6276
|
city: New York
|
|
@@ -6352,7 +6352,7 @@ paths:
|
|
|
6352
6352
|
first_name: John
|
|
6353
6353
|
last_name: Doe
|
|
6354
6354
|
full_name: John Doe
|
|
6355
|
-
address1:
|
|
6355
|
+
address1: 236 Lovely Street
|
|
6356
6356
|
address2: Northwest
|
|
6357
6357
|
postal_code: '10118'
|
|
6358
6358
|
city: Los Angeles
|
|
@@ -6847,8 +6847,8 @@ paths:
|
|
|
6847
6847
|
preorder_ships_at:
|
|
6848
6848
|
quantity: 1
|
|
6849
6849
|
currency: USD
|
|
6850
|
-
name: Product
|
|
6851
|
-
slug: product-
|
|
6850
|
+
name: Product 2525270
|
|
6851
|
+
slug: product-2525270
|
|
6852
6852
|
options_text: ''
|
|
6853
6853
|
price: '10.0'
|
|
6854
6854
|
display_price: "$10.00"
|
|
@@ -6966,7 +6966,7 @@ paths:
|
|
|
6966
6966
|
first_name: John
|
|
6967
6967
|
last_name: Doe
|
|
6968
6968
|
full_name: John Doe
|
|
6969
|
-
address1:
|
|
6969
|
+
address1: 302 Lovely Street
|
|
6970
6970
|
address2: Northwest
|
|
6971
6971
|
postal_code: '10118'
|
|
6972
6972
|
city: New York
|
|
@@ -6988,7 +6988,7 @@ paths:
|
|
|
6988
6988
|
first_name: John
|
|
6989
6989
|
last_name: Doe
|
|
6990
6990
|
full_name: John Doe
|
|
6991
|
-
address1:
|
|
6991
|
+
address1: 303 Lovely Street
|
|
6992
6992
|
address2: Northwest
|
|
6993
6993
|
postal_code: '10118'
|
|
6994
6994
|
city: New York
|
|
@@ -7169,8 +7169,8 @@ paths:
|
|
|
7169
7169
|
preorder_ships_at:
|
|
7170
7170
|
quantity: 1
|
|
7171
7171
|
currency: USD
|
|
7172
|
-
name: Product
|
|
7173
|
-
slug: product-
|
|
7172
|
+
name: Product 2545633
|
|
7173
|
+
slug: product-2545633
|
|
7174
7174
|
options_text: ''
|
|
7175
7175
|
price: '10.0'
|
|
7176
7176
|
display_price: "$10.00"
|
|
@@ -7288,7 +7288,7 @@ paths:
|
|
|
7288
7288
|
first_name: John
|
|
7289
7289
|
last_name: Doe
|
|
7290
7290
|
full_name: John Doe
|
|
7291
|
-
address1:
|
|
7291
|
+
address1: 308 Lovely Street
|
|
7292
7292
|
address2: Northwest
|
|
7293
7293
|
postal_code: '10118'
|
|
7294
7294
|
city: New York
|
|
@@ -7310,7 +7310,7 @@ paths:
|
|
|
7310
7310
|
first_name: John
|
|
7311
7311
|
last_name: Doe
|
|
7312
7312
|
full_name: John Doe
|
|
7313
|
-
address1:
|
|
7313
|
+
address1: 309 Lovely Street
|
|
7314
7314
|
address2: Northwest
|
|
7315
7315
|
postal_code: '10118'
|
|
7316
7316
|
city: New York
|
|
@@ -7531,7 +7531,7 @@ paths:
|
|
|
7531
7531
|
first_name: John
|
|
7532
7532
|
last_name: Doe
|
|
7533
7533
|
full_name: John Doe
|
|
7534
|
-
address1:
|
|
7534
|
+
address1: 314 Lovely Street
|
|
7535
7535
|
address2: Northwest
|
|
7536
7536
|
postal_code: '10118'
|
|
7537
7537
|
city: New York
|
|
@@ -7552,7 +7552,7 @@ paths:
|
|
|
7552
7552
|
first_name: John
|
|
7553
7553
|
last_name: Doe
|
|
7554
7554
|
full_name: John Doe
|
|
7555
|
-
address1:
|
|
7555
|
+
address1: 315 Lovely Street
|
|
7556
7556
|
address2: Northwest
|
|
7557
7557
|
postal_code: '10118'
|
|
7558
7558
|
city: New York
|
|
@@ -7574,7 +7574,7 @@ paths:
|
|
|
7574
7574
|
first_name: John
|
|
7575
7575
|
last_name: Doe
|
|
7576
7576
|
full_name: John Doe
|
|
7577
|
-
address1:
|
|
7577
|
+
address1: 315 Lovely Street
|
|
7578
7578
|
address2: Northwest
|
|
7579
7579
|
postal_code: '10118'
|
|
7580
7580
|
city: New York
|
|
@@ -7596,7 +7596,7 @@ paths:
|
|
|
7596
7596
|
first_name: John
|
|
7597
7597
|
last_name: Doe
|
|
7598
7598
|
full_name: John Doe
|
|
7599
|
-
address1:
|
|
7599
|
+
address1: 314 Lovely Street
|
|
7600
7600
|
address2: Northwest
|
|
7601
7601
|
postal_code: '10118'
|
|
7602
7602
|
city: New York
|
|
@@ -7688,7 +7688,7 @@ paths:
|
|
|
7688
7688
|
first_name: John
|
|
7689
7689
|
last_name: Doe
|
|
7690
7690
|
full_name: John Doe
|
|
7691
|
-
address1:
|
|
7691
|
+
address1: 316 Lovely Street
|
|
7692
7692
|
address2: Northwest
|
|
7693
7693
|
postal_code: '10118'
|
|
7694
7694
|
city: New York
|
|
@@ -7709,7 +7709,7 @@ paths:
|
|
|
7709
7709
|
first_name: John
|
|
7710
7710
|
last_name: Doe
|
|
7711
7711
|
full_name: John Doe
|
|
7712
|
-
address1:
|
|
7712
|
+
address1: 317 Lovely Street
|
|
7713
7713
|
address2: Northwest
|
|
7714
7714
|
postal_code: '10118'
|
|
7715
7715
|
city: New York
|
|
@@ -7731,7 +7731,7 @@ paths:
|
|
|
7731
7731
|
first_name: John
|
|
7732
7732
|
last_name: Doe
|
|
7733
7733
|
full_name: John Doe
|
|
7734
|
-
address1:
|
|
7734
|
+
address1: 317 Lovely Street
|
|
7735
7735
|
address2: Northwest
|
|
7736
7736
|
postal_code: '10118'
|
|
7737
7737
|
city: New York
|
|
@@ -7753,7 +7753,7 @@ paths:
|
|
|
7753
7753
|
first_name: John
|
|
7754
7754
|
last_name: Doe
|
|
7755
7755
|
full_name: John Doe
|
|
7756
|
-
address1:
|
|
7756
|
+
address1: 316 Lovely Street
|
|
7757
7757
|
address2: Northwest
|
|
7758
7758
|
postal_code: '10118'
|
|
7759
7759
|
city: New York
|
|
@@ -9732,7 +9732,7 @@ paths:
|
|
|
9732
9732
|
variant:
|
|
9733
9733
|
id: variant_gbHJdmfrXB
|
|
9734
9734
|
product_id: prod_gbHJdmfrXB
|
|
9735
|
-
sku: SKU-
|
|
9735
|
+
sku: SKU-435
|
|
9736
9736
|
options_text: ''
|
|
9737
9737
|
track_inventory: true
|
|
9738
9738
|
media_count: 0
|
|
@@ -10663,7 +10663,7 @@ paths:
|
|
|
10663
10663
|
first_name:
|
|
10664
10664
|
last_name:
|
|
10665
10665
|
full_name: ''
|
|
10666
|
-
address1:
|
|
10666
|
+
address1: 275 Lovely Street
|
|
10667
10667
|
address2: Northwest
|
|
10668
10668
|
postal_code: '10118'
|
|
10669
10669
|
city: New York
|
|
@@ -10734,7 +10734,7 @@ paths:
|
|
|
10734
10734
|
first_name:
|
|
10735
10735
|
last_name:
|
|
10736
10736
|
full_name: ''
|
|
10737
|
-
address1:
|
|
10737
|
+
address1: 278 Lovely Street
|
|
10738
10738
|
address2: Northwest
|
|
10739
10739
|
postal_code: '10118'
|
|
10740
10740
|
city: New York
|
|
@@ -10913,8 +10913,8 @@ paths:
|
|
|
10913
10913
|
preorder_ships_at:
|
|
10914
10914
|
quantity: 1
|
|
10915
10915
|
currency: USD
|
|
10916
|
-
name: Product
|
|
10917
|
-
slug: product-
|
|
10916
|
+
name: Product 2515649
|
|
10917
|
+
slug: product-2515649
|
|
10918
10918
|
options_text: ''
|
|
10919
10919
|
price: '10.0'
|
|
10920
10920
|
display_price: "$10.00"
|
|
@@ -11032,7 +11032,7 @@ paths:
|
|
|
11032
11032
|
first_name: John
|
|
11033
11033
|
last_name: Doe
|
|
11034
11034
|
full_name: John Doe
|
|
11035
|
-
address1:
|
|
11035
|
+
address1: 286 Lovely Street
|
|
11036
11036
|
address2: Northwest
|
|
11037
11037
|
postal_code: '10118'
|
|
11038
11038
|
city: New York
|
|
@@ -11054,7 +11054,7 @@ paths:
|
|
|
11054
11054
|
first_name: John
|
|
11055
11055
|
last_name: Doe
|
|
11056
11056
|
full_name: John Doe
|
|
11057
|
-
address1:
|
|
11057
|
+
address1: 287 Lovely Street
|
|
11058
11058
|
address2: Northwest
|
|
11059
11059
|
postal_code: '10118'
|
|
11060
11060
|
city: New York
|
|
@@ -52,7 +52,7 @@ The plugin delivers everything the skills CLI does **plus** `/spree:doctor`, `/s
|
|
|
52
52
|
|
|
53
53
|
The skills detect your project flavor before running commands:
|
|
54
54
|
|
|
55
|
-
- **create-spree-app projects** (Docker, Rails app in `
|
|
55
|
+
- **create-spree-app projects** (Docker, Rails app in `server/`) — commands route through the [Spree CLI](../cli/quickstart.md) (`spree migrate`, `spree console`, …).
|
|
56
56
|
- **Classic Rails apps** (Spree gems in a plain Rails app, no Docker — typical for apps created before Spree 5.4) — the skills fall back to native commands (`bin/rails`, `bundle exec rake`) from the app root.
|
|
57
57
|
|
|
58
58
|
## Updating
|
|
@@ -114,13 +114,13 @@ Production upgrades only need the third stage — `bundle install` and `db:migra
|
|
|
114
114
|
|
|
115
115
|
### `spree eject`
|
|
116
116
|
|
|
117
|
-
Switch from the prebuilt Docker image to building from your local `
|
|
117
|
+
Switch from the prebuilt Docker image to building from your local `server/` directory. This lets you customize the Rails app — add gems, override models, add migrations, etc.
|
|
118
118
|
|
|
119
119
|
```bash
|
|
120
120
|
spree eject
|
|
121
121
|
```
|
|
122
122
|
|
|
123
|
-
After ejecting, the Docker image is built from `
|
|
123
|
+
After ejecting, the Docker image is built from `server/Dockerfile`. Edit files in `server/` and run `spree dev` to rebuild and restart with your changes.
|
|
124
124
|
|
|
125
125
|
See [Customizing the Backend](../create-spree-app/quickstart.md#customizing-the-backend) for details on what you can customize.
|
|
126
126
|
|
|
@@ -126,6 +126,7 @@ curl -X POST 'https://api.mystore.com/api/v3/store/customers/me/addresses' \
|
|
|
126
126
|
|
|
127
127
|
On a cart you can point at a saved address or send a new one inline:
|
|
128
128
|
|
|
129
|
+
|
|
129
130
|
```typescript Store SDK
|
|
130
131
|
// Reuse something from the address book
|
|
131
132
|
await client.carts.update(cartId, {
|
|
@@ -148,6 +149,18 @@ await client.carts.update(cartId, {
|
|
|
148
149
|
})
|
|
149
150
|
```
|
|
150
151
|
|
|
152
|
+
```bash cURL
|
|
153
|
+
curl -X PATCH 'https://api.mystore.com/api/v3/store/carts/cart_xxx' \
|
|
154
|
+
-H 'X-Spree-API-Key: pk_xxx' \
|
|
155
|
+
-H 'Authorization: Bearer $CUSTOMER_JWT' \
|
|
156
|
+
-H 'Content-Type: application/json' \
|
|
157
|
+
-d '{
|
|
158
|
+
"shipping_address_id": "addr_xxx",
|
|
159
|
+
"billing_address_id": "addr_yyy"
|
|
160
|
+
}'
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
|
|
151
164
|
Setting the shipping address is what makes delivery options and tax appear, so do it before asking the customer to choose delivery. The updated cart comes back with new totals — you don't need a second request.
|
|
152
165
|
|
|
153
166
|
> **WARNING:** An address is **copied onto the order** when the cart completes, not linked to. Editing a saved address next year does not rewrite last year's invoice — which is exactly what you want when a customer moves house.
|
|
@@ -94,7 +94,7 @@ const calculators = await adminClient.deliveryMethods.calculators()
|
|
|
94
94
|
await adminClient.deliveryMethods.create({
|
|
95
95
|
name: 'Standard shipping',
|
|
96
96
|
delivery_zone_id: 'dz_xxx',
|
|
97
|
-
calculator_type: '
|
|
97
|
+
calculator_type: 'flat_rate',
|
|
98
98
|
calculator_attributes: {
|
|
99
99
|
preferences: { amount: '7.00', currency: 'USD' },
|
|
100
100
|
},
|
|
@@ -105,6 +105,11 @@ await adminClient.deliveryMethods.create({
|
|
|
105
105
|
spree api get /delivery_methods/calculators
|
|
106
106
|
```
|
|
107
107
|
|
|
108
|
+
```bash cURL
|
|
109
|
+
curl 'https://api.mystore.com/api/v3/admin/delivery_methods/calculators' \
|
|
110
|
+
-H 'X-Spree-API-Key: sk_xxx'
|
|
111
|
+
```
|
|
112
|
+
|
|
108
113
|
|
|
109
114
|
Each calculator declares which settings it takes, so a form can be built for it without knowing the calculator in advance — which is how the dashboard renders these.
|
|
110
115
|
|
|
@@ -101,15 +101,24 @@ Every change returns the whole cart with new totals, so you never need a second
|
|
|
101
101
|
|
|
102
102
|
When a guest signs in, attach their cart to the account:
|
|
103
103
|
|
|
104
|
+
|
|
104
105
|
```typescript Store SDK
|
|
105
106
|
await client.carts.associate(cartId, { spreeToken: 'abc123' })
|
|
106
107
|
```
|
|
107
108
|
|
|
109
|
+
```bash cURL
|
|
110
|
+
curl -X POST 'https://api.mystore.com/api/v3/store/carts/cart_xxx/associate' \
|
|
111
|
+
-H 'X-Spree-API-Key: pk_xxx' \
|
|
112
|
+
-H 'Authorization: Bearer $CUSTOMER_JWT' \
|
|
113
|
+
-H 'X-Spree-Token: abc123'
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
|
|
108
117
|
## Checkout requirements
|
|
109
118
|
|
|
110
119
|
A cart tells you what it still needs before it can be completed:
|
|
111
120
|
|
|
112
|
-
```json
|
|
121
|
+
```json Response
|
|
113
122
|
{
|
|
114
123
|
"requirements": [
|
|
115
124
|
{
|
|
@@ -176,12 +185,21 @@ For providers like Stripe, create a payment session and confirm it with their ow
|
|
|
176
185
|
|
|
177
186
|
Discount codes, gift cards and store credit can be applied any time before completion:
|
|
178
187
|
|
|
188
|
+
|
|
179
189
|
```typescript Store SDK
|
|
180
190
|
await client.carts.discountCodes.apply(cartId, 'SUMMER20')
|
|
181
191
|
await client.carts.giftCards.apply(cartId, 'GIFT-XXXX')
|
|
182
192
|
await client.carts.storeCredits.apply(cartId)
|
|
183
193
|
```
|
|
184
194
|
|
|
195
|
+
```bash cURL
|
|
196
|
+
curl -X POST 'https://api.mystore.com/api/v3/store/carts/cart_xxx/discount_codes' \
|
|
197
|
+
-H 'X-Spree-API-Key: pk_xxx' \
|
|
198
|
+
-H 'Content-Type: application/json' \
|
|
199
|
+
-d '{ "code": "SUMMER20" }'
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
|
|
185
203
|
## What completion guarantees
|
|
186
204
|
|
|
187
205
|
Completing a cart moves real money, so Spree is careful about it:
|