Update store
Update a store (POST body is partial). Requires a Write key. Send null to clear an optional field. Payment provider credentials (Zahls) remain dashboard-only.
POST
/stores/{storeId}Authorization
AuthorizationBearer token (API key) · headerrequiredOrganization API key.
Path parameters
storeIdstringrequiredRequest body
requiredapplication/jsonnamestringaddressstring | nullzipCodestring | nullcitystring | nullHuman-readable store label within the organization
vatNumberstring | nullpaymentCashboolean | nullpaymentPaytecboolean | nullpaymentZahlsboolean | nullpaymentZahlsOfflineboolean | nullpaymentCashOfflineboolean | nullshowSupplierboolean | nullhideTextStartboolean | nullgeneralMarginnumber | nullcustomMessagestring | nullbackgroundImageCartstring | object | anyShow propertiesHide properties
One of:
string
stringobject
srcstringany
anybackgroundImagestring | object | anyShow propertiesHide properties
One of:
string
stringobject
srcstringany
anybackgroundColorstring | nullbackgroundFontColorstring | nullplaySoundboolean | nullstandardSoundstring | nulladminMailstring | nullshowInfoButtonboolean | nulldeleteCountdownnumber | nulllogoUrlstring | nulllanguageMultiboolean | nulllanguageMainstring | nullAllowed:
deenfritlanguageSelectorstring[] | nulltranslationsobject | nulldeletedbooleanSet true to soft-delete.
Responses
200Updated
successbooleanrequired400Bad request
statusCodeintegerrequiredHTTP status code
messagestringrequiredHuman-readable error message
timestampstring<date-time>requiredpathstringrequiredRequest path
403Unauthorized
statusCodeintegerrequiredHTTP status code
messagestringrequiredHuman-readable error message
timestampstring<date-time>requiredpathstringrequiredRequest path
404Not found
statusCodeintegerrequiredHTTP status code
messagestringrequiredHuman-readable error message
timestampstring<date-time>requiredpathstringrequiredRequest path
Request
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: {
"Authorization": "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
})
});Response
{
"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"
}