priceListChargeCreate
Create a charge on a price list. The priceListChargeCreate 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 PriceListChargeAttributes type
mutation priceListChargeCreate ($attributes: PriceListChargeAttributes!) {
priceListChargeCreate (attributes: $attributes) {
errors
priceListCharge {
accountingCode
avalaraAfcSaleType
avalaraAfcServiceType
avalaraAfcTransactionType
basePrice
code
createdAt
deprecated
featureAddon
featureId
financialAccountId
hidePeriodsOnInvoice
id
isTelecomCharge
longName
name
position
price
priceDecimals
priceDescription
priceListId
productId
quantityMax
quantityMin
recognitionPeriod
removeOnRenewal
roundUpInterval
selfServiceQuantity
showPriceAsMonthly
specificInvoiceLineText
taxCode
updatedAt
}
}
}
ArgumentsLink to Arguments section
{
"attributes": {
"id": "456123",
"priceListId": "456123",
"name": "",
"code": "",
"selfServiceQuantity": true,
"specificInvoiceLineText": "",
"pricingModel": "PricingModel",
"chargeType": "ChargeType",
"billingPeriod": "BillingPeriod",
"showPriceAsMonthly": true,
"accountingCode": "",
"taxCode": "",
"quantityMin": 123,
"quantityMax": 123,
"roundUpInterval": 123,
"price": "BigDecimal",
"priceDecimals": 123,
"position": 123,
"featureId": "456123",
"featureCode": "",
"featureAddon": true,
"usageCalculationType": "UsageCalculation",
"recognitionPeriod": 123,
"financialAccountId": "456123",
"isTelecomCharge": true,
"avalaraAfcTransactionType": "",
"avalaraAfcServiceType": "",
"avalaraAfcSaleType": "",
"hidePeriodsOnInvoice": true,
"priceListChargeTiers": [
{
"starts": 123,
"price": "BigDecimal"
}
]
}
}
| Name | Type | Description |
|---|---|---|
| attributes | PriceListChargeAttributes |
ResponseLink to Response section
| Name | Type | Description |
|---|---|---|
| errors | List (String) | |
| priceListCharge | PriceListCharge |