priceListDeprecate
Deprecate a price list. The priceListDeprecate mutation in Bunny's GraphQL API, with its input attributes, return type and an example request.
Scope required: product:write
mutation priceListDeprecate ($id: ID!, $replacementPriceListId: ID, $copyOverCode: Boolean) {
priceListDeprecate (id: $id, replacementPriceListId: $replacementPriceListId, copyOverCode: $copyOverCode) {
errors
priceList {
basePrice
code
createdAt
currencyId
deprecated
id
isVisible
monthlyBasePrice
name
periodMonths
planId
priceAdjustmentPercentage
priceDescription
productId
renewalTermMonths
showPriceAsMonthly
sku
trialAllowed
trialLengthDays
updatedAt
}
}
}
ArgumentsLink to Arguments section
{
"id": "456123",
"replacementPriceListId": "456123",
"copyOverCode": true
}
| Name | Type | Description |
|---|---|---|
| id | ID | |
| replacementPriceListId | ID | |
| copyOverCode | Boolean |
ResponseLink to Response section
| Name | Type | Description |
|---|---|---|
| errors | List (String) | |
| priceList | PriceList |