Skip to main content

Shop(Store)

Create shop#

Creates new store

Request body:

AttributeTypeDescriptionNullable
externalIdStringShop external idtrue
activeBooleanShop availability for usersfalse
regionIdIntegerId of the region in which the store is locatedfalse
regionExternalIdStringExternal id of the region in which the store is locatedtrue
addrRegOfficeStringAddress of the region in which the store is locatedtrue
sapStringUnique store numberfalse
addressStringStore addressfalse
localityStringName of storefalse
cityStringThe city where the store is locatedfalse
latitudeDoubleLatitude of storefalse
longitudeDoubleLongitude of storefalse
timeZoneIdStringId of the time zone in which the store is located (format like Europe/Moscow)false
statusIdIntegerStatus Id of the shoptrue
emailStringEmail of the shoptrue
telegramChatIdStringTelegramChat Id of the shoptrue

Response

Returns Store object

Examples

curl --request POST https://api.qvalon.com/v1/api/orgstruct/shops \
--header 'Authorization: Bearer <your_token>' \
--header 'Content-Type: application/json' \
-d '{"locality":"Store on st.Novogireevskaya","sap":"NVG01","active":true,"address":"Novogireevskaya","city":"Moscow","regionId":86,"latitude":55.756527,"longitude":37.796465,"timeZoneId":"Europe/Moscow"}'
200 OK
{
"id": 669,
"active": true,
"sap": "NVG01",
"locality": "Store on st.Novogireevskaya",
"address": "Novogireevskaya",
"city": "Moscow",
"latitude": 55.756527,
"longitude": 37.796465,
"regionId": 86,
"clusterId": 86,
"timeZoneId": "Europe/Moscow"
}

Update shop#

Update existing store by id.

Request body:

AttributeTypeDescriptionNullable
externalIdStringShop external idtrue
activeBooleanShop availability for usersfalse
regionIdIntegerId of the region in which the store is locatedfalse
regionExternalIdStringExternal id of the region in which the store is locatedtrue
addrRegOfficeStringAddress of the region in which the store is locatedtrue
sapStringUnique store numberfalse
addressStringStore addressfalse
localityStringName of storefalse
cityStringThe city where the store is locatedfalse
latitudeDoubleLatitude of storefalse
longitudeDoubleLongitude of storefalse
timeZoneIdStringId of the time zone in which the store is located (format like Europe/Moscow)false
statusIdIntegerStatus Id of the shoptrue
emailStringEmail of the shoptrue
telegramChatIdStringTelegramChat Id of the shoptrue

Response

Returns Store object

Examples

curl --request PUT https://api.qvalon.com/v1/orgstruct/shops/669 \
--header 'Authorization: Bearer <your_token>' \
--header 'Content-Type: application/json' \
-d '{"active":true,"sap":"NVG01","locality":"Store on st.Novogireevskaya","address":"Novogireevskaya d.12","city":"Moscow","latitude":55.756527,"longitude":37.796465,"regionId":86,"timeZoneId":"Europe/Moscow"}'
200 OK
{
"active": true,
"sap": "NVG01",
"locality": "Store on st.Novogireevskaya",
"address": "Novogireevskaya d.12",
"city": "Moscow",
"latitude": 55.756527,
"longitude": 37.796465,
"regionId": 86,
"timeZoneId": "Europe/Moscow"
}

List shops#

Return list of Shop objects
Available fields to add in object see here

Request parameters:

Request ParameterTypeDescriptionRequired
fieldsList of String (comma-separated)Add additional fields to response objectfalse
activeBooleanReturn only active shopsfalse
idsList of integersFind shops by idsfalse
regionList of integersFind shops by region idsfalse
divisionList of integersFind shops by division idsfalse
sapLikeStringFind shops by SAP(store number) likefalse
localityLikeStringFind shops by name likefalse
cityLikeStringFind shops by city likefalse
addressLikeStringFind shops by address likefalse
searchStringStringFind shop by sap, name or division name or region name or city or address or manager of shop first or last nametrue
statusIntegerFind shops by statustrue
directorBooleanGet shops where appointed are managertrue
allDayBooleanGet convenience shopstrue

Examples

curl https://api.qvalon.com/v1/orgstruct/shops \
--header 'Authorization: Bearer <your_token>'
200 OK
[
{
"id": 669,
"active": true,
"sap": "NVG01",
"locality": "Store on st.Novogireevskaya",
"address": "Novogireevskaya d.12",
"city": "Moscow",
"latitude": 55.756527,
"longitude": 37.796465,
"regionId": 86,
"timeZoneId": "Europe/Moscow"
}
]

Get shop by id#

Return list of Shop objects
Available fields to add in object see here

Request parameters:

Request ParameterTypeDescriptionRequired
fieldsList of String (comma-separated)Add additional fields to response objectfalse

Examples

curl https://api.qvalon.com/v1/orgstruct/shops/669 \
--header 'Authorization: Bearer <your_token>'
200 OK
{
"id": 669,
"active": true,
"sap": "NVG01",
"locality": "Store on st.Novogireevskaya",
"address": "Novogireevskaya d.12",
"city": "Moscow",
"latitude": 55.756527,
"longitude": 37.796465,
"regionId": 86,
"timeZoneId": "Europe/Moscow"
}