From d4360a1809528e369ee994dd4c2a04c95ba73cfc Mon Sep 17 00:00:00 2001 From: Tomasz Surowiec Date: Tue, 9 Sep 2025 08:02:30 +0200 Subject: [PATCH] Add delivery booking hints --- docs/cookbook/create-booking.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/docs/cookbook/create-booking.md b/docs/cookbook/create-booking.md index fd28e4b..77ac563 100644 --- a/docs/cookbook/create-booking.md +++ b/docs/cookbook/create-booking.md @@ -49,9 +49,14 @@ POST https://api.ticketpark.ch/bookings/ } ``` +Hint +{: .label } +Due to validation constraints You can't create a `delivery` booking just yet. If you need `delivery` booking, +see hint in point 4. + --- -## 3. Reserve two tickets +## 3. Reserve some tickets Add some tickets to the booking. Note how in this example we create two tickets with just one request. @@ -99,6 +104,18 @@ PATCH https://api.ticketpark.ch/bookings/{pid of booking from request 2} } ``` +Hint +{: .label } +If you need `delivery` booking, you can set the dispatch method now. With the tickets already reserved, the system will +find correct `DeliveryRates` and add `Deliveries` to the `Booking` + +```json +{ + "confirmation": true, + "delivery": true +} +``` + --- ## 5. Send confirmation email