Add-on activation

Request body

token
string
e-shop identifier
version
intiger
apiUser
string
user access to the e-shop API
apiKey
string
user access password to the e-shop API
apiUrl
string
API URL of eshop. It is not unique and can change. We do not recommend using it for user matching.
current_admin_language
enum
Administration language by ISO 639-1

cs
Czech
string
sk
Slovak
string
en
Enlish
string
signature
string
Old verification method - valid until 12/2024 - DO NOT USE
time
string
Signature validity time_v2 by ISO 8601
signature_v2
string
base64_encode signature of specified attributes using private key
To create it, you will need to know
 signature_token.
POST https://yourdomain.com/yourinstallationAPIEndoint JSON

{
"token": "",
"version": "",
"apiUser": "",
"apiKey": "",
"apiUrl": "",
"current_admin_language": "cs",
"signature": "",
"time": "",
"signature_v2": ""
}
                                        

Response body

error
required
boolean
true / false, 1 / 0
message
string
required if error = TRUE.
{} Response JSON

{
"error": false,
"message": ""
}
                                            

Signature specimen:

{} Signature PHP

<?php

$data = implode(";", [
    "token" => "...",
    "apiUser" => "...",
    "apiKey" => "...",
    "apiUrl" => "https://...",
    ]);
$signature_v2 = 'a0e0a3e7689bd4c80e4d6ffcccb05235b864e1d0';
$signaturePublicKey = file_get_contents("https://files.upgates.com/addons/signature/api.signature.pub.key");
$verify = openssl_verify($data, base64_decode($signature), $signaturePublicKey, OPENSSL_ALGO_SHA256);
            
        
{} Signature_v2 PHP

<?php

$data = implode(";", [
    "token" => "...",
    "apiUser" => "...",
    "apiKey" => "...",
    "apiUrl" => "https://...",
    "time" => "...",
    "signature_token" => "...",
    ]);
$signature_v2 = 'a0e0a3e7689bd4c80e4d6ffcccb05235b864e1d0';
$signaturePublicKey = file_get_contents("https://files.upgates.com/addons/signature/api.signature.pub.key");
$verify = openssl_verify($data, base64_decode($signature_v2), $signaturePublicKey, OPENSSL_ALGO_SHA256);
            
        

Failed installation

  • The add-on cannot be activated if:
    • Your answer is longer than 5 seconds.
    • Any response other than HTTP status code 200.
    • HTTP 200 response is not valid.

Answer (Validation)

  • required attribut error
    • TRUE (bool) - Problem on the add-on side - installation would be fine, but the customer has to meet additional conditions before they can install the add-on.
    • FALSE (bool) - Everything went fine, the add-on is successfully installed.
  • cURL supported content encoding
    • libcurl
    • deflate
    • gzip
    • br
    • zstd