Can't create fulfillment service due to location name.

Highlighted
Shopify Partner
4 0 0

I'm having trouble understanding how to create fulfillment service with already existing location.

So there is this store which has location:

 

{
    "locations": [
        {
            "id": _loc_id_here_,
            "name": "Example",
            "address1": "England",
            "address2": "",
            "city": "UK",
            "zip": "W",
            "province": "",
            "country": "GB",
            "phone": "",
            "created_at": "2019-03-03T14:10:57+00:00",
            "updated_at": "2019-03-14T20:36:44+00:00",
            "country_code": "GB",
            "country_name": "United Kingdom",
            "province_code": null,
            "legacy": false,
            "active": true
        }
    ]
}

I'm trying to create fulfillment service for this store by posting this: 

 

{
  "fulfillment_service": {
    "inventory_management": false,
    "requires_shipping_method": true,
    "name": "Example",
    "tracking_support": false,
    "format": "json",
    "location_id":_loc_id_here_
  }
}

And I get this response 422 Unprocessable Entity:

{
    "errors": {
        "base": [
            "You already have a location with this name"
        ]
    }
}

 

I don't understand why I am getting this error. I'm trying to create a fulfillment service for existing location. Shouldn't this error appear if I tried to create a new location with the same name? 

0 Likes
Shopify Partner
4 0 0

Just experimented with this on admin panel.

I have 2 locations with names:
`aaa`
`bbb`

I can rename `bbb` -> `aaa` and have 2 locations with the same name = `aaa`

 

However I can't create a new location with name `aaa` because the name is taken.

0 Likes
Shopify Partner
4 0 0

Bumping this because it affects my integration a lot. 

0 Likes