---
title: "POST /api/v4.0/integrations/coupons/predefined"
method: POST
path: "/api/v4.0/integrations/coupons/predefined"
---

# POST /api/v4.0/integrations/coupons/predefined

`POST /api/v4.0/integrations/coupons/predefined`

Create a coupon based on predefined redemption rules.

## Request body

- object
  - `customerId` string, required
  - `email` string
  - `mobile` string
  - `ruleId` integer, required

## Response `200`

Coupon generated successfully

- object
  - `code` string
  - `startDate` string, date-time
  - `expiryDate` string, date-time
  - `url` string
  - `pin` string

## Changes

- **2025-12-17** `262228c13429` — 3 info
  - the endpoint scheme security `apiKey AND secretKey` was added to the API
  - the endpoint scheme security `apiKey` was removed from the API
  - the endpoint scheme security `secretKey` was removed from the API
- **2025-09-30** `788718651767` — 1 info
  - removed the non-success response with the status `400`
- **2025-09-10** `95e7f65e5afd` — 1 info
  - endpoint added
- **2025-09-02** `919eb7a392aa` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/gameballers/apis/gameball-api/changes/api/v4.0/integrations/coupons/predefined/post.md)

---

[API](https://skmtc.dev/gameballers/apis/gameball-api.md) · [All operations](https://skmtc.dev/gameballers/apis/gameball-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gameballers/gameball-api/revisions/747ba4697269/schema)
