subscriptionCancel
Cancel an active subscription. The subscriptionCancel mutation in Bunny's GraphQL API, with its input attributes, return type and an example request.
Scope required: standard:write
mutation subscriptionCancel ($ids: [ID!]!, $cancellationDate: ISO8601Date) {
subscriptionCancel (ids: $ids, cancellationDate: $cancellationDate) {
errors
subscriptions
}
}
ArgumentsLink to Arguments section
{
"ids": [
"456123"
],
"cancellationDate": "2022-06-01"
}
| Name | Type | Description |
|---|---|---|
| ids | List (ID) | |
| cancellationDate | ISO8601Date |
ResponseLink to Response section
| Name | Type | Description |
|---|---|---|
| errors | List (String) | |
| subscriptions | List (Subscription) |