From bcc1ae0c6518e50c88454e23988f26aa6d24dd28 Mon Sep 17 00:00:00 2001 From: mfernandezebo <157503467+mfernandezebo@users.noreply.github.com> Date: Wed, 24 Jan 2024 16:11:40 +0100 Subject: [PATCH] Update ProductVariantMetafieldsApi.php The correct url is https://api.bigcommerce.com/stores/{store_hash}/v3/catalog/catalog/products/{product_id}/variants/{variant_id}/metafields --- .../Products/ProductVariant/ProductVariantMetafieldsApi.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BigCommerce/Api/Catalog/Products/ProductVariant/ProductVariantMetafieldsApi.php b/src/BigCommerce/Api/Catalog/Products/ProductVariant/ProductVariantMetafieldsApi.php index f18eda35..c72b9a16 100644 --- a/src/BigCommerce/Api/Catalog/Products/ProductVariant/ProductVariantMetafieldsApi.php +++ b/src/BigCommerce/Api/Catalog/Products/ProductVariant/ProductVariantMetafieldsApi.php @@ -12,8 +12,8 @@ class ProductVariantMetafieldsApi extends ResourceApi private int $productId; private const RESOURCE_NAME = 'metafields'; - private const METAFIELD_ENDPOINT = 'catalog/product/%d/variants/%d/metafields/%d'; - private const METAFIELDS_ENDPOINT = 'catalog/product/%d/variants/%d/metafields'; + private const METAFIELD_ENDPOINT = 'catalog/products/%d/variants/%d/metafields/%d'; + private const METAFIELDS_ENDPOINT = 'catalog/products/%d/variants/%d/metafields'; public function getProductId(): int {