Skip to main content
POST
/
development
/
accounts
/
disconnect
cURL
curl --request POST \
  --url https://development.knotapi.com/development/accounts/disconnect \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "external_user_id": "abc123",
  "merchant_id": 12
}'
{
"message": "Success"
}
This endpoint is used to manually disconnect a user’s merchant account for a user in the development environment for testing purposes. Calling this endpoint sets the connection.status value of the user’s merchant account to disconnected, subsequently triggering the ACCOUNT_LOGIN_REQUIRED webhook event.

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 changing a merchant account's connection status to disconnected in development.

external_user_id
string
required

Unique identifier for the user.

Example:

"abc123"

merchant_id
integer
required

Unique identifier for the merchant.

Example:

12

Response

Successful request.

message
string

Success message.

Example:

"Success"

I