---
title: "Create discount code for specific customer."
method: POST
path: "/api/internal/v1/DiscountCode"
tags: ["SecureInternal"]
---

# Create discount code for specific customer.

`POST /api/internal/v1/DiscountCode`

## Request

- Base URL: `https://api.gameball.co` (the document declares no server; this is the origin it was published from)
- URL: `https://api.gameball.co/api/internal/v1/DiscountCode`
- Auth: none declared. Required headers: `APIKey`

## Headers

- `Authorization` string
- `lang` string
- `APIKey` string, required
- `SecretKey` string

## Request body

- GameBallBLLViewModelsDiscountCodeIntegrationViewModel
  - `discountCode` string, nullable
  - `discountCodePin` string, nullable
  - `playerUniqueId` string, required
  - `mobile` string, nullable
  - `email` string, nullable
  - `codeClientId` string, nullable
  - `pricingRuleId` string, nullable
  - `ruleId` integer, nullable
  - `amount` string, required
  - `currency` string, nullable
  - `usageTarget` 1 | 2 | 3 | 4 | 5, required
  - `type` 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 12, required
  - `transactionTime` string, date-time, required
  - `bodyHashed` string, required
  - `destination` string, nullable
  - `guestIdentifier` string, nullable

## Response `200`

OK

- GameBallBLLHelperBussinessCustomResponse1SystemObject
  - `response` unknown
  - `success` boolean
  - `errorMsg` string, nullable
  - `errorCode` integer
  - `liveMode` boolean, nullable

---

[API](https://skmtc.dev/gameballers/apis/gameball-api-2.md) - [All operations](https://skmtc.dev/gameballers/apis/gameball-api-2/llms.txt) - [OpenAPI document](https://skmtc.dev/gameballers/apis/gameball-api-2/revisions/91732ad54d20?raw)
