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 feature to be enabled, which is in the Early Adopter phase.
Idempotency-Key | string <= 255 characters 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 If specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a |
Content-Encoding | string Include the |
Authorization | string The value is in the |
Zuora-Track-Id | string <= 64 characters 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 ( |
Zuora-Entity-Ids | string An entity ID. If you have Zuora Multi-entity 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. |
billingPeriod | string The billing period for the product charge definition. |
billingTiming | string The billing timing setting for the product charge definition. |
chargeModel | string Determines how to calculate charges. Charge models must be individually activated in Zuora Billing administration. |
defaultQuantity | number or null The default quantity. This field is applicable only for one-time and recurring charges. |
effectiveEndDate | string <date-time> The effective end date of the product charge definition. |
effectiveStartDate | string <date-time> 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 |
Array of objects (prices) Container for the prices of the product charge definition. | |
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 or null The specific number of billing periods for the product charge definition. |
specificListPriceBase | integer or null <int32> [ 1 .. 200 ] The number of months for the list price base of the charge definition.
This field is |
taxCode | string <= 64 characters Specifies the tax code for taxation rules. This field is required when the Note: This value affects the tax calculation of the charge. |
taxMode | string or null Determines how to define taxation for the charge. This field is required when the Note: This value affects the tax calculation of the charge. |
taxable | boolean Determines whether the charge definition is taxable. When this field is set to Character limit: 5 Values: Note: This value affects the tax calculation of the charge. |
term | number or null The number of periods of a termed subscription that is eligible for this charge definition. This field is applicable when the |
termPeriodType | string or null Specifies the period type for the subscription term that is eligible for this charge definition. |
termType | string or null The type of the subscription that is eligible for this charge definition. |
uom | string or null Describes the unit of measure (UOM) configured in Settings > Billing for the charge. |
Internal Server Error
Request Errors
{- "billingPeriod": "Specific_Months",
- "chargeModel": "FlatFee",
- "defaultQuantity": 10,
- "effectiveEndDate": "2025-01-01 00:00:00",
- "effectiveStartDate": "2024-01-01 00:00:00",
- "listPriceBase": "Per_Billing_Period",
- "prices": [
- {
- "currency": "USD",
- "price": 10
}
], - "productRatePlanChargeId": "2c9890e489f227bd0189f22f3482001f",
- "productRatePlanChargeNumber": "PRPC-00000015",
- "productRatePlanId": "2c9890e489f227bd0189f22c3c730002",
- "productRatePlanNumber": "PRP-NEW-00000242",
- "specificBillingPeriod": 10,
- "specificListPriceBase": 101,
- "taxCode": "a valid tax code",
- "taxMode": "TaxExclusive",
- "taxable": false,
- "term": 24,
- "termPeriodType": "Month",
- "termType": "TERMED",
- "uom": "Each"
}
{- "chargeDefinitionId": "8a90988c8b177a24018b17857411002a",
- "chargeDefinitionNumber": "CD-00002089",
- "success": true
}