Actualizar sucursal - Sucursales físicas - Mercado Pago Developers
¿Qué documentación quieres buscar?

¿No sabes cómo empezar la integración? 

Accede a los primeros pasos
Actualizar sucursal

PUT

https://api.mercadopago.com/users/{user_id}/stores/{id}
Renueva los datos de una tienda física. Indica el ID del vendedor y de la sucursal y envía los parámetros con la información que quieras actualizar.
Parámetros para la solicitud
PATH
user_id
string

REQUERIDO

User Id
id
string

REQUERIDO

Store's Id
BODY
business_hours
object
Business hours. They are divided by day of the week and up to two opening and closing times per day are allowed.
external_id
string
Identificador único de la Sucursal definido por el integrador
location
object
Ubicación de la Sucursal
name
string
Nombre de la Sucursal
Parámetros de respuesta
id
string
id
name
string
name
date_creation
string
business_hours
object
business_hours
Errores

400Error

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.

Solicitud
curl -X PUT \
      'https://api.mercadopago.com/users/{user_id}/stores/{id}'\
       -H 'Content-Type: application/json' \
       -H 'Authorization: Bearer TEST-3322*********190-03031*********46528954c*********0339910-1*********' \
       -d '{
  "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"
  },
  "name": "Sucursal Instore 2"
}'
Respuesta de ejemplo
{
  "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"
}