You can use amendments to modify subscriptions. However, Zuora recommends you to use the Create an order operation to do so.
Retrieves detailed information about the specified subscription amendment.
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.
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 do not need to set this header.
- https://rest.zuora.comhttps://rest.zuora.com/v1/amendments/{amendment-key}
curl -i -X GET \
'https://rest.zuora.com/v1/amendments/{amendment-key}' \
-H 'Accept-Encoding: string' \
-H 'Authorization: string' \
-H 'Content-Encoding: string' \
-H 'Zuora-Entity-Ids: string' \
-H 'Zuora-Track-Id: 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/jsonapplication/xmltext/htmltext/csvtext/plain
The request limit quota for the time window closest to exhaustion. See rate limits for more information.
The number of requests remaining in the time window closest to quota exhaustion. See rate limits for more information.
The number of seconds until the quota resets for the time window closest to quota exhaustion. See rate limits for more information.
The Zuora internal identifier of the API call. You cannot control the value of this header.
Determines whether the subscription is automatically renewed, or whether it expires at the end of the term and needs to be manually renewed.
The rate plan ID on which changes are made. Only the Update or Remove amendment returns a base rate plan ID.
The date when the amendment is signed. This field is to standardize the booking date information to increase audit ability and traceability of data between Zuora Billing and Zuora Revenue. It is mapped as the booking date for a sale order line in Zuora Revenue.
The date when the amendment becomes effective for billing purposes, as yyyy-mm-dd.
The period type for the current subscription term. Possible values are:
- Month
- Year
- Day
- Week
The date when the customer accepts the amendment changes to the subscription, as yyyy-mm-dd.
Effective Policy for the subscription. Possible values are:
EffectiveImmediately
EffectiveEndOfBillingPeriod
SpecificDate
The value depends on the following conditions:
- If the rate plan change (from old to new) is an upgrade, the effective policy is
EffectiveImmediatelyby default. - If the rate plan change (from old to new) is a downgrade, the effective policy is
EffectiveEndOfBillingPeriodby default. - Otherwise, the effective policy is
SpecificDateby default.
Note: This feature is in the Early Adopter phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. If you want to join this early adopter program, submit a request at Zuora Global Support.
The ID of the rate plan charge on which amendment is made. Only the Add or Update amendment returns a new rate plan ID.
Specifies whether a termed subscription will remain termed or change to evergreen when it is renewed. Possible values are:
- RENEW_WITH_SPECIFIC_TERM
- RENEW_TO_EVERGREEN
The period type for the subscription renewal term. Possible values are:
- Month
- Year
- Day
- Week
The date when the subscription resumption takes effect, as yyyy-mm-dd.
Note: This feature is in Limited Availability. If you wish to have access to the feature, submit a request at Zuora Global Support.
The date when the Update Product amendment takes effect. Only for the Update Product amendments if there is already a future-dated Update Product amendment on the subscription.
The status of the amendment. Possible values are:
DraftPendingActivationPendingAcceptanceCompleted
Sub type for the subscription.
Possible values are:
Upgrade
Downgrade
Crossgrade
PlanChanged
This field shows the sub type you choose for your change plan amendment.
However, if you do not set this field, the field will be automatically generated by the system according to the following rules:
When the old and new rate plans are within the same Grading catalog group:
- If the grade of new plan is greater than that of the old plan, this is an "Upgrade".
- If the grade of new plan is less than that of the old plan, this is a "Downgrade".
- If the grade of new plan equals that of the old plan, this is a "Crossgrade".
When the old and new rate plans are not in the same Grading catalog group, or either has no group, this is "PlanChanged".
Note: This feature is in the Early Adopter phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. If you want to join this early adopter program, submit a request at Zuora Global Support.
The date when the subscription suspension takes effect, as yyyy-mm-dd.
Note: This feature is in Limited Availability. If you wish to have access to the feature, submit a request at Zuora Global Support.
Type of the amendment. Possible values are:
- Cancellation
- NewProduct
- OwnerTransfer
- RemoveProduct
- Renewal
- UpdateProduct
- TermsAndConditions
- ChangePlan - Note that this feature is in the Early Adopter phase. We are actively soliciting feedback from a small set of early adopters before releasing it as generally available. If you want to join this early adopter program, submit a request at Zuora Global Support.
{ "success": true, "id": "402896a9529c100a01529c30e26a0018", "code": "A-AM00000002", "name": "testAmendment", "type": "TermsAndConditions", "description": "just for test", "status": "Completed", "contractEffectiveDate": "2016-02-01", "serviceActivationDate": "2016-02-01", "customerAcceptanceDate": "2016-02-01", "effectiveDate": "2016-02-01", "newSubscriptionId": "402896a9529c100a01529c311930001d", "baseSubscriptionId": "402896a9529c100a01529c2f2cc30010", "termType": "TERMED", "currentTerm": 2, "currentTermPeriodType": "Month", "termStartDate": "2015-12-31", "renewalSetting": "RENEW_WITH_SPECIFIC_TERM", "renewalTerm": 1, "renewalTermPeriodType": "Month", "autoRenew": false, "specificUpdateDate": null, "newRatePlanId": null, "baseRatePlanId": null, "destinationAccountId": "402896a9529bc3dc01529bcba7120023", "destinationInvoiceOwnerId": "402896a9529bc3dc01529bcba7120023", "subType": "Upgrade", "effectivePolicy": "EffectiveImmediately" }