Obtener sucursal por ID externo - Sucursales de entrega - Mercado Pago Developers
Get store by external ID

GET

/proximity-integration/users/{SellerID}/stores/external_id/{ExternalID}
This endpoint gets stores by the external ID that was previously registered.
Parámetros para la solicitud
SellerID

REQUERIDO

string
Localización: pathUnique ID that identifies the user who owns the store.
ExternalID

REQUERIDO

string
Localización: pathStore external ID that was previously registered.
access-token

REQUERIDO

string
Localización: headerToken de acceso generado desde el vendedor por el proceso de autenticación (OAuth). Código de seguridad que identifica al usuario, sus privilegios y una aplicación utilizada en diferentes solicitudes de origen público para acceder a los recursos protegidos. Su validez está determinada por el parámetro expires_in y es similar a APP_USR-1585551492-030918-25######3458-2880736 estando compuesto por
Access token type: APP_USR (application on behalf of a user), TEST (test, only valid in sandbox)
Client ID: 1585551492
Creation date (MMddHH): 030918
Security hash: 25######3458
User ID: 2880736
Parámetros de respuesta
id
number
Localización: bodyStore ID linked to the external ID that was used as search parameter.
user_id
number
Localización: bodyUnique ID that identifies the user who owns the store.
description
string
Localización: bodyName of the store.
business_hours
object
Localización: bodyList of store opening hours. Each attribute of the object will be represented by a day of the week.
Solicitud
curl
curl -X GET \
    'https://api.mercadopago.com/proximity-integration/users/{SellerID}/stores/external_id/{ExternalID}' \
    -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' 
Respuesta
json
{
  "id": 41517088,
  "user_id": 813887163,
  "description": "Doc's grocery store",
  "business_hours": {
    "monday": [
      {
        "open": "8:00",
        "close": "15:00"
      }
    ],
    "tuesday": [
      {
        "open": "8:00",
        "close": "15:00"
      }
    ],
    "wendsday": [
      {
        "open": "8:00",
        "close": "15:00"
      }
    ],
    "thursday": [
      {
        "open": "8:00",
        "close": "15:00"
      }
    ],
    "friday": [
      {
        "open": "8:00",
        "close": "15:00"
      }
    ]
  },
  "location": {
    "address_line": "Viaduto Arapuã - Saude, São Paulo - SP, 04307-070, Brasil",
    "reference": "Next to a bakery",
    "latitude": -23.630159633405057,
    "longitude": -46.64532809999999
  },
  "external_id": "9320001PC21"
}