CNaughtCNaught
PricingSign In

Delete Subaccount

Deletes the Subaccount with the given id. This operation will fail if the subaccount has orders associated with it.

DEL/subaccounts/{id}

Authorizations#

Authorization

string

header

required

Bearer authentication header of the form Bearer <token>, where <token> is your CNaught API key.

Path Parameters#

id

string

required

ID of subaccount to return / modify

Response#

204

Subaccount successfully deleted (No Content)

Update Subaccount

Delete Subaccount

curl --request DELETE \
  --url https://api.cnaught.com/v1/subaccounts/<id> \
  --header 'Authorization: Bearer <token>'
{
  "title": "Authorization has been denied for this request",
  "status": 401
}