Mutation
mutation CreatePaymentCoupon($input: CreatePaymentCouponInput!) {
createPaymentCoupon(input: $input) {
clientMutationId
errors
paymentCoupon {
amountOff {
currency
value
}
code
couponType
createdAt
description
duration
}
}
}Variables
{
"input": {
"code": "string",
"couponType": "AMOUNT_OFF",
"duration": "FOREVER"
}
}Response
{
"data": {
"createPaymentCoupon": {
"clientMutationId": "string",
"errors": [
"string"
],
"paymentCoupon": {
"amountOff": [
{
"currency": "string",
"value": 1
}
],
"code": "string",
"couponType": "AMOUNT_OFF",
"createdAt": "value",
"description": "string",
"duration": "FOREVER"
}
}
}
}Mutations
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!): CreatePaymentCouponPayloadArguments
input
required
Parameters for CreatePaymentCoupon
Returns
clientMutationId
String
A unique identifier for the client performing the mutation.
errors
[String!]!
paymentCoupon
Mutation
mutation CreatePaymentCoupon($input: CreatePaymentCouponInput!) {
createPaymentCoupon(input: $input) {
clientMutationId
errors
paymentCoupon {
amountOff {
currency
value
}
code
couponType
createdAt
description
duration
}
}
}Variables
{
"input": {
"code": "string",
"couponType": "AMOUNT_OFF",
"duration": "FOREVER"
}
}Response
{
"data": {
"createPaymentCoupon": {
"clientMutationId": "string",
"errors": [
"string"
],
"paymentCoupon": {
"amountOff": [
{
"currency": "string",
"value": 1
}
],
"code": "string",
"couponType": "AMOUNT_OFF",
"createdAt": "value",
"description": "string",
"duration": "FOREVER"
}
}
}
}