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 information about all orders in your tenant. You can set the status
query parameter to an order status to retrieve orders in that order status. If you do not set a value for this query parameter, the query parameter has a default value all
, and orders of all statuses are returned.
By default, it returns the first page of the orders.
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",
- "orderDate": "2017-03-01",
- "orderLineItems": [
- {
- "UOM": null,
- "accountingCode": null,
- "amount": 10000,
- "amountPerUnit": 5000,
- "amountWithoutTax": 10000,
- "billTargetDate": null,
- "billTo": "2c9081a03c6d7b51013c6d7e2dfc09fa",
- "billToSnapshotId": "4028fc8487c0a43c0187c12a91500060",
- "customFields": {
- "orderLineItemCF__c": "olinumber-023"
}, - "description": "With Dual Stereo Microphones, HD 1080p, Black,USB connectivity for ease of use.",
- "id": "4028fc827a0e48c1017a0e4dccc60002",
- "invoiceGroupNumber": "N-0001",
- "invoiceOwnerAccountId": "ff80808187ff38570187ff433cbd38ef",
- "invoiceOwnerAccountName": "AC_AC_16836148090011683614809001",
- "invoiceOwnerAccountNumber": "AN_1683614809001",
- "itemName": "webcam",
- "itemNumber": "1",
- "itemState": "Executing",
- "itemType": "Product",
- "listPrice": 118,
- "listPricePerUnit": 59,
- "orderId": "4028fc827a0e48c1017a0e58b9330014",
- "ownerAccountId": "ff80808187ff38570187ff433f974203",
- "ownerAccountName": "AC_AC_16836148099861683614809986",
- "ownerAccountNumber": "AN_1683614809986",
- "productCode": "C9201",
- "productRatePlanChargeId": null,
- "purchaseOrderNumber": "960-000764",
- "quantity": 2,
- "soldTo": "4028fc828244a0ac018244dfc9a90bee",
- "soldToSnapshotId": "4028fc828244a0ac018244dfc9b00bf0",
- "transactionEndDate": "2021-02-01",
- "transactionStartDate": "2021-02-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",
- "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,
- "invoiceGroupNumber": "N-0001",
- "notes": null,
- "subscribeToRatePlans": [
- {
- "chargeOverrides": [
- {
- "billing": {
- "billCycleDay": null,
- "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": {
- "order_cf_date__c": "2017-01-01"
}, - "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"
}
], - "success": true,
- "updatedBy": "2c989028622282520162235ab0f603ba",
- "updatedDate": "2018-03-14 15:12:55"
}
]
}