Aggiorna negozio
Aggiorna un negozio (il body POST è parziale). Richiede una chiave Write. Invia null per cancellare un campo opzionale. Le credenziali Zahls restano solo nel dashboard.
POST
/stores/{storeId}Autorizzazione
AutorizzazioneToken Bearer (API key) · headerobbligatorioChiave API dell'organizzazione.
Parametri path
storeIdstringobbligatorioCorpo della richiesta
obbligatorioapplication/jsonnamestringaddressstring | nullzipCodestring | nullcitystring | nullEtichetta leggibile del negozio nell'organizzazione
vatNumberstring | nullpaymentCashboolean | nullpaymentPaytecboolean | nullpaymentZahlsboolean | nullpaymentZahlsOfflineboolean | nullpaymentCashOfflineboolean | nullshowSupplierboolean | nullhideTextStartboolean | nullgeneralMarginnumber | nullcustomMessagestring | nullbackgroundImageCartstring | object | anyMostra proprietàNascondi proprietà
Uno tra:
string
stringobject
srcstringany
anybackgroundImagestring | object | anyMostra proprietàNascondi proprietà
Uno tra:
string
stringobject
srcstringany
anybackgroundColorstring | nullbackgroundFontColorstring | nullplaySoundboolean | nullstandardSoundstring | nulladminMailstring | nullshowInfoButtonboolean | nulldeleteCountdownnumber | nulllogoUrlstring | nulllanguageMultiboolean | nulllanguageMainstring | nullConsentiti:
deenfritlanguageSelectorstring[] | nulltranslationsobject | nulldeletedbooleanImposta true per il soft-delete.
Risposte
200Aggiornato
successbooleanobbligatorio400Richiesta non valida
statusCodeintegerobbligatorioCodice di stato HTTP
messagestringobbligatorioMessaggio di errore leggibile
timestampstring<date-time>obbligatoriopathstringobbligatorioPercorso della richiesta
403Non autorizzato
statusCodeintegerobbligatorioCodice di stato HTTP
messagestringobbligatorioMessaggio di errore leggibile
timestampstring<date-time>obbligatoriopathstringobbligatorioPercorso della richiesta
404Not found
statusCodeintegerobbligatorioCodice di stato HTTP
messagestringobbligatorioMessaggio di errore leggibile
timestampstring<date-time>obbligatoriopathstringobbligatorioPercorso della richiesta
Richiesta
curl -X POST "https://dashboard.scango.ch/api/v1/stores/string" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"address": "string",
"zipCode": "string",
"city": "string",
"vatNumber": "string",
"paymentCash": true,
"paymentPaytec": true,
"paymentZahls": true,
"paymentZahlsOffline": true,
"paymentCashOffline": true,
"showSupplier": true,
"hideTextStart": true,
"generalMargin": 0,
"customMessage": "string",
"backgroundImageCart": "string",
"backgroundImage": "string",
"backgroundColor": "string",
"backgroundFontColor": "string",
"playSound": true,
"standardSound": "string",
"adminMail": "string",
"showInfoButton": true,
"deleteCountdown": 0,
"logoUrl": "string",
"languageMulti": true,
"languageMain": "de",
"languageSelector": [
"de"
],
"translations": {},
"deleted": true
}'const response = await fetch("https://dashboard.scango.ch/api/v1/stores/string", {
method: "POST",
headers: {
"Autorizzazione": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"name": "string",
"address": "string",
"zipCode": "string",
"city": "string",
"vatNumber": "string",
"paymentCash": true,
"paymentPaytec": true,
"paymentZahls": true,
"paymentZahlsOffline": true,
"paymentCashOffline": true,
"showSupplier": true,
"hideTextStart": true,
"generalMargin": 0,
"customMessage": "string",
"backgroundImageCart": "string",
"backgroundImage": "string",
"backgroundColor": "string",
"backgroundFontColor": "string",
"playSound": true,
"standardSound": "string",
"adminMail": "string",
"showInfoButton": true,
"deleteCountdown": 0,
"logoUrl": "string",
"languageMulti": true,
"languageMain": "de",
"languageSelector": [
"de"
],
"translations": {},
"deleted": true
})
});Risposta
{
"success": true
}{
"statusCode": 0,
"message": "string",
"timestamp": "2024-01-01T00:00:00Z",
"path": "string"
}{
"statusCode": 0,
"message": "string",
"timestamp": "2024-01-01T00:00:00Z",
"path": "string"
}{
"statusCode": 0,
"message": "string",
"timestamp": "2024-01-01T00:00:00Z",
"path": "string"
}