...
Method | URL | Example |
---|---|---|
POST | /api/v1/baskets | https://api.spreadshirt.net/api/v1/baskets?mediaType=json |
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.
...
Method | URL | Example |
---|---|---|
GET | /api/v1/baskets/<basketId> | https://api.spreadshirt.net/api/v1/baskets/5ad33740-30ad-41b0-846f-9e1f0c6824b5?mediaType=json |
Query Parameter | Description |
---|---|
locale | Use on of the values described here. This will affect the assumed shipping costs as well as the localized names of "description", "sizeLabel" and "appearanceLabel". |
...
Method | URL | Example |
---|---|---|
PUT | /api/v1/baskets/<basketId> | https://api.spreadshirt.net/api/v1/baskets/5ad33740-30ad-41b0-846f-9e1f0c6824b5?mediaType=json |
Allows to update an existing basket by overwriting its content. This works as follows:
...