Skip to main content

Create Usage


Create Usage


In this use case, usage will be created programmatically for an account.

Creating a Usage Object

Set the following fields to create a Usage object:

  1. Specify the AccountId or AccountNumber. You must specify one of those values when creating usage.
  2. Set the Quantity.
  3. Set the StartDateTime. This dateTime specifies which billing period this usage will be counted under.
  4. Set the UOM (Unit of Measure). This must match one of the UOM's configured in the Zuora tenant.

This use case uses the minimum required fields. Other fields, such as SubscriptionNumber or ChargeNumber, may be required for proper processing.

SOAP Example

The SOAP call envelope payload should look like the following:

 <ns1:zObjects xsi:type="ns2:Usage">