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?