POST

get_log_file

This action allows access to the log files.

Query parameters

action
string

Requested method

required
shop_number
string

Your shop number. Example: “11413”

required
log_type
string

log file to be selected. Examples: “access”, “debug”, “error”, “request”

lines
integer

Number of lines to read (starting from the end).

trace_id
string

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

required

Response

application/json
object

In case of an error

A JSON object including the error code, error text, API version and request trace ID is returned.

Otherwise the contents of the request log file will be provided

error
integer

False means no error.

error_text
string or null

Error text; null means no error.

shopgate_library_version
string

Shopgate Library version. Example: “2.5.0”

plugin_version
string

Plugin version. Example: “2.5.3”

trace_id
string

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

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
38 unknown log type
83 database error
100 no connection to server
101 Unknown action
102 error code received from merchant API
120 authentication failed
999 Unknown error