Services

Create a Service

  • POST https://omneo-magasin-bookings.appspot.com/api/service

This API endpoint can be used to create a bookable service. When correct data is sent to this API endpoint, Meet will create a new specially formatted Product in Omneo that is configured for all the information needed to become a bookable service. Meet will also create a new project in the configured TimeKit account for each bookable location included in the request.

The availability times for these each of these locations is determined by the opening times configured in Omneo for each respective location.

Create service payload

{
    "title": "Premium Makeup Experience",
    "brand": "BRAND",
    "description": "DESCRIPTION-OF-EXPERIENCE",
    "service_locations": [1, 2, 3],
    "session_price": 300,
    "session_duration": 45,
    "session_minimum_notice": 60,
    "session_buffer": 5,
    "service_sku": "MAGASIN-SERVICE-SKU",
    "service_type": "SERVICE-TYPE-FROM-GLOBAL-CONFIG",
    "service_questions": [
        {
            "category": "skin",
            "question": "What's your skin type?",
            "required": false,
            "save_to_profile": true,
            "shared": false,
            "type": "image_single_select",
            "options": [
                {
                    "image": "https://",
                    "title": "option 1"
                },
                {
                    "image": "https://",
                    "title": "option 2"
                }
            ]
        },
        {
            "category": "skin",
            "question": "Which Styles do you Like?",
            "required": false,
            "save_to_profile": false,
            "shared": false,
            "type": "image_multi_select",
            "options": [
                {
                    "image": "https://",
                    "title": "option 1"
                },
                {
                    "image": "https://",
                    "title": "option 2"
                }
            ]
        },
        {
            "category": "skin",
            "question": "What's your skin type?",
            "required": false,
            "save_to_profile": false,
            "shared": false,
            "type": "single_select",
            "options": [
                {
                    "title": "option 1"
                },
                {
                    "title": "option 2"
                }
            ]
        }
    ],
    "service_images": [
        "https://full-width-image.com",
        "https://half-width-image.com"
    ]
}

Retrieve Services

  • GET https://omneo-magasin-bookings.appspot.com/api/services

This API endpoint returns all the services that are available for booking.

{
    "state": {
        "filters": null,
        "fields": [
            "*"
        ],
        "locales": [
            "da_DK"
        ],
        "limit": 10,
        "offset": 0
    },
    "data": [
        {
            "id": 9,
            "title": "New Personal Shopping",
            "handle": "personal-shopping_new",
            "brand": "Magasin",
            "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Consequatur summas voluptates non modo parvo, sed per me nihilo, si potest; Nam de summo mox, ut dixi, videbimus et ad id explicandum disputationem omnem conferemus. Aliter enim explicari, quod quaeritur, non potest. Itaque hic ipse iam pridem est reiectus; Duo Reges: constructio interrete. Quae cum magnifice primo dici viderentur, considerata minus probabantur.",
            "tags": [
                "bookable"
            ],
            "service_price": 300,
            "service_sku": "kdjflkas",
            "service_type": "Make Over",
            "session_duration": 45,
            "session_buffer": 5,
            "session_minimum_notice": 60,
            "brand_id": 1,
            "service_questions": null,
            "what_to_expect_text": "Not Implemented. Not Implemented. Not Implemented.",
            "how_to_prepare_text": "Not Implemented. Not Implemented. Not Implemented.",
            "session_image_url_half_width": "https:\/\/prismic-io.s3.amazonaws.com\/magasin%2F519d755a-e073-4c97-bd19-694794cb47cd_4c.+skincare+booking+listing_clarins_facialtreatment.png",
            "session_image_url_full_width": "https:\/\/prismic-io.s3.amazonaws.com\/magasin%2F519d755a-e073-4c97-bd19-694794cb47cd_4c.+skincare+booking+listing_clarins_facialtreatment.png",
            "service_locations": [
                {
                    "project_id": "0ccda093-665e-432b-a4e6-390160467a8d",
                    "id": 1,
                    "type": "store",
                    "name": "Magasin Du Nord",
                    "description": "Magasin Du Nord",
                    "phone": "+61399998270",
                    "email": "staff@magasin.dk",
                    "timezone": null,
                    "external_id": null,
                    "is_published": false,
                    "is_permanently_closed": false,
                    "address": {
                        "id": 1,
                        "address_line_1": "Kongens Nytorv 13",
                        "address_line_2": null,
                        "address_line_3": null,
                        "company": null,
                        "latitude": null,
                        "longitude": null,
                        "city": "København",
                        "postcode": "1095",
                        "state": "Copenhagen",
                        "country": "Denmark",
                        "notes": "MHHM+M9 Copenhagen, Copenhagen Municipality, Denmark",
                        "external_id": null,
                        "is_default": false,
                        "created_at": "2019-07-07 07:35:15",
                        "updated_at": "2019-07-07 07:35:15"
                    },
                    "normal_hours": [
                        {
                            "id": 1,
                            "location_id": 1,
                            "day_of_week": "MON",
                            "open_at": "010:00",
                            "close_at": "20:00",
                            "created_at": "2019-07-07 07:35:15",
                            "updated_at": "2019-07-07 07:35:15"
                        },
                        {
                            "id": 2,
                            "location_id": 1,
                            "day_of_week": "TUE",
                            "open_at": "010:00",
                            "close_at": "08:00",
                            "created_at": "2019-07-07 07:35:15",
                            "updated_at": "2019-07-07 07:35:15"
                        },
                        {
                            "id": 3,
                            "location_id": 1,
                            "day_of_week": "WED",
                            "open_at": "010:00",
                            "close_at": "20:00",
                            "created_at": "2019-07-07 07:35:15",
                            "updated_at": "2019-07-07 07:35:15"
                        },
                        {
                            "id": 4,
                            "location_id": 1,
                            "day_of_week": "THU",
                            "open_at": "010:00",
                            "close_at": "20:00",
                            "created_at": "2019-07-07 07:35:15",
                            "updated_at": "2019-07-07 07:35:15"
                        },
                        {
                            "id": 5,
                            "location_id": 1,
                            "day_of_week": "FRI",
                            "open_at": "010:00",
                            "close_at": "20:00",
                            "created_at": "2019-07-07 07:35:15",
                            "updated_at": "2019-07-07 07:35:15"
                        },
                        {
                            "id": 6,
                            "location_id": 1,
                            "day_of_week": "SAT",
                            "open_at": "010:00",
                            "close_at": "20:00",
                            "created_at": "2019-07-07 07:35:15",
                            "updated_at": "2019-07-07 07:35:15"
                        },
                        {
                            "id": 7,
                            "location_id": 1,
                            "day_of_week": "SUN",
                            "open_at": "010:00",
                            "close_at": "20:00",
                            "created_at": "2019-07-07 07:35:15",
                            "updated_at": "2019-07-07 07:35:15"
                        }
                    ],
                    "special_hours": [],
                    "tags": [],
                    "custom_fields": [],
                    "created_at": "2019-07-07 07:35:15",
                    "updated_at": "2019-07-07 07:35:15"
                },
                {
                    "project_id": "022a9a94-5468-4ef5-b8db-6ba3fe7a615d",
                    "id": 2,
                    "type": null,
                    "name": "Xocolatl I Magasin",
                    "description": "MHHM+MW Copenhagen, Copenhagen Municipality, Denmark\n\nKongens Nytorv 13, 1095 København, Denmark",
                    "phone": "+61309999827",
                    "email": "staff@magasin.dk",
                    "timezone": null,
                    "external_id": null,
                    "is_published": false,
                    "is_permanently_closed": false,
                    "address": {
                        "id": 2,
                        "address_line_1": "Kongens Nytorv 13",
                        "address_line_2": null,
                        "address_line_3": null,
                        "company": null,
                        "latitude": null,
                        "longitude": null,
                        "city": "Copenhagen",
                        "postcode": "1095",
                        "state": "København",
                        "country": "Denmark",
                        "notes": null,
                        "external_id": null,
                        "is_default": false,
                        "created_at": "2019-07-07 07:41:45",
                        "updated_at": "2019-07-07 07:41:45"
                    },
                    "normal_hours": [],
                    "special_hours": [],
                    "tags": [],
                    "custom_fields": [],
                    "created_at": "2019-07-07 07:41:45",
                    "updated_at": "2019-07-07 07:41:45"
                },
                {
                    "project_id": "554aead4-eaca-4816-979e-bae43b888b02",
                    "id": 3,
                    "type": null,
                    "name": "Magasin Arne",
                    "description": "Arne Jacobsens Allé 12, 2300 København, Denmark\nLocated in: Field's",
                    "phone": "+61399998270",
                    "email": "staff@magasin.dk",
                    "timezone": null,
                    "external_id": null,
                    "is_published": false,
                    "is_permanently_closed": false,
                    "address": {
                        "id": 3,
                        "address_line_1": "Arne Jacobsens Allé",
                        "address_line_2": null,
                        "address_line_3": null,
                        "company": null,
                        "latitude": null,
                        "longitude": null,
                        "city": "København",
                        "postcode": "2300",
                        "state": "København",
                        "country": "Denmark",
                        "notes": null,
                        "external_id": null,
                        "is_default": false,
                        "created_at": "2019-07-07 07:49:34",
                        "updated_at": "2019-07-07 07:49:34"
                    },
                    "normal_hours": [],
                    "special_hours": [],
                    "tags": [],
                    "custom_fields": [],
                    "created_at": "2019-07-07 07:49:34",
                    "updated_at": "2019-07-07 07:49:34"
                }
            ]
        }
    ]
}