All URIs are relative to https://rest.zuora.com
Method | HTTP request | Description |
---|---|---|
delete_order | DELETE /v1/orders/{orderNumber} | Delete order |
get_all_orders | GET /v1/orders | Get all orders |
get_order | GET /v1/orders/{orderNumber} | Get an order |
get_order_billing_info | GET /v1/orders/{orderNumber}/billingInfo | Get billing information for order |
get_order_metricsfor_evergreen_subscription | GET /v1/orders/{orderNumber}/evergreenMetrics/{subscriptionNumber} | Get order metrics for evergreen subscription |
get_order_rated_result | GET /v1/orders/{orderNumber}/ratedResults | Get rated result for order |
get_orders_by_invoice_owner | GET /v1/orders/invoiceOwner/{accountNumber} | Get orders by invoice owner |
get_orders_by_subscription_number | GET /v1/orders/subscription/{subscriptionNumber} | Get orders by subscription number |
get_orders_by_subscription_owner | GET /v1/orders/subscriptionOwner/{accountNumber} | Get orders by subscription owner |
post_order | POST /v1/orders | Create and activate order |
post_preview_order | POST /v1/orders/preview | Preview order |
put_update_order_custom_fields | PUT /v1/orders/{orderNumber}/customFields | Update order custom fields |
CommonResponse delete_order(order_number, opts)
Delete order
Note: This feature is only available if you have the Orders feature enabled. We are actively soliciting feedback from a small set of early adopters. If you wish to have access to the feature, submit a request at Zuora Global Support. Deletes a specified order. All the subscriptions changed by this order are deleted. After the deletion, the subscriptions are rolled back to the previous version. You are not allowed to delete an order if the charges that are affected by this order are invoiced.
# load the gem
require 'zuora'
api_instance = Zuora::OrdersApi.new
order_number = "order_number_example" # String | The number of the order to be deleted.
opts = {
entity_id: "entity_id_example", # String | The Id of the entity that you want to access. Note that you must have permission to access the entity. For more information, see [REST Authentication](https://www.zuora.com/developer/api-reference/#section/Authentication/Entity-Id-and-Entity-Name).
entity_name: "entity_name_example" # String | The [name of the entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity/B_Introduction_to_Entity_and_Entity_Hierarchy#Name_and_Display_Name) that you want to access. Note that you must have permission to access the entity. For more information, see [REST Authentication](https://www.zuora.com/developer/api-reference/#section/Authentication/Entity-Id-and-Entity-Name).
}
begin
#Delete order
result = api_instance.delete_order(order_number, opts)
p result
rescue Zuora::ApiError => e
puts "Exception when calling OrdersApi->delete_order: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
order_number | String | The number of the order to be deleted. | |
entity_id | String | The Id of the entity that you want to access. Note that you must have permission to access the entity. For more information, see REST Authentication. | [optional] |
entity_name | String | The name of the entity that you want to access. Note that you must have permission to access the entity. For more information, see REST Authentication. | [optional] |
No authorization required
- Content-Type: application/json; charset=utf-8
- Accept: application/json; charset=utf-8
GetAllOrdersResponseType get_all_orders(opts)
Get all orders
Note: This feature is only available if you have the Order Metrics feature enabled. If you wish to have access to the feature, submit a request at Zuora Global Support. We will investigate your use cases and data before enabling this feature for you. If you have the Orders feature enabled, you already have the Order Metrics feature enabled. Retrieves information about all orders in your tenant. By default, it returns the first page of the orders.
# load the gem
require 'zuora'
api_instance = Zuora::OrdersApi.new
opts = {
entity_id: "entity_id_example", # String | The Id of the entity that you want to access. Note that you must have permission to access the entity. For more information, see [REST Authentication](https://www.zuora.com/developer/api-reference/#section/Authentication/Entity-Id-and-Entity-Name).
entity_name: "entity_name_example" # String | The [name of the entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity/B_Introduction_to_Entity_and_Entity_Hierarchy#Name_and_Display_Name) that you want to access. Note that you must have permission to access the entity. For more information, see [REST Authentication](https://www.zuora.com/developer/api-reference/#section/Authentication/Entity-Id-and-Entity-Name).
page: 1, # Integer | The page number of the orders retrieved.
page_size: 20 # Integer | Number of rows returned per page.
date_filter_option: "date_filter_option_example", # String | The date type to filter on.This field value can be orderDate or updatedDate. Default is orderDate.
start_date: Date.parse("2013-10-20"), # Date | The result will only contain the orders with the date of dateFilterOption later than or equal to this date.
end_date: Date.parse("2013-10-20") # Date | The result will only contains orders with the date of dateFilterOption earlier than or equal to this date.
}
begin
#Get all orders
result = api_instance.get_all_orders(opts)
p result
rescue Zuora::ApiError => e
puts "Exception when calling OrdersApi->get_all_orders: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
entity_id | String | The Id of the entity that you want to access. Note that you must have permission to access the entity. For more information, see REST Authentication. | [optional] |
entity_name | String | The name of the entity that you want to access. Note that you must have permission to access the entity. For more information, see REST Authentication. | [optional] |
page | Integer | The page number of the orders retrieved. | [optional] [default to 1] |
page_size | Integer | Number of rows returned per page. | [optional] [default to 20] |
date_filter_option | String | The date type to filter on.This field value can be orderDate or updatedDate. Default is orderDate. | [optional] |
start_date | Date | The result will only contain the orders with the date of dateFilterOption later than or equal to this date. | [optional] |
end_date | Date | The result will only contains orders with the date of dateFilterOption earlier than or equal to this date. | [optional] |
No authorization required
- Content-Type: application/json; charset=utf-8
- Accept: application/json; charset=utf-8
GetOrderResponse get_order(order_number, opts)
Get an order
Note: This feature is only available if you have the Order Metrics feature enabled. If you wish to have access to the feature, submit a request at Zuora Global Support. We will investigate your use cases and data before enabling this feature for you. If you have the Orders feature enabled, you already have the Order Metrics feature enabled. Retrieves the detailed information about a specified order.
# load the gem
require 'zuora'
api_instance = Zuora::OrdersApi.new
order_number = "order_number_example" # String | The order number to be retrieved.
opts = {
entity_id: "entity_id_example", # String | The Id of the entity that you want to access. Note that you must have permission to access the entity. For more information, see [REST Authentication](https://www.zuora.com/developer/api-reference/#section/Authentication/Entity-Id-and-Entity-Name).
entity_name: "entity_name_example" # String | The [name of the entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity/B_Introduction_to_Entity_and_Entity_Hierarchy#Name_and_Display_Name) that you want to access. Note that you must have permission to access the entity. For more information, see [REST Authentication](https://www.zuora.com/developer/api-reference/#section/Authentication/Entity-Id-and-Entity-Name).
}
begin
#Get an order
result = api_instance.get_order(order_number, opts)
p result
rescue Zuora::ApiError => e
puts "Exception when calling OrdersApi->get_order: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
order_number | String | The order number to be retrieved. | |
entity_id | String | The Id of the entity that you want to access. Note that you must have permission to access the entity. For more information, see REST Authentication. | [optional] |
entity_name | String | The name of the entity that you want to access. Note that you must have permission to access the entity. For more information, see REST Authentication. | [optional] |
No authorization required
- Content-Type: application/json; charset=utf-8
- Accept: application/json; charset=utf-8
GetOrderBillingInfoResponseType get_order_billing_info(order_number, opts)
Get billing information for order
Note: This feature is only available if you have the Order Metrics feature enabled. If you wish to have access to the feature, submit a request at Zuora Global Support. We will investigate your use cases and data before enabling this feature for you. If you have the Orders feature enabled, you already have the Order Metrics feature enabled. Retrieves the billing information about a specified order. The information includes the billed and unbilled amount of the order.
# load the gem
require 'zuora'
api_instance = Zuora::OrdersApi.new
order_number = "order_number_example" # String | The order number.
opts = {
entity_id: "entity_id_example", # String | The Id of the entity that you want to access. Note that you must have permission to access the entity. For more information, see [REST Authentication](https://www.zuora.com/developer/api-reference/#section/Authentication/Entity-Id-and-Entity-Name).
entity_name: "entity_name_example" # String | The [name of the entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity/B_Introduction_to_Entity_and_Entity_Hierarchy#Name_and_Display_Name) that you want to access. Note that you must have permission to access the entity. For more information, see [REST Authentication](https://www.zuora.com/developer/api-reference/#section/Authentication/Entity-Id-and-Entity-Name).
as_of_date: Date.parse("2013-10-20") # Date | Billing states of the order will be calculated as of this date. Invoices with the invoice date later than this date will not be counted into the billed amount. The default value is today.
}
begin
#Get billing information for order
result = api_instance.get_order_billing_info(order_number, opts)
p result
rescue Zuora::ApiError => e
puts "Exception when calling OrdersApi->get_order_billing_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
order_number | String | The order number. | |
entity_id | String | The Id of the entity that you want to access. Note that you must have permission to access the entity. For more information, see REST Authentication. | [optional] |
entity_name | String | The name of the entity that you want to access. Note that you must have permission to access the entity. For more information, see REST Authentication. | [optional] |
as_of_date | Date | Billing states of the order will be calculated as of this date. Invoices with the invoice date later than this date will not be counted into the billed amount. The default value is today. | [optional] |
GetOrderBillingInfoResponseType
No authorization required
- Content-Type: application/json; charset=utf-8
- Accept: application/json; charset=utf-8
GetOrderResponse get_order_metricsfor_evergreen_subscription(order_number, subscription_number, start_date, end_date, opts)
Get order metrics for evergreen subscription
Note: This feature is only available if you have the Order Metrics feature enabled. If you wish to have access to the feature, submit a request at Zuora Global Support. We will investigate your use cases and data before enabling this feature for you. If you have the Orders feature enabled, you already have the Order Metrics feature enabled. Retrieves the metrics of an evergreen subscription in a specified order.
# load the gem
require 'zuora'
api_instance = Zuora::OrdersApi.new
order_number = "order_number_example" # String | The order number.
subscription_number = "subscription_number_example" # String | The subscription number you want to get the metrics for.
start_date = Date.parse("2013-10-20") # Date | The start date of the date range for which you want to get the metrics. The date must be in yyyy-mm-dd format. For example, 2017-12-03.
end_date = Date.parse("2013-10-20") # Date | The end date of the date range for which you want to get the metrics. The date must be in yyyy-mm-dd format. For example, 2017-12-03.
opts = {
entity_id: "entity_id_example", # String | The Id of the entity that you want to access. Note that you must have permission to access the entity. For more information, see [REST Authentication](https://www.zuora.com/developer/api-reference/#section/Authentication/Entity-Id-and-Entity-Name).
entity_name: "entity_name_example" # String | The [name of the entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity/B_Introduction_to_Entity_and_Entity_Hierarchy#Name_and_Display_Name) that you want to access. Note that you must have permission to access the entity. For more information, see [REST Authentication](https://www.zuora.com/developer/api-reference/#section/Authentication/Entity-Id-and-Entity-Name).
}
begin
#Get order metrics for evergreen subscription
result = api_instance.get_order_metricsfor_evergreen_subscription(order_number, subscription_number, start_date, end_date, opts)
p result
rescue Zuora::ApiError => e
puts "Exception when calling OrdersApi->get_order_metricsfor_evergreen_subscription: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
order_number | String | The order number. | |
subscription_number | String | The subscription number you want to get the metrics for. | |
start_date | Date | The start date of the date range for which you want to get the metrics. The date must be in yyyy-mm-dd format. For example, 2017-12-03. | |
end_date | Date | The end date of the date range for which you want to get the metrics. The date must be in yyyy-mm-dd format. For example, 2017-12-03. | |
entity_id | String | The Id of the entity that you want to access. Note that you must have permission to access the entity. For more information, see REST Authentication. | [optional] |
entity_name | String | The name of the entity that you want to access. Note that you must have permission to access the entity. For more information, see REST Authentication. | [optional] |
No authorization required
- Content-Type: application/json; charset=utf-8
- Accept: application/json; charset=utf-8
GetOrderRatedResultResponseType get_order_rated_result(order_number, opts)
Get rated result for order
Note: This feature is only available if you have the Order Metrics feature enabled. If you wish to have access to the feature, submit a request at Zuora Global Support. We will investigate your use cases and data before enabling this feature for you. If you have the Orders feature enabled, you already have the Order Metrics feature enabled. Retrieves the rated results of all the subscriptions in the specified order.
# load the gem
require 'zuora'
api_instance = Zuora::OrdersApi.new
order_number = "order_number_example" # String | The order number.
opts = {
entity_id: "entity_id_example", # String | The Id of the entity that you want to access. Note that you must have permission to access the entity. For more information, see [REST Authentication](https://www.zuora.com/developer/api-reference/#section/Authentication/Entity-Id-and-Entity-Name).
entity_name: "entity_name_example" # String | The [name of the entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity/B_Introduction_to_Entity_and_Entity_Hierarchy#Name_and_Display_Name) that you want to access. Note that you must have permission to access the entity. For more information, see [REST Authentication](https://www.zuora.com/developer/api-reference/#section/Authentication/Entity-Id-and-Entity-Name).
}
begin
#Get rated result for order
result = api_instance.get_order_rated_result(order_number, opts)
p result
rescue Zuora::ApiError => e
puts "Exception when calling OrdersApi->get_order_rated_result: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
order_number | String | The order number. | |
entity_id | String | The Id of the entity that you want to access. Note that you must have permission to access the entity. For more information, see REST Authentication. | [optional] |
entity_name | String | The name of the entity that you want to access. Note that you must have permission to access the entity. For more information, see REST Authentication. | [optional] |
GetOrderRatedResultResponseType
No authorization required
- Content-Type: application/json; charset=utf-8
- Accept: application/json; charset=utf-8
GetOrdersResponse get_orders_by_invoice_owner(account_number, opts)
Get orders by invoice owner
Note: This feature is only available if you have the Order Metrics feature enabled. If you wish to have access to the feature, submit a request at Zuora Global Support. We will investigate your use cases and data before enabling this feature for you. If you have the Orders feature enabled, you already have the Order Metrics feature enabled. Retrieves the detailed information about all orders for a specified invoice owner.
# load the gem
require 'zuora'
api_instance = Zuora::OrdersApi.new
account_number = "account_number_example" # String | The invoice owner account number.
opts = {
entity_id: "entity_id_example", # String | The Id of the entity that you want to access. Note that you must have permission to access the entity. For more information, see [REST Authentication](https://www.zuora.com/developer/api-reference/#section/Authentication/Entity-Id-and-Entity-Name).
entity_name: "entity_name_example" # String | The [name of the entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity/B_Introduction_to_Entity_and_Entity_Hierarchy#Name_and_Display_Name) that you want to access. Note that you must have permission to access the entity. For more information, see [REST Authentication](https://www.zuora.com/developer/api-reference/#section/Authentication/Entity-Id-and-Entity-Name).
page: 56, # Integer | The page number of the orders retrieved. The default is 1.
page_size: 20 # Integer | Number of rows returned per page.
date_filter_option: "date_filter_option_example", # String | The date type to filter on. This field value can be orderDate or updatedDate. Default is orderDate.
start_date: Date.parse("2013-10-20"), # Date | The result will only contain the orders with the date of dateFilterOption later than or equal to this date.
end_date: Date.parse("2013-10-20") # Date | The result will only contain the orders with the date of dateFilterOption earlier than or equal to this date.
}
begin
#Get orders by invoice owner
result = api_instance.get_orders_by_invoice_owner(account_number, opts)
p result
rescue Zuora::ApiError => e
puts "Exception when calling OrdersApi->get_orders_by_invoice_owner: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
account_number | String | The invoice owner account number. | |
entity_id | String | The Id of the entity that you want to access. Note that you must have permission to access the entity. For more information, see REST Authentication. | [optional] |
entity_name | String | The name of the entity that you want to access. Note that you must have permission to access the entity. For more information, see REST Authentication. | [optional] |
page | Integer | The page number of the orders retrieved. The default is 1. | [optional] |
page_size | Integer | Number of rows returned per page. | [optional] [default to 20] |
date_filter_option | String | The date type to filter on. This field value can be orderDate or updatedDate. Default is orderDate. | [optional] |
start_date | Date | The result will only contain the orders with the date of dateFilterOption later than or equal to this date. | [optional] |
end_date | Date | The result will only contain the orders with the date of dateFilterOption earlier than or equal to this date. | [optional] |
No authorization required
- Content-Type: application/json; charset=utf-8
- Accept: application/json; charset=utf-8
GetOrdersResponse get_orders_by_subscription_number(subscription_number, opts)
Get orders by subscription number
Note: This feature is only available if you have the Order Metrics feature enabled. If you wish to have access to the feature, submit a request at Zuora Global Support. We will investigate your use cases and data before enabling this feature for you. If you have the Orders feature enabled, you already have the Order Metrics feature enabled. Retrieves the detailed information about all orders for a specified subscription. Any orders containing the changes on the specified subscription are returned.
# load the gem
require 'zuora'
api_instance = Zuora::OrdersApi.new
subscription_number = "subscription_number_example" # String | The subscription number.
opts = {
entity_id: "entity_id_example", # String | The Id of the entity that you want to access. Note that you must have permission to access the entity. For more information, see [REST Authentication](https://www.zuora.com/developer/api-reference/#section/Authentication/Entity-Id-and-Entity-Name).
entity_name: "entity_name_example" # String | The [name of the entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity/B_Introduction_to_Entity_and_Entity_Hierarchy#Name_and_Display_Name) that you want to access. Note that you must have permission to access the entity. For more information, see [REST Authentication](https://www.zuora.com/developer/api-reference/#section/Authentication/Entity-Id-and-Entity-Name).
page: 56, # Integer | The page number of the orders retrieved. The default is '1'.
page_size: 20 # Integer | Number of rows returned per page.
date_filter_option: "date_filter_option_example", # String | The date type to filter on. This field value can be 'orderDate' or 'updatedDate'. Default is orderDate.
start_date: Date.parse("2013-10-20"), # Date | The result will only contain the orders with the date of 'dateFilterOption' later than or equal to this date.
end_date: Date.parse("2013-10-20") # Date | The result will only contain the orders with the date of 'dateFilterOption' earlier than or equal to this date.
}
begin
#Get orders by subscription number
result = api_instance.get_orders_by_subscription_number(subscription_number, opts)
p result
rescue Zuora::ApiError => e
puts "Exception when calling OrdersApi->get_orders_by_subscription_number: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
subscription_number | String | The subscription number. | |
entity_id | String | The Id of the entity that you want to access. Note that you must have permission to access the entity. For more information, see REST Authentication. | [optional] |
entity_name | String | The name of the entity that you want to access. Note that you must have permission to access the entity. For more information, see REST Authentication. | [optional] |
page | Integer | The page number of the orders retrieved. The default is '1'. | [optional] |
page_size | Integer | Number of rows returned per page. | [optional] [default to 20] |
date_filter_option | String | The date type to filter on. This field value can be 'orderDate' or 'updatedDate'. Default is orderDate. | [optional] |
start_date | Date | The result will only contain the orders with the date of 'dateFilterOption' later than or equal to this date. | [optional] |
end_date | Date | The result will only contain the orders with the date of 'dateFilterOption' earlier than or equal to this date. | [optional] |
No authorization required
- Content-Type: application/json; charset=utf-8
- Accept: application/json; charset=utf-8
GetOrdersResponse get_orders_by_subscription_owner(account_number, opts)
Get orders by subscription owner
Note: This feature is only available if you have the Order Metrics feature enabled. If you wish to have access to the feature, submit a request at Zuora Global Support. We will investigate your use cases and data before enabling this feature for you. If you have the Orders feature enabled, you already have the Order Metrics feature enabled. 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.
# load the gem
require 'zuora'
api_instance = Zuora::OrdersApi.new
account_number = "account_number_example" # String | The subscription owner account number.
opts = {
entity_id: "entity_id_example", # String | The Id of the entity that you want to access. Note that you must have permission to access the entity. For more information, see [REST Authentication](https://www.zuora.com/developer/api-reference/#section/Authentication/Entity-Id-and-Entity-Name).
entity_name: "entity_name_example" # String | The [name of the entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity/B_Introduction_to_Entity_and_Entity_Hierarchy#Name_and_Display_Name) that you want to access. Note that you must have permission to access the entity. For more information, see [REST Authentication](https://www.zuora.com/developer/api-reference/#section/Authentication/Entity-Id-and-Entity-Name).
page: 56, # Integer | The page number of the orders retrieved. The default is 1.
page_size: 20 # Integer | Number of rows returned per page.
date_filter_option: "date_filter_option_example", # String | The date type to filter on. This field value can be 'orderDate' or 'updatedDate'. Default is orderDate.
start_date: Date.parse("2013-10-20"), # Date | The result will only contain the orders with the date of 'dateFilterOption' later than or equal to this date.
end_date: Date.parse("2013-10-20") # Date | The result will only contain the orders with the date of 'dateFilterOption' earlier than or equal to this date.
}
begin
#Get orders by subscription owner
result = api_instance.get_orders_by_subscription_owner(account_number, opts)
p result
rescue Zuora::ApiError => e
puts "Exception when calling OrdersApi->get_orders_by_subscription_owner: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
account_number | String | The subscription owner account number. | |
entity_id | String | The Id of the entity that you want to access. Note that you must have permission to access the entity. For more information, see REST Authentication. | [optional] |
entity_name | String | The name of the entity that you want to access. Note that you must have permission to access the entity. For more information, see REST Authentication. | [optional] |
page | Integer | The page number of the orders retrieved. The default is 1. | [optional] |
page_size | Integer | Number of rows returned per page. | [optional] [default to 20] |
date_filter_option | String | The date type to filter on. This field value can be 'orderDate' or 'updatedDate'. Default is orderDate. | [optional] |
start_date | Date | The result will only contain the orders with the date of 'dateFilterOption' later than or equal to this date. | [optional] |
end_date | Date | The result will only contain the orders with the date of 'dateFilterOption' earlier than or equal to this date. | [optional] |
No authorization required
- Content-Type: application/json; charset=utf-8
- Accept: application/json; charset=utf-8
PostOrderResponseType post_order(body, opts)
Create and activate order
Note: This feature is only available if you have the Orders feature enabled. We are actively soliciting feedback from a small set of early adopters. If you wish to have access to the feature, submit a request at Zuora Global Support. Creates and activates an order. You can create subscriptions and make changes to subscriptions by creating orders. Creating a draft order is currently not supported. See Known Limitations in Orders for more information.
# load the gem
require 'zuora'
api_instance = Zuora::OrdersApi.new
body = Zuora::POSTOrderRequestType.new # POSTOrderRequestType |
opts = {
entity_id: "entity_id_example", # String | The Id of the entity that you want to access. Note that you must have permission to access the entity. For more information, see [REST Authentication](https://www.zuora.com/developer/api-reference/#section/Authentication/Entity-Id-and-Entity-Name).
entity_name: "entity_name_example" # String | The [name of the entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity/B_Introduction_to_Entity_and_Entity_Hierarchy#Name_and_Display_Name) that you want to access. Note that you must have permission to access the entity. For more information, see [REST Authentication](https://www.zuora.com/developer/api-reference/#section/Authentication/Entity-Id-and-Entity-Name).
}
begin
#Create and activate order
result = api_instance.post_order(body, opts)
p result
rescue Zuora::ApiError => e
puts "Exception when calling OrdersApi->post_order: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
body | POSTOrderRequestType | ||
entity_id | String | The Id of the entity that you want to access. Note that you must have permission to access the entity. For more information, see REST Authentication. | [optional] |
entity_name | String | The name of the entity that you want to access. Note that you must have permission to access the entity. For more information, see REST Authentication. | [optional] |
No authorization required
- Content-Type: application/json; charset=utf-8
- Accept: application/json; charset=utf-8
PostOrderPreviewResponseType post_preview_order(body, opts)
Preview order
Note: This feature is only available if you have the Orders feature enabled. We are actively soliciting feedback from a small set of early adopters. If you wish to have access to the feature, submit a request at Zuora Global Support. Retrieves the preview of the charge metrics and invoice items of a specified order. This operation is only an order preview and no order is created.
# load the gem
require 'zuora'
api_instance = Zuora::OrdersApi.new
body = Zuora::POSTOrderPreviewRequestType.new # POSTOrderPreviewRequestType |
opts = {
entity_id: "entity_id_example", # String | The Id of the entity that you want to access. Note that you must have permission to access the entity. For more information, see [REST Authentication](https://www.zuora.com/developer/api-reference/#section/Authentication/Entity-Id-and-Entity-Name).
entity_name: "entity_name_example" # String | The [name of the entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity/B_Introduction_to_Entity_and_Entity_Hierarchy#Name_and_Display_Name) that you want to access. Note that you must have permission to access the entity. For more information, see [REST Authentication](https://www.zuora.com/developer/api-reference/#section/Authentication/Entity-Id-and-Entity-Name).
}
begin
#Preview order
result = api_instance.post_preview_order(body, opts)
p result
rescue Zuora::ApiError => e
puts "Exception when calling OrdersApi->post_preview_order: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
body | POSTOrderPreviewRequestType | ||
entity_id | String | The Id of the entity that you want to access. Note that you must have permission to access the entity. For more information, see REST Authentication. | [optional] |
entity_name | String | The name of the entity that you want to access. Note that you must have permission to access the entity. For more information, see REST Authentication. | [optional] |
No authorization required
- Content-Type: application/json; charset=utf-8
- Accept: application/json; charset=utf-8
CommonResponse put_update_order_custom_fields(order_number, body, opts)
Update order custom fields
Note: This feature is only available if you have the Orders feature enabled. We are actively soliciting feedback from a small set of early adopters. If you wish to have access to the feature, submit a request at Zuora Global Support. Updates the custom fields of a specified order.
# load the gem
require 'zuora'
api_instance = Zuora::OrdersApi.new
order_number = "order_number_example" # String | The order number.
body = Zuora::PUTOrderPatchRequestType.new # PUTOrderPatchRequestType |
opts = {
entity_id: "entity_id_example", # String | The Id of the entity that you want to access. Note that you must have permission to access the entity. For more information, see [REST Authentication](https://www.zuora.com/developer/api-reference/#section/Authentication/Entity-Id-and-Entity-Name).
entity_name: "entity_name_example" # String | The [name of the entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity/B_Introduction_to_Entity_and_Entity_Hierarchy#Name_and_Display_Name) that you want to access. Note that you must have permission to access the entity. For more information, see [REST Authentication](https://www.zuora.com/developer/api-reference/#section/Authentication/Entity-Id-and-Entity-Name).
}
begin
#Update order custom fields
result = api_instance.put_update_order_custom_fields(order_number, body, opts)
p result
rescue Zuora::ApiError => e
puts "Exception when calling OrdersApi->put_update_order_custom_fields: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
order_number | String | The order number. | |
body | PUTOrderPatchRequestType | ||
entity_id | String | The Id of the entity that you want to access. Note that you must have permission to access the entity. For more information, see REST Authentication. | [optional] |
entity_name | String | The name of the entity that you want to access. Note that you must have permission to access the entity. For more information, see REST Authentication. | [optional] |
No authorization required
- Content-Type: application/json; charset=utf-8
- Accept: application/json; charset=utf-8