Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion docs/cookbook/create-booking.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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
Expand Down