/users/:user_id/stores/:id
BASE URI https://api.mercadopago.com/users/{user_id}/stores/{id}
HTTP Request
curl
curl -X PUT \
'https://api.mercadopago.com/users/USER_ID/stores/ID' \
-H 'Authorization: Bearer PROD_ACCESS_TOKEN' \
-d '{
"name": "Cambio Sucursal",
"business_hours": {
"monday": [
{
"open": "08:00",
"close": "13:00"
},
{
"open": "15:00",
"close": "18:00"
}
],
"tuesday": [
{
"open": "08:00",
"close": "18:00"
}
],
"wednesday": [
{
"open": "07:00",
"close": "10:00"
}
]
},
"location":{
"street_number":"13298",
"street_name":"H. Yrigoyen",
"city_name":"Almirante Brown",
"state_name":"Buenos Aires",
"latitude": -32.8897322,
"longitude": -68.8443275
"reference":"3er Piso"
}
}'
Request Params
ParameterTypeDescription
id
String
Store identifier, numerical and self-generated.
name
String
Store name. (Required)
business_hours
String
Business hours. They are divided by day of the week and up to two opening and closing times per day are allowed.
user_id
String
User identifier.
location
Object
Store location. (Required)
zip_code
String
Zip code.
street_number
Integer
Number. (Required)
street_name
String
Street name. (Required)
city_name
String
City.(Required)
state_name
Object
State. (Required)
latitude
String
Latitude. (Required)
logitude
String
Longitude. (Required)
reference
String
Reference.
HTTP Response
json
{
"id": "00000001",
"name": "Cambio Sucursal",
"date_creation": "2019-08-09T09:09:07Z",
"business_hours": {
"monday": [
{
"open": "08:00",
"close": "13:00"
},
{
"open": "15:00",
"close": "18:00"
}
],
"tuesday": [
{
"open": "08:00",
"close": "18:00"
}
],
"wednesday": [
{
"open": "07:00",
"close": "10:00"
}
]
},
"location": {
"address_line": "H. Yrigoyen 13298, Almirante Brown, Buenos Aires, Argentina",
"reference": "3er Piso",
"latitude": -32.8897322,
"longitude": -68.8443275
},
"external_id": "SUC001"
}
Error Codes
CodeDescription
400 BAD_REQUEST
INVALID_USER_ID
USER_ID must be number.
UNKNOWN_FIELD
Unknown field.
INVALID_STORE_ID
Invaliud store_id.
INVALID_NAME
NAME must be string.
INVALID_BUSINESS_HOURS
BUSINESS_HOURS must be json_object.
INVALID_DAY
Day must be json_array.
INVALID_LOCATION
LOCATION must be json_object.
INVALID_STREET_NAME
STREET_NAME must be string.
INVALID_STREET_NUMBER
STREET_NUMBER must be string.
INVALID_ZIP_CODE
ZIP_CODE must be string.
INVALID_CITY_NAME
CITY_NAME must be string.
INVALID_STATE_NAME
STATE_NAME must be string.
INVALID_LATITUDE
LATITUDE must be number.
INVALID_LONGITUDE
LONGITUDE must be number.
INVALID_REFERENCE
REFERENCE must be string.