> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mightynetworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# createPaymentCoupon

> Create a Promo Code (a discount on Payment Plans) in the current Network. Host only.

**Required scope:** `host:write:network_plans`



**mutation** `createPaymentCoupon(input: CreatePaymentCouponInput!): CreatePaymentCouponPayload`

## Arguments

**`input`**: `CreatePaymentCouponInput!` (required)

Parameters for CreatePaymentCoupon

## Returns

`CreatePaymentCouponPayload`

**`clientMutationId`**: `String`

A unique identifier for the client performing the mutation.

---

**`errors`**: `[String!]!`

---

**`paymentCoupon`**: `PaymentCoupon`

## Examples

```graphql Mutation
mutation CreatePaymentCoupon($input: CreatePaymentCouponInput!) {
  createPaymentCoupon(input: $input) {
    clientMutationId
    errors
    paymentCoupon {
      amountOff {
        currency
        value
      }
      code
      couponType
      createdAt
      description
      duration
    }
  }
}
```

```json Variables
{
  "input": {
    "code": "string",
    "couponType": "AMOUNT_OFF",
    "duration": "FOREVER"
  }
}
```

```json Response
{
  "data": {
    "createPaymentCoupon": {
      "clientMutationId": "string",
      "errors": [
        "string"
      ],
      "paymentCoupon": {
        "amountOff": [
          {
            "currency": "string",
            "value": 1
          }
        ],
        "code": "string",
        "couponType": "AMOUNT_OFF",
        "createdAt": "value",
        "description": "string",
        "duration": "FOREVER"
      }
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.