List items contained in subscriptions.
cursor | string A cursor for use in pagination. A cursor defines the starting place in a list. For instance, if you make a list request and receive 100 objects, ending with |
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 Tutorials for detailed instructions. |
sort[] | Array of strings A case-sensitive query parameter that specifies the sort order of the list, which can be either ascending (e.g. |
page_size | integer [ 1 .. 99 ] The maximum number of results to return in a single page. If the specified |
fields[] | Array of strings Allows you to specify which fields are returned in the response.
Example: fields[]=id,created_time |
subscription_item.fields[] | Array of strings Deprecated Allows you to specify which fields are returned in the response.
Example: subscription_item.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 |
subscription_plan.fields[] | Array of strings Allows you to specify which fields are returned in the response.
Example: subscription_plan.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 |
subscription.fields[] | Array of strings Allows you to specify which fields are returned in the response.
Example: subscription.fields[]=id,created_time |
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 |
Default Response
Bad Request
Unauthorized
Not Found
Method Not Allowed
Too Many Requests
Internal Server Error
Bad Gateway
Service Unavailable
Gateway Timeout
curl --request GET --url 'https://rest.apisandbox.zuora.com/v2/subscription_items?filter%5B%5D=id.EQ%3A8ad0889d86da5d7f0186db4ad79f79dd&=' --header 'Authorization: Bearer 85fc74df4c09410980c3786752818649'
{- "next_page": null,
- "data": [
- {
- "id": "8ad0889d86da5d7f0186db4ad79f79e6",
- "updated_by_id": "2c92c0946a6dffc0016a7faab604299b",
- "updated_time": "2023-03-13T07:06:00-07:00",
- "created_by_id": "2c92c0946a6dffc0016a7faab604299b",
- "created_time": "2023-03-13T07:06:00-07:00",
- "custom_fields": {
- "Price__c": "0"
}, - "custom_objects": { },
- "subscription_item_number": "C-00050012",
- "name": "Recurring Perunit",
- "description": "from Postman",
- "charged_through_date": "2023-04-01",
- "recurring": {
- "recurring_on": "account_cycle_date",
- "on": "account_cycle_date",
- "usage": false,
- "interval": "month",
- "interval_count": 1,
- "alignment_behavior": "none",
- "timing": "in_advance",
- "duration_interval": "subscription_term"
}, - "active": true,
- "state": "active",
- "start_event": "contract_effective",
- "tax_inclusive": false,
- "quantity": 1,
- "amount": 0.25,
- "price_base_interval": "billing_period",
- "charge_model": "flat_fee",
- "charge_type": "recurring",
- "price_id": "8ad0991583bacd6d0183c86d3b1832ba",
- "subscription_plan_id": "8ad0889d86da5d7f0186db4ad79f79db",
- "start_date": "2022-09-01",
- "processed_through_date": "2023-03-01"
}
]
}