featureUsageUpdate

Update a feature usage record for usage based billing. The featureUsageUpdate mutation in Bunny's GraphQL API, with its input attributes, return type and an example request.

Scope required: billing:write

For a complete list of input attributes see the FeatureUsageAttributes type

mutation featureUsageUpdate ($id: ID!, $attributes: FeatureUsageAttributes!) {
  featureUsageUpdate (id: $id, attributes: $attributes) {
      errors
      featureUsage {
        accountId
        createdAt
        featureId
        id
        notes
        quantity
        subscriptionChargeId
        subscriptionId
        updatedAt
        usageAt
      }
  }
}

ArgumentsLink to Arguments section

{
  "id": "456123",
  "attributes": {
    "quantity": "1.00",
    "usageAt": "2022-06-01T00:00:00Z",
    "featureId": "456123",
    "featureCode": "",
    "accountId": "456123",
    "subscriptionId": "456123",
    "subscriptionChargeId": "456123",
    "overrideUsageAtLimit": true,
    "notes": ""
  }
}
Name Type Description
id ID  
attributes FeatureUsageAttributes  

ResponseLink to Response section

Name Type Description
errors String  
featureUsage FeatureUsage