Mutation
mutation UpdatePaymentCoupon($input: UpdatePaymentCouponInput!) {
updatePaymentCoupon(input: $input) {
clientMutationId
errors
paymentCoupon {
amountOff {
currency
value
}
code
couponType
createdAt
description
duration
}
}
}Variables
{
"input": {
"id": "id"
}
}Response
{
"data": {
"updatePaymentCoupon": {
"clientMutationId": "string",
"errors": [
"string"
],
"paymentCoupon": {
"amountOff": [
{
"currency": "string",
"value": 1
}
],
"code": "string",
"couponType": "AMOUNT_OFF",
"createdAt": "value",
"description": "string",
"duration": "FOREVER"
}
}
}
}Mutations
updatePaymentCoupon
Update a Promo Code’s description, status, or amount-off currencies. Host only.
Required scope: host:write:network_plans
MUTATION
updatePaymentCoupon(input: UpdatePaymentCouponInput!): UpdatePaymentCouponPayloadArguments
input
required
Parameters for UpdatePaymentCoupon
Returns
clientMutationId
String
A unique identifier for the client performing the mutation.
errors
[String!]!
paymentCoupon
Mutation
mutation UpdatePaymentCoupon($input: UpdatePaymentCouponInput!) {
updatePaymentCoupon(input: $input) {
clientMutationId
errors
paymentCoupon {
amountOff {
currency
value
}
code
couponType
createdAt
description
duration
}
}
}Variables
{
"input": {
"id": "id"
}
}Response
{
"data": {
"updatePaymentCoupon": {
"clientMutationId": "string",
"errors": [
"string"
],
"paymentCoupon": {
"amountOff": [
{
"currency": "string",
"value": 1
}
],
"code": "string",
"couponType": "AMOUNT_OFF",
"createdAt": "value",
"description": "string",
"duration": "FOREVER"
}
}
}
}