Note: This feature is only available if you have the Order Metrics feature enabled. As of Zuora Billing Release 284, Orders is generally available and the Order Metrics feature is no longer available as a standalone feature. If you are an existing Subscribe and Amend customer and want Order Metrics only, you must turn on Orders Harmonization. You can still keep the existing Subscribe and Amend API integrations to create and manage subscriptions.
Note: The Order Line Items feature is now generally available to all Zuora customers. You need to enable the Orders feature to access the Order Line Items feature. As of Zuora Billing Release 313 (November 2021), new customers who onboard on Orders will have the Order Line Items feature enabled by default.
Retrieves the detailed information about all orders for a specified subscription owner. Any orders containing the changes on the subscriptions owned by this account are returned.
Note: You cannot retrieve detailed information about draft orders or scheduled orders through this operation.
Accept-Encoding | string Include the If specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a |
Content-Encoding | string Include the |
Authorization | string The value is in the |
Zuora-Track-Id | string <= 64 characters 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 ( |
Zuora-Entity-Ids | string 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. |
Zuora-Org-Ids | string 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. If the header is not set, the operation is performed in scope of the user's accessible orgs. |
Internal Server Error
Request Errors
{- "orders": [
- {
- "createdBy": "2c989028622282520162235ab0f603ba",
- "createdDate": "2018-03-14 15:12:58",
- "currency": "USD",
- "customFields": {
- "order_cf_date__c": "2017-01-01"
}, - "description": "This is a description for the Order.",
- "existingAccountNumber": "accountA_Num",
- "invoiceScheduleId": "ec6f0d5dc8af451ab95343fb3c588c1a",
- "orderDate": "2017-03-01",
- "orderNumber": "O-00000002",
- "status": "Completed",
- "subscriptions": [
- {
- "baseVersion": 1,
- "customFields": {
- "sub_cf_picklist__c": null
}, - "newVersion": 2,
- "orderActions": [
- {
- "customFields": {
- "oa_cf_text__c": null
}, - "sequence": 0,
- "triggerDates": [
- {
- "name": "ContractEffective",
- "triggerDate": "2017-03-01"
}, - {
- "name": "ServiceActivation",
- "triggerDate": "2017-03-01"
}, - {
- "name": "CustomerAcceptance",
- "triggerDate": "2017-03-01"
}
], - "type": "UpdateProduct",
- "updateProduct": {
- "chargeUpdates": [
- {
- "billing": {
- "billingPeriodAlignment": null
}, - "chargeNumber": "C-00000001",
- "customFields": {
- "srpc_cf_picklist__c": null
}, - "description": null,
- "effectiveDate": {
- "specificTriggerDate": null
}, - "newRatePlanChargeId": "2c989028622282520162235adabc0651",
- "pricing": {
- "recurringVolume": {
- "priceChangeOption": null,
- "priceIncreasePercentage": null,
- "quantity": 7,
- "tiers": [ ]
}
}, - "uniqueToken": null
}
], - "customFields": { },
- "newRatePlanId": "2c989028622282520162235ada870649",
- "ratePlanId": "2c989028622282520162235acd1b05d2",
- "specificUpdateDate": null,
- "uniqueToken": null
}
}
], - "subscriptionNumber": "A-S00000001"
}
], - "updatedBy": "2c989028622282520162235ab0f603ba",
- "updatedDate": "2018-03-14 15:12:58"
}, - {
- "createdBy": "2c989028622282520162235ab0f603ba",
- "createdDate": "2018-03-14 15:12:55",
- "currency": "USD",
- "customFields": {
- "order_cf_date__c": "2017-01-01"
}, - "existingAccountNumber": "accountA_Num",
- "orderDate": "2017-01-01",
- "orderNumber": "O-00000001",
- "status": "Completed",
- "subscriptions": [
- {
- "baseVersion": null,
- "customFields": {
- "sub_cf_picklist__c": "sub123"
}, - "newVersion": 1,
- "orderActions": [
- {
- "createSubscription": {
- "invoiceSeparately": null,
- "notes": null,
- "subscribeToRatePlans": [
- {
- "chargeOverrides": [
- {
- "billing": {
- "billCycleDay": 1,
- "billCycleType": null,
- "billingPeriod": null,
- "billingPeriodAlignment": null,
- "billingTiming": null,
- "specificBillingPeriod": null,
- "weeklyBillCycleDay": null
}, - "chargeNumber": "C-00000001",
- "customFields": {
- "srpc_cf_picklist__c": null
}, - "description": null,
- "endDate": {
- "endDateCondition": null,
- "specificEndDate": null,
- "upToPeriods": null,
- "upToPeriodsType": null
}, - "pricing": {
- "recurringVolume": {
- "listPriceBase": "Per_Billing_Period",
- "priceChangeOption": null,
- "priceIncreasePercentage": null,
- "quantity": 12,
- "tiers": [ ]
}
}, - "productRateplanChargeId": "2c989028622282520162235aca7a05b9",
- "startDate": {
- "specificTriggerDate": null
}, - "uniqueToken": null
}
], - "customFields": { },
- "newRatePlanId": "2c989028622282520162235acd1b05d2",
- "productRatePlanId": "2c989028622282520162235ac91605b3",
- "uniqueToken": null
}
], - "subscriptionOwnerAccountNumber": "accountA_Num",
- "terms": {
- "autoRenew": false,
- "initialTerm": {
- "period": 12,
- "periodType": "Month",
- "startDate": "2017-01-01",
- "termType": "TERMED"
}, - "renewalSetting": "RENEW_WITH_SPECIFIC_TERM",
- "renewalTerms": [
- {
- "period": 0,
- "periodType": "Month"
}
]
}
}, - "customFields": {
- "oa_cf_text__c": "oa cf test"
}, - "sequence": 0,
- "triggerDates": [
- {
- "name": "ContractEffective",
- "triggerDate": "2017-01-01"
}, - {
- "name": "ServiceActivation",
- "triggerDate": "2017-01-01"
}, - {
- "name": "CustomerAcceptance",
- "triggerDate": "2017-01-01"
}
], - "type": "CreateSubscription"
}
], - "subscriptionNumber": "A-S00000001"
}
], - "updatedBy": "2c989028622282520162235ab0f603ba",
- "updatedDate": "2018-03-14 15:12:55"
}
], - "success": true
}