---
title: "Update coupon code expiry date"
method: PUT
path: "/coupon/bulk/expiry"
---

# Update coupon code expiry date

`PUT /coupon/bulk/expiry`

## Request body

- object
  - `couponSeriesId` integer — The ID of the series the coupon belongs to.
  - `couponCode` string, required — The code of the coupon.
  - `expiryDate` string, required — The expiry date of the coupon (`YYYY-MM-DDTHH:MM:SSZ`). **NOTE: **Time should not be passed in the field only but only date with timezone. Example:- `"expiryDate":"2025-02-28T00:00:00Z"` or `"expiryDate":"2025-10-01T00:00:00+05:30"`

## Response `200`

200

- union
  - object
    - `entity` object
      - `totalCount` integer
      - `failedCount` integer
      - `successCount` integer
      - `unprocessedCoupons` unknown[]
        - unknown
      - `userId` integer
      - `couponSeriesId` integer
    - `warnings` unknown[]
      - unknown
    - `errors` unknown[]
      - unknown
    - `success` boolean
  - object
    - `warnings` unknown[]
      - unknown
    - `errors` object[]
      - `status` boolean
      - `code` integer
      - `message` string
    - `success` boolean
  - object
    - `entity` object
      - `totalCount` integer
      - `failedCount` integer
      - `successCount` integer
      - `unprocessedCoupons` object[]
        - `expiryDate` string
        - `couponCode` string
        - `errorCode` integer
        - `errorMessage` string
      - `userId` integer
      - `couponSeriesId` integer
    - `warnings` unknown[]
      - unknown
    - `errors` unknown[]
      - unknown
    - `success` boolean
  - object
    - `entity` object
      - `totalCount` integer
      - `failedCount` integer
      - `successCount` integer
      - `unprocessedCoupons` object[]
        - `expiryDate` string
        - `couponCode` string
        - `errorCode` integer
        - `errorMessage` string
      - `userId` integer
      - `couponSeriesId` integer
    - `warnings` unknown[]
      - unknown
    - `errors` unknown[]
      - unknown
    - `success` boolean
  - object
    - `warnings` unknown[]
      - unknown
    - `errors` object[]
      - `status` boolean
      - `errorCode` integer
      - `errorMessage` string
    - `success` boolean

## Other responses

- `400` — 400

---

[API](https://skmtc.net/capillarytech/apis/sample-api.md) · [All operations](https://skmtc.net/capillarytech/apis/sample-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/capillarytech/sample-api/versions/de241f2ed9b3/schema)
