Uncancel a cancelled subscription.
fields[] | Array of strings Allows you to specify which fields are returned in the response.
Example: fields[]=id,created_time |
subscription.fields[] | Array of strings Deprecated Allows you to specify which fields are returned in the response.
Example: subscription.fields[]=id,created_time |
subscription_plans.fields[] | Array of strings Allows you to specify which fields are returned in the response.
Example: subscription_plans.fields[]=id,created_time |
subscription_items.fields[] | Array of strings Allows you to specify which fields are returned in the response.
Example: subscription_items.fields[]=id,created_time |
account.fields[] | Array of strings Allows you to specify which fields are returned in the response.
Example: account.fields[]=id,created_time |
invoice_owner_account.fields[] | Array of strings Allows you to specify which fields are returned in the response.
Example: invoice_owner_account.fields[]=id,created_time |
plan.fields[] | Array of strings Allows you to specify which fields are returned in the response.
Example: plan.fields[]=id,created_time |
product.fields[] | Array of strings Allows you to specify which fields are returned in the response.
Example: product.fields[]=id,created_time |
price.fields[] | Array of strings Allows you to specify which fields are returned in the response.
Example: price.fields[]=id,created_time |
bill_to.fields[] | Array of strings Allows you to specify which fields are returned in the response.
Example: bill_to.fields[]=id,created_time |
prepaid_balance.fields[] | Array of strings Allows you to specify which fields are returned in the response.
Example: prepaid_balance.fields[]=id,created_time |
prepaid_balances.fields[] | Array of strings Allows you to specify which fields are returned in the response.
Example: prepaid_balances.fields[]=id,created_time |
validity_period.fields[] | Array of strings Allows you to specify which fields are returned in the response.
Example: validity_period.fields[]=id,created_time |
transactions.fields[] | Array of strings Allows you to specify which fields are returned in the response.
Example: transactions.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 |
description | string Description of the subscription. |
object (CustomFields) Set of user-defined fields associated with this object. Useful for storing additional information about the object in a structured format. | |
object (SubscriptionTermPatchRequest) Term information of the subscription. | |
object (StartOn) Container for the contract effective, service activation, and customer acceptance dates of the order action or subscription.
customer_acceptance field is not set for any of the following order actions or the "Update a subscription" operation, a pending order is created. The subscription status is not impacted. Note: This feature is in Limited Availability. If you want to have access to the feature, submit a request at Zuora Global Support.
| |
invoice_owner_account_id | string Identifier of the account that owns the invoice associated with this subscription. |
invoice_owner_account_number | string Identifier of the account that owns the invoice associated with this subscription. |
account_id | string Identifier of the account that owns the subscription. Subscription owner account can be different from the invoice owner account. |
account_number | string Identifier of the account that owns the subscription. Subscription owner account can be different from the invoice owner account. |
Array of objects (SubscriptionAddPlanPatchRequest) Specify this field if you want to add one or multiple subscription plans to this subscription. | |
Array of objects (SubscriptionRemovePlanPatchRequest) Specify this field if you want to remove one or multiple subscription plans from this subscription. | |
Array of objects (SubscriptionReplacePlanPatchRequest) Specify this field if you want to replace one or multiple subscription plans to this subscription. | |
Array of objects (SubscriptionUpdatePlanPatchRequest) | |
object (SubscriptionRenewPatchRequest) Specify this field when renewing a subscription. | |
Array of objects (SubscriptionRenewPatchRequest) Specify this field when renewing a subscription. | |
object (CancelSubscriptionRequest) | |
object or null (PauseSubscriptionRequest) | |
object (ResumeSubscriptionRequest) Behavior of the paused subscription when it resumes. | |
bill_to_id | string or null ID of the bill-to contact. |
payment_terms | string or null The name of payment term associated with the invoice. |
object (FlexibleBillingDocumentSettings) The billing document settings for the customer. | |
sold_to_id | string or null ID of the sold-to contact. |
invoice_separately | boolean Separates a single subscription from other subscriptions and creates an invoice for this subscription. If the value is |
change_reason | string A brief description of the reason for this change. |
Default Response
Bad Request
Unauthorized
Not Found
Method Not Allowed
Too Many Requests
Internal Server Error
Bad Gateway
Service Unavailable
Gateway Timeout
{- "description": "string",
- "custom_fields": {
- "property1": "string",
- "property2": "string"
}, - "terms": {
- "current_term": {
- "interval_count": 1,
- "interval": "day",
- "start_date": "2020-01-01",
- "type": "evergreen",
- "end_date": "2023-01-01"
}, - "renewal_term": {
- "interval_count": 1,
- "interval": "day",
- "start_date": "2020-01-01",
- "type": "evergreen",
- "end_date": "2023-01-01"
}, - "auto_renew": true,
- "start_on": {
- "contract_effective": "2023-06-01",
- "service_activation": "2023-06-01",
- "customer_acceptance": "2023-06-01"
}, - "bill_to_id": "2c92c0f86a8dd422016a9e7a70116b0d",
- "payment_terms": "string",
- "billing_document_settings": {
- "template_id": "2c92c08b6a8c978f016a9e0084622b62",
- "sequence_set_id": "string"
}, - "sold_to_id": "2c92c0f86a8dd422016a9e7a70116b0d",
- "change_reason": "string"
}, - "start_on": {
- "contract_effective": "2023-06-01",
- "service_activation": "2023-06-01",
- "customer_acceptance": "2023-06-01"
}, - "invoice_owner_account_id": "string",
- "invoice_owner_account_number": "string",
- "account_id": "string",
- "account_number": "string",
- "add_subscription_plans": [
- {
- "subscription_plan": {
- "plan_id": "string",
- "plan_number": "string",
- "prices": [
- {
- "price_id": "string",
- "subscription_item_number": "string",
- "description": "string",
- "recurring": {
- "recurring_on": "_1",
- "on": "_1",
- "usage": true,
- "interval": "month",
- "interval_count": 0,
- "alignment_behavior": "subscription_start",
- "timing": "in_advance",
- "duration_interval": "day",
- "duration_interval_count": 0,
- "rating_group": "billing_period"
}, - "start_event": "contract_effective",
- "start_date": "2019-08-24",
- "end_date": "2019-08-24",
- "tiers_mode": "graduated",
- "tiers": [
- {
- "up_to": null,
- "amount": null,
- "unit_amount": null
}
], - "quantity": 0,
- "amount": 0,
- "unit_amount": 0,
- "discount_amount": 0,
- "discount_percent": 0,
- "price_base_interval": "month",
- "overage": {
- "interval_count": 0,
- "type": "rolling_window",
- "included_units": 0,
- "credit_unused_units": true,
- "apply_at_end_of_smoothing_period": true
}, - "unique_token": "string",
- "custom_fields": {
- "property1": "string",
- "property2": "string"
}, - "apply_discount_to": [
- "one_time"
], - "discount_level": "account",
- "custom_field_per_unit_rate": "string",
- "custom_field_total_amount": "string",
- "price_change_percentage": 0,
- "price_change_option": "latest_catalog_pricing",
- "prepayment": {
- "quantity": 0,
- "validity_period": "subscription_term"
}, - "drawdown": {
- "conversion_rate": 0
}
}
], - "unique_token": "string",
- "custom_fields": {
- "property1": "string",
- "property2": "string"
}
}, - "start_on": {
- "contract_effective": "2023-06-01",
- "service_activation": "2023-06-01",
- "customer_acceptance": "2023-06-01"
}, - "change_reason": "string"
}
], - "remove_subscription_plans": [
- {
- "subscription_plan_id": "string",
- "start_on": {
- "contract_effective": "2023-06-01",
- "service_activation": "2023-06-01",
- "customer_acceptance": "2023-06-01"
}, - "unique_token": "string",
- "change_reason": "string"
}
], - "replace_subscription_plans": [
- {
- "subscription_plan_id": "string",
- "previous_plan_id": "string",
- "replace_at": "now",
- "replacement_type": "upgrade",
- "subscription_plan": {
- "plan_id": "string",
- "plan_number": "string",
- "prices": [
- {
- "price_id": "string",
- "subscription_item_number": "string",
- "description": "string",
- "recurring": {
- "recurring_on": "_1",
- "on": "_1",
- "usage": true,
- "interval": "month",
- "interval_count": 0,
- "alignment_behavior": "subscription_start",
- "timing": "in_advance",
- "duration_interval": "day",
- "duration_interval_count": 0,
- "rating_group": "billing_period"
}, - "start_event": "contract_effective",
- "start_date": "2019-08-24",
- "end_date": "2019-08-24",
- "tiers_mode": "graduated",
- "tiers": [
- {
- "up_to": null,
- "amount": null,
- "unit_amount": null
}
], - "quantity": 0,
- "amount": 0,
- "unit_amount": 0,
- "discount_amount": 0,
- "discount_percent": 0,
- "price_base_interval": "month",
- "overage": {
- "interval_count": 0,
- "type": "rolling_window",
- "included_units": 0,
- "credit_unused_units": true,
- "apply_at_end_of_smoothing_period": true
}, - "unique_token": "string",
- "custom_fields": {
- "property1": "string",
- "property2": "string"
}, - "apply_discount_to": [
- "one_time"
], - "discount_level": "account",
- "custom_field_per_unit_rate": "string",
- "custom_field_total_amount": "string",
- "price_change_percentage": 0,
- "price_change_option": "latest_catalog_pricing",
- "prepayment": {
- "quantity": 0,
- "validity_period": "subscription_term"
}, - "drawdown": {
- "conversion_rate": 0
}
}
], - "unique_token": "string",
- "custom_fields": {
- "property1": "string",
- "property2": "string"
}
}, - "start_on": {
- "contract_effective": "2023-06-01",
- "service_activation": "2023-06-01",
- "customer_acceptance": "2023-06-01"
}, - "change_reason": "string"
}
], - "update_subscription_plans": [
- {
- "subscription_plan": {
- "custom_fields": {
- "property1": "string",
- "property2": "string"
}, - "subscription_plan_id": "string",
- "unique_token": "string",
- "subscription_items": [
- {
- "id": "string",
- "recurring": {
- "recurring_on": "_1",
- "on": "_1",
- "usage": true,
- "interval": "month",
- "interval_count": 0,
- "alignment_behavior": "subscription_start",
- "timing": "in_advance",
- "duration_interval": "day",
- "duration_interval_count": 0,
- "rating_group": "billing_period"
}, - "subscription_item_number": "string",
- "custom_fields": {
- "property1": "string",
- "property2": "string"
}, - "description": "string",
- "start_date": "2019-08-24",
- "end_date": "2019-08-24",
- "apply_discount_to": [
- "one_time"
], - "discount_level": "account",
- "start_event": "contract_effective",
- "discount_percent": 0,
- "quantity": 0,
- "amount": 0,
- "unit_amount": 0,
- "tiers": [
- {
- "up_to": null,
- "amount": null,
- "unit_amount": null
}
], - "overage": {
- "interval_count": 0,
- "type": "rolling_window",
- "included_units": 0,
- "credit_unused_units": true,
- "apply_at_end_of_smoothing_period": true
}, - "unique_token": "string",
- "prepayment": {
- "quantity": 0,
- "validity_period": "subscription_term"
}, - "custom_field_per_unit_rate": "string",
- "custom_field_total_amount": "string"
}
]
}, - "start_on": {
- "contract_effective": "2023-06-01",
- "service_activation": "2023-06-01",
- "customer_acceptance": "2023-06-01"
}, - "start_date": "2022-01-01",
- "change_reason": "string"
}
], - "renew": {
- "start_on": {
- "contract_effective": "2023-06-01",
- "service_activation": "2023-06-01",
- "customer_acceptance": "2023-06-01"
}, - "change_reason": "string"
}, - "renewals": [
- {
- "start_on": {
- "contract_effective": "2023-06-01",
- "service_activation": "2023-06-01",
- "customer_acceptance": "2023-06-01"
}, - "change_reason": "string"
}
], - "cancel": {
- "cancel_date": "string",
- "cancel_at": "invoice_period_end",
- "processing_options": {
- "document_date": "2019-08-24",
- "target_date": "2019-08-24",
- "collection_method": "collect_payment",
- "payment_method_id": "string",
- "draft_invoice": true,
- "payment_gateway_id": "string",
- "refund_reason_code": "string"
}, - "refund_amount": 0,
- "write_off": false,
- "write_off_behavior": {
- "on_account_accounting_code": "string",
- "deferred_revenue_accounting_code": "string",
- "recognized_revenue_accounting_code": "string",
- "revenue_recognition_rule_name": "string"
}, - "custom_fields": {
- "property1": "string",
- "property2": "string"
}, - "change_reason": "string"
}, - "pause": {
- "pause_date": "string",
- "pause_at": "invoice_period_end",
- "pause_interval_count": 0,
- "pause_interval": "month",
- "change_reason": "string",
- "resume_behavior": {
- "extend_term": false,
- "resume_date": "string",
- "resume_at": "pause_date",
- "change_reason": "string",
- "custom_fields": {
- "property1": "string",
- "property2": "string"
}
}, - "custom_fields": {
- "property1": "string",
- "property2": "string"
}
}, - "resume": {
- "extend_term": false,
- "resume_date": "string",
- "resume_at": "pause_date",
- "change_reason": "string",
- "custom_fields": {
- "property1": "string",
- "property2": "string"
}
}, - "bill_to_id": "2c92c0f86a8dd422016a9e7a70116b0d",
- "payment_terms": "string",
- "billing_document_settings": {
- "template_id": "2c92c08b6a8c978f016a9e0084622b62",
- "sequence_set_id": "string"
}, - "sold_to_id": "2c92c0f86a8dd422016a9e7a70116b0d",
- "invoice_separately": true,
- "change_reason": "string"
}
{- "id": "8ad08ccf8437067601843a7af4e64rq3",
- "custom_fields": {
- "field__c": "custom field value"
}, - "subscription_number": "A-S0001332401234",
- "state": "active",
- "account_id": "2c92c0f86a8dd422016a9e7a70116b0d",
- "invoice_owner_account_id": "2c92c0f86a8dd422016a9e7a70116b0d",
- "auto_renew": true,
- "latest_version": true,
- "initial_term": {
- "interval_count": 1,
- "interval": "month",
- "type": "termed"
}, - "current_term": {
- "interval_count": 1,
- "interval": "month",
- "start_date": "2022-07-01",
- "type": "termed",
- "end_date": "2022-08-01"
}, - "start_date": "2022-07-01",
- "end_date": "2022-08-01",
- "description": "Create Subscription",
- "contract_effective": "2022-07-01",
- "service_activation": "2022-07-01",
- "customer_acceptance": "2022-07-01",
- "invoice_separately": false,
- "order_number": "O-00020812"
}