Creates a new price for an existing plan.
fields[] | Array of strings Allows you to specify which fields are returned in the response.
Example: fields[]=id,created_time |
price.fields[] | Array of strings Deprecated Allows you to specify which fields are returned in the response.
Example: price.fields[]=id,created_time |
expand[] | Array of strings Allows you to expand responses by including related object information in a single call. See the Expand responses section of the Quickstart API Tutorials for detailed instructions. |
filter[] | Array of strings A case-sensitive filter on the list. See the Filter lists section of the Quickstart API Tutorial for detailed instructions. |
page_size | integer [ 1 .. 99 ] The maximum number of results to return in a single page. If the specified |
zuora-track-id | string A custom identifier for tracking API requests. If you set a value for this header, Zuora returns the same value in the response header. This header enables you to track your 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 ("), or quote ('). |
async | boolean Default: false Making asynchronous requests allows you to scale your applications more efficiently by leveraging Zuora's infrastructure to enqueue and execute requests for you without blocking. These requests also use built-in retry semantics, which makes them much less likely to fail for non-deterministic reasons, even in extreme high-throughput scenarios. Meanwhile, when you send a request to one of these endpoints, you can expect to receive a response in less than 150 milliseconds and these calls are unlikely to trigger rate limit errors. If set to true, Zuora returns a 202 Accepted response, and the response body contains only a request ID. |
zuora-entity-ids | string An entity ID. If you have Multi-entity enabled and the authorization token is valid for more than one entity, you must use this header to specify which entity to perform the operation on. If the authorization token is only valid for a single entity or you do not have Multi-entity enabled, you do not need to set this header. |
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. This idempotency key should be a unique value, and the Zuora server identifies subsequent retries of the same request using this value. For more information, see Idempotent Requests. |
accept-encoding | string Include a |
content-encoding | string Include a |
object (CustomFields) Set of user-defined fields associated with this object. Useful for storing additional information about the object in a structured format. | |
name required | string The name of the price. |
description | string An arbitrary string attached to the object. Often useful for displaying to users. |
recognized_revenue_accounting_code | string <= 100 characters An active accounting code in your Zuora chart of accounts. |
deferred_revenue_accounting_code | string <= 100 characters An active accounting code in your Zuora chart of accounts. |
object (Recurring) The recurring components of a price such as interval and usage. | |
start_event | string Default: "contract_effective" Specifies when to start billing your customer. |
tiers_mode | string Deprecated Specifies the mode for tiered prices. |
apply_discount_to | Array of strings Any combination of one_time, recurring and plan. |
Array of objects (Tier) Price information for different tiers. When creating or updating tiered prices, you must specify this field and the | |
tax_code | string A tax code identifier. If a |
tax_inclusive | boolean If this field is set to |
unit_of_measure | string A configured unit of measure. This field is required for per-unit prices. |
quantity | number Quantity of the product to which your customers subscribe. |
min_quantity | number The minimum quantity for a price. Specify this field and the |
max_quantity | number The maximum quantity for a price. Specify this field and the |
discount_level | string Specifies at what level a discount should be applied: account, subscription, or plan. |
revenue_recognition_rule | string Determines when to recognize the revenue for this charge. You can choose to recognize upon invoicing or daily over time. |
stacked_discount | boolean This field is only applicable for the Percentage Discount price. This field indicates whether the discount is to be calculated as stacked discount. Possible values are as follows:
|
object (money) | |
object (money) | |
object (money) | |
discount_percent | number Discount percent. Specify this field if you offer a percentage-based discount. |
price_base_interval | string Default: "billing_period" Specifies the base interval of a price. If not provided, this field defaults to |
object (Overage) Deprecated An object defining how overage charges are calculated. | |
object (Revenue) Accounting configuration if you have Zuora Revenue enabled. | |
accounting_code | string An active accounting code defined in Finance Settings > Configure Accounting Codes in your Zuora tenant. |
object (Prepayment) | |
object (Drawdown) | |
taxable | boolean |
price_change_percentage | number The percentage to increase or decrease the price of a termed subscription's renewal. |
price_change_option | string Default: "none" Applies an automatic price change when a termed subscription is renewed. |
price_increase_option | boolean Indicates whether to apply an automatic price change when a termed subscription is renewed. |
plan_id | string Specify the ID of a plan to which this price is associated. |
plan_number | string Specify the number of a plan to which this price is associated. This field is required if plan_id is not supplied |
custom_field_per_unit_rate | string Name of the custom field that will be used to set a per unit rate under the |
custom_field_total_amount | string Name of the custom field that will be used to set a total amount under the |
Default Response
Bad Request
Unauthorized
Not Found
Method Not Allowed
Too Many Requests
Internal Server Error
Bad Gateway
Service Unavailable
Gateway Timeout
{- "name": "Recurring Perunit",
- "description": "Create Price",
- "start_event": "contract_effective",
- "recurring": {
- "recurring_on": "account_cycle_date",
- "usage": false,
- "interval": "month",
- "interval_count": 1,
- "alignment_behavior": "none",
- "timing": "in_advance",
- "duration_interval": "subscription_term",
- "duration_interval_count": 1
}, - "tiers_mode": "graduated",
- "tiers": [
- {
- "up_to": 10,
- "unit_amounts": {
- "USD": 10
}
}, - {
- "unit_amounts": {
- "USD": 7
}
}
], - "tax_code": "Avalara",
- "tax_inclusive": false,
- "unit_of_measure": "Each",
- "quantity": 15,
- "price_base_interval": "billing_period",
- "plan_id": "8ad0877b813e5774018143f39e98059b",
- "recognized_revenue_accounting_code": "Subscription Revenue",
- "deferred_revenue_accounting_code": "Subscription Revenue"
}
{- "id": "8ad08ccf8437067601843a7af4e64rq3",
- "updated_by_id": "2c92c0946a6dffc0016a7faab604299b",
- "updated_time": "2022-08-02T05:56:54-07:00",
- "created_by_id": "2c92c0946a6dffc0016a7faab604299b",
- "created_time": "2022-08-02T05:56:54-07:00",
- "custom_fields": {
- "field__c": "custom field value"
}, - "name": "Recurring Perunit",
- "description": "from Postman",
- "recurring": {
- "on": "subscription_item_start_day",
- "usage": false,
- "interval": "month",
- "interval_count": 1,
- "alignment_behavior": "none",
- "timing": "in_advance",
- "duration_interval": "subscription_term",
- "duration_interval_count": 1
}, - "start_event": "contract_effective",
- "tiers_mode": "graduated",
- "tiers": [
- {
- "up_to": 10,
- "unit_amounts": {
- "USD": 10
}
}, - {
- "unit_amounts": {
- "USD": 7
}
}
], - "tax_code": "Avalara",
- "tax_inclusive": false,
- "unit_of_measure": "Each",
- "quantity": 15,
- "price_base_interval": "billing_period",
- "plan_id": "8ad0877b813e5774018143f39e98059b",
- "charge_type": "recurring",
- "charge_model": "tiered"
}