-
Notifications
You must be signed in to change notification settings - Fork 41
Cope with ‘Postponed commit’
home > Booking phase > Cope with ‘Postponed commit’
Step 1: The MP wants to book the selected leg from the planning phase, but sends it to a TO with a 'postponed commit' scenario.
POST https://exampleTO.com/bookings/
{
"id": "746ac-48792bb-746dac3", // provided in planning phase
}
The result must be a booking in PENDING state, unless it is rejected by the TO for some reason.
{
"id": "746ac-48792bb-746dac3",
"state": "PENDING",
...
}
Step 2: After sending the request to all needed TO's - and they all responded positively, the MP will have to send a POST request with the operation COMMIT
in it to change the booking-option into a real booking.
POST https://exampleTO.com/bookings/746ac-48792bb-746dac3/events/
{
"operation": "COMMIT"
}
The result will be a booking object, in state CONDITIONAL_COMFIRMED
. The MP has now to wait for the message from the TO that tells him it is committed or denied.
{
"id": "746ac-48792bb-746dac3",
"state": "CONDITIONAL_CONFIRMED",
...
}
Step 3: Wait for the TO to respond.
The TO will call the MPs endpoint. If the TO accepts the leg, it will send a commit:
POST https://exampleMP.com/bookings/746ac-48792bb-746dac3/events/
{
"operation": "COMMIT"
}
But it is also possible that the TO denies the leg:
POST https://exampleMP.com/bookings/746ac-48792bb-746dac3/events/
{
"operation": "DENY"
}
Or, there is no message before the 'expires' in the header of the result. The assumption is that it should be treated as a 'deny'.
Introduction
- Roadmap
- Semantic versioning
- Use cases
- Changes per version
- Contribution
- Participants
Workflow
- Operator information
- Planning phase
- Booking phase
- Trip execution phase - start
- Trip execution phase - on route
- Trip execution phase - end
- Support
- Payment
Points of attention
- Modalities
- Specifying locations
- GDPR
Eco system
- Relations
Introduction
Scope of the TOMP-API
Versioning and releases
Process Flows
- Authentication
- Operator Information
- Privacy and Registration
- Planning Module
- Booking Module
- Trip Execution Module
- Payment Module
- Support Module
Meta-Information
Reference implementations
To-dos and risks
Technical Specifications
A1 List of terms and definitions
A2 Passenger characteristics dictionary
A3 APIs available on the transportation ecosystem
A4 Overview of the User stories
A5 Authors, Architects, collaborators and stakeholders involved
A6 Adoption and Implementation of the TOMP-API