couponDelete
Delete a coupon. The couponDelete mutation in Bunny's GraphQL API, with its input attributes, return type and an example request.
Scope required: product:write
mutation couponDelete ($id: ID!) {
couponDelete (id: $id) {
coupon {
active
couponCode
createdAt
currencyId
description
discountAmount
discountPercentage
duration
id
name
planId
redemptionEndDate
redemptionsCount
redemptionsMax
remainingPeriods
updatedAt
}
errors
}
}
ArgumentsLink to Arguments section
{
"id": "456123"
}
| Name | Type | Description |
|---|---|---|
| id | ID |
ResponseLink to Response section
| Name | Type | Description |
|---|---|---|
| coupon | Coupon | |
| errors | String |