Skip to content

DeleteInstanceAccount#

The method is aimed for deleting an instance of the partners's account.

Request#

To delete an instance on the partner's part you have to execute a POST request at:

POST {{apiUrl}}/partner/deleteInstanceAccount/{{partnerToken}}

For apiUrl request parameter, refer to Before you start section.

For partnerTokenrequest parameter please contact Green API technical support with a request to get a partnership API-token.

Request parameters#

Parameter Type Mandatory Description
idInstance int mandatory parameter account instance id

Request body example#

{
    "idInstance": 1101000000
}

Response#

Response parameters#

Parameter Type Description
deleteInstanceAccount boolean account instance deletion flag

Response body example#

If successful, in response to the request, you get a JSON string with HTTP 200 status of the below form:

{
    "deleteInstanceAccount": true
}

In case of failure, you get a response with HTTP 200 status, a JSON string with a code and description of the error is returned in the response body:

{
    "code": 401,
    "description": "Unauthorized"
}

DeleteInstanceAccount errors#

For a list of errors common to all methods, refer to Common errors section