Create shop
Body
Required
-
name
string -
category
string Values are
MECHANIC
,PLUMBER
,ELECTRICIAN
,BUSINESS
,PERSONAL_SHOPPER
,HOUSE_KEEPING
,CARPENTER
,GENERATOR_REPAIR
,HOME_INSTALLER
,GUEST
, orUSER
. -
address
string -
latitude
number(double) -
longitude
number(double) -
upload
object Additional properties are allowed.
-
weekdays
array[object] -
services
array[string] -
phone_number
string
POST
/shop/create
curl \
--request POST 'https://sandbox.serchservice.com/api/v1/shop/create' \
--header "Content-Type: application/json" \
--data '{"name":"string","category":"MECHANIC","address":"string","latitude":42.0,"longitude":42.0,"upload":{"path":"string","media":"string","bytes":"string"},"weekdays":[{"day":"MONDAY","opening":"string","closing":"string"}],"services":["string"],"phone_number":"string"}'
Request examples
{
"name": "string",
"category": "MECHANIC",
"address": "string",
"latitude": 42.0,
"longitude": 42.0,
"upload": {
"path": "string",
"media": "string",
"bytes": "string"
},
"weekdays": [
{
"day": "MONDAY",
"opening": "string",
"closing": "string"
}
],
"services": [
"string"
],
"phone_number": "string"
}
Response examples (200)
{
"status": "100 CONTINUE",
"code": 42,
"message": "string",
"data": [
{
"name": "string",
"category": "string",
"image": "string",
"logo": "string",
"open": true,
"status": "OPEN",
"rating": 42.0,
"id": "string",
"address": "string",
"phone": "string",
"latitude": 42.0,
"longitude": 42.0,
"link": "string",
"current": {
"id": 42,
"day": "string",
"opening": "string",
"closing": "string",
"open": true
},
"weekdays": [
{
"id": 42,
"day": "string",
"opening": "string",
"closing": "string",
"open": true
}
],
"services": [
{
"id": 42,
"service": "string"
}
]
}
]
}