POST
/
cart
/
checkout
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": 46,
  "payment_method": {
    "id": "81n9al10a0ayn13",
    "jwe": "ey...",
    "is_single_use": 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 to checkout a cart.

The body is of type object.

Response

202
application/json

Successful request.

The response is of type object.