Deactivating an add-on
Request body
token
string
Online store ID
version
intiger
time
string
Validity time of signature_v2 according to ISO 8601
signature
string
Old verification method - valid until 12/2024 - DO NOT USE
signature_v2
string
base64_encode signature of the specified attributes using the private key.
You will need to know the signature_token to create it.
You will need to know the signature_token to create it.
POST https://vasedomena.com/vášOdinstalačníAPIEndoint JSON
{
"token": "",
"version": "",
"time": "",
"signature": "",
"signature_v2": ""
}
Response body
- It does not wait for an HTTP 200 response - any response will result in an Upgates uninstall.
- API accesses will be deleted (401 Unauthorized will be returned).
- Things tied to the user's API (conversion codes, webhooks) are deleted.
Podpisový vzor:
{}Signature PHP
<?php
$data = implode(";", [
"token" => "...",
"addon" => "...",
"time" => "..."
]);
$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);
{} Signature_v2 PHP
<?php
$data = implode(";", [
"token" => "...",
"time" => "...",
"signature_token" => "...",
]);
$signature = '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);
Answer (Validation)
- cURL supported content encoding
- libcurl
- deflate
- gzip
- br
- zstd
Next article
Add-on activation