Update a Stock Location
POST
/admin/stock-locations/{id}
Stock Locations
Request Request Example
JavaScript
Shell
Java
Swift
curl --location -g --request POST '{{BASE_URL}}/admin/stock-locations/' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "string",
"address_id": "string",
"metadata": {},
"address": {
"address_1": "string",
"address_2": "string",
"company": "string",
"city": "string",
"country_code": "us",
"phone": "string",
"postal_code": "string",
"province": "us-ca"
}
}'
Response Response Example
200 - Example 1
{
"stock_location": {
"address": {
"id": "string",
"address_1": "string",
"address_2": "string",
"company": "string",
"country_code": "us",
"city": "string",
"phone": "string",
"postal_code": "string",
"province": "us-ca"
},
"id": "string",
"name": "string",
"address_id": "string",
"sales_channels": [
{
"id": "string",
"name": "string",
"description": "string",
"is_disabled": true,
"metadata": {},
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z"
}
],
"fulfillment_providers": [
{
"id": "string",
"is_enabled": true
}
],
"fulfillment_sets": [
{}
]
}
}
Request
Path Params
id
stringÂ
required
Query Params
fields
stringÂ
fields
+
it will be added to the default fields, using -
will remove it from the default fields. without prefix it will replace the entire default fields.Body Params application/json
Responses
Modified at 2025-06-17 04:10:32