Method: Noths::OrdersApi#orders_order_details_bulk_with_http_info
- Defined in:
- lib/noths/api/orders_api.rb
#orders_order_details_bulk_with_http_info(payload, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Generate pdf with order details for each order <p/> Here is an example of how to obtain a pdf using curl: <pre>curl -H "Content-Type: application/json" -d '[123, 456]' -XPOST [URL] > document.pdf</pre><p/> Ensure that the Content-Type header is set to "Content-Type: application/json".<p/>
730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 |
# File 'lib/noths/api/orders_api.rb', line 730 def orders_order_details_bulk_with_http_info(payload, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: OrdersApi.orders_order_details_bulk ..." end # verify the required parameter 'payload' is set if @api_client.config.client_side_validation && payload.nil? fail ArgumentError, "Missing the required parameter 'payload' when calling OrdersApi.orders_order_details_bulk" end # resource path local_var_path = "/api/v1/orders/order_details" # query parameters query_params = {} # header parameters header_params = {} # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(payload) auth_names = ['token'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: OrdersApi#orders_order_details_bulk\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |