Create store
Create a store location. Requires a Write key. Within an organization, name is often the brand; use city (or address) to distinguish locations. Payment provider credentials (Zahls) are configured in the dashboard, not via this API.
POST
/storesAuthorization
AuthorizationBearer token (API key) · headerrequiredOrganization API key.
Request body
requiredapplication/jsonnamestringrequiredaddressstringzipCodestringcitystringHuman-readable store label within the organization
vatNumberstringpaymentCashbooleanpaymentPaytecbooleanpaymentZahlsbooleanpaymentZahlsOfflinebooleanpaymentCashOfflinebooleanshowSupplierbooleanhideTextStartbooleangeneralMarginnumbercustomMessagestringbackgroundImageCartstring | objectShow propertiesHide properties
One of:
string
stringobject
srcstringbackgroundImagestring | objectShow propertiesHide properties
One of:
string
stringobject
srcstringbackgroundColorstringbackgroundFontColorstringplaySoundbooleanstandardSoundstringadminMailstringshowInfoButtonbooleandeleteCountdownnumberlogoUrlstringlanguageMultibooleanlanguageMainstringAllowed:
deenfritlanguageSelectorstring[]translationsobjectResponses
200Store created
successbooleanrequiredidstringrequired400Bad 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
Request
curl -X POST "https://dashboard.scango.ch/api/v1/stores" \
-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": {}
}'const response = await fetch("https://dashboard.scango.ch/api/v1/stores", {
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": {}
})
});Response
{
"success": true,
"id": "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"
}