Skip to content
Navigation

Create a supplier

POST
https://api.nicer.travel/commerce/suppliers

Creates a supplier private to the company (or, for Nicer staff, one in the verified directory). With a Google place id it first answers the supplier that place already names, so a type-ahead miss never creates a duplicate. Returns the supplier as the company sees it.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Header parameters

  • Idempotency-Key
    string
    required

    Unique key (8–255 chars) per request; replays return the original result.

  • x-nicer-company
    string
    required

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

Request body JSON required

  • kind
    string
    ·
    one of 10 values
    required
    Allowed values: PROPERTY, CRUISE_LINE, TOUR_OPERATOR, DMC, AIRLINE, CAR_RENTAL, RAIL, INSURANCE, TRANSFER, OTHER
  • name
    string
    required
    maxLength: 255 · minLength: 1
  • address
    optional

    Any of the following:

    • SupplierAddress
      • city
        required

        Any of the following:

        • string
        • null
      • countryCode
        required

        Any of the following:

        • string
        • null
      • line1
        required

        Any of the following:

        • string
        • null
      • line2
        required

        Any of the following:

        • string
        • null
      • postalCode
        required

        Any of the following:

        • string
        • null
      • region
        required

        Any of the following:

        • string
        • null
    • null
  • commissionChannel
    optional

    Any of the following:

    • CommissionChannel
    • null
  • defaultCommissionBps
    optional

    Any of the following:

    • integer
    • null
  • defaultPaymentTermDays
    optional

    Any of the following:

    • integer
    • null
  • latitude
    optional

    Any of the following:

    • number
    • null
  • longitude
    optional

    Any of the following:

    • number
    • null
  • phone
    optional

    Any of the following:

    • string
    • null
  • website
    optional

    Any of the following:

    • string
    • null
  • googlePlaceId
    optional

    Any of the following:

    • string
    • null
  • scope
    optional
    GLOBAL
    or
    COMPANY

Returns

200

OK

JSON
  • address
    required

    Any of the following:

    • SupplierAddress
      • city
        required

        Any of the following:

        • string
        • null
      • countryCode
        required

        Any of the following:

        • string
        • null
      • line1
        required

        Any of the following:

        • string
        • null
      • line2
        required

        Any of the following:

        • string
        • null
      • postalCode
        required

        Any of the following:

        • string
        • null
      • region
        required

        Any of the following:

        • string
        • null
    • null
  • contacts
    array of
    object
    required
    • email
      required

      Any of the following:

      • string
      • null
    • name
      required

      Any of the following:

      • string
      • null
    • notes
      required

      Any of the following:

      • string
      • null
    • phone
      required

      Any of the following:

      • string
      • null
    • role
      COMMISSIONS
      or
      ACCOUNTING
      or
      RESERVATIONS
      or
      SALES
      or
      OTHER
      required
    • shared
      boolean
      required
    • supplierContactId
      string
      required
      minLength: 1
  • defaults
    object
    required
    • commissionBps
      required

      Any of the following:

      • integer
      • null
    • commissionChannel
      required

      Any of the following:

      • CommissionChannel
      • null
    • paymentTermDays
      required

      Any of the following:

      • integer
      • null
  • identities
    array of
    object
    required
    • externalId
      string
      required
      minLength: 1
    • source
      string
      required
  • kind
    string
    ·
    one of 10 values
    required
    Allowed values: PROPERTY, CRUISE_LINE, TOUR_OPERATOR, DMC, AIRLINE, CAR_RENTAL, RAIL, INSURANCE, TRANSFER, OTHER
  • latitude
    required

    Any of the following:

    • number
    • null
  • longitude
    required

    Any of the following:

    • number
    • null
  • mergedIntoSupplierId
    required

    Any of the following:

    • string
    • null
  • name
    string
    required
    minLength: 1
  • phone
    required

    Any of the following:

    • string
    • null
  • production
    array of
    object
    required
    • balanceMinor
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
    • bookings
      integer
      required
      maximum: 9007199254740991 · minimum: 0
    • currency
      string
      required
      pattern: ^[A-Z]{3}$
    • expectedMinor
      integer
      required
      maximum: 9007199254740991 · minimum: 0
    • overdueMinor
      integer
      required
      maximum: 9007199254740991 · minimum: 0
    • receivedMinor
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991
  • programs
    array of
    object
    required
    • name
      string
      required
      minLength: 1
    • programId
      string
      required
      minLength: 1
    • validFrom
      required

      Any of the following:

      • string
      • null
    • validTo
      required

      Any of the following:

      • string
      • null
  • scope
    GLOBAL
    or
    COMPANY
    required
  • source
    string
    required
  • status
    ACTIVE
    or
    MERGED
    or
    ARCHIVED
    required
  • supplierId
    string
    required
    minLength: 1
  • updatedAt
    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))$
  • verifiedAt
    required

    Any of the following:

    • string
    • null
  • website
    required

    Any of the following:

    • string
    • null
  • sabreRating
    optional
    number
    maximum: 5 · minimum: 0

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