Retrieve the config of the company with the matching company slug.
GET
/bookings/widgets/company/{companySlug}/type/external
curl \
-X GET https://widget.easyweek.io/api/v1/bookings/widgets/company/{companySlug}/type/external \
-H "Authorization: string"
Response examples (200)
{
"data": {
"url": "string",
"company": {
"id": 42.0,
"name": "string",
"slug": "string",
"show_service_end_time": true,
"is_copyrighted": true,
"is_company_rating": true,
"is_user_rating": true,
"country": "RU",
"images": [],
"profile": {
"id": 42.0,
"company_type": "string",
"currency": "RUB",
"phone": [],
"timezone": "Europe/Moscow",
"locale": "ru",
"language": "string",
"industry": "string",
"description": "string",
"instagram": "string",
"facebook": "string",
"viber": "string",
"telegram": "string"
},
"about": "string",
"public": true,
"is_address_hidden": true,
"calendar": {
"id": 42.0,
"config": {
"duration": 42.0,
"timezone": "string",
"working_days": [
{}
],
"working_dates": [
{}
],
"working_hours": [
{
"0": [
{}
]
}
]
},
"type": 42.0
},
"users": [
{
"id": 42.0,
"name": "string",
"avatar": "string",
"position": "string",
"hide_position": true,
"role": {
"id": 42.0,
"priority": 42.0,
"name": "string",
"default_new": true
},
"profile": {
"id": 42.0,
"first_name": "string",
"last_name": "string",
"sex": "string",
"phone": "string",
"position": "string"
}
}
]
},
"config": {
"style": {
"primary": "string",
"surface": "string",
"secondary": "string",
"on-primary": "string",
"on-surface": "string"
},
"contactForm": [
{
"name": "string",
"type": "string",
"required": true
}
]
},
"branches": [
{
"id": 42.0,
"name": "string",
"slug": "string",
"is_copyrighted": true,
"is_company_rating": true,
"is_user_rating": true,
"country": "string",
"images": [
{}
],
"address": {
"id": 42.0,
"city": "string",
"position": {
"lat": 42.0,
"lng": 42.0
}
},
"profile": {
"id": 42.0,
"company_type": "string",
"currency": "string",
"phone": [
{}
],
"timezone": "string",
"locale": "string",
"language": "string",
"industry": "string",
"description": "string"
},
"about": "string",
"public": true,
"is_address_hidden": true,
"duration": 42.0,
"timezone": "string",
"working_days": [],
"working_dates": [],
"working_hours": [],
"products": [
{
"id": 42.0
}
],
"calendar": {
"id": 42.0,
"config": {
"duration": 42.0,
"timezone": "string",
"working_days": [
{}
],
"working_dates": [
{}
],
"working_hours": [
{
"0": [
{}
]
}
]
},
"type": 42.0
},
"schedule": {
"days": {
"fri": [
{
"to": "string",
"from": "string"
}
],
"mon": [
{
"to": "string",
"from": "string"
}
],
"sat": [
{
"to": "string",
"from": "string"
}
],
"sun": [
{
"to": "string",
"from": "string"
}
],
"thu": [
{
"to": "string",
"from": "string"
}
],
"tue": [
{
"to": "string",
"from": "string"
}
],
"wed": [
{
"to": "string",
"from": "string"
}
]
}
}
}
],
"products": [
{
"id": 42.0,
"name": "string",
"price": "string",
"price_formatted": "string",
"variations": [
{
"id": 42.0,
"name": "string",
"price": 42.0,
"price_formatted": "string",
"price_discount": 42.0,
"duration": 42.0,
"is_duration_hidden": true,
"is_price_hidden": true,
"live": true,
"starting_at": true,
"is_top": true,
"related_products": [
{}
],
"images": [
{}
]
}
],
"categories": [
{
"id": 42.0,
"name": "string"
}
]
}
],
"users": [
{
"id": 42.0,
"name": "string",
"avatar": "string",
"position": "string",
"hide_position": true,
"profile": {
"first_name": "string",
"last_name": "string",
"position": "string"
}
}
],
"subscription": true
}
}
Response examples (200)
{
"data": {
"url": "string",
"company": {
"id": 42.0,
"name": "string",
"slug": "string",
"show_service_end_time": true,
"is_copyrighted": true,
"is_company_rating": true,
"is_user_rating": true,
"country": "RU",
"images": [],
"profile": {
"id": 42.0,
"company_type": "string",
"currency": "RUB",
"phone": [],
"timezone": "Europe/Moscow",
"locale": "ru",
"language": "string",
"industry": "string",
"description": "string",
"instagram": "string",
"facebook": "string",
"viber": "string",
"telegram": "string"
},
"about": "string",
"public": true,
"is_address_hidden": true,
"calendar": {
"id": 42.0,
"config": {
"duration": 42.0,
"timezone": "string",
"working_days": [
{}
],
"working_dates": [
{}
],
"working_hours": [
{
"0": [
{}
]
}
]
},
"type": 42.0
},
"users": [
{
"id": 42.0,
"name": "string",
"avatar": "string",
"position": "string",
"hide_position": true,
"role": {
"id": 42.0,
"priority": 42.0,
"name": "string",
"default_new": true
},
"profile": {
"id": 42.0,
"first_name": "string",
"last_name": "string",
"sex": "string",
"phone": "string",
"position": "string"
}
}
]
},
"config": {
"style": {
"primary": "string",
"surface": "string",
"secondary": "string",
"on-primary": "string",
"on-surface": "string"
},
"contactForm": [
{
"name": "string",
"type": "string",
"required": true
}
]
},
"branches": [
{
"id": 42.0,
"name": "string",
"slug": "string",
"is_copyrighted": true,
"is_company_rating": true,
"is_user_rating": true,
"country": "string",
"images": [
{}
],
"address": {
"id": 42.0,
"city": "string",
"position": {
"lat": 42.0,
"lng": 42.0
}
},
"profile": {
"id": 42.0,
"company_type": "string",
"currency": "string",
"phone": [
{}
],
"timezone": "string",
"locale": "string",
"language": "string",
"industry": "string",
"description": "string"
},
"about": "string",
"public": true,
"is_address_hidden": true,
"duration": 42.0,
"timezone": "string",
"working_days": [],
"working_dates": [],
"working_hours": [],
"products": [
{
"id": 42.0
}
],
"calendar": {
"id": 42.0,
"config": {
"duration": 42.0,
"timezone": "string",
"working_days": [
{}
],
"working_dates": [
{}
],
"working_hours": [
{
"0": [
{}
]
}
]
},
"type": 42.0
},
"schedule": {
"days": {
"fri": [
{
"to": "string",
"from": "string"
}
],
"mon": [
{
"to": "string",
"from": "string"
}
],
"sat": [
{
"to": "string",
"from": "string"
}
],
"sun": [
{
"to": "string",
"from": "string"
}
],
"thu": [
{
"to": "string",
"from": "string"
}
],
"tue": [
{
"to": "string",
"from": "string"
}
],
"wed": [
{
"to": "string",
"from": "string"
}
]
}
}
}
],
"products": [
{
"id": 42.0,
"name": "string",
"price": "string",
"price_formatted": "string",
"variations": [
{
"id": 42.0,
"name": "string",
"price": 42.0,
"price_formatted": "string",
"price_discount": 42.0,
"duration": 42.0,
"is_duration_hidden": true,
"is_price_hidden": true,
"live": true,
"starting_at": true,
"is_top": true,
"related_products": [
{}
],
"images": [
{}
]
}
],
"categories": [
{
"id": 42.0,
"name": "string"
}
]
}
],
"users": [
{
"id": 42.0,
"name": "string",
"avatar": "string",
"position": "string",
"hide_position": true,
"profile": {
"first_name": "string",
"last_name": "string",
"position": "string"
}
}
],
"subscription": true
}
}