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": 456,
"products": [
{
"external_id": "3324893784"
}
],
"simulate": "failed"
}
'{
"message": "Success"
}Sync Cart
Add one or more products to a user’s merchant 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": 456,
"products": [
{
"external_id": "3324893784"
}
],
"simulate": "failed"
}
'{
"message": "Success"
}Documentation Index
Fetch the complete documentation index at: https://docs.knotapi.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
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
The input parameters required for adding products to a user's merchant cart.
Your unique identifier for the user.
"abc123"
Unique identifier for the merchant.
456
List of products to add to the cart.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Simulate a failure in the development environment.
failed "failed"
Response
Successful request.
Success message.
"Success"
Was this page helpful?