Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Parent
-
... ... @@ -1,1 +1,0 @@ 1 -API.Spreadshirt Public Shop API Documentation.API REST Resources.WebHome - Content
-
... ... @@ -13,7 +13,7 @@ 13 13 )))|((( 14 14 /api/v1/baskets 15 15 )))|((( 16 -https:~/~/api.spreadshirt.net/api/v1/baskets?mediaType=json 16 +[[https:~~/~~/api.spreadshirt.net/api/v1/baskets?mediaType=json>>url:https://api.spreadshirt.net/api/v1/currencies/1?mediaType=json||shape="rect"]] 17 17 ))) 18 18 19 19 Send a payload as shown below in the request body to create a new basket with any number of basket items in it. A request like this should usually be performed once a new customer interacts with the add-to-basket button for the first time while on your site. ... ... @@ -106,7 +106,7 @@ 106 106 \\ 107 107 108 108 (% class="auto-cursor-target" %) 109 -= Re trievea basket =109 += Read a basket = 110 110 111 111 |=((( 112 112 Method ... ... @@ -120,26 +120,10 @@ 120 120 )))|((( 121 121 /api/v1/baskets/<basketId> 122 122 )))|((( 123 -https:~/~/api.spreadshirt.net/api/v1/baskets/5ad33740-30ad-41b0-846f-9e1f0c6824b5?mediaType=json 123 +[[https:~~/~~/api.spreadshirt.net/api/v1/baskets/5ad33740-30ad-41b0-846f-9e1f0c6824b5?mediaType=json>>url:https://api.spreadshirt.net/api/v1/currencies/1?mediaType=json||shape="rect"]] 124 124 ))) 125 125 126 126 (% class="auto-cursor-target" %) 127 -\\ 128 - 129 -|=((( 130 -Query Parameter 131 -)))|=((( 132 -Description 133 -))) 134 -|((( 135 -locale 136 -)))|((( 137 -Use on of the values described [[here>>doc:API.Spreadshirt Public Shop API Documentation.API REST Resources.WebHome]]. This will affect the assumed shipping costs as well as the localized names of "description", "sizeLabel" and "appearanceLabel". 138 -))) 139 - 140 -\\ 141 - 142 -(% class="auto-cursor-target" %) 143 143 Given an id obtained from creating a basket, this resource allows to read the basket data and it contains additional information that can be useful to show to the customer. 144 144 145 145 {{code language="js" title="Example Response Payload"}} ... ... @@ -351,7 +351,7 @@ 351 351 |((( 352 352 basketItems/description 353 353 )))|((( 354 -Human-readable product type description. Depends on the locale parameter.338 +Human-readable product type description. 355 355 ))) 356 356 |((( 357 357 basketItems/quantity ... ... @@ -366,7 +366,7 @@ 366 366 |((( 367 367 basketItems/element/properties 368 368 )))|((( 369 -Aside from the properties that you sent yourself when creating the basket, this also includes the useful human-readable fields "sizeLabel" and "appearanceLabel". These depend on the locale parameter.353 +Aside from the properties that you sent yourself when creating the basket, this also includes the useful human-readable fields "sizeLabel" and "appearanceLabel". 370 370 ))) 371 371 |(% colspan="1" %)(% colspan="1" %) 372 372 ((( ... ... @@ -390,33 +390,4 @@ 390 390 Use the link with type "shopCheckout" to redirect your customer to Spreadshirt's checkout. 391 391 ))) 392 392 393 -(% class="auto-cursor-target" %) 394 394 \\ 395 - 396 -(% class="auto-cursor-target" %) 397 -= Update a basket = 398 - 399 -|=((( 400 -Method 401 -)))|=((( 402 -URL 403 -)))|=((( 404 -Example 405 -))) 406 -|((( 407 -PUT 408 -)))|((( 409 -/api/v1/baskets/<basketId> 410 -)))|((( 411 -https:~/~/api.spreadshirt.net/api/v1/baskets/5ad33740-30ad-41b0-846f-9e1f0c6824b5?mediaType=json 412 -))) 413 - 414 -(% class="auto-cursor-target" %) 415 -Allows to update an existing basket by overwriting its content. This works as follows: 416 - 417 -1. Retrieve an existing basket via GET. 418 -1. Modify the response payload according to your needs. 419 -1. Send the modified payload via PUT. 420 -1. In the response body, the result of the update is returned. Save and display this response; an additional GET request is thus not required. 421 - 422 -"Modifying the payload" might mean increasing or decreasing a basket item's quantity, adding or removing basket items from the "basketItems" array. Fields like prices can of course not be set by you. It is irrelevant whether you send them with the PUT request or not. However, you need to know how prices change when you increased an item's quantity - that is what the response body is for.
- Confluence.Code.ConfluencePageClass[0]
-
- id
-
... ... @@ -1,1 +1,1 @@ 1 -282788 421 +28278863 - url
-
... ... @@ -1,1 +1,1 @@ 1 -https://developer.spreadshirt.net/wiki/spaces/API/pages/282788 42/Baskets1 +https://developer.spreadshirt.net/wiki/spaces/API/pages/28278863/Baskets