Update Settings
curl --request PUT \
--url https://api.vellaro.io/api/v1/admin/nextera/settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enabled": true,
"base_url": "<string>",
"api_key": "<string>",
"warehouse_ids": [
"<string>"
],
"allowed_vat_percent": 123,
"import_default_active": true,
"sync_price_enabled": true,
"sync_stock_enabled": true,
"sync_interval_minutes": 722,
"fiscal_type_default": "<string>",
"fiscal_buyer_country": "<string>",
"fiscal_auto_on_payment": true
}
'import requests
url = "https://api.vellaro.io/api/v1/admin/nextera/settings"
payload = {
"enabled": True,
"base_url": "<string>",
"api_key": "<string>",
"warehouse_ids": ["<string>"],
"allowed_vat_percent": 123,
"import_default_active": True,
"sync_price_enabled": True,
"sync_stock_enabled": True,
"sync_interval_minutes": 722,
"fiscal_type_default": "<string>",
"fiscal_buyer_country": "<string>",
"fiscal_auto_on_payment": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
enabled: true,
base_url: '<string>',
api_key: '<string>',
warehouse_ids: ['<string>'],
allowed_vat_percent: 123,
import_default_active: true,
sync_price_enabled: true,
sync_stock_enabled: true,
sync_interval_minutes: 722,
fiscal_type_default: '<string>',
fiscal_buyer_country: '<string>',
fiscal_auto_on_payment: true
})
};
fetch('https://api.vellaro.io/api/v1/admin/nextera/settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vellaro.io/api/v1/admin/nextera/settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'enabled' => true,
'base_url' => '<string>',
'api_key' => '<string>',
'warehouse_ids' => [
'<string>'
],
'allowed_vat_percent' => 123,
'import_default_active' => true,
'sync_price_enabled' => true,
'sync_stock_enabled' => true,
'sync_interval_minutes' => 722,
'fiscal_type_default' => '<string>',
'fiscal_buyer_country' => '<string>',
'fiscal_auto_on_payment' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.vellaro.io/api/v1/admin/nextera/settings"
payload := strings.NewReader("{\n \"enabled\": true,\n \"base_url\": \"<string>\",\n \"api_key\": \"<string>\",\n \"warehouse_ids\": [\n \"<string>\"\n ],\n \"allowed_vat_percent\": 123,\n \"import_default_active\": true,\n \"sync_price_enabled\": true,\n \"sync_stock_enabled\": true,\n \"sync_interval_minutes\": 722,\n \"fiscal_type_default\": \"<string>\",\n \"fiscal_buyer_country\": \"<string>\",\n \"fiscal_auto_on_payment\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.vellaro.io/api/v1/admin/nextera/settings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"enabled\": true,\n \"base_url\": \"<string>\",\n \"api_key\": \"<string>\",\n \"warehouse_ids\": [\n \"<string>\"\n ],\n \"allowed_vat_percent\": 123,\n \"import_default_active\": true,\n \"sync_price_enabled\": true,\n \"sync_stock_enabled\": true,\n \"sync_interval_minutes\": 722,\n \"fiscal_type_default\": \"<string>\",\n \"fiscal_buyer_country\": \"<string>\",\n \"fiscal_auto_on_payment\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vellaro.io/api/v1/admin/nextera/settings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"enabled\": true,\n \"base_url\": \"<string>\",\n \"api_key\": \"<string>\",\n \"warehouse_ids\": [\n \"<string>\"\n ],\n \"allowed_vat_percent\": 123,\n \"import_default_active\": true,\n \"sync_price_enabled\": true,\n \"sync_stock_enabled\": true,\n \"sync_interval_minutes\": 722,\n \"fiscal_type_default\": \"<string>\",\n \"fiscal_buyer_country\": \"<string>\",\n \"fiscal_auto_on_payment\": true\n}"
response = http.request(request)
puts response.read_body{
"data": {
"enabled": true,
"base_url": "<string>",
"has_api_key": true,
"warehouse_ids": [
"<string>"
],
"allowed_vat_percent": "<string>",
"import_default_active": true,
"sync_price_enabled": true,
"sync_stock_enabled": true,
"sync_interval_minutes": 123,
"fiscal_type_default": "<string>",
"fiscal_buyer_country": "<string>",
"fiscal_auto_on_payment": true,
"last_ping_at": "2023-11-07T05:31:56Z",
"last_ping_ok": true,
"updated_at": "2023-11-07T05:31:56Z"
},
"meta": {
"page": 123,
"page_size": 123,
"total": 123,
"total_pages": 123
},
"error": "<string>",
"error_code": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}admin:nextera
Update Settings
PUT
/
api
/
v1
/
admin
/
nextera
/
settings
Update Settings
curl --request PUT \
--url https://api.vellaro.io/api/v1/admin/nextera/settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enabled": true,
"base_url": "<string>",
"api_key": "<string>",
"warehouse_ids": [
"<string>"
],
"allowed_vat_percent": 123,
"import_default_active": true,
"sync_price_enabled": true,
"sync_stock_enabled": true,
"sync_interval_minutes": 722,
"fiscal_type_default": "<string>",
"fiscal_buyer_country": "<string>",
"fiscal_auto_on_payment": true
}
'import requests
url = "https://api.vellaro.io/api/v1/admin/nextera/settings"
payload = {
"enabled": True,
"base_url": "<string>",
"api_key": "<string>",
"warehouse_ids": ["<string>"],
"allowed_vat_percent": 123,
"import_default_active": True,
"sync_price_enabled": True,
"sync_stock_enabled": True,
"sync_interval_minutes": 722,
"fiscal_type_default": "<string>",
"fiscal_buyer_country": "<string>",
"fiscal_auto_on_payment": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
enabled: true,
base_url: '<string>',
api_key: '<string>',
warehouse_ids: ['<string>'],
allowed_vat_percent: 123,
import_default_active: true,
sync_price_enabled: true,
sync_stock_enabled: true,
sync_interval_minutes: 722,
fiscal_type_default: '<string>',
fiscal_buyer_country: '<string>',
fiscal_auto_on_payment: true
})
};
fetch('https://api.vellaro.io/api/v1/admin/nextera/settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vellaro.io/api/v1/admin/nextera/settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'enabled' => true,
'base_url' => '<string>',
'api_key' => '<string>',
'warehouse_ids' => [
'<string>'
],
'allowed_vat_percent' => 123,
'import_default_active' => true,
'sync_price_enabled' => true,
'sync_stock_enabled' => true,
'sync_interval_minutes' => 722,
'fiscal_type_default' => '<string>',
'fiscal_buyer_country' => '<string>',
'fiscal_auto_on_payment' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.vellaro.io/api/v1/admin/nextera/settings"
payload := strings.NewReader("{\n \"enabled\": true,\n \"base_url\": \"<string>\",\n \"api_key\": \"<string>\",\n \"warehouse_ids\": [\n \"<string>\"\n ],\n \"allowed_vat_percent\": 123,\n \"import_default_active\": true,\n \"sync_price_enabled\": true,\n \"sync_stock_enabled\": true,\n \"sync_interval_minutes\": 722,\n \"fiscal_type_default\": \"<string>\",\n \"fiscal_buyer_country\": \"<string>\",\n \"fiscal_auto_on_payment\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.vellaro.io/api/v1/admin/nextera/settings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"enabled\": true,\n \"base_url\": \"<string>\",\n \"api_key\": \"<string>\",\n \"warehouse_ids\": [\n \"<string>\"\n ],\n \"allowed_vat_percent\": 123,\n \"import_default_active\": true,\n \"sync_price_enabled\": true,\n \"sync_stock_enabled\": true,\n \"sync_interval_minutes\": 722,\n \"fiscal_type_default\": \"<string>\",\n \"fiscal_buyer_country\": \"<string>\",\n \"fiscal_auto_on_payment\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vellaro.io/api/v1/admin/nextera/settings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"enabled\": true,\n \"base_url\": \"<string>\",\n \"api_key\": \"<string>\",\n \"warehouse_ids\": [\n \"<string>\"\n ],\n \"allowed_vat_percent\": 123,\n \"import_default_active\": true,\n \"sync_price_enabled\": true,\n \"sync_stock_enabled\": true,\n \"sync_interval_minutes\": 722,\n \"fiscal_type_default\": \"<string>\",\n \"fiscal_buyer_country\": \"<string>\",\n \"fiscal_auto_on_payment\": true\n}"
response = http.request(request)
puts response.read_body{
"data": {
"enabled": true,
"base_url": "<string>",
"has_api_key": true,
"warehouse_ids": [
"<string>"
],
"allowed_vat_percent": "<string>",
"import_default_active": true,
"sync_price_enabled": true,
"sync_stock_enabled": true,
"sync_interval_minutes": 123,
"fiscal_type_default": "<string>",
"fiscal_buyer_country": "<string>",
"fiscal_auto_on_payment": true,
"last_ping_at": "2023-11-07T05:31:56Z",
"last_ping_ok": true,
"updated_at": "2023-11-07T05:31:56Z"
},
"meta": {
"page": 123,
"page_size": 123,
"total": 123,
"total_pages": 123
},
"error": "<string>",
"error_code": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Autorizzazioni
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Corpo
application/json
Partial update. api_key semantics (mirrors integrations.merge_secrets):
- omitted → keep the stored key
- ""/null → clear it
- a value → replace it
Intervallo richiesto:
5 <= x <= 1440⌘I