Delete SKU codes

Use the deleteSku method to remove product SKU codes through an API call using the below parameters.

Request parameters

Parameter
Type / Description

ProductCode

Requires (string) The product code that you can define for each of your offerings. Needs to be unique.

PriceConfigurations

Required (string)

PriceConfigurationCode

Required (string)

Unique identifier of the pricing configuration.

SkuCode

Required (string)

Unique identifier of the SKU schema.

Request sample

<?php

require ('PATH_TO_AUTH');

$product = new \stdClass();
$product->ProductCode= '6B3CB17DDA_COPY1';

$pricingConfiguration = new \stdClass();
$pricingConfiguration->PriceConfigurationCode = 'E684EC99B0';
$pricingConfiguration->SKUs = ['Product_Test_SKU_001050', 'Product_Test_SKU_001053'];

$product->PriceConfigurations = [$pricingConfiguration];

try {
    $skuOutput = $client->deleteSku($sessionID, [$product]);
} catch (SoapFault $e) {
    echo "deleteSku: " . $e->getMessage();
    exit;
}

var_dump("deleteSku", $skuOutput);

Response parameters

Parameter
Type

ProductCode

String

PriceConfigurations

String

PriceConfigurationCode

String

Response sample

Last updated

Was this helpful?