priceListCreate
Create a price list. The priceListCreate mutation in Bunny's GraphQL API, with its input attributes, return type and an example request.
Scope required: product:write
For a complete list of input attributes see the PriceListAttributes type
mutation priceListCreate ($attributes: PriceListAttributes!) {
priceListCreate (attributes: $attributes) {
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
{
"attributes": {
"planId": "456123",
"code": "",
"name": "",
"sku": "",
"currencyId": "456123",
"isVisible": true,
"trialAllowed": true,
"trialLengthDays": 123,
"trialExpirationAction": "TrialExpirationAction",
"renewalTermMonths": 123,
"priceAdjustmentAction": "PriceAdjustmentAction",
"priceAdjustmentTiming": "PriceAdjustmentTiming",
"priceAdjustmentPercentage": "1.00",
"showPriceAsMonthly": true
}
}
| Name | Type | Description |
|---|---|---|
| attributes | PriceListAttributes |
ResponseLink to Response section
| Name | Type | Description |
|---|---|---|
| errors | List (String) | |
| priceList | PriceList |