Update a product rate plan charge with Dynamic Pricing
Update an existing product rate plan charge (PRPC). Use this API to update default pricing and/or conditional rate cards.
Headers
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.
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.
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 (').
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.
Comma separated IDs. If you have <a href="https://docs.zuora.com/en/zuora-platform/organization-and-entity-management/multi-org/overview-of-multi-org" target="_blank">Zuora Multi-Org</a> enabled, you can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.
The IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. This header is important in Multi-Org (MO) setups because it defines the organization context under which the API should operate—mainly used for read access or data visibility filtering. If the header is not set, the operation is performed in scope of the user's accessible orgs.
Request body
Example request
{
"charge": {
"id": "9c4867ed55db43a89731605d5654d4ed",
"pricing": {
"flat_amounts": {
"USD": 100
}
},
"rate_cards": [
{
"attributes": [
{
"name": "Age",
"operator": "<="
}
],
"pricing": {
"flat_amounts": {
"USD": 100
}
}
}
],
"accounting": {
"accounting_code": "PRPC-REV-001",
"accounts_receivable_account": "Accounts Receivable",
"adjustment_liability_account": "adjustL-1",
"adjustment_revenue_account": "adjustRev-1",
"contract_asset_account": "CA-2",
"contract_liability_account": "CL-2",
"contract_recognized_revenue_account": "Contract Recognized Revenue",
"deferred_revenue_account": "Deferred Revenue",
"recognized_revenue_account": "ContractRevRec-1",
"unbilled_receivables_account": "unbilledR-1"
}
}
}Response
OK
Example response
{
"accounting": {
"accountsReceivableAccount": "Accounts Receivable",
"accountsReceivableAccountType": "AccountsReceivable",
"deferredRevenueAccount": "Accounts Receivable",
"deferredRevenueAccountType": "AccountsReceivable",
"recognizedRevenueAccount": "Accounts Receivable",
"recognizedRevenueAccountType": "AccountsReceivable"
},
"attributes": [],
"billCycle": {
"dayOfMonth": 5,
"period": "bill_cycle_period_month",
"periodAlignment": "align_to_charge",
"timing": "in_advance",
"type": "specific_day_of_month"
},
"chargeModel": "flat_fee",
"chargeType": "recurring",
"createdById": "53c162482f054f3ca08e1ec82dccfec9",
"createdTime": "2025-10-13T07:46:02.000+00:00",
"customFields": {},
"discountOptions": {
"applyDetails": [],
"applyTo": [],
"applyToBillingPeriodPartially": false,
"reflectDiscountInNetAmount": false,
"rollover": false,
"stackedDiscount": false
},
"endDateCondition": "subscription_end",
"upToPeriodsType": "billing_periods",
"upToPeriods": 0,
"extendedPrice": {},
"id": "ad95b694d2b8442b84dc8ad26561c7d7",
"isChargeLevelMinCommit": false,
"isCommitted": false,
"labels": {},
"listPriceBase": "Per_Billing_Period",
"mergedRateCards": [],
"name": "Flat PRPC 1",
"negotiatedRateCards": [],
"netsuite": {},
"ocmJsonByCurrency": {},
"organizationLabels": [],
"overageOptions": {
"includedUnits": 0,
"unusedUnitsCreditRates": {}
},
"prepaid": true,
"chargeFunction": "charge_function_prepayment",
"prepaymentUnitType": "unit",
"prepayment": {
"creditOption": "time_based",
"operationType": "prepaid_operation_type_topup",
"quantity": 10,
"rollover": true,
"rolloverApply": "apply_first",
"rolloverPeriodLength": 6,
"rolloverPeriods": 1,
"unitOfMeasure": "Each",
"validityPeriod": "specific_months",
"validityPeriodAlignment": "vp_alignment_term_end",
"validityPeriodProrationOption": "vp_proration_option_prorate_units",
"specificValidityPeriodLength": 6,
"rolloverPeriodType": "rollover_period_type_month",
"rolloverFundPriority": 2,
"rolloverEndDateType": "rollover_end_date_type_charge_end_date",
"fundSupportAccountHierarchy": true,
"drawdownPriority": 5,
"drawdownScope": "commitment_level_account"
},
"priceChangeOption": "no_change",
"pricing": {
"adjustments": {},
"discountAmounts": {},
"discountPercentages": {},
"flatAmounts": {
"USD": 100
},
"maxAmounts": {},
"minAmounts": {},
"percentages": {},
"tiers": [],
"unitAmounts": {}
},
"pricingSummary": [
"USD100"
],
"pricingWaterfalls": {},
"productChargeDefinitions": [],
"productRatePlanChargeNumber": "PRPC-00000279",
"productRatePlanId": "ee2d1ce1036c4dd6ae9d6945565ff7a0",
"prorationOption": "default_from_tenant_setting",
"rateCards": [],
"revenue": {
"excludeItemBillingFromRevenueAccounting": false,
"excludeItemBookingFromRevenueAccounting": false,
"legacyReporting": false,
"revenueRecognitionRuleName": "Recognize upon invoicing"
},
"taxCode": "TAX_EXEMPT",
"taxMode": "non_taxable",
"taxable": false,
"triggerEvent": "contract_effective",
"unitOfMeasure": "Each",
"updatedById": "53c162482f054f3ca08e1ec82dccfec9",
"updatedTime": "2025-10-13T07:46:02.000+00:00",
"useTenantDefaultForPriceChange": true
}Changes
Changed in 1 of the 4 revisions of this API.1238
- ●
added the new
apply_firstenum value to theprepayment/rolloverApplyresponse property for the response status200response-property-enum-value-added
- ●
added the new
apply_lastenum value to theprepayment/rolloverApplyresponse property for the response status200response-property-enum-value-added
- ●
added the new
charge_function_commitment_true_upenum value to thechargeFunctionresponse property for the response status200response-property-enum-value-added
- ●
added the new
charge_function_credit_commitmentenum value to thechargeFunctionresponse property for the response status200response-property-enum-value-added
- ●
added the new
charge_function_drawdownenum value to thechargeFunctionresponse property for the response status200response-property-enum-value-added
- ●
added the new
charge_function_drawdown_and_credit_commitmentenum value to thechargeFunctionresponse property for the response status200response-property-enum-value-added
- ●
added the new
charge_function_prepaymentenum value to thechargeFunctionresponse property for the response status200response-property-enum-value-added
- ●
added the new
charge_function_standardenum value to thechargeFunctionresponse property for the response status200response-property-enum-value-added
- ●
added the new
consumption_basedenum value to theprepayment/creditOptionresponse property for the response status200response-property-enum-value-added
- ●
added the new
credit_option_unspecifiedenum value to theprepayment/creditOptionresponse property for the response status200response-property-enum-value-added
- ●
added the new
full_credit_backenum value to theprepayment/creditOptionresponse property for the response status200response-property-enum-value-added
- ●
added the new
time_basedenum value to theprepayment/creditOptionresponse property for the response status200response-property-enum-value-added
- ○
added the new optional request property
charge/chargeFunctionnew-optional-request-property
- ○
added the new optional request property
charge/drawdownnew-optional-request-property
- ○
added the new optional request property
charge/prepayment/creditOptionnew-optional-request-property
- ○
added the new optional request property
charge/prepayment/drawdownPrioritynew-optional-request-property
- ○
added the new optional request property
charge/prepayment/drawdownScopenew-optional-request-property
- ○
added the new optional request property
charge/prepayment/fundSupportAccountHierarchynew-optional-request-property
- ○
added the new optional request property
charge/prepayment/operationTypenew-optional-request-property
- ○
added the new optional request property
charge/prepayment/quantitynew-optional-request-property
- ○
added the new optional request property
charge/prepayment/rollovernew-optional-request-property
- ○
added the new optional request property
charge/prepayment/rolloverApplynew-optional-request-property
- ○
added the new optional request property
charge/prepayment/rolloverEndDateTypenew-optional-request-property
- ○
added the new optional request property
charge/prepayment/rolloverFundPrioritynew-optional-request-property
- ○
added the new optional request property
charge/prepayment/rolloverPeriodLengthnew-optional-request-property
- ○
added the new optional request property
charge/prepayment/rolloverPeriodTypenew-optional-request-property
- ○
added the new optional request property
charge/prepayment/rolloverPeriodsnew-optional-request-property
- ○
added the new optional request property
charge/prepayment/specificValidityPeriodLengthnew-optional-request-property
- ○
added the new optional request property
charge/prepayment/unitOfMeasurenew-optional-request-property
- ○
added the new optional request property
charge/prepayment/validityPeriodnew-optional-request-property
- ○
added the new optional request property
charge/prepayment/validityPeriodAlignmentnew-optional-request-property
- ○
added the new optional request property
charge/prepayment/validityPeriodProrationOptionnew-optional-request-property
- ○
added the new optional request property
charge/prepaymentUnitTypenew-optional-request-property
- ○
added the optional property
drawdown/conversionRateto the response with the200statusresponse-optional-property-added
- ○
added the optional property
drawdown/unitOfMeasureto the response with the200statusresponse-optional-property-added
- ○
added the optional property
prepayment/drawdownPriorityto the response with the200statusresponse-optional-property-added
- ○
added the optional property
prepayment/drawdownScopeto the response with the200statusresponse-optional-property-added
- ○
added the optional property
prepayment/fundSupportAccountHierarchyto the response with the200statusresponse-optional-property-added
- ○
added the optional property
prepayment/operationTypeto the response with the200statusresponse-optional-property-added
- ○
added the optional property
prepayment/quantityto the response with the200statusresponse-optional-property-added
- ○
added the optional property
prepayment/rolloverEndDateTypeto the response with the200statusresponse-optional-property-added
- ○
added the optional property
prepayment/rolloverFundPriorityto the response with the200statusresponse-optional-property-added
- ○
added the optional property
prepayment/rolloverPeriodTypeto the response with the200statusresponse-optional-property-added
- ○
added the optional property
prepayment/specificValidityPeriodLengthto the response with the200statusresponse-optional-property-added
- ○
added the optional property
prepayment/unitOfMeasureto the response with the200statusresponse-optional-property-added
- ○
added the optional property
prepayment/validityPeriodto the response with the200statusresponse-optional-property-added
- ○
added the optional property
prepayment/validityPeriodAlignmentto the response with the200statusresponse-optional-property-added
- ○
added the optional property
prepayment/validityPeriodProrationOptionto the response with the200statusresponse-optional-property-added
- ○
added the optional property
prepaymentUnitTypeto the response with the200statusresponse-optional-property-added
- ○
the
creditOptionresponse's property default valuetime_basedwas added for the status200response-property-default-value-added
- ●