Save or test booking provider settings
Changes the booking settings of the company named in x-nicer-company: its booking channel, a provider connection, or an advisor's Sabre agent, with optimistic concurrency through expectedVersion. Who may change what: a company admin, on their own company's connection, may turn it on or off and change sessionPcc, credentials, domain, alias, the agency and hotel point-of-sale addresses, agencyProfile and products, and run every agent action; only Nicer staff may send homePcc (the PCC the credential signs in to before working in sessionPcc through branch access), secretReference, sabreExecutionMode, ticketingQueue, ticketingPrinter, hotelIataOverride or excludedAirlineCodes, save a connection that has a homePcc, give an agent of such a connection a pccOverride, or run READ_SABRE_QUEUES; a company admin who tries any of those gets 403 BOOKING_PROVIDER_MANAGED. SAVE_PROVIDER with credentials stores them as a new secret and points the connection at it; products sets which products the default channel binds to the connection (omitted keeps the bindings, and a connection being created or turned on binds every product its provider sells); its publicConfiguration merges key by key (an absent key keeps its stored value, null removes it), and versions are the server's, so configVersion and profileVersion are ignored. SAVE_SABRE_ADVISOR with isDefault: true makes that agent the agency's default agent, which books for every advisor without one of their own; DELETE_SABRE_ADVISOR turns off every agent of an advisor; TEST_SABRE opens a Sabre session with the stored credentials, saves nothing else and records the result as the connection's last test; READ_SABRE_QUEUES reads what waits on each queue of the connection's office and what was done on it, and changes nothing in Sabre. Every change publishes its event: booking.provider-connection-saved.v1, booking.channel-saved.v1, booking.sabre-agent-saved.v1 or booking.sabre-agent-removed.v1. Returns SAVED with the new version, DELETED, TESTED with success, latency, any error and when it ran, or QUEUES_READ with the office's queues. Conflicts: 409 BOOKING_SETTINGS_VERSION_CONFLICT when expectedVersion is not the stored one, 409 BOOKING_DK_OWNER_CONFLICT when another person at the agency already has that DK.
Authorization
Header parameters
Request body JSON required
One of the following:
- object
- object
- object
- object
- object
- object
- object
Returns
200
OK
One of the following:
- object
- object
- object
- object