---
title: "Create a warranty claim"
method: POST
path: "/maintenance/warranty-claims"
tags: ["Maintenance"]
---

# Create a warranty claim

`POST /maintenance/warranty-claims`

## Request

- Base URL: `https://api.samsara.com`
- URL: `https://api.samsara.com/maintenance/warranty-claims`
- Auth: HTTP bearer

Creates a warranty claim for the organization.

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

To use this endpoint, select **Write Warranties** 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.

## Request body

- EntityWarrantyClaimsServiceCreateWarrantyClaimRequestBody: Request body for creating a WarrantyClaim
  - `assetId` string, required: ID of the asset the claim is filed for. Immutable once set.
  - `cause` string: The cause of the 3 Cs - the root cause found.
  - `claimEngineHours` integer: Engine hours at the time of repair.
  - `claimOdometerMeters` integer: Asset odometer reading at the time of repair. Measured in meters.
  - `claimStatus` 'unknown' | 'created' | 'submitted' | 'inReview' | 'approved' | 'rejected' | 'resubmitted' | 'reimbursed': Current status of the claim. Valid values: `unknown`, `created`, `submitted`, `inReview`, `approved`, `rejected`, `resubmitted`, `reimbursed`
  - `componentInstanceIds` string[]: IDs of asset component instances covered by this claim.
  - `concern` string: The concern of the 3 Cs - what was reported.
  - `correction` string: The correction of the 3 Cs - the work performed.
  - `externalIds` CreateWarrantyClaimEntityWarrantyClaimWarrantyClaimExternalIdInputTypeRequestBody[]: Customer-supplied external identifiers for the warranty claim, interchangeable with id in filters. Only included in the response when includeExternalIds is set.
    - `key` string, required: Name of the external ID namespace, for example a source system identifier.
    - `value` string, required: The external ID value within the given key's namespace.
  - `labor` CreateWarrantyClaimEntityWarrantyClaimWarrantyClaimLaborInputTypeRequestBody[]: Labor being claimed.
    - `cost` CreateWarrantyClaimEntityWarrantyClaimMoneyInputTypeRequestBody: Money object
      - `amount` string, required: Monetary amount as a decimal string in major currency units (e.g. "24.50").
      - `currency` string, required: ISO 4217 currency code, lowercased (e.g. "usd").
    - `description` string: Free-text labor description.
    - `serviceTaskId` string: Service task the labor belongs to.
    - `sourceWorkOrderId` string: Work order the labor cost originated from.
    - `vmrsCode` string: Dotted VMRS code path (e.g. 034-005-001) associated with this labor line.
  - `linkedWarrantyId` string: ID of the warranty this claim is filed against.
  - `linkedWorkOrderIds` string[]: IDs of the work orders associated with this claim.
  - `mediaItemIds` string[]: IDs of media items attached to the claim.
  - `otherCost` CreateWarrantyClaimEntityWarrantyClaimMoneyInputTypeRequestBody: Money object
    - `amount` string, required: Monetary amount as a decimal string in major currency units (e.g. "24.50").
    - `currency` string, required: ISO 4217 currency code, lowercased (e.g. "usd").
  - `parts` CreateWarrantyClaimEntityWarrantyClaimWarrantyClaimPartInputTypeRequestBody[]: Parts being claimed.
    - `cost` CreateWarrantyClaimEntityWarrantyClaimMoneyInputTypeRequestBody: Money object
      - `amount` string, required: Monetary amount as a decimal string in major currency units (e.g. "24.50").
      - `currency` string, required: ISO 4217 currency code, lowercased (e.g. "usd").
    - `description` string: Free-text part description.
    - `partDefinitionId` string, required: ID of the part definition being claimed.
    - `partId` string: Specific part-instance ID.
    - `quantity` integer: Quantity claimed.
    - `serviceTaskId` string: Service task the part belongs to.
    - `sourceWorkOrderId` string: Work order the part cost originated from.
    - `vmrsCode` string: Dotted VMRS code path (e.g. 034-005-001) associated with this part line.
  - `reimbursedAtTime` string: When reimbursement was received.
  - `reimbursements` CreateWarrantyClaimEntityWarrantyClaimClaimReimbursementInputTypeRequestBody[]: Reimbursement amounts, optionally linked to a work order.
    - `reimbursement` CreateWarrantyClaimEntityWarrantyClaimMoneyInputTypeRequestBody: Money object
      - `amount` string, required: Monetary amount as a decimal string in major currency units (e.g. "24.50").
      - `currency` string, required: ISO 4217 currency code, lowercased (e.g. "usd").
    - `workOrderId` string: Work order the reimbursement is applied to.
  - `repairCompletedAtTime` string: When the repair was completed.
  - `resolutionAtTime` string: When the claim was resolved.
  - `submittedAtTime` string: When the claim was submitted to the vendor.
  - `warrantyVendorId` string: ID of the vendor handling the claim.

## Response `201`

Created response.

- EntityWarrantyClaimsServiceCreateWarrantyClaimResponseBody
  - `data` EntityCreateWarrantyClaimTypeResponseBody, required: WarrantyClaim object
    - `asset` EntityCreateWarrantyClaimAssetRefTypeResponseBody: Reference to a Asset
      - `id` string, required: The ID of the referenced Asset.
    - `cause` string: The cause of the 3 Cs - the root cause found.
    - `claimEngineHours` integer: Engine hours at the time of repair.
    - `claimOdometerMeters` integer: Asset odometer reading at the time of repair. Measured in meters.
    - `claimStatus` 'unknown' | 'created' | 'submitted' | 'inReview' | 'approved' | 'rejected' | 'resubmitted' | 'reimbursed': Current status of the claim. Valid values: `unknown`, `created`, `submitted`, `inReview`, `approved`, `rejected`, `resubmitted`, `reimbursed`
    - `componentInstanceIds` string[]: IDs of asset component instances covered by this claim.
    - `concern` string: The concern of the 3 Cs - what was reported.
    - `correction` string: The correction of the 3 Cs - the work performed.
    - `createdAtTime` string: When the claim was created.
    - `externalIds` CreateWarrantyClaimEntityWarrantyClaimWarrantyClaimExternalIdTypeResponseBody[]: Customer-supplied external identifiers for the warranty claim, interchangeable with id in filters. Only included in the response when includeExternalIds is set.
      - `key` string: Name of the external ID namespace, for example a source system identifier.
      - `value` string: The external ID value within the given key's namespace.
    - `id` string: Samsara ID for the warranty claim.
    - `labor` CreateWarrantyClaimEntityWarrantyClaimWarrantyClaimLaborTypeResponseBody[]: Labor being claimed.
      - `cost` CreateWarrantyClaimEntityWarrantyClaimMoneyTypeResponseBody: Money object
        - `amount` string: Monetary amount as a decimal string in major currency units (e.g. "24.50").
        - `currency` string: ISO 4217 currency code, lowercased (e.g. "usd").
      - `description` string: Free-text labor description.
      - `serviceTaskId` string: Service task the labor belongs to.
      - `sourceWorkOrderId` string: Work order the labor cost originated from.
      - `vmrsCode` string: Dotted VMRS code path (e.g. 034-005-001) associated with this labor line.
    - `linkedWarranty` EntityCreateWarrantyClaimWarrantyRefTypeResponseBody: Reference to a Warranty
      - `id` string, required: The ID of the referenced Warranty.
    - `linkedWorkOrderIds` string[]: IDs of the work orders associated with this claim.
    - `mediaItemIds` string[]: IDs of media items attached to the claim.
    - `otherCost` CreateWarrantyClaimEntityWarrantyClaimMoneyTypeResponseBody: Money object
      - `amount` string: Monetary amount as a decimal string in major currency units (e.g. "24.50").
      - `currency` string: ISO 4217 currency code, lowercased (e.g. "usd").
    - `parts` CreateWarrantyClaimEntityWarrantyClaimWarrantyClaimPartTypeResponseBody[]: Parts being claimed.
      - `cost` CreateWarrantyClaimEntityWarrantyClaimMoneyTypeResponseBody: Money object
        - `amount` string: Monetary amount as a decimal string in major currency units (e.g. "24.50").
        - `currency` string: ISO 4217 currency code, lowercased (e.g. "usd").
      - `description` string: Free-text part description.
      - `partDefinitionId` string: ID of the part definition being claimed.
      - `partId` string: Specific part-instance ID.
      - `quantity` integer: Quantity claimed.
      - `serviceTaskId` string: Service task the part belongs to.
      - `sourceWorkOrderId` string: Work order the part cost originated from.
      - `vmrsCode` string: Dotted VMRS code path (e.g. 034-005-001) associated with this part line.
    - `reimbursedAtTime` string: When reimbursement was received.
    - `reimbursements` CreateWarrantyClaimEntityWarrantyClaimClaimReimbursementTypeResponseBody[]: Reimbursement amounts, optionally linked to a work order.
      - `reimbursement` CreateWarrantyClaimEntityWarrantyClaimMoneyTypeResponseBody: Money object
        - `amount` string: Monetary amount as a decimal string in major currency units (e.g. "24.50").
        - `currency` string: ISO 4217 currency code, lowercased (e.g. "usd").
      - `workOrderId` string: Work order the reimbursement is applied to.
    - `repairCompletedAtTime` string: When the repair was completed.
    - `resolutionAtTime` string: When the claim was resolved.
    - `statusHistory` CreateWarrantyClaimEntityWarrantyClaimWarrantyClaimStatusHistoryTypeResponseBody[]: Audit trail of status changes. Server-managed and read-only.
      - `happenedAtTime` string: When the transition occurred.
      - `status` 'unknown' | 'created' | 'submitted' | 'inReview' | 'approved' | 'rejected' | 'resubmitted' | 'reimbursed': The status the claim moved into. Valid values: `unknown`, `created`, `submitted`, `inReview`, `approved`, `rejected`, `resubmitted`, `reimbursed`
      - `userId` string: ID of the user who made the change.
    - `submittedAtTime` string: When the claim was submitted to the vendor.
    - `updatedAtTime` string: When the claim was last updated.
    - `warrantyVendor` EntityCreateWarrantyClaimVendorRefTypeResponseBody: Reference to a Vendor
      - `id` string, required: The ID of the referenced Vendor.

## 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)
