Adding product to website 3 always adds website 1 too

by James   Last Updated August 15, 2018 10:09 AM

I am in the midst of writing an integration between our ERP system and a new Magento 2 (version 2.2.5) website.

I have never used Magento before, and the setup of the site etc has been managed by a third party.

We have 3 websites, each with one store and one store view; NZ, AU, UK.

I am trying to create a product against our AU website, which is website ID 3.

To do so, I am sending the below request:

    "product": {
        "sku": "API_TEST-AU",
        "name": "Api Test AU",
        "price": 1337.00,
        "weight": 4.8,
        "visibility": 4,
        "type_id": "simple",
        "attribute_set_id": 4,
        "status": 1,
        "extension_attributes": {
            "website_ids": [
            "stock_item": {
                "qty": 5,
                "is_in_stock": true

However, when I send the request, the response shows that it has also been associated with website ID 1:

Postman request

Why does this happen and how do I prevent this from happening? I only want the product to be associated with the website IDs I have specified.

Related Questions

How to get category name in product rest api in M2

Updated October 25, 2018 09:09 AM

Request doesn't match any route

Updated November 05, 2018 11:09 AM

Product Attribute Options

Updated November 08, 2018 15:09 PM