/// <summary> /// Update Webhook. Update a webhook in the ChannelEngine. /// </summary> /// <exception cref="ChannelEngine.Merchant.ApiClient.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="merchantWebhookRequest"> (optional)</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> public async System.Threading.Tasks.Task <ApiResponse> WebhooksUpdateAsync(MerchantWebhookRequest merchantWebhookRequest = default(MerchantWebhookRequest), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { ChannelEngine.Merchant.ApiClient.Client.ApiResponse <ApiResponse> localVarResponse = await WebhooksUpdateWithHttpInfoAsync(merchantWebhookRequest, cancellationToken).ConfigureAwait(false); return(localVarResponse.Data); }
/// <summary> /// Get Webhooks. Get all webhooks created in the ChannelEngine. /// </summary> /// <exception cref="ChannelEngine.Merchant.ApiClient.Client.ApiException">Thrown when fails to make API call</exception> /// <returns>CollectionOfMerchantWebhookResponse</returns> public CollectionOfMerchantWebhookResponse WebhooksGetAll() { ChannelEngine.Merchant.ApiClient.Client.ApiResponse <CollectionOfMerchantWebhookResponse> localVarResponse = WebhooksGetAllWithHttpInfo(); return(localVarResponse.Data); }
/// <summary> /// Update Webhook. Update a webhook in the ChannelEngine. /// </summary> /// <exception cref="ChannelEngine.Merchant.ApiClient.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="merchantWebhookRequest"> (optional)</param> /// <returns>ApiResponse</returns> public ApiResponse WebhooksUpdate(MerchantWebhookRequest merchantWebhookRequest = default(MerchantWebhookRequest)) { ChannelEngine.Merchant.ApiClient.Client.ApiResponse <ApiResponse> localVarResponse = WebhooksUpdateWithHttpInfo(merchantWebhookRequest); return(localVarResponse.Data); }
/// <summary> /// Get the stock locations (or virtual warehouses). Get the different stock locations (or virtual warehouses) that are in use.<br />This may include stock locations for 'fulfillment by ... (Amazon/bol/CDiscount)' (FBA/LVB/FBC) solutions.<br />You can use the id's to get to stock of products in specific stock location, e.g. the FBA stock for the products. /// </summary> /// <exception cref="ChannelEngine.Merchant.ApiClient.Client.ApiException">Thrown when fails to make API call</exception> /// <returns>CollectionOfMerchantStockLocationResponse</returns> public CollectionOfMerchantStockLocationResponse StockLocationIndex() { ChannelEngine.Merchant.ApiClient.Client.ApiResponse <CollectionOfMerchantStockLocationResponse> localVarResponse = StockLocationIndexWithHttpInfo(); return(localVarResponse.Data); }
/// <summary> /// Get stock for products. Get stock of products at stock location(s). /// </summary> /// <exception cref="ChannelEngine.Merchant.ApiClient.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="stockLocationIds">The ChannelEngine id of the stock location(s).</param> /// <param name="skus">List of your products' sku's. (optional)</param> /// <param name="pageIndex">A page index to get the items (starts from 0) (optional)</param> /// <param name="pageSize">Number of items to return (default 100) (optional)</param> /// <returns>CollectionOfMerchantOfferGetStockResponse</returns> public CollectionOfMerchantOfferGetStockResponse OfferGetStock(List <int> stockLocationIds, List <string> skus = default(List <string>), int?pageIndex = default(int?), int?pageSize = default(int?)) { ChannelEngine.Merchant.ApiClient.Client.ApiResponse <CollectionOfMerchantOfferGetStockResponse> localVarResponse = OfferGetStockWithHttpInfo(stockLocationIds, skus, pageIndex, pageSize); return(localVarResponse.Data); }
/// <summary> /// Get settings. Get merchant base info, settings and vat number. /// </summary> /// <exception cref="ChannelEngine.Merchant.ApiClient.Client.ApiException">Thrown when fails to make API call</exception> /// <returns>SingleOfMerchantSettingsResponse</returns> public SingleOfMerchantSettingsResponse SettingsGet() { ChannelEngine.Merchant.ApiClient.Client.ApiResponse <SingleOfMerchantSettingsResponse> localVarResponse = SettingsGetWithHttpInfo(); return(localVarResponse.Data); }
/// <summary> /// Get product bundles. You can get the full product information on bundles from the regular /products endpoint. /// </summary> /// <exception cref="ChannelEngine.Merchant.ApiClient.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="search">Search product(s) by Name, MerchantProductNo, Ean or Brand<br />This search is applied to the result after applying the other filters. (optional)</param> /// <param name="eanList">Search products by submitting a list of EAN's. (optional)</param> /// <param name="merchantProductNoList">Search products by submitting a list of MerchantProductNo's. (optional)</param> /// <param name="page">The page to filter on. Starts at 1. (optional)</param> /// <returns>CollectionOfMerchantProductBundleResponse</returns> public CollectionOfMerchantProductBundleResponse ProductBundleGetByFilter(string search = default(string), List <string> eanList = default(List <string>), List <string> merchantProductNoList = default(List <string>), int?page = default(int?)) { ChannelEngine.Merchant.ApiClient.Client.ApiResponse <CollectionOfMerchantProductBundleResponse> localVarResponse = ProductBundleGetByFilterWithHttpInfo(search, eanList, merchantProductNoList, page); return(localVarResponse.Data); }
/// <summary> /// Get Channels. Get all channels (excluding deleted ones).<br />You can use the returned ids to query the listed products for this channel from the ListedProducts endpoint. /// </summary> /// <exception cref="ChannelEngine.Merchant.ApiClient.Client.ApiException">Thrown when fails to make API call</exception> /// <returns>CollectionOfChannelGlobalChannelResponse</returns> public CollectionOfChannelGlobalChannelResponse ChannelPluginsGet() { ChannelEngine.Merchant.ApiClient.Client.ApiResponse <CollectionOfChannelGlobalChannelResponse> localVarResponse = ChannelPluginsGetWithHttpInfo(); return(localVarResponse.Data); }
/// <summary> /// Get Channels. Get all channels (excluding deleted ones).<br />You can use the returned ids to query the listed products for this channel from the ListedProducts endpoint. /// </summary> /// <exception cref="ChannelEngine.Merchant.ApiClient.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of CollectionOfChannelGlobalChannelResponse</returns> public async System.Threading.Tasks.Task <CollectionOfChannelGlobalChannelResponse> ChannelPluginsGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { ChannelEngine.Merchant.ApiClient.Client.ApiResponse <CollectionOfChannelGlobalChannelResponse> localVarResponse = await ChannelPluginsGetWithHttpInfoAsync(cancellationToken).ConfigureAwait(false); return(localVarResponse.Data); }
/// <summary> /// Get Notifications. Gets all notifications based on filter. /// </summary> /// <exception cref="ChannelEngine.Merchant.ApiClient.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="fromDate">Filter on the notification date, starting from this date. This date is inclusive. (optional)</param> /// <param name="toDate">Filter on the notification date, until this date. This date is exclusive. (optional)</param> /// <param name="types">Notification type(s) to filter on. (optional)</param> /// <param name="merchantOrderNos">Filter on unique order reference used by the merchant. (optional)</param> /// <param name="channelOrderNos">Filter on unique order reference used by the channel. (optional)</param> /// <param name="merchantReturnNos">Filter on unique return reference used by the merchant. (optional)</param> /// <param name="channelReturnNos">Filter on unique return reference used by the channel. (optional)</param> /// <param name="merchantShipmentNos">Filter on unique shipment reference used by the merchant. (optional)</param> /// <param name="page">The page to filter on. Starts at 1. (optional)</param> /// <returns>CollectionOfMerchantNotificationResponse</returns> public CollectionOfMerchantNotificationResponse NotificationIndex(DateTime?fromDate = default(DateTime?), DateTime?toDate = default(DateTime?), List <NotificationType> types = default(List <NotificationType>), List <string> merchantOrderNos = default(List <string>), List <string> channelOrderNos = default(List <string>), List <string> merchantReturnNos = default(List <string>), List <string> channelReturnNos = default(List <string>), List <string> merchantShipmentNos = default(List <string>), int?page = default(int?)) { ChannelEngine.Merchant.ApiClient.Client.ApiResponse <CollectionOfMerchantNotificationResponse> localVarResponse = NotificationIndexWithHttpInfo(fromDate, toDate, types, merchantOrderNos, channelOrderNos, merchantReturnNos, channelReturnNos, merchantShipmentNos, page); return(localVarResponse.Data); }
/// <summary> /// Get Notifications. Gets all notifications based on filter. /// </summary> /// <exception cref="ChannelEngine.Merchant.ApiClient.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="fromDate">Filter on the notification date, starting from this date. This date is inclusive. (optional)</param> /// <param name="toDate">Filter on the notification date, until this date. This date is exclusive. (optional)</param> /// <param name="types">Notification type(s) to filter on. (optional)</param> /// <param name="merchantOrderNos">Filter on unique order reference used by the merchant. (optional)</param> /// <param name="channelOrderNos">Filter on unique order reference used by the channel. (optional)</param> /// <param name="merchantReturnNos">Filter on unique return reference used by the merchant. (optional)</param> /// <param name="channelReturnNos">Filter on unique return reference used by the channel. (optional)</param> /// <param name="merchantShipmentNos">Filter on unique shipment reference used by the merchant. (optional)</param> /// <param name="page">The page to filter on. Starts at 1. (optional)</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of CollectionOfMerchantNotificationResponse</returns> public async System.Threading.Tasks.Task <CollectionOfMerchantNotificationResponse> NotificationIndexAsync(DateTime?fromDate = default(DateTime?), DateTime?toDate = default(DateTime?), List <NotificationType> types = default(List <NotificationType>), List <string> merchantOrderNos = default(List <string>), List <string> channelOrderNos = default(List <string>), List <string> merchantReturnNos = default(List <string>), List <string> channelReturnNos = default(List <string>), List <string> merchantShipmentNos = default(List <string>), int?page = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { ChannelEngine.Merchant.ApiClient.Client.ApiResponse <CollectionOfMerchantNotificationResponse> localVarResponse = await NotificationIndexWithHttpInfoAsync(fromDate, toDate, types, merchantOrderNos, channelOrderNos, merchantReturnNos, channelReturnNos, merchantShipmentNos, page, cancellationToken).ConfigureAwait(false); return(localVarResponse.Data); }
/// <summary> /// Update only stock. Update only stock of product(s). /// </summary> /// <exception cref="ChannelEngine.Merchant.ApiClient.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="merchantOfferStockUpdateRequest">References to the new values for the stock fields</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of SingleOfDictionaryOfStringAndListOfString</returns> public async System.Threading.Tasks.Task <SingleOfDictionaryOfStringAndListOfString> OfferStockUpdateAsync(List <MerchantOfferStockUpdateRequest> merchantOfferStockUpdateRequest, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { ChannelEngine.Merchant.ApiClient.Client.ApiResponse <SingleOfDictionaryOfStringAndListOfString> localVarResponse = await OfferStockUpdateWithHttpInfoAsync(merchantOfferStockUpdateRequest, cancellationToken).ConfigureAwait(false); return(localVarResponse.Data); }
/// <summary> /// Update only stock. Update only stock of product(s). /// </summary> /// <exception cref="ChannelEngine.Merchant.ApiClient.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="merchantOfferStockUpdateRequest">References to the new values for the stock fields</param> /// <returns>SingleOfDictionaryOfStringAndListOfString</returns> public SingleOfDictionaryOfStringAndListOfString OfferStockUpdate(List <MerchantOfferStockUpdateRequest> merchantOfferStockUpdateRequest) { ChannelEngine.Merchant.ApiClient.Client.ApiResponse <SingleOfDictionaryOfStringAndListOfString> localVarResponse = OfferStockUpdateWithHttpInfo(merchantOfferStockUpdateRequest); return(localVarResponse.Data); }
/// <summary> /// Get stock for products. Get stock of products at stock location(s). /// </summary> /// <exception cref="ChannelEngine.Merchant.ApiClient.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="stockLocationIds">The ChannelEngine id of the stock location(s).</param> /// <param name="skus">List of your products' sku's. (optional)</param> /// <param name="pageIndex">A page index to get the items (starts from 0) (optional)</param> /// <param name="pageSize">Number of items to return (default 100) (optional)</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of CollectionOfMerchantOfferGetStockResponse</returns> public async System.Threading.Tasks.Task <CollectionOfMerchantOfferGetStockResponse> OfferGetStockAsync(List <int> stockLocationIds, List <string> skus = default(List <string>), int?pageIndex = default(int?), int?pageSize = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { ChannelEngine.Merchant.ApiClient.Client.ApiResponse <CollectionOfMerchantOfferGetStockResponse> localVarResponse = await OfferGetStockWithHttpInfoAsync(stockLocationIds, skus, pageIndex, pageSize, cancellationToken).ConfigureAwait(false); return(localVarResponse.Data); }
/// <summary> /// Get Listed Products Gets the status of products listed for channel (export status) and on a channel (channel status).<br />Includes products that were previously deleted from but are now set to be created again.<br />Note: not all channels provide adequate options to retrieve the status on the channel. /// </summary> /// <exception cref="ChannelEngine.Merchant.ApiClient.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="channelId">The id of a channel</param> /// <param name="page">The page to filter on. Starts at 1. (optional)</param> /// <returns>CollectionOfChannelListedProductResponse</returns> public CollectionOfChannelListedProductResponse ListedProductGetByFilter(int channelId, int?page = default(int?)) { ChannelEngine.Merchant.ApiClient.Client.ApiResponse <CollectionOfChannelListedProductResponse> localVarResponse = ListedProductGetByFilterWithHttpInfo(channelId, page); return(localVarResponse.Data); }
/// <summary> /// Get the BuyBox winner prices Get the current price of the BuyBox winner per product for a channel. /// </summary> /// <exception cref="ChannelEngine.Merchant.ApiClient.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="channelId">The id of the channel (optional)</param> /// <param name="gtinList">Search products by submitting a list of GTIN's. (optional)<br />Max. 2000. (optional)</param> /// <param name="skuList">Search products by submitting a list of Sku's. (optional)<br />Max. 2000. If GtinList is already set, this one is ignored. (optional)</param> /// <param name="page">The page to filter on. Starts at 1. (optional)</param> /// <returns>CollectionOfMerchantProductWithBuyBoxPrice</returns> public CollectionOfMerchantProductWithBuyBoxPrice CompetitionPricesGetBuyBoxPrices(int?channelId = default(int?), List <string> gtinList = default(List <string>), List <string> skuList = default(List <string>), int?page = default(int?)) { ChannelEngine.Merchant.ApiClient.Client.ApiResponse <CollectionOfMerchantProductWithBuyBoxPrice> localVarResponse = CompetitionPricesGetBuyBoxPricesWithHttpInfo(channelId, gtinList, skuList, page); return(localVarResponse.Data); }
/// <summary> /// Get Listed Products Gets the status of products listed for channel (export status) and on a channel (channel status).<br />Includes products that were previously deleted from but are now set to be created again.<br />Note: not all channels provide adequate options to retrieve the status on the channel. /// </summary> /// <exception cref="ChannelEngine.Merchant.ApiClient.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="channelId">The id of a channel</param> /// <param name="page">The page to filter on. Starts at 1. (optional)</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of CollectionOfChannelListedProductResponse</returns> public async System.Threading.Tasks.Task <CollectionOfChannelListedProductResponse> ListedProductGetByFilterAsync(int channelId, int?page = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { ChannelEngine.Merchant.ApiClient.Client.ApiResponse <CollectionOfChannelListedProductResponse> localVarResponse = await ListedProductGetByFilterWithHttpInfoAsync(channelId, page, cancellationToken).ConfigureAwait(false); return(localVarResponse.Data); }
/// <summary> /// Get the BuyBox winner prices Get the current price of the BuyBox winner per product for a channel. /// </summary> /// <exception cref="ChannelEngine.Merchant.ApiClient.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="channelId">The id of the channel (optional)</param> /// <param name="gtinList">Search products by submitting a list of GTIN's. (optional)<br />Max. 2000. (optional)</param> /// <param name="skuList">Search products by submitting a list of Sku's. (optional)<br />Max. 2000. If GtinList is already set, this one is ignored. (optional)</param> /// <param name="page">The page to filter on. Starts at 1. (optional)</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of CollectionOfMerchantProductWithBuyBoxPrice</returns> public async System.Threading.Tasks.Task <CollectionOfMerchantProductWithBuyBoxPrice> CompetitionPricesGetBuyBoxPricesAsync(int?channelId = default(int?), List <string> gtinList = default(List <string>), List <string> skuList = default(List <string>), int?page = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { ChannelEngine.Merchant.ApiClient.Client.ApiResponse <CollectionOfMerchantProductWithBuyBoxPrice> localVarResponse = await CompetitionPricesGetBuyBoxPricesWithHttpInfoAsync(channelId, gtinList, skuList, page, cancellationToken).ConfigureAwait(false); return(localVarResponse.Data); }
/// <summary> /// Get settings. Get merchant base info, settings and vat number. /// </summary> /// <exception cref="ChannelEngine.Merchant.ApiClient.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of SingleOfMerchantSettingsResponse</returns> public async System.Threading.Tasks.Task <SingleOfMerchantSettingsResponse> SettingsGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { ChannelEngine.Merchant.ApiClient.Client.ApiResponse <SingleOfMerchantSettingsResponse> localVarResponse = await SettingsGetWithHttpInfoAsync(cancellationToken).ConfigureAwait(false); return(localVarResponse.Data); }
/// <summary> /// Delete Webhook. Delete a webhook based on the webhook name. /// </summary> /// <exception cref="ChannelEngine.Merchant.ApiClient.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="webhookName">The unique name of a webhook you want to delete.</param> /// <returns>ApiResponse</returns> public ApiResponse WebhooksDelete(string webhookName) { ChannelEngine.Merchant.ApiClient.Client.ApiResponse <ApiResponse> localVarResponse = WebhooksDeleteWithHttpInfo(webhookName); return(localVarResponse.Data); }
/// <summary> /// Get product bundles. You can get the full product information on bundles from the regular /products endpoint. /// </summary> /// <exception cref="ChannelEngine.Merchant.ApiClient.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="search">Search product(s) by Name, MerchantProductNo, Ean or Brand<br />This search is applied to the result after applying the other filters. (optional)</param> /// <param name="eanList">Search products by submitting a list of EAN's. (optional)</param> /// <param name="merchantProductNoList">Search products by submitting a list of MerchantProductNo's. (optional)</param> /// <param name="page">The page to filter on. Starts at 1. (optional)</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of CollectionOfMerchantProductBundleResponse</returns> public async System.Threading.Tasks.Task <CollectionOfMerchantProductBundleResponse> ProductBundleGetByFilterAsync(string search = default(string), List <string> eanList = default(List <string>), List <string> merchantProductNoList = default(List <string>), int?page = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { ChannelEngine.Merchant.ApiClient.Client.ApiResponse <CollectionOfMerchantProductBundleResponse> localVarResponse = await ProductBundleGetByFilterWithHttpInfoAsync(search, eanList, merchantProductNoList, page, cancellationToken).ConfigureAwait(false); return(localVarResponse.Data); }
/// <summary> /// Delete Webhook. Delete a webhook based on the webhook name. /// </summary> /// <exception cref="ChannelEngine.Merchant.ApiClient.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="webhookName">The unique name of a webhook you want to delete.</param> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of ApiResponse</returns> public async System.Threading.Tasks.Task <ApiResponse> WebhooksDeleteAsync(string webhookName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { ChannelEngine.Merchant.ApiClient.Client.ApiResponse <ApiResponse> localVarResponse = await WebhooksDeleteWithHttpInfoAsync(webhookName, cancellationToken).ConfigureAwait(false); return(localVarResponse.Data); }
/// <summary> /// Get the stock locations (or virtual warehouses). Get the different stock locations (or virtual warehouses) that are in use.<br />This may include stock locations for 'fulfillment by ... (Amazon/bol/CDiscount)' (FBA/LVB/FBC) solutions.<br />You can use the id's to get to stock of products in specific stock location, e.g. the FBA stock for the products. /// </summary> /// <exception cref="ChannelEngine.Merchant.ApiClient.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="cancellationToken">Cancellation Token to cancel the request.</param> /// <returns>Task of CollectionOfMerchantStockLocationResponse</returns> public async System.Threading.Tasks.Task <CollectionOfMerchantStockLocationResponse> StockLocationIndexAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { ChannelEngine.Merchant.ApiClient.Client.ApiResponse <CollectionOfMerchantStockLocationResponse> localVarResponse = await StockLocationIndexWithHttpInfoAsync(cancellationToken).ConfigureAwait(false); return(localVarResponse.Data); }
/// <summary> /// Create Cancellation. Mark (part of) an order as cancelled. /// </summary> /// <exception cref="ChannelEngine.Merchant.ApiClient.Client.ApiException">Thrown when fails to make API call</exception> /// <param name="merchantCancellationRequest"> (optional)</param> /// <returns>ApiResponse</returns> public ApiResponse CancellationCreate(MerchantCancellationRequest merchantCancellationRequest = default(MerchantCancellationRequest)) { ChannelEngine.Merchant.ApiClient.Client.ApiResponse <ApiResponse> localVarResponse = CancellationCreateWithHttpInfo(merchantCancellationRequest); return(localVarResponse.Data); }