POST

get_mobile_redirect_user_agents

You should cache the request for 24 hours! It is not a solution to request this method every time a customer requests a page on the online store.

Query parameters

action
string

Requested method

required
default : get_orders
shop_number
string

Your shop number. Example: “10123”

required

Response

application/json
object
error
integer

Error code 0 means no error.

required
error_text
string or null

Error message.

keywords
array[string]

Keywords detecting devices that must be redirected. Examples: “iPhone”, “Android”

skip_keywords
array[string]

Keywords detecting devices that must not be redirected. Example: “Shopgate”, “iPad”

version
string

API version. Example: “1.0”

trace_id
string or null

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

Error Codes

Code Description
101 Unknown action
103 “shop_number” not set
110 Merchant not found
113 Shop not found
118 Missing parameters
123 Following parameters of wrong type: […]
400 Authorization not set
401 Authorization username invalid format
402 Generated authorization password invalid
403 Generated authorization is too old
404 The given OAuth2 access token is invalid
405 Shop has no rights to access API. Make sure your contract is valid
999 Unknown error

Example

{
    error: 0,
    error_text: null,
    keywords : ['iPhone', 'iPod', 'iPad', 'Android'],
    skipKeywords : ['Shopgate', 'iPad'],
    version: "1.0",
    trace_id: "spa-4f7ab2d146165"
}