# \BookingPartApi
All URIs are relative to *https://s3p-osdm.cloud.sqills.com*
[**create_booking_booked_offers_ancillaries**](BookingPartApi.md#create_booking_booked_offers_ancillaries) | **POST** /bookings/{bookingId}/booked-offers/{bookedOfferId}/ancillaries | Adds an ancillary not previously added from offer to a booking.
[**create_booking_booked_offers_parts**](BookingPartApi.md#create_booking_booked_offers_parts) | **POST** /bookings/{bookingId}/booked-offers/{bookedOfferId}/offer-parts | Adds a reservation or ancillary not previously added from offer to a booking.
[**create_booking_booked_offers_reservations**](BookingPartApi.md#create_booking_booked_offers_reservations) | **POST** /bookings/{bookingId}/booked-offers/{bookedOfferId}/reservations | Adds a reservation not previously added from offer to a booking.
[**delete_booking_booked_offers_admission**](BookingPartApi.md#delete_booking_booked_offers_admission) | **DELETE** /bookings/{bookingId}/booked-offers/{bookedOfferId}/admissions/{admissionId} | Removes an admission from a booking. In case the admission is not confirmed. On a confirmed admission use the refund.
[**delete_booking_booked_offers_ancillary**](BookingPartApi.md#delete_booking_booked_offers_ancillary) | **DELETE** /bookings/{bookingId}/booked-offers/{bookedOfferId}/ancillaries/{ancillaryId} | Removes an ancillary from a booking in case the ancillary is not jet confirmed. On confirmed ancillaries use the refund.
[**delete_booking_booked_offers_parts**](BookingPartApi.md#delete_booking_booked_offers_parts) | **DELETE** /bookings/{bookingId}/booked-offers/{bookedOfferId}/offer-parts | Removes reservations or ancillaries from a booking in case the parts were not yet confirmed. On confirmed reservations use the refund.
[**delete_booking_booked_offers_reservations**](BookingPartApi.md#delete_booking_booked_offers_reservations) | **DELETE** /bookings/{bookingId}/booked-offers/{bookedOfferId}/reservations/{reservationId} | Removes a reservation from a booking in case the reservation was not yet confirmed. On confirmed reservations use the refund.
## create_booking_booked_offers_ancillaries
> models::BookedOfferAncillaryResponse create_booking_booked_offers_ancillaries(booking_id, booked_offer_id, booked_offer_ancillary_request, requestor, accept_language, traceparent, tracestate, idempotency_key)
Adds an ancillary not previously added from offer to a booking.
*DEPRECATED* in favour to unified endpoint handling both ancillaries and reservations. Adds an ancillary to a booking. A provider can decide to allow or reject additional admissions, reservations or ancillaries on an confirmed booking.
### Parameters
**booking_id** | **String** | | [required] |
**booked_offer_id** | **String** | | [required] |
**booked_offer_ancillary_request** | [**BookedOfferAncillaryRequest**](BookedOfferAncillaryRequest.md) | | [required] |
**requestor** | Option<**String**> | The requestor header contains detailed information about who is calling the API. It can include information such as channel, organization, sales unit or workstation id and be used to configure e.g. the fare range provided to the caller. The content of the string is part of a bilateral contract by the two parties and not standardized by OSDM. It is recommend to encrypt the information transferred. | |
**accept_language** | Option<**String**> | Describes the set of natural languages that are preferred for localized text in the response to the request (see RFC9110). Supporting English (en) is a must. | |
**traceparent** | Option<**String**> | The traceparent header describes the position of the incoming request in its trace graph in a portable, fixed-length format. Its design focuses on fast parsing. Every tracing tool MUST properly set traceparent even when it only relies on vendor-specific information in tracestate (see W3C Trace Context). | |
**tracestate** | Option<**String**> | The tracestate extends traceparent with vendor-specific data represented by a set of name/value pairs. Storing information in tracestate is optional (see W3C Trace Context). | |
**idempotency_key** | Option<**uuid::Uuid**> | The HTTP Idempotency request header field can be used to carry idempotency key in order to make non-idempotent HTTP methods such as POST or PATCH fault-tolerant. Servers should keep the idempotency key for as long as the result of the underlying operation is valid. Idempotency keys should be globally unique. | |
### Return type
[**models::BookedOfferAncillaryResponse**](BookedOfferAncillaryResponse.md)
### Authorization
[oAuth2ClientCredentials](../README.md#oAuth2ClientCredentials)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json, application/problem+json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## create_booking_booked_offers_parts
> models::BookedOfferPartResponse create_booking_booked_offers_parts(booking_id, booked_offer_id, booked_offer_part_request, requestor, accept_language, traceparent, tracestate, idempotency_key)
Adds a reservation or ancillary not previously added from offer to a booking.
Adds a reservation or an ancillary to a booking. A provider can decide to allow or reject additional admissions, reservations or ancillaries on an confirmed booking.
### Parameters
**booking_id** | **String** | | [required] |
**booked_offer_id** | **String** | | [required] |
**booked_offer_part_request** | [**BookedOfferPartRequest**](BookedOfferPartRequest.md) | | [required] |
**requestor** | Option<**String**> | The requestor header contains detailed information about who is calling the API. It can include information such as channel, organization, sales unit or workstation id and be used to configure e.g. the fare range provided to the caller. The content of the string is part of a bilateral contract by the two parties and not standardized by OSDM. It is recommend to encrypt the information transferred. | |
**accept_language** | Option<**String**> | Describes the set of natural languages that are preferred for localized text in the response to the request (see RFC9110). Supporting English (en) is a must. | |
**traceparent** | Option<**String**> | The traceparent header describes the position of the incoming request in its trace graph in a portable, fixed-length format. Its design focuses on fast parsing. Every tracing tool MUST properly set traceparent even when it only relies on vendor-specific information in tracestate (see W3C Trace Context). | |
**tracestate** | Option<**String**> | The tracestate extends traceparent with vendor-specific data represented by a set of name/value pairs. Storing information in tracestate is optional (see W3C Trace Context). | |
**idempotency_key** | Option<**uuid::Uuid**> | The HTTP Idempotency request header field can be used to carry idempotency key in order to make non-idempotent HTTP methods such as POST or PATCH fault-tolerant. Servers should keep the idempotency key for as long as the result of the underlying operation is valid. Idempotency keys should be globally unique. | |
### Return type
[**models::BookedOfferPartResponse**](BookedOfferPartResponse.md)
### Authorization
[oAuth2ClientCredentials](../README.md#oAuth2ClientCredentials)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json, application/problem+json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## create_booking_booked_offers_reservations
> models::BookedOfferReservationResponse create_booking_booked_offers_reservations(booking_id, booked_offer_id, booked_offer_reservation_request, requestor, accept_language, traceparent, tracestate, idempotency_key)
Adds a reservation not previously added from offer to a booking.
*DEPRECATED* in favour to unified endpoint handling both ancillaries and reservations. Adds a reservation to a booking. A provider can decide to allow or reject additional admissions, reservations or ancillaries on an confirmed booking.
### Parameters
**booking_id** | **String** | | [required] |
**booked_offer_id** | **String** | | [required] |
**booked_offer_reservation_request** | [**BookedOfferReservationRequest**](BookedOfferReservationRequest.md) | | [required] |
**requestor** | Option<**String**> | The requestor header contains detailed information about who is calling the API. It can include information such as channel, organization, sales unit or workstation id and be used to configure e.g. the fare range provided to the caller. The content of the string is part of a bilateral contract by the two parties and not standardized by OSDM. It is recommend to encrypt the information transferred. | |
**accept_language** | Option<**String**> | Describes the set of natural languages that are preferred for localized text in the response to the request (see RFC9110). Supporting English (en) is a must. | |
**traceparent** | Option<**String**> | The traceparent header describes the position of the incoming request in its trace graph in a portable, fixed-length format. Its design focuses on fast parsing. Every tracing tool MUST properly set traceparent even when it only relies on vendor-specific information in tracestate (see W3C Trace Context). | |
**tracestate** | Option<**String**> | The tracestate extends traceparent with vendor-specific data represented by a set of name/value pairs. Storing information in tracestate is optional (see W3C Trace Context). | |
**idempotency_key** | Option<**uuid::Uuid**> | The HTTP Idempotency request header field can be used to carry idempotency key in order to make non-idempotent HTTP methods such as POST or PATCH fault-tolerant. Servers should keep the idempotency key for as long as the result of the underlying operation is valid. Idempotency keys should be globally unique. | |
### Return type
[**models::BookedOfferReservationResponse**](BookedOfferReservationResponse.md)
### Authorization
[oAuth2ClientCredentials](../README.md#oAuth2ClientCredentials)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json, application/problem+json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## delete_booking_booked_offers_admission
> delete_booking_booked_offers_admission(booking_id, booked_offer_id, admission_id, requestor, accept_language, traceparent, tracestate)
Removes an admission from a booking. In case the admission is not confirmed. On a confirmed admission use the refund.
Removes an admission from pre-booked booking.It is up to the provider to change or remove dependent bookedOfferParts or to reject the request. A repricing might occur.
### Parameters
**booking_id** | **String** | | [required] |
**booked_offer_id** | **String** | | [required] |
**admission_id** | **String** | | [required] |
**requestor** | Option<**String**> | The requestor header contains detailed information about who is calling the API. It can include information such as channel, organization, sales unit or workstation id and be used to configure e.g. the fare range provided to the caller. The content of the string is part of a bilateral contract by the two parties and not standardized by OSDM. It is recommend to encrypt the information transferred. | |
**accept_language** | Option<**String**> | Describes the set of natural languages that are preferred for localized text in the response to the request (see RFC9110). Supporting English (en) is a must. | |
**traceparent** | Option<**String**> | The traceparent header describes the position of the incoming request in its trace graph in a portable, fixed-length format. Its design focuses on fast parsing. Every tracing tool MUST properly set traceparent even when it only relies on vendor-specific information in tracestate (see W3C Trace Context). | |
**tracestate** | Option<**String**> | The tracestate extends traceparent with vendor-specific data represented by a set of name/value pairs. Storing information in tracestate is optional (see W3C Trace Context). | |
### Return type
(empty response body)
### Authorization
[oAuth2ClientCredentials](../README.md#oAuth2ClientCredentials)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/problem+json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## delete_booking_booked_offers_ancillary
> delete_booking_booked_offers_ancillary(booking_id, booked_offer_id, ancillary_id, requestor, accept_language, traceparent, tracestate)
Removes an ancillary from a booking in case the ancillary is not jet confirmed. On confirmed ancillaries use the refund.
### Parameters
**booking_id** | **String** | | [required] |
**booked_offer_id** | **String** | | [required] |
**ancillary_id** | **String** | | [required] |
**requestor** | Option<**String**> | The requestor header contains detailed information about who is calling the API. It can include information such as channel, organization, sales unit or workstation id and be used to configure e.g. the fare range provided to the caller. The content of the string is part of a bilateral contract by the two parties and not standardized by OSDM. It is recommend to encrypt the information transferred. | |
**accept_language** | Option<**String**> | Describes the set of natural languages that are preferred for localized text in the response to the request (see RFC9110). Supporting English (en) is a must. | |
**traceparent** | Option<**String**> | The traceparent header describes the position of the incoming request in its trace graph in a portable, fixed-length format. Its design focuses on fast parsing. Every tracing tool MUST properly set traceparent even when it only relies on vendor-specific information in tracestate (see W3C Trace Context). | |
**tracestate** | Option<**String**> | The tracestate extends traceparent with vendor-specific data represented by a set of name/value pairs. Storing information in tracestate is optional (see W3C Trace Context). | |
### Return type
(empty response body)
### Authorization
[oAuth2ClientCredentials](../README.md#oAuth2ClientCredentials)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/problem+json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## delete_booking_booked_offers_parts
> delete_booking_booked_offers_parts(booking_id, booked_offer_id, booked_offer_part_delete_request, requestor, traceparent, tracestate)
Removes reservations or ancillaries from a booking in case the parts were not yet confirmed. On confirmed reservations use the refund.
### Parameters
**booking_id** | **String** | | [required] |
**booked_offer_id** | **String** | | [required] |
**booked_offer_part_delete_request** | [**BookedOfferPartDeleteRequest**](BookedOfferPartDeleteRequest.md) | | [required] |
**requestor** | Option<**String**> | The requestor header contains detailed information about who is calling the API. It can include information such as channel, organization, sales unit or workstation id and be used to configure e.g. the fare range provided to the caller. The content of the string is part of a bilateral contract by the two parties and not standardized by OSDM. It is recommend to encrypt the information transferred. | |
**traceparent** | Option<**String**> | The traceparent header describes the position of the incoming request in its trace graph in a portable, fixed-length format. Its design focuses on fast parsing. Every tracing tool MUST properly set traceparent even when it only relies on vendor-specific information in tracestate (see W3C Trace Context). | |
**tracestate** | Option<**String**> | The tracestate extends traceparent with vendor-specific data represented by a set of name/value pairs. Storing information in tracestate is optional (see W3C Trace Context). | |
### Return type
(empty response body)
### Authorization
[oAuth2ClientCredentials](../README.md#oAuth2ClientCredentials)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/problem+json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## delete_booking_booked_offers_reservations
> delete_booking_booked_offers_reservations(booking_id, booked_offer_id, reservation_id, requestor, accept_language, traceparent, tracestate)
Removes a reservation from a booking in case the reservation was not yet confirmed. On confirmed reservations use the refund.
### Parameters
**booking_id** | **String** | | [required] |
**booked_offer_id** | **String** | | [required] |
**reservation_id** | **String** | | [required] |
**requestor** | Option<**String**> | The requestor header contains detailed information about who is calling the API. It can include information such as channel, organization, sales unit or workstation id and be used to configure e.g. the fare range provided to the caller. The content of the string is part of a bilateral contract by the two parties and not standardized by OSDM. It is recommend to encrypt the information transferred. | |
**accept_language** | Option<**String**> | Describes the set of natural languages that are preferred for localized text in the response to the request (see RFC9110). Supporting English (en) is a must. | |
**traceparent** | Option<**String**> | The traceparent header describes the position of the incoming request in its trace graph in a portable, fixed-length format. Its design focuses on fast parsing. Every tracing tool MUST properly set traceparent even when it only relies on vendor-specific information in tracestate (see W3C Trace Context). | |
**tracestate** | Option<**String**> | The tracestate extends traceparent with vendor-specific data represented by a set of name/value pairs. Storing information in tracestate is optional (see W3C Trace Context). | |
### Return type
(empty response body)
### Authorization
[oAuth2ClientCredentials](../README.md#oAuth2ClientCredentials)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/problem+json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)