POST
/
carts
curl --request POST \
  --url https://api.hostwithdothost.com/carts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "cartDetails": [
    {
      "description": "<string>",
      "quantity": 123,
      "price": 123,
      "total": 123,
      "productType": "<string>"
    }
  ]
}'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
cartDetails
object[]
required

Details of items in the cart