Skip to content
Navigation

Get my Sabre agent

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

Tells the signed-in advisor or admin whether the agency they act in (x-nicer-company) books through Sabre, which products it sells there, and whose DK their own searches and bookings carry: their own agent, the agency's default agent, or none. When the agency has no Sabre connection or it is off, it answers 200 with enabled: false, never an error. It never returns another person's DK, a PCC or anything about the credential. Errors: 400 ERROR_COMPANY_REQUIRED, 403 ERROR_UNAUTHORIZED for a traveler.

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.

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