---
title: "Get a supplier"
---

> 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.

# Get a supplier

Path: Nicer API › Commerce

`GET /commerce/suppliers/{supplierId}`

URL: `https://api.nicer.travel/commerce/suppliers/{supplierId}`

One supplier as the company sees it: the shared profile, the company's own terms and contacts, preferred programs, other systems' ids, and what the company booked, received and is owed with it per currency. An advisor gets the production of the bookings attributed to them only. Another company's supplier answers 404.

## Authentication

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

## Path parameters

- `supplierId` (`commerce.suppliers.get.path.supplierId`; string, required)

## Header parameters

- `x-nicer-company` (`commerce.suppliers.get.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.get({
  "supplierId": "string"
});
```

### Nicer CLI

```bash
nicer commerce suppliers get --supplier-id 'string' --company "$NICER_COMPANY"
```

### cURL

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

### TypeScript

```typescript
const url = 'https://api.nicer.travel/commerce/suppliers/<supplierId>';
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/<supplierId>"

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

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

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "address": {
    "city": "string",
    "countryCode": "string",
    "line1": "string",
    "line2": "string",
    "postalCode": "string",
    "region": "string"
  },
  "contacts": [
    {
      "email": "user@example.com",
      "name": "string",
      "notes": "string",
      "phone": "string",
      "role": "COMMISSIONS",
      "shared": true,
      "supplierContactId": "string"
    }
  ],
  "defaults": {
    "commissionBps": 10000,
    "commissionChannel": "ARC",
    "paymentTermDays": 730
  },
  "identities": [
    {
      "externalId": "string",
      "source": "string"
    }
  ],
  "kind": "PROPERTY",
  "latitude": -90,
  "longitude": -180,
  "mergedIntoSupplierId": "string",
  "name": "string",
  "phone": "string",
  "production": [
    {
      "balanceMinor": -9007199254740991,
      "bookings": 9007199254740991,
      "currency": "string",
      "expectedMinor": 9007199254740991,
      "overdueMinor": 9007199254740991,
      "receivedMinor": -9007199254740991
    }
  ],
  "programs": [
    {
      "name": "string",
      "programId": "string",
      "validFrom": "2019-08-24",
      "validTo": "2019-08-24"
    }
  ],
  "sabreRating": 5,
  "scope": "GLOBAL",
  "source": "string",
  "status": "ACTIVE",
  "supplierId": "string",
  "updatedAt": "2019-08-24T14:15:22Z",
  "verifiedAt": "2019-08-24T14:15:22Z",
  "website": "string"
}
```

- `address` (`commerce.suppliers.get.response.200.address`; any of, required)
  - any of the following:
    - `SupplierAddress`
      - `city` (`SupplierAddress.city`; any of, required)
        - any of the following: `string`, `null`
      - `countryCode` (`SupplierAddress.countryCode`; any of, required)
        - any of the following: `string`, `null`
      - `line1` (`SupplierAddress.line1`; any of, required)
        - any of the following: `string`, `null`
      - `line2` (`SupplierAddress.line2`; any of, required)
        - any of the following: `string`, `null`
      - `postalCode` (`SupplierAddress.postalCode`; any of, required)
        - any of the following: `string`, `null`
      - `region` (`SupplierAddress.region`; any of, required)
        - any of the following: `string`, `null`
    - `null`
- `contacts` (`commerce.suppliers.get.response.200.contacts`; array of object, required)
  - `email` (`commerce.suppliers.get.response.200.contacts.email`; any of, required)
    - any of the following: `string`, `null`
  - `name` (`commerce.suppliers.get.response.200.contacts.name`; any of, required)
    - any of the following: `string`, `null`
  - `notes` (`commerce.suppliers.get.response.200.contacts.notes`; any of, required)
    - any of the following: `string`, `null`
  - `phone` (`commerce.suppliers.get.response.200.contacts.phone`; any of, required)
    - any of the following: `string`, `null`
  - `role` (`commerce.suppliers.get.response.200.contacts.role`; string, required)
    - one of `"COMMISSIONS"`, `"ACCOUNTING"`, `"RESERVATIONS"`, `"SALES"`, `"OTHER"`
  - `shared` (`commerce.suppliers.get.response.200.contacts.shared`; boolean, required)
  - `supplierContactId` (`commerce.suppliers.get.response.200.contacts.supplierContactId`; string, required)
    - minLength: `1`
- `defaults` (`commerce.suppliers.get.response.200.defaults`; object, required)
  - `commissionBps` (`commerce.suppliers.get.response.200.defaults.commissionBps`; any of, required)
    - any of the following: `integer`, `null`
  - `commissionChannel` (`commerce.suppliers.get.response.200.defaults.commissionChannel`; any of, required)
    - any of the following: `CommissionChannel`, `null`
  - `paymentTermDays` (`commerce.suppliers.get.response.200.defaults.paymentTermDays`; any of, required)
    - any of the following: `integer`, `null`
- `identities` (`commerce.suppliers.get.response.200.identities`; array of object, required)
  - `externalId` (`commerce.suppliers.get.response.200.identities.externalId`; string, required)
    - minLength: `1`
  - `source` (`commerce.suppliers.get.response.200.identities.source`; string, required)
- `kind` (`commerce.suppliers.get.response.200.kind`; string, required)
  - one of `"PROPERTY"`, `"CRUISE_LINE"`, `"TOUR_OPERATOR"`, `"DMC"`, `"AIRLINE"`, `"CAR_RENTAL"`, `"RAIL"`, `"INSURANCE"`, `"TRANSFER"`, `"OTHER"`
- `latitude` (`commerce.suppliers.get.response.200.latitude`; any of, required)
  - any of the following: `number`, `null`
- `longitude` (`commerce.suppliers.get.response.200.longitude`; any of, required)
  - any of the following: `number`, `null`
- `mergedIntoSupplierId` (`commerce.suppliers.get.response.200.mergedIntoSupplierId`; any of, required)
  - any of the following: `string`, `null`
- `name` (`commerce.suppliers.get.response.200.name`; string, required)
  - minLength: `1`
- `phone` (`commerce.suppliers.get.response.200.phone`; any of, required)
  - any of the following: `string`, `null`
- `production` (`commerce.suppliers.get.response.200.production`; array of object, required)
  - `balanceMinor` (`commerce.suppliers.get.response.200.production.balanceMinor`; integer, required)
    - maximum: `9007199254740991` · minimum: `-9007199254740991`
  - `bookings` (`commerce.suppliers.get.response.200.production.bookings`; integer, required)
    - maximum: `9007199254740991` · minimum: `0`
  - `currency` (`commerce.suppliers.get.response.200.production.currency`; string, required)
    - pattern: `^[A-Z]{3}$`
  - `expectedMinor` (`commerce.suppliers.get.response.200.production.expectedMinor`; integer, required)
    - maximum: `9007199254740991` · minimum: `0`
  - `overdueMinor` (`commerce.suppliers.get.response.200.production.overdueMinor`; integer, required)
    - maximum: `9007199254740991` · minimum: `0`
  - `receivedMinor` (`commerce.suppliers.get.response.200.production.receivedMinor`; integer, required)
    - maximum: `9007199254740991` · minimum: `-9007199254740991`
- `programs` (`commerce.suppliers.get.response.200.programs`; array of object, required)
  - `name` (`commerce.suppliers.get.response.200.programs.name`; string, required)
    - minLength: `1`
  - `programId` (`commerce.suppliers.get.response.200.programs.programId`; string, required)
    - minLength: `1`
  - `validFrom` (`commerce.suppliers.get.response.200.programs.validFrom`; any of, required)
    - any of the following: `string`, `null`
  - `validTo` (`commerce.suppliers.get.response.200.programs.validTo`; any of, required)
    - any of the following: `string`, `null`
- `scope` (`commerce.suppliers.get.response.200.scope`; string, required)
  - one of `"GLOBAL"`, `"COMPANY"`
- `source` (`commerce.suppliers.get.response.200.source`; string, required)
- `status` (`commerce.suppliers.get.response.200.status`; string, required)
  - one of `"ACTIVE"`, `"MERGED"`, `"ARCHIVED"`
- `supplierId` (`commerce.suppliers.get.response.200.supplierId`; string, required)
  - minLength: `1`
- `updatedAt` (`commerce.suppliers.get.response.200.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` (`commerce.suppliers.get.response.200.verifiedAt`; any of, required)
  - any of the following: `string`, `null`
- `website` (`commerce.suppliers.get.response.200.website`; any of, required)
  - any of the following: `string`, `null`
- `sabreRating` (`commerce.suppliers.get.response.200.sabreRating`; number, optional)
  - maximum: `5` · minimum: `0`

### 400

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

#### Example

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

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

### 401

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

#### Example

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

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

### 403

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

#### Example

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

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


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