POST

clear_log_file

This action allows clearing cache folder.

Query parameters

action
string

Requested method

required
default : clear_log_file
shop_number
string

Your shop number. Example: “11413”

required
trace_id
string

Unique request trace ID. Example: “sma-9412”

required

Response

application/json
object
error
integer

Error code 0 means no error.

required
error_text
null or string

Error message

required
shopgate_library_version
string

Shopgate Library version. Example: “2.5.0”

required
plugin_version
string

Plugin version. Example: “2.5.3”

trace_id
string

Request trace-ID, needed as reference for contact. Example: “sma-4f99573d74ae1”

required

Error Codes

Code Description
2 cannot open/create logfile(s)
10 invalid value in configuration
11 error reading or writing configuration
20 no action specified
21 unknown action requested
22 disabled action requested
23 wrong response format
79 cannot delete file(s)
83 database error
100 no connection to server
101 Unknown action
102 error code received from merchant API
120 authentication failed
999 Unknown error

Example

{
    "error": 0,
    "error_text": null,
    "shopgate_library_version":"2.1.0",
    "plugin_version":"2.1.0",
    "trace_id": "sma-3995",
}