POST procuts.json does not work and results into "products" instead of "product"

Hi

The REST Admin API of one of our customers stores behaves differently to the ones of our other customers.

When we execute the request we always do to create a product the product wont be created

Also the response is like when we call GET /admin/api/2024-01/products.json.

Normally it gives out “product”: {“id”: …}

The customer gave us all rights for the “Admin Api access token”.

Why does the api act this way?

Could you use the productCreate mutation instead? eg:

mutation CreateProduct {
  productCreate(input: {
    title: "Sample Product",
    bodyHtml: "**Good product!**",
    vendor: "Vendor Name",
    productType: "Type",
    tags: ["tag1", "tag2"],
    variants: [
      {
        price: "19.99",
        sku: "SKU123",
        inventoryQuantity: 100
      }
    ]
  }) {
    product {
      id
      title
      variants(first: 10) {
        edges {
          node {
            id
            price
          }
        }
      }
    }
    userErrors {
      field
      message
    }
  }
}

Hi Liam

Thanks for looking at it.

The request gives out the error “Not Found” when i try it out with the affected customer.

https://secret.de/admin/api/2024-01/graphql.json

But its working for other customers.

This issue is very hard to troubleshoot here but if this is only happening for one specific merchant my instinct would be that perhaps another app could be somehow interfering with this mutation or there is possibly something unique about this store (specific beta flags enabled) that is causing this. Do you know what store plan this store is on?

The customer had told me that he was using the normal “Shopify plan”.
However, the customer did not know where he could view the extensions and beta flags.
Can you show me where the customer can see this?
Unfortunately, we don’t have access to his Shopify account ourselves

Hi Liam,

do you have any feedback on how the customer can view the beta flags and extensions?

Hey Liam,

it doesn’t work