---
title: "Handle a rental item termination event"
method: POST
path: "/rentalitem/events/termination"
tags: ["rental_item_events"]
---

# Handle a rental item termination event

`POST /rentalitem/events/termination`

## Request

- Base URL: `https://api.topi-staging.eu`
- URL: `https://api.topi-staging.eu/rentalitem/events/termination`
- Auth: HTTP bearer

Handle rental item termination events from PubSub

## Query parameters

- `token` string, required: Verification token sent as a query string

## Request body

- PubSubPayload4
  - `deliveryAttempt` integer: The number of times the service has attempted to deliver a message.
  - `message` MessagePayload
    - `attributes` object: Attributes of the message.
    - `data` string, required: Base64 data body.
    - `messageId` string: The message ID.
    - `orderingKey` string: The ordering key of the message.
    - `publishTime` string: The time at which the message was published.
  - `subscription` string: The subscription name.

## Response `200`

OK response.

## Other responses

- `400`: BadRequest: Bad Request response.
- `401`: Unauthorized: Unauthorized response.

## Changes

- **2026-10-27** `ac6979514123`: 1 info
  - api operation id `rental_item_events.handleTermination` removed and replaced with `rental_item_events#handleTermination`
- **2026-10-26** `7ff7ee94b30e`: 1 info
  - api operation id `rental_item_events#handleTermination` removed and replaced with `rental_item_events.handleTermination`
- **2026-08-14** `fc745e434b3e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/topi/apis/topi-public-api/changes/rentalitem/events/termination/post.md)

---

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