You are here

public function MailchimpEcommerce::deleteProductVariant in Mailchimp 8

Delete a specific variant of a specific product.

Parameters

string $store_id: The store ID.

string $product_id: The product ID.

string $variant_id: The variant ID.

Return value

object The API product variant response object.

Throws

\Mailchimp\MailchimpAPIException

See also

http://developer.mailchimp.com/documentation/mailchimp/reference/ecommer...

File

lib/mailchimp-api-php/src/MailchimpEcommerce.php, line 1019

Class

MailchimpEcommerce
Mailchimp Ecommerce library.

Namespace

Mailchimp

Code

public function deleteProductVariant($store_id, $product_id, $variant_id) {
  $tokens = [
    'store_id' => $store_id,
    'product_id' => $product_id,
    'variant_id' => $variant_id,
  ];
  return $this
    ->request('DELETE', '/ecommerce/stores/{store_id}/products/{product_id}/variants/{variant_id}', $tokens);
}