Update store/users/{user_id}/stores/{id}Renew the data of a physical shop. Indicate the ID of the seller and the store and send the parameters with the information you want to update.
PUT
Products that use it:
Request's parameters
user_idstring
Localization: pathUser IdREQUIRED
idstring
Localization: pathStore's IdREQUIRED
business_hours
Localization: bodyBusiness hours. They are divided by day of the week and up to two opening and closing times per day are allowed.object
external_id
Localization: bodyUnique identifier of the store defined by integrator system.string
Response parameters
id
Localization: bodyidstring
name
Localization: bodynamestring
date_creation
Localization: bodystring
business_hours
Localization: bodybusiness_hoursobject
Request
curl
curl -X PUT \
'https://api.mercadopago.com/users/{user_id}/stores/{id}' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"name": "Sucursal Instore 2",
"business_hours": {
"monday": [
{
"open": "08:00",
"close": "12:00"
}
],
"tuesday": [
{
"open": "09:00",
"close": "18:00"
}
]
},
"external_id": "SUC002",
"location": {
"street_number": 3040,
"street_name": "Caseros",
"city_name": "Belgrano",
"state_name": "Capital Federal",
"latitude": -32.8897322,
"longitude": -68.8443275,
"reference": "3er Piso"
}
}'
Answer
json
{
"id": 1234567,
"name": "Sucursal Instore 2",
"date_creation": "2021-03-16T20:27:26.732Z",
"business_hours": {
"monday": [
{
"open": "08:00",
"close": "12:00"
}
]
},
"location": {
"address_line": "Caseros 3040, Belgrano, Capital Federal, Argentina",
"latitude": -32.8897322,
"longitude": -68.8443275,
"reference": "3er Piso"
},
"external_id": "SUC002",
"date_created": "2019-08-08T19:29:45.019Z"
}
Errors
400bad_request
INVALID_USER_ID
UNKNOWN_FIELDUnknown field.
INVALID_STORE_IDInvaliud store_id.
INVALID_NAMENAME must be string.
INVALID_BUSINESS_HOURSBUSINESS_HOURS must be json_object.
INVALID_DAYDay must be json_array.
INVALID_LOCATIONLOCATION must be json_object.
INVALID_STREET_NAMESTREET_NAME must be string.
INVALID_STREET_NUMBERSTREET_NUMBER must be string.
INVALID_ZIP_CODEZIP_CODE must be string.
INVALID_CITY_NAMECITY_NAME must be string.
INVALID_STATE_NAMESTATE_NAME must be string.
INVALID_LATITUDELATITUDE must be number.
INVALID_LONGITUDELONGITUDE must be number.
INVALID_REFERENCEREFERENCE must be string.