---
title: "[beta] Create a vendor"
method: POST
path: "/fleet/maintenance/vendors"
tags: ["Beta APIs"]
---

# \[beta\] Create a vendor

`POST /fleet/maintenance/vendors`

## Request

- Base URL: `https://api.samsara.com`
- URL: `https://api.samsara.com/fleet/maintenance/vendors`
- Auth: HTTP bearer

Manage parent vendor identity and defaults inherited by vendor locations.

 <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).

To use this endpoint, select **Write Work Orders** under the Work Orders category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
 

 **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.

## Query parameters

- `includeExternalIds` boolean

## Request body

- EntityVendorProfilesServiceCreateVendorRequestBody: Request body for creating a vendor
  - `assetAttributeSelections` CreateVendorGroupEntityVendorProfileVendorAssetAttributeSelectionInputTypeRequestBody[]: Assets this vendor can service. Empty replaces inherited selections; null clears the setting.
    - `attributeId` string, required: ID of an asset-scoped preset attribute.
    - `values` CreateVendorGroupEntityVendorProfileVendorAssetAttributeValueInputTypeRequestBody[], required: Selected values. At most 100 values per attribute.
      - `id` string, required: ID of a value belonging to the attribute.
  - `defaultLaborRatePerHour` CreateVendorGroupEntityVendorProfileVendorHourlyMoneyInputTypeRequestBody: VendorHourlyMoney object
    - `amount` string, required: Nonnegative decimal hourly amount in the organization's currency.
    - `currency` string, required: ISO 4217 currency matching the organization's current currency.
  - `externalIds` CreateVendorGroupEntityVendorProfileVendorGroupExternalIdInputTypeRequestBody[]: External identifiers belonging to this parent vendor.
    - `key` string, required: External identifier namespace.
    - `value` string, required: Customer-managed identifier.
  - `isMobile` boolean: Whether vendor locations inherit mobile service as their default.
  - `isPreferred` boolean: Default preferred status inherited by vendor locations.
  - `name` string, required: Name of the vendor profile.
  - `primaryCorporateContact` CreateVendorGroupEntityVendorProfileVendorGroupPrimaryCorporateContactInputTypeRequestBody: VendorGroupPrimaryCorporateContact object
    - `email` string: Contact email. Opaque string; max 100 characters.
    - `name` string: Display name. Max 50 characters.
    - `phoneNumber` string: Contact phone. Opaque string; max 15 characters.
  - `status` 'active' | 'inactive' | 'unknown': Own lifecycle status. Defaults to active. Unknown is read-only. Valid values: `active`, `inactive`, `unknown`

## Response `200`

OK response.

- EntityVendorProfilesServiceCreateVendorResponseBody
  - `data` EntityCreateVendorTypeResponseBody, required: vendor object
    - `assetAttributeSelections` CreateVendorGroupEntityVendorProfileVendorAssetAttributeSelectionTypeResponseBody[]: Assets this vendor can service. Empty replaces inherited selections; null clears the setting.
      - `attributeId` string: ID of an asset-scoped preset attribute.
      - `values` CreateVendorGroupEntityVendorProfileVendorAssetAttributeValueTypeResponseBody[]: Selected values. At most 100 values per attribute.
        - `id` string: ID of a value belonging to the attribute.
    - `createdAtTime` string: Time when the vendor profile was created.
    - `defaultLaborRatePerHour` CreateVendorGroupEntityVendorProfileVendorHourlyMoneyTypeResponseBody: VendorHourlyMoney object
      - `amount` string: Nonnegative decimal hourly amount in the organization's currency.
      - `currency` string: ISO 4217 currency matching the organization's current currency.
    - `externalIds` CreateVendorGroupEntityVendorProfileVendorGroupExternalIdTypeResponseBody[]: External identifiers belonging to this parent vendor.
      - `key` string: External identifier namespace.
      - `value` string: Customer-managed identifier.
    - `id` string: Unique identifier for the vendor profile. Leave blank to create a profile.
    - `isMobile` boolean: Whether vendor locations inherit mobile service as their default.
    - `isPreferred` boolean: Default preferred status inherited by vendor locations.
    - `name` string: Name of the vendor profile.
    - `primaryCorporateContact` CreateVendorGroupEntityVendorProfileVendorGroupPrimaryCorporateContactTypeResponseBody: VendorGroupPrimaryCorporateContact object
      - `email` string: Contact email. Opaque string; max 100 characters.
      - `name` string: Display name. Max 50 characters.
      - `phoneNumber` string: Contact phone. Opaque string; max 15 characters.
    - `status` 'active' | 'inactive' | 'unknown': Own lifecycle status. Defaults to active. Unknown is read-only. Valid values: `active`, `inactive`, `unknown`
    - `updatedAtTime` string: Time when the vendor profile was last updated.

## Other responses

- `401`: Unauthorized response.
- `404`: Not Found response.
- `405`: Method Not Allowed response.
- `413`: Content Too Large response.
- `429`: Too Many Requests response.
- `500`: Internal Server Error response.
- `501`: Not Implemented response.
- `502`: Bad Gateway response.
- `503`: Service Unavailable response.
- `504`: Gateway Timeout response.
- `default`: Bad Request response.

---

[API](https://skmtc.dev/samsara/apis/samsara-api.md) - [All operations](https://skmtc.dev/samsara/apis/samsara-api/llms.txt) - [OpenAPI document](https://skmtc.dev/samsara/apis/samsara-api/revisions/a9e35d4999be?raw)
