Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

MethodURLExample
POST/api/v1/basketshttps://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.

...

MethodURLExample
GET/api/v1/baskets/<basketId>https://api.spreadshirt.net/api/v1/baskets/5ad33740-30ad-41b0-846f-9e1f0c6824b5?mediaType=json


Query ParameterDescription
localeUse on of the values described here. This will affect the assumed shipping costs as well as the localized names of "description", "sizeLabel" and "appearanceLabel".

...

MethodURLExample
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:

...