POST
/
cart
curl --request POST \
  --url https://development.knotapi.com/cart \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "external_user_id": "abc123",
  "merchant_id": 46,
  "products": [
    {
      "external_id": "3324893784",
      "fulfillment": {
        "id": "01fdc244-306c-570b-9274-b04910f1f3da"
      }
    }
  ],
  "delivery_location": {
    "address": {
      "line1": "123 Main St",
      "line2": "Floor 4",
      "city": "Los Angeles",
      "region": "CA",
      "postal_code": "94105",
      "country": "US"
    },
    "first_name": "Ada",
    "last_name": "Lovelace",
    "phone_number": "+11234567890",
    "set_as_default": true
  },
  "simulate": "failed"
}'
{
"message": "Success"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password. Use your client_id as the username and your secret as the password value.

Body

application/json

The input parameters required for adding products to a user's merchant cart.

The body is of type object.

Response

202
application/json

Successful request.

The response is of type object.