---
title: "Cancel or renew benefit subscription"
method: PATCH
path: "/benefits/{benefitId}"
tags: ["Benefits"]
---

# Cancel or renew benefit subscription

`PATCH /benefits/{benefitId}`

## Path parameters

- `benefitId` string, required

## Request body

- object
  - `operation` 'CANCEL' | 'RENEW', required

## Response `200`

Benefit subscription status updated successfully

- BenefitSubscription
  - `id` string, required
  - `service` object, required
    - `name` string, required
    - `provider` string, required
  - `beneficiary` object, required
    - `name` string, required
    - `email` string, email, required
  - `category` 'HEALTHCARE' | 'SPORT_WELLNESS' | 'LUNCH_FOOD' | 'CULTURE_RECREATION', required
  - `country` string, required
  - `city` string, required
  - `monthlyFee` number, required — Monetary value in EUR
  - `subscribedAtDate` string, date, required
  - `cancelledAtDate` string, date

## Other responses

- `400` — Invalid benefit subscription status update @see {@link BenefitSubscriptionInput}
- `404` — Benefit subscription not found
- `500` — An internal server error occurred.
- `503` — The service is temporarily unavailable. Maybe there is maintenance?

## Changes

- **2025-01-17** `4573748c6338` — 4 info
  - added the optional property `errorGUID` to the response with the `400` status
  - added the optional property `errorGUID` to the response with the `404` status
  - added the optional property `errorGUID` to the response with the `500` status
  - added the optional property `errorGUID` to the response with the `503` status
- **2025-01-09** `a59b7402c514` — 4 breaking, 1 info
  - the response property `code` became optional for the status `400`
  - the response property `code` became optional for the status `404`
  - the response property `code` became optional for the status `500`
  - the response property `code` became optional for the status `503`
  - …1 more
- **2025-01-09** `29074eeb2bb5` — 6 info
  - added the media type `application/json` for the response with the status `400`
  - added the media type `application/json` for the response with the status `404`
  - added the non-success response with the status `500`
  - added the non-success response with the status `503`
  - …2 more
- **2025-01-07** `ed248cc4a777` — 1 info
  - endpoint added
- **2025-01-07** `659ddbe31a58` — 1 breaking
  - api removed without deprecation

[Change history](https://skmtc.dev/ducin-public/apis/itcorpo-api/changes/benefits/:benefitId/patch.md)

---

[API](https://skmtc.dev/ducin-public/apis/itcorpo-api.md) · [All operations](https://skmtc.dev/ducin-public/apis/itcorpo-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ducin-public/itcorpo-api/revisions/80675117301b/schema)
