Retrieves the details of a specific commitment using its ID or number.
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.
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 Zuora Multi-Org 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.
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 (').
The minor API version.
For a list of available minor versions, see API upgrades.
- https://rest.test.zuora.comhttps://rest.test.zuora.com/commitments/{commitmentKey}
- US API Sandbox Cloud 1https://rest.sandbox.na.zuora.com/commitments/{commitmentKey}
- US API Sandbox Cloud 2https://rest.apisandbox.zuora.com/commitments/{commitmentKey}
- US Production Cloud 1https://rest.na.zuora.com/commitments/{commitmentKey}
- US Production Cloud 2https://rest.zuora.com/commitments/{commitmentKey}
- https://rest.test.eu.zuora.comhttps://rest.test.eu.zuora.com/commitments/{commitmentKey}
- EU API Sandboxhttps://rest.sandbox.eu.zuora.com/commitments/{commitmentKey}
- EU Productionhttps://rest.eu.zuora.com/commitments/{commitmentKey}
- https://rest.test.ap.zuora.comhttps://rest.test.ap.zuora.com/commitments/{commitmentKey}
- APAC Productionhttps://rest.ap.zuora.com/commitments/{commitmentKey}
curl -i -X GET \
'https://rest.test.zuora.com/commitments/{commitmentKey}?includeChildCommitments=false' \
-H 'Accept-Encoding: string' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Encoding: string' \
-H 'Zuora-Entity-Ids: string' \
-H 'Zuora-Org-Ids: string' \
-H 'Zuora-Track-Id: string' \
-H 'Zuora-Version: string'OK
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.
Status of the commitment.
Use this field to assign an existing account as the owner of an Commitment.
The prepayment type of the commitment.
Note: FullyPrepaid commitments will not be considered for true-up during invoice generation.
The priority of the commitment. It defines the evaluation order of the commitment. The lower the number, the higher the priority. When two commitments have the same priority, the one with the earlier created time will be evaluated first.
The accounting code on the Commitment object for customers
The accounting code on the commitment for customers.
Note: This field is only available if you have the Order to Revenue feature enabled.
The accounting code on the commitment for customers.
Note: This field is only available if you have the Order to Revenue feature enabled.
Cancellation policy configuration for a commitment. Defines how settlements are handled when a commitment is cancelled.
The effective date when the commitment cancellation takes effect.
Child commitments nested under this parent. Never null. When includeChildCommitments is false or omitted, this array is empty. When includeChildCommitments is true, this array contains full child commitment objects, or an empty array when there are no children.
[ { "id": "8ad08ca797ef6ca50197f3cce6267992", "status": "Active", "version": 1, "currency": "USD", "startDate": "2024-01-01", "endDate": "2024-12-31", "totalAmount": 50000, "orderNumber": "O-0001", "orderId": "00989e98483e00030a2733ee989e9815", "accountId": "8a8aa0ac7f3b4c1d017f3b4c1d0a0001", "accountNumber": "ACC-0001", "commitmentNumber": "CMT-CHILD-001", "name": "Child Commitment", "type": "MinCommitment", "prepaymentType": "NotPrepaid", "description": "Child commitment created from parent", "priority": 1, "eligibleAccountConditions": { … }, "eligibleChargeConditions": { … }, "periodAlignmentOption": "SpecificDate", "specificPeriodAlignmentDate": "2020-01-15", "customFields": {}, "aceId": 15837365486485894, "excludeItemBookingFromRevenueAccounting": true, "adjustmentLiabilityAccountingCode": "Accounts Receivable", "adjustmentRevenueAccountingCode": "Accounts Receivable", "contractAssetAccountingCode": "Accounts Receivable", "contractLiabilityAccountingCode": "Accounts Receivable", "contractRecognizedRevenueAccountingCode": "Accounts Receivable", "deferredRevenueAccountingCode": "Accounts Receivable", "excludeItemBillingFromRevenueAccounting": false, "isAllocationEligible": true, "isUnbilled": false, "recognizedRevenueAccountingCode": "Accounts Receivable", "revenueRecognitionRule": "Recognize upon invoicing", "unbilledReceivablesAccountingCode": "Accounts Receivable", "revenueRecognitionTiming": "Upon Order Activation Date", "revenueAmortizationMethod": "Immediate", "accountReceivableAccountingCode": "Accounts Receivable", "cancellationPolicy": { … }, "cancellationEffectiveDate": "2020-06-30", "childCommitments": [], "taxable": true, "taxCode": "SalesTax_US", "taxMode": "TaxInclusive" } ]
The accounting code on the commitment for customers.
Note: This field is only available if you have the Order to Revenue feature enabled.
The accounting code on the commitment for customers.
Note: This field is only available if you have the Order to Revenue feature enabled.
The accounting code on the commitment for customers.
Note: This field is only available if you have the Order to Revenue feature enabled.
The deferred revenue accounting code for the commitment.
The flag to exclude commitment related booking items from revenue accounting.
The flag to exclude commitment related invoice items, invoice item adjustments, credit memo items, and debit memo items from revenue accounting.
Note: This field is only available if you have the Order to Revenue feature enabled.
The conditions for account level filters for the commitment.
The conditions for charge level filters for the commitment.
Options for aligning the commitment periods within a commitment.
The specific date for period alignment, required if periodAlignmentOption is SpecificDate.
This field is used to identify if the commitment is allocation eligible in revenue recognition.
Note: This field is only available if you have the Order to Revenue feature enabled.
This field is used to dictate how to perform the accounting during revenue recognition.
Note: This field is only available if you have the Order to Revenue feature enabled.
The recognized revenue accounting code for the commitment.
This field is used to dictate the type of revenue amortization method.
This field is used to dictate the type of revenue recognition timing.
The accounting code on the commitment for customers.
Note: This field is only available if you have the Order to Revenue feature enabled.
Determines whether the true-up invoice of a commitment is taxable. If the value is true, the tax code and tax mode are required.
Identifies which tax rules and tax rates to apply to the corresponding billing document.
{ "id": "8ad08ca797ef6ca50197f3cce6267991", "status": "Active", "version": 1, "currency": "USD", "startDate": "2020-01-01", "endDate": "2020-12-31", "amount": 100, "orderNumber": "O-0001", "orderId": "00989e98483e00030a2733ee989e9815", "accountId": "8a8aa0ac7f3b4c1d017f3b4c1d0a0001", "accountNumber": "ACC-0001", "commitmentNumber": "TW-0001", "name": "Example Commitment", "type": "MinCommitment", "prepaymentType": "NotPrepaid", "description": "This a example commitment.", "priority": 1, "eligibleAccountConditions": { "field": "Account.AccountNumber", "operator": "eq", "value": "ACC-0001", "conditions": [ … ], "relation": "and" }, "eligibleChargeConditions": { "field": "RatePlanCharge.ChargeNumber", "operator": "in", "value": "C-0001,C-0002", "conditions": [ … ], "relation": "and" }, "periodAlignmentOption": "SpecificDate", "specificPeriodAlignmentDate": "2020-01-15", "customFields": {}, "aceId": "15837365486485820", "excludeItemBookingFromRevenueAccounting": true, "adjustmentLiabilityAccountingCode": "Accounts Receivable", "adjustmentRevenueAccountingCode": "Accounts Receivable", "contractAssetAccountingCode": "Accounts Receivable", "contractLiabilityAccountingCode": "Accounts Receivable", "contractRecognizedRevenueAccountingCode": "Accounts Receivable", "deferredRevenueAccountingCode": "Accounts Receivable", "excludeItemBillingFromRevenueAccounting": false, "isAllocationEligible": true, "isUnbilled": false, "recognizedRevenueAccountingCode": "Accounts Receivable", "revenueRecognitionRule": "Recognize upon invoicing", "unbilledReceivablesAccountingCode": "Accounts Receivable", "revenueRecognitionTiming": "Upon Order Activation Date", "revenueAmortizationMethod": "Immediate", "accountReceivableAccountingCode": "Accounts Receivable", "cancellationPolicy": { "settlementType": "NoSettlement" }, "cancellationEffectiveDate": "2020-06-30", "childCommitments": [ { … } ], "taxable": true, "taxCode": "SalesTax_US", "taxMode": "TaxInclusive" }
