---
search:
  tags:
    - Coupons
    - PUT
seo:
  description: >-
    Admin or branch manager only. Patches the active flag, expiry, use cap, or…
    Reference for the PUT /api/v1/coupons/{couponId} endpoint in the PharmaFlow
    API.
sidebar:
  label: Update a coupon
  badge: PUT
title: Update a coupon
type: openapi-operation
---
Admin or branch manager only. Patches the active flag, expiry, use cap, or description. An empty patch answers 400 and an unknown coupon 404; deactivating a coupon is a soft delete.

`PUT /api/v1/coupons/{couponId}`
