priceListChargeUpdate

Update a charge on a price list. The priceListChargeUpdate 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 priceListChargeUpdate ($id: ID!, $attributes: PriceListChargeAttributes!) {
  priceListChargeUpdate (id: $id, 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

{
  "id": "456123",
  "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
id ID  
attributes PriceListChargeAttributes  

ResponseLink to Response section

Name Type Description
errors List (String)  
priceListCharge PriceListCharge