GET /bookings/widgets/company/{companySlug}/type/external

Retrieve the config of the company with the matching company slug.

Headers

  • Authorization string Required

    Bearer {EASYWEEK_PARTNER_TOKEN}

Responses

  • 200

    OK

    Hide response attribute Show response attribute object
    • data object Required
      Hide data attributes Show data attributes object
      • url string Required

        Parent company page URL

      • company object Required

        Parent company data

        Hide company attributes Show company attributes object
        • id number Required

          Unique company id

        • name string Required

          Company name

        • slug string Required

          Company unique slug

        • show_service_end_time boolean Required
        • is_copyrighted boolean Required
        • is_company_rating boolean Required

          Show company rating

        • is_user_rating boolean Required

          Show employee rating

        • country string Required

          Company country ISO code

        • images array Required

          Company branches and services images

        • profile object Required

          Parent company profile

          Hide profile attributes Show profile attributes object
          • id number Required
          • company_type string Required
          • currency string Required

            Company currency ISO code

          • phone array Required

            Company phones

          • timezone string Required

            Company timezone

          • locale string Required

            Company ISO locale code

          • language string Required
          • industry string Required

            Company industry of operation

          • description string Required
          • instagram string Required
          • facebook string Required
          • whatsapp
          • viber string Required
          • telegram string Required
        • about string Required
        • public boolean Required
        • is_address_hidden boolean Required
        • calendar object Required
          Hide calendar attributes Show calendar attributes object
          • id number Required
          • config object Required
            Hide config attributes Show config attributes object
            • duration number Required
            • timezone string Required
            • working_days array[object] Required
            • working_dates array[object] Required
            • working_hours array[object] Required
              Hide working_hours attribute Show working_hours attribute array[object]
              • 0 array[object]
          • type number Required
        • users array[object] Required

          Company employees

          Hide users attributes Show users attributes array[object]
          • id number Required
          • name string Required
          • avatar string Required
          • position string Required
          • hide_position boolean Required
          • role object
            Hide role attributes Show role attributes object
            • id number Required
            • priority number Required
            • name string Required

              Minimum length is 1.

            • description
            • default_new boolean Required
          • profile object
            Hide profile attributes Show profile attributes object
            • id number Required
            • first_name string Required

              Minimum length is 1.

            • last_name string Required

              Minimum length is 1.

            • sex string Required

              Minimum length is 1.

            • phone string Required

              Minimum length is 1.

            • position string Required

              Minimum length is 1.

            • description
      • config object Required

        Widget global config

        Hide config attributes Show config attributes object
        • style object Required

          Widget colors & styles

          Hide style attributes Show style attributes object
          • primary string Required
          • surface string Required
          • secondary string Required
          • on-primary string Required
          • on-surface string Required
        • contactForm array[object] Required

          Widget booking form configuration

          Hide contactForm attributes Show contactForm attributes array[object]
          • name string Required
          • type string Required
          • required boolean Required
      • branches array[object] Required

        Parent company branches data

        At least 1 element.

        Hide branches attributes Show branches attributes array[object]
        • id number Required
        • name string Required

          Minimum length is 1.

        • slug string Required

          Minimum length is 1.

        • show_service_end_time
        • is_copyrighted boolean Required
        • is_company_rating boolean Required
        • is_user_rating boolean Required
        • country string Required

          Minimum length is 1.

        • images array[object]
        • address object

          Branch address

          Hide address attributes Show address attributes object
          • id number Required
          • address_1
          • city string Required

            Minimum length is 1.

          • postal_code
          • apt
          • position object Required
            Hide position attributes Show position attributes object
            • lat number Required
            • lng number Required
        • profile object
          Hide profile attributes Show profile attributes object
          • id number Required
          • company_type string Required

            Minimum length is 1.

          • currency string Required

            Minimum length is 1.

          • phone array[object] Required
          • timezone string Required

            Minimum length is 1.

          • locale string Required

            Minimum length is 1.

          • language string Required

            Minimum length is 1.

          • industry string Required

            Minimum length is 1.

          • description string Required

            Minimum length is 1.

          • instagram
          • facebook
          • whatsapp
          • viber
          • telegram
        • about string Required

          Minimum length is 1.

        • public boolean Required
        • is_address_hidden boolean Required
        • duration number Required
        • timezone string Required

          Minimum length is 1.

        • working_days array
        • working_dates array
        • working_hours array
        • products array[object]

          At least 1 element.

          Hide products attribute Show products attribute array[object]
          • id number Required
        • calendar object
          Hide calendar attributes Show calendar attributes object
          • id number Required
          • config object Required
            Hide config attributes Show config attributes object
            • duration number Required
            • timezone string Required

              Minimum length is 1.

            • working_days array[object] Required
            • working_dates array[object] Required
            • working_hours array[object] Required
              Hide working_hours attribute Show working_hours attribute array[object]
              • 0 array[object]
          • type number Required
        • schedule object
          Hide schedule attribute Show schedule attribute object
          • days object Required
            Hide days attributes Show days attributes object
            • fri array[object] Required

              At least 1 element.

              Hide fri attributes Show fri attributes array[object]
              • to string Required

                Minimum length is 1.

              • from string Required

                Minimum length is 1.

            • mon array[object] Required

              At least 1 element.

              Hide mon attributes Show mon attributes array[object]
              • to string Required

                Minimum length is 1.

              • from string Required

                Minimum length is 1.

            • sat array[object] Required

              At least 1 element.

              Hide sat attributes Show sat attributes array[object]
              • to string Required

                Minimum length is 1.

              • from string Required

                Minimum length is 1.

            • sun array[object] Required

              At least 1 element.

              Hide sun attributes Show sun attributes array[object]
              • to string Required

                Minimum length is 1.

              • from string Required

                Minimum length is 1.

            • thu array[object] Required

              At least 1 element.

              Hide thu attributes Show thu attributes array[object]
              • to string Required

                Minimum length is 1.

              • from string Required

                Minimum length is 1.

            • tue array[object] Required

              At least 1 element.

              Hide tue attributes Show tue attributes array[object]
              • to string Required

                Minimum length is 1.

              • from string Required

                Minimum length is 1.

            • wed array[object] Required

              At least 1 element.

              Hide wed attributes Show wed attributes array[object]
              • to string Required

                Minimum length is 1.

              • from string Required

                Minimum length is 1.

      • products array[object] Required

        At least 1 element.

        Hide products attributes Show products attributes array[object]
        • id number Required
        • name string Required

          Minimum length is 1.

        • price string Required

          Minimum length is 1.

        • price_formatted string Required

          Minimum length is 1.

        • variations array[object]

          At least 1 element.

          Hide variations attributes Show variations attributes array[object]
          • id number Required
          • name string Required

            Minimum length is 1.

          • price number Required
          • price_formatted string Required

            Minimum length is 1.

          • price_discount number Required
          • price_discount_formatted
          • currency
          • duration number Required
          • is_duration_hidden boolean Required
          • is_price_hidden boolean Required
          • description
          • live boolean Required
          • starting_at boolean Required
          • is_top boolean Required
          • images array[object]
        • categories array[object]

          At least 1 element.

          Hide categories attributes Show categories attributes array[object]
          • id number Required
          • name string Required

            Minimum length is 1.

      • users array[object] Required

        All company employees

        At least 1 element.

        Hide users attributes Show users attributes array[object]
        • id number Required
        • name string Required
        • avatar string Required
        • position string Required
        • hide_position boolean Required
        • profile object
          Hide profile attributes Show profile attributes object
          • first_name string Required

            Minimum length is 1.

          • last_name string Required

            Minimum length is 1.

          • position string Required

            Minimum length is 1.

          • description
      • subscription boolean Required

        If company has active subscription

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
  }
}