Reservations

List of reservations

/selfservice/v2/$FLOCK/reservations/

http GET https://sls-api.sheepcrm.com/selfservice/v2/$FLOCK/reservations/

    {
        "person_uri": "/example/person/5c7ea02b8b388011210462fc/",
        "reservations": [
            {
                "active": null,
                "bookable_ref": "/example/bookable/58eba5b6d4069471192d5d49/",
                "booking_ref": [],
                "buyer_ref": "/example/person/5c7ea02b8b388011210462fc/",
                "currency": "gbp",
                "end_datetime": "2020-02-22T17:30:00",
                "enquiry": null,
                "fee": 40,
                "formatted_title": "The Loft ",
                "name": null,
                "number_of_attendees": 1,
                "pricing": "full_price",
                "start_datetime": "2020-02-22T14:30:00",
                "status": null,
                "tags": [
                    "self-service"
                ],
                "tax": null,
                "tax_rate": null,
                "uid": "5e3d4c494fa6f313e8ca3297",
                "uri": "/example/reservation/5e3d4c494fa6f313e8ca3297/"
            },
            {
                "active": null,
                "bookable_ref": "/example/bookable/5b5999b8d406947236cfaae7/",
                "booking_ref": [],
                "buyer_ref": "/example/person/5c7ea02b8b388011210462fc/",
                "currency": "gbp",
                "end_datetime": "2020-09-29T18:00:00",
                "enquiry": false,
                "fee": 0,
                "formatted_title": "Hire on the 29th",
                "name": "Hire on the 29th",
                "number_of_attendees": 1,
                "pricing": null,
                "start_datetime": "2020-09-29T10:00:00",
                "status": null,
                "tags": [],
                "tax": null,
                "tax_rate": null,
                "uid": "5f74b649f18daf5eec77ae17",
                "uri": "/example/reservation/5f74b649f18daf5eec77ae17/"
            }
        ]
    }

Single Reservation

/selfservice/v2/$FLOCK/reservation/{reservation id}/

http GET https://sls-api.sheepcrm.com/selfservice/v2/$FLOCK/reservation/{reservation id}/


    {
        "active": null,
        "bookable_ref": {
            "display_value": "Dining Room",
            "ref": "/example/bookable/5b5999b8d406947236cfaae7/"
        },
        "booking_ref": [],
        "buyer_ref": {
            "display_value": "Mr James W W Webster",
            "ref": "/example/person/5c7ea02b8b388011210462fc/"
        },
        "currency": "gbp",
        "end_datetime": "2020-09-29T18:00:00",
        "enquiry": false,
        "fee": 0,
        "formatted_title": "Hire on the 29th",
        "name": "Hire on the 29th",
        "number_of_attendees": 1,
        "pricing": null,
        "start_datetime": "2020-09-29T10:00:00",
        "status": null,
        "tags": [],
        "tax": null,
        "tax_rate": null,
        "uid": "5f74b649f18daf5eec77ae17",
        "uri": "/example/reservation/5f74b649f18daf5eec77ae17/"
    }

Cancel a reservation

cancellation_reason

optional cancellation reason

http DELETE https://sls-api.sheepcrm.com/selfservice/v2/$FLOCK/reservation/{reservation id}/ cancellation_reason=="no longer needed"

    {
        "active": null,
        "bookable_ref": {
            "display_value": "Dining Room",
            "ref": "/example/bookable/5b5999b8d406947236cfaae7/"
        },
        "booking_ref": [],
        "buyer_ref": {
            "display_value": "Mr James W W Webster",
            "ref": "/example/person/5c7ea02b8b388011210462fc/"
        },
        "cancellation_reason": "no longer needed",
        "currency": "gbp",
        "end_datetime": "2020-09-29T18:00:00",
        "enquiry": false,
        "fee": 0,
        "formatted_title": "Hire on the 29th",
        "name": "Hire on the 29th",
        "number_of_attendees": 1,
        "pricing": null,
        "start_datetime": "2020-09-29T10:00:00",
        "status": "cancelled",
        "tags": [],
        "tax": null,
        "tax_rate": null,
        "uid": "5f74b649f18daf5eec77ae17",
        "uri": "/example/reservation/5f74b649f18daf5eec77ae17/"
    }