Instead of creating a reservation and having the attendant at the facility applying it to an open ticket; you can directly apply the ticket to an open ticket.
1) You can embed the reservation in the request to create a ticket. (Please see "Issue Tickets via Operator App/Website (3rd Party)") You should create the reservation via the reservation creation endpoint as detailed inhttps://help.valet-manager.com/support/solutions/articles/8000092167-reservation-certification.. When issuing the ticket you need to specify the GUID from the reservation as the reservationId field in the ticket data model.
A sample request to create a ticket with a digital claim check with an attached reservation:
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json'
--header 'api_key: apiKey' --header 'Authorization: Bearer <token>' -d '{ \ "garageId": "d72046a64560ce9dadd6b2cac963f8d0", \ "printRemote": 0, \ "reservationId": "RESERVATION_GUID", \ "claimTag": "NONE", \ "attendantTag": "DESKTOP", \ "vehicleTag": "DESKTOP", \ "keyTag": "NONE", \}' 'https://demo.api.valet-manager.com/ticket/demo'
2) The second approach is to create a reservation associated with a currently open ticket.
There are two key parameters, the ticket GUID and the reservation to be created.
- ticket (The ticket GUID)
- reservationSaveRequest (You should pass the same data model as in the Reservation Certification endpoints.)
A sample request to create a reservation associated with an open ticket.
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --
header 'api_key: apiKey' --header 'Authorization: Bearer '<token> -d '{RESERVATION_OBJECT}'
'https://demo.api.valet-manager.com/reservation/ticket/8d93b9e5-3293-4f5f-8307-584206f057d'
