# Create a product charge definition

Creates a product charge definition for a charge. You can create as many product charge definitions as needed for one charge.
In the request, you must specify the unique ID or number of the charge for which this charge definition is to be created.
The ID or number of a product rate plan is optional.
**Note**: This operation requires the [Attribute-based Pricing](https://docs.zuora.com?resourceId=billing-attribute-based-pricing) feature to be enabled, which is in the **Early Adopter** phase.

Endpoint: POST /v1/product-charge-definitions
Version: 2026-11-06
Security: bearerAuth

## Security:

  - `bearerAuth` (unknown)
    http bearer

## Header parameters:

  - `Idempotency-Key` (string)
    Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. 

With this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident.

  - `Accept-Encoding` (string)
    Include the `Accept-Encoding: gzip` header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response.
If specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a `Content-Encoding` header with the compression algorithm so that your client can decompress it.

  - `Content-Encoding` (string)
    Include the `Content-Encoding: gzip` header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.

  - `Zuora-Track-Id` (string)
    A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.
The value of this field must use the US-ASCII character set and must not include any of the following characters: colon (`:`), semicolon (`;`), double quote (`"`), and quote (`'`).

  - `Zuora-Entity-Ids` (string)
    An entity ID. If you have [Zuora Multi-entity](https://docs.zuora.com?resourceId=platform-multi-entity-overview) enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.

  - `Zuora-Version` (string)
    The minor API version.
For a list of available minor versions, see [API upgrades](https://developer.zuora.com/v1-api-reference/api-upgrades/).

## Request fields (application/json):

  - `billingPeriod` (string)
    The billing period for the product charge definition.

  - `billingTiming` (string)
    The billing timing setting for the product charge definition.
    Enum: "IN_ADVANCE", "IN_ARREARS"

  - `chargeModel` (string)
    Determines how to calculate charges. Charge models must be individually activated in Zuora Billing administration.
    Enum: "DiscountFixedAmount", "DiscountPercentage", "FlatFee", "PerUnit", "Tiered", "Volume", "Delivery"

  - `defaultQuantity` (number)
    The default quantity. 

This field is applicable only for one-time and recurring charges.

  - `effectiveEndDate` (string)
    The effective end date of the product charge definition.

  - `effectiveStartDate` (string)
    The effective start date of the product charge definition.

  - `listPriceBase` (string)
    The list price base.
This field is applicable only for recurring charges.
**Note**: The `Per_Year` enum value is available only if you have the Annual List Price feature enabled.
    Enum: "Per_Billing_Period", "Per_Month", "Per_Week", "Per_Year"

  - `prices` (array)
    Container for the prices of the product charge definition.

  - `prices.currency` (string)
    The currency for the price.

  - `prices.discountAmount` (number)
    The specific amount for a fixed discount. The field is applicable only for charges based on the Discount-Fixed Amount charge model.

  - `prices.discountPercentage` (number)
    The percentage of discount for a percentage discount. The field is applicable only for charges based on the Discount-Percentage charge model.

  - `prices.price` (number)
    The price of this item.
This field is only applicable for charges based on the following charge models:
- Flat Fee
- Per Unit
- Delivery Pricing

  - `prices.tiers` (array)
    Container for the tiers of the price item.
This field is only applicable for charges based on the following charge models:
- Tiered Pricing
- Volume Pricing

You must specify all relevant fields of all tiers, including pricing information for each currency.
For each currency, ensure that the tiers appear in ascending order of `StartingUnit`.
For example:

```
[
  {
    "startingUnit": "1",
    "endingUnit": "150",
    "currency": "USD",
    "price": 1.95,
    "priceFormat": "Per Unit"
  },
  {
    "startingUnit": "151",
    "endingUnit": "300",
    "currency": "USD",
    "price": 1.45,
    "priceFormat": "Per Unit"
  },
  {
    "startingUnit": "1",
    "endingUnit": "150",
    "currency": "EUR",
    "price": 1.75,
    "priceFormat": "Per Unit"
  },
  {
    "startingUnit": "151",
    "endingUnit": "300",
    "currency": "EUR",
    "price": 1.30,
    "priceFormat": "Per Unit"
  }
]
```

  - `prices.tiers.currency` (string)
    The code corresponding to the currency for the tier's price.

  - `prices.tiers.endingUnit` (number)
    The end number of a range of units for the tier. This field is required for charges based on the Tiered Pricing or Tiered with Overage Pricing charge model.

  - `prices.tiers.price` (number)
    The price of the tier if the price format is flat fee, or the price of each unit in the tier if the price format is per unit.

  - `prices.tiers.priceFormat` (string)
    The price format of the tier.
    Enum: "Flat Fee", "Per Unit"

  - `prices.tiers.startingUnit` (number)
    The starting number of a range of units for the tier. This field is required for charges based on the Tiered Pricing or Tiered with Overage Pricing charge model.

  - `productRatePlanChargeId` (string)
    The unique ID of the charge of the charge definition.

  - `productRatePlanChargeNumber` (string)
    The unique number (natural key) of the charge of the charge definition.

  - `productRatePlanId` (string)
    The unique ID of the product rate plan that uses this charge definition.

  - `productRatePlanNumber` (string)
    The unique number (natural key) of the product rate plan that uses this charge definition.

  - `specificBillingPeriod` (number)
    The specific number of billing periods for the product charge definition.

  - `specificListPriceBase` (integer)
    The number of months for the list price base of the charge definition.
This field is `null` if the `listPriceBase` field is not set to `Per_Specific_Months`.

  - `taxCode` (string)
    Specifies the tax code for taxation rules. This field is required when the `Taxable` field is set to `True`.
**Note**: This value affects the tax calculation of the charge.

  - `taxMode` (string)
    Determines how to define taxation for the charge. This field is required when the `Taxable` field is set to `True`.
**Note**: This value affects the tax calculation of the charge.
    Enum: "TaxExclusive", "TaxInclusive", "null"

  - `taxable` (boolean)
    Determines whether the charge definition is taxable. When this field is set to `True`, the `TaxMode` and `TaxCode` fields are required.
**Character limit**: 5
**Values**: `True`, `False`
**Note**: This value affects the tax calculation of the charge.

  - `term` (number)
    The number of periods of a termed subscription that is eligible for this charge definition. This field is applicable when the `termType` field is set to `TERMED`,
and is to be used together with the `termPeriodType` field.

  - `termPeriodType` (string)
    Specifies the period type for the subscription term that is eligible for this charge definition.
    Enum: "Month", "Year", "Day", "Week", "null"

  - `termType` (string)
    The type of the subscription that is eligible for this charge definition.
    Enum: "TERMED", "EVERGREEN", "null"

  - `uom` (string)
    Describes the unit of measure (UOM) configured in **Settings > Billing** for the charge.

## Response 200:

  - `200` (unknown)
    OK

## Response 200 fields (application/json):

  - `chargeDefinitionId` (string)
    The unique ID of the product charge definition.

  - `chargeDefinitionNumber` (string)
    The unique number (natural key) of the product charge definition.

  - `success` (boolean)
    Indicates whether the request succeeded.

## Response 200 headers (application/json):

  - `Content-Encoding` (string)
    This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`

  - `RateLimit-Limit` (string)
    The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.

  - `RateLimit-Remaining` (number)
    The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.

  - `RateLimit-Reset` (number)
    The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.

  - `Zuora-Request-Id` (string)
    The Zuora internal identifier of the API call. You cannot control the value of this header.

  - `Zuora-Track-Id` (string)
    A custom identifier for tracing the API call. 
If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. 
Otherwise, Zuora does not set this header.

  - `Concurrency-Limit-Type` (string)
    The type of the concurrency limit, which can be `Default`, `High-volume transactions`, or `Object Query`.
For more information, see [Concurrent request limits](https://developer.zuora.com/docs/guides/rate-limits/#concurrent-request-limits).

  - `Concurrency-Limit-Limit` (integer)
    The total number of the permitted concurrent requests.
For more information, see [Concurrent request limits](https://developer.zuora.com/docs/guides/rate-limits/#concurrent-request-limits).

  - `Concurrency-Limit-Remaining` (integer)
    The remaining number of the permitted concurrent requests.
For more information, see [Concurrent request limits](https://developer.zuora.com/docs/guides/rate-limits/#concurrent-request-limits).

## Response 500:

  - `500` (unknown)
    Internal Server Error

## Response 500 fields (application/json):

  - `reasons` (array)

  - `reasons.code` (string)
    The error code of response.

  - `reasons.message` (string)
    The detail information of the error response

## Response 500 headers (application/json):

  - `Content-Encoding` (string)
    This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`

  - `RateLimit-Limit` (string)
    The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.

  - `RateLimit-Remaining` (number)
    The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.

  - `RateLimit-Reset` (number)
    The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.

  - `Zuora-Request-Id` (string)
    The Zuora internal identifier of the API call. 
You cannot control the value of this header.

  - `Zuora-Track-Id` (string)
    A custom identifier for tracing the API call. 
If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. 
Otherwise, Zuora does not set this header.

## Response 4XX:

  - `4XX` (unknown)
    Request Errors

## Response 4XX fields (application/json):

  - `processId` (string)
    The ID of the process that handles the operation.

  - `reasons` (array)
    The container of the error code and message. This field is available only if the `success` field is `false`.

  - `reasons.code` (string)
    The error code of response.

  - `reasons.message` (string)
    The detail information of the error response

  - `requestId` (string)
    Unique identifier of the request.

  - `success` (boolean)
    Indicates whether the call succeeded.

## Response 4XX headers (application/json):

  - `Content-Encoding` (string)
    This header is returned if you specify the `Accept-Encoding: gzip` request header and the response contains over 1000 bytes of data.
Note that only the following MIME types support gzipped responses:
- `application/json`
- `application/xml`
- `text/html`
- `text/csv`
- `text/plain`

  - `RateLimit-Limit` (string)
    The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.

  - `RateLimit-Remaining` (number)
    The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.

  - `RateLimit-Reset` (number)
    The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/docs/guides/rate-limits/) for more information.

  - `Zuora-Request-Id` (string)
    The Zuora internal identifier of the API call. 
You cannot control the value of this header.

  - `Zuora-Track-Id` (string)
    A custom identifier for tracing the API call. 
If you specified a tracing identifier in the request headers, Zuora returns the same tracing identifier. 
Otherwise, Zuora does not set this header.

## Response 200 examples:

  - `response` (unknown)

## Response 500 examples:

  - `response` (unknown)

## Response 4XX examples:

  - `response` (unknown)

