---
title: "Create warranty event"
method: POST
path: "/api/public/v1/subscriptions/{id}/warranty_event"
tags: ["Subscriptions"]
---

# Create warranty event

`POST /api/public/v1/subscriptions/{id}/warranty_event`

## Request

- Base URL: `http://localhost:3009`
- URL: `http://localhost:3009/api/public/v1/subscriptions/{id}/warranty_event`
- Auth: HTTP basic

Track a warranty event (repair or replacement) for a subscription. Creates a subscription event of type "warranty" with the provided details. Triggers a warranty usage notification email to the shopper.

## Path parameters

- `id` string, required

## Headers

- `Authorization` string, required

## Request body

- object
  - `type` 'repair' | 'replacement', required: Warranty event sub-type
  - `name` string: Name of the warranty claim
  - `description` string: Description of the warranty claim
  - `charged_amount` integer, required: Amount charged in cents
  - `product_id` string, required: Product identifier (cart item ID or UUID)

## Response `201`

warranty event created successfully

## Other responses

- `401`: unauthorized
- `422`: invalid product_id

---

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