---
title: "Update digital product coupon"
method: POST
path: "/public/update-digital-product-coupon"
tags: ["Product"]
---

# Update digital product coupon

`POST /public/update-digital-product-coupon`

Update an existing coupon for a fermion digital product.

Authentication with the "FERMION-API-KEY" header is required to use this endpoint.

Rate limit: Maximum 60 requests in a window of 1m.

## Request body

- object
  - `data` object[], required
    - `data` object, required
      - `fermionCouponCodeId` string, required — The unique ID of the coupon to update
      - `fermionDigitalProductId` string, required — The unique ID of the fermion digital product
      - `fermionDigitalProductCouponSlug` string, required — The coupon code/slug (will be converted to uppercase)
      - `description` string, required — Description of the coupon
      - `expireAtIsoString` union, required — ISO string for coupon expiration date, or null for no expiration
        - string, date-time
        - unknown
        - unknown
      - `shouldApplyAutomatically` false, required — Whether the coupon should apply automatically (always false for now)
      - `numberOfRedemptionsAllowed` union, required — Maximum number of redemptions allowed, or null for unlimited
        - number
        - unknown
        - unknown
      - `couponTypeData` union, required — Coupon discount configuration - either percentage off or fixed amount off
        - object
          - `percentOff` number, required
          - `type` 'percent-off', required
        - object
          - `fixedAmountInLowestCurrencyUnit` number, required
          - `currencyType` 'Aud' | 'Aed' | 'Bdt' | 'Brl' | 'Cad' | 'Cop' | 'Dop' | 'Etb' | 'Eur' | 'Gbp' | 'Idr' | 'Inr' | 'Kes' | 'Lkr' | 'Mad' | 'Myr' | 'Mxn' | 'Ngn' | 'Npr' | 'Nzd' | 'Pkr' | 'Pln' | 'Rub' | 'Thb' | 'Try' | 'Usd' | 'Sgd' | 'Cny' | 'Sar' | 'Twd' | 'Jpy' | 'Krw' | 'Vnd', required
          - `type` 'fixed-amount-off', required

## Response `200`

API Response Body

- object[]
  - `output` union, required
    - object
      - `status` 'ok', required
      - `data` object, required
    - object
      - `status` 'error', required
      - `errorMessage` string, required

---

[API](https://skmtc.net/fermion/apis/fermion-backend-api.md) · [All operations](https://skmtc.net/fermion/apis/fermion-backend-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fermion/fermion-backend-api/revisions/7ce364c8820b/schema)
