Skip to main content
POST
/
cart
/
{id}
/
item
Add Cart Item
curl --request POST \
  --url https://api.satsuma.ai/cart/{id}/item \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "product_id": "<string>",
  "product_name": "<string>",
  "quantity": 2
}'
{
  "data": "<string>",
  "messages": [
    {
      "context": "<string>",
      "level": "Information",
      "text": "<string>",
      "data": {}
    }
  ]
}

Authorizations

Authorization
string
header
required

API Key authentication

Path Parameters

id
string
required

Cart identifier

Body

application/json

Request to add an item to the cart

product_id
string
required

Product identifier for the cart item

product_name
string
required

Product name for the cart item

quantity
integer
required

Quantity of the item in the cart

Required range: x >= 1

Response

201 - application/json

Created

data
string
messages
object[]