---
title: "Search suppliers"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.nicer.travel/llms.txt
> Use this file to discover all available pages before exploring further.

# Search suppliers

Path: Nicer API › Commerce

`GET /commerce/suppliers`

URL: `https://api.nicer.travel/commerce/suppliers`

Type-ahead over Nicer's global supplier directory and the company's own suppliers, best match first, with Sabre Global Property IDs where available. When fewer than three fit a query of three characters or more and there is no strong Sabre match, it also suggests up to five Google places (lodging for PROPERTY, car rental for CAR_RENTAL). Creating a supplier with a suggestion's `googlePlaceId` reuses the supplier that place already names. Google failing or slow (1.5 s) answers no suggestions, never an error.

## Authentication

- `bearerAuth`, http bearer, header `Authorization`, format `JWT`

## Query parameters

- `q` (`commerce.suppliers.list.query.q`; string, required)
  - maxLength: `100` · minLength: `1`
- `kind` (`commerce.suppliers.list.query.kind`; string, optional)
  - one of `"PROPERTY"`, `"CRUISE_LINE"`, `"TOUR_OPERATOR"`, `"DMC"`, `"AIRLINE"`, `"CAR_RENTAL"`, `"RAIL"`, `"INSURANCE"`, `"TRANSFER"`, `"OTHER"`
- `limit` (`commerce.suppliers.list.query.limit`; integer, optional)
  - maximum: `20` · minimum: `1`

## Header parameters

- `x-nicer-company` (`commerce.suppliers.list.header.x-nicer-company`; string, required) — Company context. Authentication and tenant membership are validated by the API.

## Code samples

### JavaScript SDK

```javascript
import { createClient } from "@nicertravel/sdk";

const nicer = createClient({
  baseUrl: "https://api.nicer.travel",
  token: process.env.NICER_TOKEN,
  headers: { "x-nicer-company": process.env.NICER_COMPANY },
});

await nicer.commerce.suppliers.list({
  "q": "string"
});
```

### Nicer CLI

```bash
nicer commerce suppliers list --q 'string' --company "$NICER_COMPANY"
```

### cURL

```bash
curl --request GET \
  --url 'https://api.nicer.travel/commerce/suppliers?q=string' \
  --header 'Authorization: Bearer <token>' \
  --header 'x-nicer-company: string'
```

### TypeScript

```typescript
const url = 'https://api.nicer.travel/commerce/suppliers?q=string';
const options = {
  method: 'GET',
  headers: {'x-nicer-company': 'string', Authorization: 'Bearer <token>'}
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.nicer.travel/commerce/suppliers?q=string"

headers = {
    "x-nicer-company": "string",
    "Authorization": "Bearer <token>"
}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "items": [
    {
      "city": "string",
      "commissionBps": 10000,
      "countryCode": "string",
      "kind": "PROPERTY",
      "name": "string",
      "paymentTermDays": 730,
      "sabreGlobalId": "string",
      "scope": "GLOBAL",
      "similarity": 1,
      "supplierId": "string",
      "verified": true
    }
  ],
  "suggestions": [
    {
      "address": "string",
      "countryCode": "st",
      "googlePlaceId": "string",
      "latitude": -90,
      "longitude": -180,
      "name": "string"
    }
  ]
}
```

- `items` (`commerce.suppliers.list.response.200.items`; array of object, required)
  - `city` (`commerce.suppliers.list.response.200.items.city`; any of, required)
    - any of the following: `string`, `null`
  - `commissionBps` (`commerce.suppliers.list.response.200.items.commissionBps`; any of, required)
    - any of the following: `integer`, `null`
  - `countryCode` (`commerce.suppliers.list.response.200.items.countryCode`; any of, required)
    - any of the following: `string`, `null`
  - `kind` (`commerce.suppliers.list.response.200.items.kind`; string, required)
    - one of `"PROPERTY"`, `"CRUISE_LINE"`, `"TOUR_OPERATOR"`, `"DMC"`, `"AIRLINE"`, `"CAR_RENTAL"`, `"RAIL"`, `"INSURANCE"`, `"TRANSFER"`, `"OTHER"`
  - `name` (`commerce.suppliers.list.response.200.items.name`; string, required)
    - minLength: `1`
  - `paymentTermDays` (`commerce.suppliers.list.response.200.items.paymentTermDays`; any of, required)
    - any of the following: `integer`, `null`
  - `scope` (`commerce.suppliers.list.response.200.items.scope`; string, required)
    - one of `"GLOBAL"`, `"COMPANY"`
  - `similarity` (`commerce.suppliers.list.response.200.items.similarity`; number, required)
    - maximum: `1` · minimum: `0`
  - `supplierId` (`commerce.suppliers.list.response.200.items.supplierId`; string, required)
    - minLength: `1`
  - `verified` (`commerce.suppliers.list.response.200.items.verified`; boolean, required)
  - `sabreGlobalId` (`commerce.suppliers.list.response.200.items.sabreGlobalId`; any of, optional)
    - any of the following: `string`, `null`
- `suggestions` (`commerce.suppliers.list.response.200.suggestions`; array of object, required)
  - `address` (`commerce.suppliers.list.response.200.suggestions.address`; any of, required)
    - any of the following: `string`, `null`
  - `countryCode` (`commerce.suppliers.list.response.200.suggestions.countryCode`; any of, required)
    - any of the following: `string`, `null`
  - `googlePlaceId` (`commerce.suppliers.list.response.200.suggestions.googlePlaceId`; string, required)
    - maxLength: `512` · minLength: `1`
  - `latitude` (`commerce.suppliers.list.response.200.suggestions.latitude`; any of, required)
    - any of the following: `number`, `null`
  - `longitude` (`commerce.suppliers.list.response.200.suggestions.longitude`; any of, required)
    - any of the following: `number`, `null`
  - `name` (`commerce.suppliers.list.response.200.suggestions.name`; string, required)
    - minLength: `1`

### 400

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`commerce.suppliers.list.response.400.errorCode`; string, required)
- `errorMessage` (`commerce.suppliers.list.response.400.errorMessage`; string, required)

### 401

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`commerce.suppliers.list.response.401.errorCode`; string, required)
- `errorMessage` (`commerce.suppliers.list.response.401.errorMessage`; string, required)

### 403

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`commerce.suppliers.list.response.403.errorCode`; string, required)
- `errorMessage` (`commerce.suppliers.list.response.403.errorMessage`; string, required)


Source: https://docs.nicer.travel/api/Commerce/commerce.suppliers.list/index.md
