# UltracartClient::ChannelPartnerApi All URIs are relative to *https://secure.ultracart.com/rest/v2* Method | HTTP request | Description ------------- | ------------- | ------------- [**cancel_order_by_channel_partner_order_id**](ChannelPartnerApi.md#cancel_order_by_channel_partner_order_id) | **DELETE** /channel_partner/cancel/by_channel_partner_order_id/{order_id} | Cancel channel partner order by channel partner order id [**cancel_order_by_ultra_cart_order_id**](ChannelPartnerApi.md#cancel_order_by_ultra_cart_order_id) | **DELETE** /channel_partner/cancel/by_ultracart_order_id/{order_id} | Cancel channel partner order by UltraCart order id [**estimate_shipping_for_channel_partner_order**](ChannelPartnerApi.md#estimate_shipping_for_channel_partner_order) | **POST** /channel_partner/estimate_shipping | Estimate shipping for channel partner order [**estimate_tax_for_channel_partner_order**](ChannelPartnerApi.md#estimate_tax_for_channel_partner_order) | **POST** /channel_partner/estimate_tax | Estimate tax for channel partner order [**import_channel_partner_order**](ChannelPartnerApi.md#import_channel_partner_order) | **POST** /channel_partner/import | Insert channel partner order # **cancel_order_by_channel_partner_order_id** > ChannelPartnerCancelResponse cancel_order_by_channel_partner_order_id(order_id) Cancel channel partner order by channel partner order id Cancel channel partner order by channel partner order id ### Example ```ruby # load the gem require 'ultracart_api' # Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00' api_instance = UltracartClient::ChannelPartnerApi.new_using_api_key(simple_key, false, false) order_id = 'order_id_example' # String | The channel partner order id to delete. begin #Cancel channel partner order by channel partner order id result = api_instance.cancel_order_by_channel_partner_order_id(order_id) p result rescue UltracartClient::ApiError => e puts "Exception when calling ChannelPartnerApi->cancel_order_by_channel_partner_order_id: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **order_id** | **String**| The channel partner order id to delete. | ### Return type [**ChannelPartnerCancelResponse**](ChannelPartnerCancelResponse.md) ### Authorization [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json # **cancel_order_by_ultra_cart_order_id** > ChannelPartnerCancelResponse cancel_order_by_ultra_cart_order_id(order_id) Cancel channel partner order by UltraCart order id Cancel channel partner order by UltraCart order id ### Example ```ruby # load the gem require 'ultracart_api' # Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00' api_instance = UltracartClient::ChannelPartnerApi.new_using_api_key(simple_key, false, false) order_id = 'order_id_example' # String | The UltraCart order id to delete. begin #Cancel channel partner order by UltraCart order id result = api_instance.cancel_order_by_ultra_cart_order_id(order_id) p result rescue UltracartClient::ApiError => e puts "Exception when calling ChannelPartnerApi->cancel_order_by_ultra_cart_order_id: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **order_id** | **String**| The UltraCart order id to delete. | ### Return type [**ChannelPartnerCancelResponse**](ChannelPartnerCancelResponse.md) ### Authorization [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json # **estimate_shipping_for_channel_partner_order** > ChannelPartnerEstimateShippingResponse estimate_shipping_for_channel_partner_order(channel_partner_order) Estimate shipping for channel partner order Estimate shipping for order from a channel partner. ### Example ```ruby # load the gem require 'ultracart_api' # Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00' api_instance = UltracartClient::ChannelPartnerApi.new_using_api_key(simple_key, false, false) channel_partner_order = UltracartClient::ChannelPartnerOrder.new # ChannelPartnerOrder | Order needing shipping estimate begin #Estimate shipping for channel partner order result = api_instance.estimate_shipping_for_channel_partner_order(channel_partner_order) p result rescue UltracartClient::ApiError => e puts "Exception when calling ChannelPartnerApi->estimate_shipping_for_channel_partner_order: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **channel_partner_order** | [**ChannelPartnerOrder**](ChannelPartnerOrder.md)| Order needing shipping estimate | ### Return type [**ChannelPartnerEstimateShippingResponse**](ChannelPartnerEstimateShippingResponse.md) ### Authorization [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey) ### HTTP request headers - **Content-Type**: application/json; charset=UTF-8 - **Accept**: application/json # **estimate_tax_for_channel_partner_order** > ChannelPartnerEstimateTaxResponse estimate_tax_for_channel_partner_order(channel_partner_order) Estimate tax for channel partner order Estimate tax for order from a channel partner. ### Example ```ruby # load the gem require 'ultracart_api' # Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00' api_instance = UltracartClient::ChannelPartnerApi.new_using_api_key(simple_key, false, false) channel_partner_order = UltracartClient::ChannelPartnerOrder.new # ChannelPartnerOrder | Order needing tax estimate begin #Estimate tax for channel partner order result = api_instance.estimate_tax_for_channel_partner_order(channel_partner_order) p result rescue UltracartClient::ApiError => e puts "Exception when calling ChannelPartnerApi->estimate_tax_for_channel_partner_order: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **channel_partner_order** | [**ChannelPartnerOrder**](ChannelPartnerOrder.md)| Order needing tax estimate | ### Return type [**ChannelPartnerEstimateTaxResponse**](ChannelPartnerEstimateTaxResponse.md) ### Authorization [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey) ### HTTP request headers - **Content-Type**: application/json; charset=UTF-8 - **Accept**: application/json # **import_channel_partner_order** > ChannelPartnerImportResponse import_channel_partner_order(channel_partner_order) Insert channel partner order Insert order from a channel partner. ### Example ```ruby # load the gem require 'ultracart_api' # Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00' api_instance = UltracartClient::ChannelPartnerApi.new_using_api_key(simple_key, false, false) channel_partner_order = UltracartClient::ChannelPartnerOrder.new # ChannelPartnerOrder | Order to insert begin #Insert channel partner order result = api_instance.import_channel_partner_order(channel_partner_order) p result rescue UltracartClient::ApiError => e puts "Exception when calling ChannelPartnerApi->import_channel_partner_order: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **channel_partner_order** | [**ChannelPartnerOrder**](ChannelPartnerOrder.md)| Order to insert | ### Return type [**ChannelPartnerImportResponse**](ChannelPartnerImportResponse.md) ### Authorization [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey) ### HTTP request headers - **Content-Type**: application/json; charset=UTF-8 - **Accept**: application/json