cURL
curl --request POST \
--url https://development.knotapi.com/cart/checkout \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"external_user_id": "abc123",
"merchant_id": 456,
"simulate": "failed"
}
'{
"message": "Success"
}Shopping
Checkout
Checkout a user’s merchant cart.
POST
/
cart
/
checkout
cURL
curl --request POST \
--url https://development.knotapi.com/cart/checkout \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"external_user_id": "abc123",
"merchant_id": 456,
"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
application/json
The input parameters required to checkout a cart.
Your unique identifier for the user.
Example:
"abc123"
Unique identifier for the merchant.
Example:
456
Show child attributes
Show child attributes
Simulate a failure in the development environment.
Available options:
failed Example:
"failed"
Response
Successful request.
Success message.
Example:
"Success"
Was this page helpful?
⌘I