Skip to main content
POST
/
cart
Create Cart
curl --request POST \
  --url https://api.satsuma.ai/cart \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "user_id": "<string>",
  "location_id": "<string>",
  "status": "Active",
  "fulfillment_method": "Delivery"
}'
{
  "data": "<string>",
  "messages": [
    {
      "context": "<string>",
      "level": "Information",
      "text": "<string>",
      "data": {}
    }
  ]
}

Authorizations

Authorization
string
header
required

API Key authentication

Body

application/json

Request to create a new cart

user_id
string
required

User identifier who owns the cart

location_id
string
required

Location identifier for the cart

status
enum<string>
required

Current status of the cart

Available options:
Active,
Submitted,
Cancelled
fulfillment_method
enum<string>

Fulfillment method for the cart

Available options:
Delivery,
Pickup,
Shipping

Response

201 - application/json

Created

data
string
messages
object[]