Create a Store/users/{user_id}/storesGenerates a physical store where customers can purchase products or services. You can create more than one store per account.
POST
Request's parameters
user_idstring
Localization: pathUser 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 allowedobject
external_id
Localization: bodyUnique identifier of the store defined by integrator systemstring
location
Localization: bodyStore locationobject
Response parameters
id
Localization: bodyidstring
name
Localization: bodynamestring
date_created
Localization: bodydate_createdstring
business_hours
Localization: bodybusiness_hoursobject
Request
curl
curl -X POST \
'https://api.mercadopago.com/users/{user_id}/stores' \
-H 'Authorization: Bearer ACCESS_TOKEN_ENV' \
-d '{
"name": "Sucursal Instore",
"business_hours": {
"monday": [
{
"open": "08:00",
"close": "12:00"
}
],
"tuesday": [
{
"open": "09:00",
"close": "18:00"
}
]
},
"external_id": 1234,
"location": {
"street_name": "Caseros 3039 Belgrano Capital Federal",
"state_name": {},
"latitude": -32.8897322,
"logitude": -68.8443275,
"reference": "3er Piso"
}
}'
Answer
json
{
"id": 1234567,
"name": "Sucursal Instore",
"date_created": "2019-08-08T19:29:45.019Z",
"business_hours": {
"monday": [
{
"open": "08:00",
"close": "12:00"
}
],
"tuesday": [
{
"open": "09:00",
"close": "18:00"
}
]
},
"location": {
"address_line": "Caseros 3039 Belgrano Capital Federal",
"latitude": -32.8897322,
"longitude": -68.8443275,
"reference": "3er Piso"
},
"external_id": 1234
}
Errors
400bad_request
INVALID_USER_ID
UNKNOWN_FIELD
INVALID_NAME
INVALID_BUSINESS_HOURS
INVALID_DAY
INVALID_LOCATION
INVALID_STREET_NAME
INVALID_STREET_NUMBER
INVALID_ZIP_CODE
INVALID_CITY_NAME
INVALID_STATE_NAME
INVALID_LATITUDE
INVALID_LONGITUDE
INVALID_REFERENCE
Was this information helpful?