Create Coupon Pool

Create Coupon Pool

This API creates a new Coupon Pool in the LMS

Request Parameters

Name String (Required)

The Name of the coupon pool

Starts String (Optional)

The start time of the coupon pool.

Expires String (Optional)

The end time of the coupon pool.

Size Int (Optional)

The size of the coupon pool.

ValueUnitId Int (Optional)

The ValueUnitId coupon for coupon pools.

CompanyId Int (Required)

The CompanyId chosen for coupon pool.

ProfileId Int (Required)

The ProfileId chosen for coupon pool.

				
					{
  "name": "testing date",
  "starts": "2024-12-12",
  "expires": "2025-05-12",
  "size": 30,
  "valueUnitId": 3,
  "companyId": 448230,
  "profileId": 6322
}
				
			

Response

Success Boolean(Nullable)

Request status

Message String(Nullable)

Success or failure message

Data String(Nullable)

Id of the created pool

				
					{
  "success": true,
  "message": "Record created successfully.",
  "data": 4502
}