AI resources
Get store by external IDhttps://api.mercadopago.com/proximity-integration/users/{SellerID}/stores/external_id/{ExternalID}
This endpoint gets stores by the external ID that was previously registered.
GET
Request parameters
Header
Authorization
Access Token obtained through the developer panel. Must be sent in all requests.string
REQUIRED
Path
SellerID
ID that identifies the user who owns the store.string
REQUIRED
ExternalID
External ID of the store that was previously registered.string
REQUIRED
Response parameters
id
Store ID linked to the external ID that was used as parameter.number
user_id
ID that identifies the user who owns the store.number
description
Name of the store.string
business_hours
List of store opening hours. Each attribute of the object will be represented by a day of the week.object
Errors
400Error
400
Missing_Parameter - Invalid store id
401Error
401
Unauthorized - Access Token is invalid
403Error
403
Forbidden - User cannot access this resource
424Error
424
Not Found - Failed to search stores associated with a user
500Error
500
Internal server error
Request
curl -X GET \
'https://api.mercadopago.com/proximity-integration/users/{SellerID}/stores/external_id/{ExternalID}'\
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer APP_USR-1*********685765-12*********1b4332e5c*********e077d7679*********664' \
Response
{
"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"
}