Lists all versions of the specified subscription.
fields[] | Array of strings Allows you to specify which fields are returned in the response.
Example: fields[]=id,created_time |
subscription_plans.fields[] | Array of strings Allows you to specify which fields are returned in the response.
Example: subscription_plans.fields[]=id,created_time |
subscription_items.fields[] | Array of strings Allows you to specify which fields are returned in the response.
Example: subscription_items.fields[]=id,created_time |
account.fields[] | Array of strings Allows you to specify which fields are returned in the response.
Example: account.fields[]=id,created_time |
invoice_owner_account.fields[] | Array of strings Allows you to specify which fields are returned in the response.
Example: invoice_owner_account.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 |
price.fields[] | Array of strings Allows you to specify which fields are returned in the response.
Example: price.fields[]=id,created_time |
bill_to.fields[] | Array of strings Allows you to specify which fields are returned in the response.
Example: bill_to.fields[]=id,created_time |
prepaid_balance.fields[] | Array of strings Allows you to specify which fields are returned in the response.
Example: prepaid_balance.fields[]=id,created_time |
transactions.fields[] | Array of strings Allows you to specify which fields are returned in the response.
Example: transactions.fields[]=id,created_time |
actions.fields[] | Array of strings Allows you to specify which fields are returned in the response.
Example: actions.fields[]=id,created_time |
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 |
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 ('). |
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/subscriptions/A-S00013892/versions' --header 'Authorization: Bearer 35b5e974cd8447e69fd96adeefba9009' --header 'Content-Type: application/json'
{- "next_page": "W3sib3JkZXJCeSI6eyJmaWVsZCI6IlVwZGF0ZWREYXRlIiwib3JkZXIiOiJERVNDIn0sInZhbHVlIjoiMjAyMi0xMi0yMFQxMjoyODo1NC0wODowMCJ9LHsib3JkZXJCeSI6eyJmaWVsZCI6IklkIiwib3JkZXIiOiJERVNDIn0sInZhbHVlIjoiMmM5MmMwZjk2YWJjMTdkZTAxNmFiZDYyYmQwYzU4NTQifV0=",
- "data": [
- {
- "id": "8ad08ccf8437067601843a7af4e64rq3",
- "updated_by_id": "2c92c0946a6dffc0016a7faab604299b",
- "updated_time": "2023-03-14T11:24:50-07:00",
- "created_by_id": "2c92c0946a6dffc0016a7faab604299b",
- "created_time": "2023-03-14T11:24:50-07:00",
- "custom_fields": {
- "BusinessUnit__c": null,
- "testDate__c": null,
- "TestSubscriptionRequired__c": "testValue",
- "Cancel_Reason_Code__c": "Customer Initiated",
- "XiOEndUser__c": null
}, - "subscription_number": "A-S0001389201234",
- "state": "active",
- "version": 15,
- "account_id": "8ad08d29857fc0ec0185829faf0507d7",
- "invoice_owner_account_id": "8ad08d2986df2c8b0186e0e6080c472f",
- "auto_renew": false,
- "latest_version": true,
- "initial_term": {
- "type": "termed",
- "interval_count": 1,
- "interval": "year"
}, - "current_term": {
- "type": "termed",
- "start_date": "2023-03-07",
- "end_date": "2024-03-07",
- "interval_count": 1,
- "interval": "year"
}, - "renewal_term": {
- "type": "evergreen"
}, - "start_date": "2023-03-07",
- "end_date": "2024-03-07",
- "description": "",
- "contract_effective": "2023-03-07",
- "service_activation": "2023-03-07",
- "customer_acceptance": "2023-03-07",
- "invoice_separately": false,
- "bill_to_id": null,
- "payment_terms": null,
- "billing_document_settings": {
- "sequence_set_id": null,
- "template_id": null
}
}, - {
- "id": "8ad08ccf8437067601843a7af4e64rq3",
- "updated_by_id": "2c92c0946a6dffc0016a7faab604299b",
- "updated_time": "2023-03-14T11:24:50-07:00",
- "created_by_id": "2c92c0946a6dffc0016a7faab604299b",
- "created_time": "2023-03-14T11:24:50-07:00",
- "custom_fields": {
- "BusinessUnit__c": null,
- "testDate__c": null,
- "TestSubscriptionRequired__c": "testValue",
- "Cancel_Reason_Code__c": "Customer Initiated",
- "XiOEndUser__c": null
}, - "subscription_number": "A-S0001389201234",
- "state": "active",
- "version": 15,
- "account_id": "8ad08d29857fc0ec0185829faf0507d7",
- "invoice_owner_account_id": "8ad08d2986df2c8b0186e0e6080c472f",
- "auto_renew": false,
- "latest_version": true,
- "initial_term": {
- "type": "termed",
- "interval_count": 1,
- "interval": "year"
}, - "current_term": {
- "type": "termed",
- "start_date": "2023-03-07",
- "end_date": "2024-03-07",
- "interval_count": 1,
- "interval": "year"
}, - "renewal_term": {
- "type": "evergreen"
}, - "start_date": "2023-03-07",
- "end_date": "2024-03-07",
- "description": "",
- "contract_effective": "2023-03-07",
- "service_activation": "2023-03-07",
- "customer_acceptance": "2023-03-07",
- "invoice_separately": false,
- "bill_to_id": null,
- "payment_terms": null,
- "billing_document_settings": {
- "sequence_set_id": null,
- "template_id": null
}
}, - {
- "id": "8ad08ccf8437067601843a7af4e64rq3",
- "updated_by_id": "2c92c0946a6dffc0016a7faab604299b",
- "updated_time": "2023-03-14T11:24:50-07:00",
- "created_by_id": "2c92c0946a6dffc0016a7faab604299b",
- "created_time": "2023-03-14T11:24:50-07:00",
- "custom_fields": {
- "BusinessUnit__c": null,
- "testDate__c": null,
- "TestSubscriptionRequired__c": "testValue",
- "Cancel_Reason_Code__c": "Customer Initiated",
- "XiOEndUser__c": null
}, - "subscription_number": "A-S0001389201234",
- "state": "active",
- "version": 15,
- "account_id": "8ad08d29857fc0ec0185829faf0507d7",
- "invoice_owner_account_id": "8ad08d2986df2c8b0186e0e6080c472f",
- "auto_renew": false,
- "latest_version": true,
- "initial_term": {
- "type": "termed",
- "interval_count": 1,
- "interval": "year"
}, - "current_term": {
- "type": "termed",
- "start_date": "2023-03-07",
- "end_date": "2024-03-07",
- "interval_count": 1,
- "interval": "year"
}, - "renewal_term": {
- "type": "evergreen"
}, - "start_date": "2023-03-07",
- "end_date": "2024-03-07",
- "description": "",
- "contract_effective": "2023-03-07",
- "service_activation": "2023-03-07",
- "customer_acceptance": "2023-03-07",
- "invoice_separately": false,
- "bill_to_id": null,
- "payment_terms": null,
- "billing_document_settings": {
- "sequence_set_id": null,
- "template_id": null
}
}, - {
- "id": "8ad08ccf8437067601843a7af4e64rq3",
- "updated_by_id": "2c92c0946a6dffc0016a7faab604299b",
- "updated_time": "2023-03-14T11:24:50-07:00",
- "created_by_id": "2c92c0946a6dffc0016a7faab604299b",
- "created_time": "2023-03-14T11:24:50-07:00",
- "custom_fields": {
- "BusinessUnit__c": null,
- "testDate__c": null,
- "TestSubscriptionRequired__c": "testValue",
- "Cancel_Reason_Code__c": "Customer Initiated",
- "XiOEndUser__c": null
}, - "subscription_number": "A-S0001389201234",
- "state": "active",
- "version": 15,
- "account_id": "8ad08d29857fc0ec0185829faf0507d7",
- "invoice_owner_account_id": "8ad08d2986df2c8b0186e0e6080c472f",
- "auto_renew": false,
- "latest_version": true,
- "initial_term": {
- "type": "termed",
- "interval_count": 1,
- "interval": "year"
}, - "current_term": {
- "type": "termed",
- "start_date": "2023-03-07",
- "end_date": "2024-03-07",
- "interval_count": 1,
- "interval": "year"
}, - "renewal_term": {
- "type": "evergreen"
}, - "start_date": "2023-03-07",
- "end_date": "2024-03-07",
- "description": "",
- "contract_effective": "2023-03-07",
- "service_activation": "2023-03-07",
- "customer_acceptance": "2023-03-07",
- "invoice_separately": false,
- "bill_to_id": null,
- "payment_terms": null,
- "billing_document_settings": {
- "sequence_set_id": null,
- "template_id": null
}
}, - {
- "id": "8ad08ccf8437067601843a7af4e64rq3",
- "updated_by_id": "2c92c0946a6dffc0016a7faab604299b",
- "updated_time": "2023-03-14T11:24:50-07:00",
- "created_by_id": "2c92c0946a6dffc0016a7faab604299b",
- "created_time": "2023-03-14T11:24:50-07:00",
- "custom_fields": {
- "BusinessUnit__c": null,
- "testDate__c": null,
- "TestSubscriptionRequired__c": "testValue",
- "Cancel_Reason_Code__c": "Customer Initiated",
- "XiOEndUser__c": null
}, - "subscription_number": "A-S0001389201234",
- "state": "active",
- "version": 15,
- "account_id": "8ad08d29857fc0ec0185829faf0507d7",
- "invoice_owner_account_id": "8ad08d2986df2c8b0186e0e6080c472f",
- "auto_renew": false,
- "latest_version": true,
- "initial_term": {
- "type": "termed",
- "interval_count": 1,
- "interval": "year"
}, - "current_term": {
- "type": "termed",
- "start_date": "2023-03-07",
- "end_date": "2024-03-07",
- "interval_count": 1,
- "interval": "year"
}, - "renewal_term": {
- "type": "evergreen"
}, - "start_date": "2023-03-07",
- "end_date": "2024-03-07",
- "description": "",
- "contract_effective": "2023-03-07",
- "service_activation": "2023-03-07",
- "customer_acceptance": "2023-03-07",
- "invoice_separately": false,
- "bill_to_id": null,
- "payment_terms": null,
- "billing_document_settings": {
- "sequence_set_id": null,
- "template_id": null
}
}
]
}