Retrieve booking BETA
GET
/v2/bookings/{booking_id}
Retrieves a booking.
Permissions
APPOINTMENTS_READ
Try in API Explorer
Name | Description |
---|---|
booking_
Required
|
The ID of the Booking object representing the to-be-retrieved booking. |
Response Fields
Name | Description |
---|---|
booking
|
The booking that was requested. |
errors
|
Any errors that occurred during the request. |
Examples
GET
/v2/bookings/{booking_id}
cURL
- cURL
- Ruby
- Python
- C#
- Java
- PHP
- Node.js
curl https://connect.squareup.com/v2/bookings/zkras0xv0xwswx \
-H 'Square-Version: 2020-12-16' \
-H 'Authorization: Bearer ACCESS_TOKEN' \
-H 'Content-Type: application/json'
Response JSON
{
"booking": {
"id": "zkras0xv0xwswx",
"version": 1,
"status": "ACCEPTED",
"created_at": "2020-10-28T15:47:41Z",
"updated_at": "2020-10-28T15:49:25Z",
"location_id": "LEQHH0YY8B42M",
"customer_id": "EX2QSVGTZN4K1E5QE1CBFNVQ8M",
"customer_note": "",
"seller_note": "",
"start_at": "2020-11-26T13:00:00Z",
"appointment_segments": [
{
"duration_minutes": 60,
"service_variation_id": "RU3PBTZTK7DXZDQFCJHOK2MC",
"team_member_id": "TMXUrsBWWcHTt79t",
"service_variation_version": 1599775456731
}
]
},
"errors": []
}