|
| 1 | + |
| 2 | +# Bulk Retrieve Bookings Response |
| 3 | + |
| 4 | +Response payload for bulk retrieval of bookings. |
| 5 | + |
| 6 | +## Structure |
| 7 | + |
| 8 | +`Bulk Retrieve Bookings Response` |
| 9 | + |
| 10 | +## Fields |
| 11 | + |
| 12 | +| Name | Type | Tags | Description | |
| 13 | +| --- | --- | --- | --- | |
| 14 | +| `bookings` | [`Hash String Retrieve Booking Response Hash`](../../doc/models/retrieve-booking-response.md) | Optional | Requested bookings returned as a map containing `booking_id` as the key and `RetrieveBookingResponse` as the value. | |
| 15 | +| `errors` | [`Array<Error Hash>`](../../doc/models/error.md) | Optional | Errors that occurred during the request. | |
| 16 | + |
| 17 | +## Example (as JSON) |
| 18 | + |
| 19 | +```json |
| 20 | +{ |
| 21 | + "bookings": { |
| 22 | + "sc3p3m7dvctfr1": { |
| 23 | + "booking": { |
| 24 | + "all_day": false, |
| 25 | + "appointment_segments": [ |
| 26 | + { |
| 27 | + "any_team_member": false, |
| 28 | + "duration_minutes": 60, |
| 29 | + "service_variation_id": "VG4FYBKK3UL6UITOEYQ6MFLS", |
| 30 | + "service_variation_version": 1641341724039, |
| 31 | + "team_member_id": "TMjiqI3PxyLMKr4k" |
| 32 | + } |
| 33 | + ], |
| 34 | + "created_at": "2023-04-26T18:19:21Z", |
| 35 | + "customer_id": "4TDWKN9E8165X8Z77MRS0VFMJM", |
| 36 | + "id": "sc3p3m7dvctfr1", |
| 37 | + "location_id": "LY6WNBPVM6VGV", |
| 38 | + "start_at": "2023-05-01T14:00:00Z", |
| 39 | + "status": "ACCEPTED", |
| 40 | + "updated_at": "2023-04-26T18:19:21Z", |
| 41 | + "version": 0 |
| 42 | + }, |
| 43 | + "errors": [] |
| 44 | + }, |
| 45 | + "tdegug1dvctdef": { |
| 46 | + "errors": [ |
| 47 | + { |
| 48 | + "category": "INVALID_REQUEST_ERROR", |
| 49 | + "code": "NOT_FOUND", |
| 50 | + "detail": "Specified booking was not found.", |
| 51 | + "field": "booking_id" |
| 52 | + } |
| 53 | + ], |
| 54 | + "booking": { |
| 55 | + "id": "id8", |
| 56 | + "version": 86, |
| 57 | + "status": "CANCELLED_BY_SELLER", |
| 58 | + "created_at": "created_at6", |
| 59 | + "updated_at": "updated_at6" |
| 60 | + } |
| 61 | + }, |
| 62 | + "tdegug1fqni3wh": { |
| 63 | + "booking": { |
| 64 | + "all_day": false, |
| 65 | + "appointment_segments": [ |
| 66 | + { |
| 67 | + "any_team_member": false, |
| 68 | + "duration_minutes": 60, |
| 69 | + "service_variation_id": "VG4FYBKK3UL6UITOEYQ6MFLS", |
| 70 | + "service_variation_version": 1641341724039, |
| 71 | + "team_member_id": "TMjiqI3PxyLMKr4k" |
| 72 | + } |
| 73 | + ], |
| 74 | + "created_at": "2023-04-26T18:19:30Z", |
| 75 | + "customer_id": "4TDWKN9E8165X8Z77MRS0VFMJM", |
| 76 | + "id": "tdegug1fqni3wh", |
| 77 | + "location_id": "LY6WNBPVM6VGV", |
| 78 | + "start_at": "2023-05-02T14:00:00Z", |
| 79 | + "status": "ACCEPTED", |
| 80 | + "updated_at": "2023-04-26T18:19:30Z", |
| 81 | + "version": 0 |
| 82 | + }, |
| 83 | + "errors": [] |
| 84 | + } |
| 85 | + }, |
| 86 | + "errors": [] |
| 87 | +} |
| 88 | +``` |
| 89 | + |
0 commit comments