---
title: "save"
method: POST
path: "/core/api/v1/coupon-code/bulk"
tags: ["bulk-coupon-code-controller"]
---

# save

`POST /core/api/v1/coupon-code/bulk`

## Request

- Base URL: `https://api.freshlearn.com`
- URL: `https://api.freshlearn.com/core/api/v1/coupon-code/bulk`
- Auth: none declared

## Headers

- `Authorization` string
- `domain` string
- `api-key` string

## Request body

- BulkCouponCodeDTO
  - `bulkCouponCount` integer
  - `bulkCouponPrefix` string
  - `bulkCouponsGenerated` boolean
  - `code` string
  - `collectionIds` integer[]
  - `communityGroupIds` integer[]
  - `communityIds` integer[]
  - `courseIds` integer[]
  - `description` string
  - `digitalDownloadIds` integer[]
  - `discount` number
  - `discountType` 'PERCENTAGE' | 'FIXED'
  - `expiryDate` integer
  - `id` integer
  - `masterclassIds` integer[]
  - `mode` 'SINGLE' | 'BULK'
  - `productBundleIds` integer[]
  - `status` 'DRAFT' | 'PUBLISH' | 'CANCELLED' | 'ACTIVE'
  - `usageLimit` integer

## Response `200`

OK

## Other responses

- `201`: Created
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found

---

[API](https://skmtc.dev/freshlearn/apis/freshlearn-api.md) · [All operations](https://skmtc.dev/freshlearn/apis/freshlearn-api/llms.txt) · [OpenAPI document](https://skmtc.dev/freshlearn/apis/freshlearn-api/revisions/8a82ee14b586?raw)
