Skip to content
Navigation

Activate my Sabre agent

PUT
https://api.nicer.travel/booking/sabre/me

The signed-in advisor or admin sets the DK their own Sabre searches and bookings carry at the agency they act in (x-nicer-company); sending a different DK later changes it. The caller is always the token's person: there is no user id, PCC, corporate profile or default flag to send, and an admin who activates their own DK books under it like any advisor. A DK that reservation import already found at this agency and nobody owns becomes the caller's, together with the imported bookings made under it. The change reaches searches within about 30 seconds. Errors: 400 ERROR_BODY_VALIDATION (a DK is 1 to 10 letters and digits), 404 BOOKING_PROVIDER_NOT_CONFIGURED when the agency has no Sabre connection that is on, 409 BOOKING_DK_OWNER_CONFLICT when another person at the agency already has that DK, 409 BOOKING_DEFAULT_AGENT_MANAGED when the caller holds the agency's default agent (an admin changes that one in the agency's settings), 422 ASSIGNMENT_MEMBER_REQUIRED when the caller is not an active advisor or admin of the agency.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Header parameters

  • x-nicer-company
    string
    required

    Company context. Authentication and tenant membership are validated by the API.

Request body JSON required

  • dkNumber
    string
    required

    The customer number (DK) Sabre stamps on a booking to say which agent of the agency made it: 1 to 10 letters and digits, stored upper-case.

    pattern: ^[A-Z0-9]{1,10}$

Returns

200

OK

JSON
  • agent
    required

    Any of the following:

    • object
      • activatedAt
        string
        required
        format: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
      • dkNumber
        string
        required

        The customer number (DK) Sabre stamps on a booking to say which agent of the agency made it: 1 to 10 letters and digits, stored upper-case.

        pattern: ^[A-Z0-9]{1,10}$
      • isDefault
        boolean
        required
    • null
  • bookingAs
    OWN_AGENT
    or
    AGENCY_AGENT
    or
    NO_AGENT
    required

    Whose DK the caller's Sabre searches and bookings carry: OWN_AGENT their own; AGENCY_AGENT the agency's default agent, because they have none; NO_AGENT neither exists, so Sabre returns nothing for them until they activate one.

  • enabled
    boolean
    required
  • products
    array of
    CAR_RENTAL
    or
    FLIGHT
    or
    HOTEL
    or
    INSURANCE
    required

400

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

401

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

403

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close