Bookings (Dining + Spa)

Sevenrooms, Book4time, Tripleseat

Good to know: Splitting your product into fundamental concepts, objects, or areas can be a great way to let readers deep dive into the concepts that matter most to them.

Sync Member

With this method you can synchronize a Peoplevine member to Bookings.

Request

GET GET https://connect.peoplevine.com/res/sync_member?auth_id=...&company=...&user=...&pass=...&host=...&member_id=

Response

Success response

{
    "success": true,
    "reason": null,
    "message": null,
    "success_count": 1,
    "error_count": 0
}

Error response

{
    "success": false,
    "reason": "Member not found",
    "message": null,
    "success_count": 0,
    "error_count": 0
}

Sync Profiles

With this method you can synchronize new/updated profiles to Peoplevine.

Request

GET GET https://connect.peoplevine.com/res/sync_profiles?auth_id=...&company=...&user=...&pass=...&host=...&from=...

Response

Success response - 4 profiles created or updated.

{
    "success": true,
    "reason": null,
    "message": null,
    "success_count": 4,
    "error_count": 0
}

Sync Reservation

With this method you can synchronize bookings to Peoplevine.

Request

GET https://connect.peoplevine.com/res/sync_reservations?auth_id=...&company=...&user=...&pass=...&host=...&from=

Response

Success response - 5 reservation created or updated.

{
    "success": true,
    "reason": null,
    "message": null,
    "success_count": 5,
    "error_count": 0
}

Sync Service Types

With this method you can synchronize service(product) types to Peoplevine.

Request

GET https://connect.peoplevine.com/res/sync_services?auth_id=...&company=...&user=...&pass=...&host=...

Response

{
    "success": true,
    "reason": null,
    "message": null,
    "success_count": 0,
    "error_count": 0
}       

Get Products

With this method you can get products(services).

Request

GET https://connect.peoplevine.com/res/products?auth_id=...&company=...&user=...&pass=...&host=...

Response

{
    "products": [
        {
            "id": "72446947",
            "name": "Baia Waters Massage 60min",
            "description": "Providing the revitalizing benefits of seawater, our signature lymphatic massage is performed using a soothing elixir to eliminate tension for a relaxed body or a cleansing elixir designed to increase circulation for improved drainage.",
            "type": "46312357",
            "charging": 1,
            "rate": {
                "net": 0,
                "sell": 150,
                "tax": 0,
                "currency": null,
                "taxes": null
            }
        },
        {
            "id": "72447553",
            "name": "Hot and Cold Massage 90 Min",
            "description": "This contrast therapy uses heated marine stone compress complemented by cooling gels for alleviating stress and easing aching muscles.",
            "type": "46312357",
            "charging": 1,
            "rate": {
                "net": 0,
                "sell": 210,
                "tax": 0,
                "currency": null,
                "taxes": null
            }
        },
...
    ],
    "success": false,
    "reason": null,
    "message": null
} 

Get Locations

With this method you can get locations.

Request

GET https://connect.peoplevine.com/res/metadata?auth_id=...&company=...&user=...&pass=...&host=...&type=location

Response

{   
    "metaData": [
        {
            "id": "16176174",
            "name": "Biana Activity Paradise",
            "description": ""
        },
        {
            "id": "14765817",
            "name": "Biana Spa",
            "description": "Great place to relax!"
        }
    ],
    "success": true,
    "reason": null,
    "message": null
}       

Get Guest Types

With this method you can get guest types.

Request

GET https://connect.peoplevine.com/res/metadata?auth_id=...&company=...&user=...&pass=...&host=...&type=guest_type

Response

{
    "metaData": [
        {
            "id": "16001176",
            "name": "VIP",
            "description": null
        },
        {
            "id": "16583119",
            "name": "Resident",
            "description": null
        },
        {
            "id": "4275426",
            "name": "Partner",
            "description": null
        },
        {
            "id": "17057748",
            "name": "Owner",
            "description": null
        },
        {
            "id": "4406559",
            "name": "Local Guest",
            "description": null
        },
        {
            "id": "4255968",
            "name": "Hotel Guest",
            "description": null
        },
        {
            "id": "4255969",
            "name": "Employee",
            "description": null
        }
    ],
    "success": true,
    "reason": null,
    "message": null
}

Check Availability

With this method you can get availability from Bookings.

Request

POST https://connect.peoplevine.com/res/get_service_availability?auth_id=...&company=...&user=...&pass=...&host=...

Search for "24422569" service for "2022-08-10" between "10:00" and "12:00", if not avalable return alternative times on "2022-08-10". If "2022-08-10" is not available return offers the next avalable date.

{
    "date": "2022-08-10",
    "startTime": "10:00",
    "endTime": "12:00",
    "alternateTime": true,
    "nextAvailableDate": true,
    "services": [
        "24422569"
    ]
}

Response

Success response with offers

{
    "offers": [
        {
            "start": "2021-09-04T17:00:00+03:00",
            "end": "2021-09-04T17:30:00+03:00",
            "price": 100,
            "technician_id": "58458149",
            "service_id": "72447421",
            "facility_id": "46384654"
        },
        {
            "start": "2021-09-04T20:45:00+03:00",
            "end": "2021-09-04T21:15:00+03:00",
            "price": 85,
            "technician_id": "72521939",
            "service_id": "72447231",
            "facility_id": "46384654"
        },
        ....
    ],
    "success": true,
    "reason": null,
    "message": null
}

Create Reservation

With this method you can create a new reservation.

Request

POST https://connect.peoplevine.com/res/create_service_reservation?auth_id=...&company=...&user=...&pass=...&host=...

Create a new reservation for Peoplevine member with ID 3125141

{
    "member_id": 3125141,
    "notes": "test reservation",
    "offers": [
        {
            "start": "2022-05-10T09:15:00",
            "end": "2022-05-10T10:15:00",
            "price": 100.00,
            "technician_id": "17138931",
            "service_id": "24422569",
            "facility_id": "24422054"
        }
    ]
}

Response

Success response with Bookings reservation ID

{
    "success": true,
    "reason": null,
    "message": "30396436",
    "success_count": 0,
    "error_count": 0
}

Error response

{
    "success": false,
    "reason": "Invalid member ID",
    "message": null,
    "success_count": 0,
    "error_count": 0
}

Last updated