Skip to main content

Travel parties

Families and friends travelling together on separate trips, without group commercial terms.

OperationEndpoint
List travel partiesGET /travel-parties
Create a travel partyPOST /travel-parties
Read a travel partyGET /travel-parties/{id}
Preview converting a party to group termsPOST /travel-parties/{id}/conversion-preview
Add a trip to a travel partyPOST /travel-parties/{id}/trips
Remove a trip from a travel partyDELETE /travel-parties/{id}/trips/{tripId}

List travel parties​

GET/travel-parties

Parameters

NameInRequiredNotes
tripIdqueryThe party this trip belongs to.

Response 200

Errors
StatusCodeMeaning
400invalid_requestThe request failed validation. The message names the first failing field; oms-ops and group surfaces also return every issue in details.
401unauthenticatedThe bearer token is missing, invalid, expired or minted for another purpose.
403scope_forbiddenThe token is scoped to an agency or an access scope; this surface requires an unscoped tenant token.
404group_bookings_not_enabledGroup bookings are not enabled for the tenant.
500internalUnexpected failure. Retry with the same Idempotency-Key.

Create a travel party​

POST/travel-parties

Headers: Idempotency-Key, plus X-Request-Id.

Request body

FieldTypeRequiredNotes
actorobjectyes
actor.channelstringmax 60 chars
actor.idstringyes1–200 chars
actor.namestringmax 200 chars
actor.rolestringyes1–100 chars
defaultPayerobject
defaultPayer.contactstringmax 320 chars
defaultPayer.namestringmax 200 chars
defaultPayer.refstringyes1–200 chars
leadContactobjectyes
leadContact.contactstringmax 320 chars
leadContact.namestringmax 200 chars
leadContact.refstringyes1–200 chars
namestringyes1–200 chars
partyIdstring1–200 chars
sharedRequestsobjectdefault {"notes":[]}
sharedRequests.adjacentUnitsboolean
sharedRequests.diningstringmax 200 chars
sharedRequests.notesarray of string
tripIdsarray of string

Schema: apps/journeys/src/group-agreements/contracts.ts (CreatePartySchema)

Response 201

Errors
StatusCodeMeaning
400invalid_requestThe request failed validation. The message names the first failing field; oms-ops and group surfaces also return every issue in details.
401unauthenticatedThe bearer token is missing, invalid, expired or minted for another purpose.
403scope_forbiddenThe token is scoped to an agency or an access scope; this surface requires an unscoped tenant token.
404group_bookings_not_enabledGroup bookings are not enabled for the tenant.
409idempotency_in_progressA request with this Idempotency-Key is still running. Retry after the Retry-After interval.
422idempotency_key_reusedThe Idempotency-Key was used for a different request.
500internalUnexpected failure. Retry with the same Idempotency-Key.

Read a travel party​

GET/travel-parties/{id}

Parameters

NameInRequiredNotes
idpathyes

Response 200

Errors
StatusCodeMeaning
400invalid_requestThe request failed validation. The message names the first failing field; oms-ops and group surfaces also return every issue in details.
401unauthenticatedThe bearer token is missing, invalid, expired or minted for another purpose.
403scope_forbiddenThe token is scoped to an agency or an access scope; this surface requires an unscoped tenant token.
404party_not_foundThe travel party does not exist.
404group_bookings_not_enabledGroup bookings are not enabled for the tenant.
500internalUnexpected failure. Retry with the same Idempotency-Key.

Preview converting a party to group terms​

POST/travel-parties/{id}/conversion-preview

Parameters

NameInRequiredNotes
idpathyes

Headers: Idempotency-Key, plus X-Request-Id.

Request body

FieldTypeRequiredNotes
groupFarearray of object
groupFare[].bestAvailableMinorinteger> 0
groupFare[].categoryRefstringyes1–200 chars
groupFare[].groupFareMinorintegeryes> 0
groupFare[].labelstringmax 200 chars

Schema: apps/journeys/src/group-agreements/contracts.ts (PartyConversionSchema)

Response 200

Errors
StatusCodeMeaning
400invalid_requestThe request failed validation. The message names the first failing field; oms-ops and group surfaces also return every issue in details.
401unauthenticatedThe bearer token is missing, invalid, expired or minted for another purpose.
403scope_forbiddenThe token is scoped to an agency or an access scope; this surface requires an unscoped tenant token.
404group_bookings_not_enabledGroup bookings are not enabled for the tenant.
409idempotency_in_progressA request with this Idempotency-Key is still running. Retry after the Retry-After interval.
422idempotency_key_reusedThe Idempotency-Key was used for a different request.
500internalUnexpected failure. Retry with the same Idempotency-Key.

Add a trip to a travel party​

POST/travel-parties/{id}/trips

Parameters

NameInRequiredNotes
idpathyes

Headers: Idempotency-Key, plus X-Request-Id.

Request body

FieldTypeRequiredNotes
actorobjectyes
actor.channelstringmax 60 chars
actor.idstringyes1–200 chars
actor.namestringmax 200 chars
actor.rolestringyes1–100 chars
tripIdstringyes1–200 chars

Schema: apps/journeys/src/group-agreements/contracts.ts (LinkPartyTripSchema)

Response 201

Errors
StatusCodeMeaning
400invalid_requestThe request failed validation. The message names the first failing field; oms-ops and group surfaces also return every issue in details.
401unauthenticatedThe bearer token is missing, invalid, expired or minted for another purpose.
403scope_forbiddenThe token is scoped to an agency or an access scope; this surface requires an unscoped tenant token.
404group_bookings_not_enabledGroup bookings are not enabled for the tenant.
409idempotency_in_progressA request with this Idempotency-Key is still running. Retry after the Retry-After interval.
422idempotency_key_reusedThe Idempotency-Key was used for a different request.
500internalUnexpected failure. Retry with the same Idempotency-Key.

Remove a trip from a travel party​

DELETE/travel-parties/{id}/trips/{tripId}

Parameters

NameInRequiredNotes
idpathyes
tripIdpathyes

Headers: Idempotency-Key, plus X-Request-Id.

Response 200

Errors
StatusCodeMeaning
400invalid_requestThe request failed validation. The message names the first failing field; oms-ops and group surfaces also return every issue in details.
401unauthenticatedThe bearer token is missing, invalid, expired or minted for another purpose.
403scope_forbiddenThe token is scoped to an agency or an access scope; this surface requires an unscoped tenant token.
404group_bookings_not_enabledGroup bookings are not enabled for the tenant.
409idempotency_in_progressA request with this Idempotency-Key is still running. Retry after the Retry-After interval.
422idempotency_key_reusedThe Idempotency-Key was used for a different request.
500internalUnexpected failure. Retry with the same Idempotency-Key.