Actualizar estado de la tiendahttps://api.mercadopago.com/proximity-integration/stores/{store_id}/status
Este endpoint cambia el estado de funcionamiento de una tienda.
PUT
Request parameters
Header
Authorization
Access Token obtenido a través del panel de desarrollador. Obligatorio ser enviado en todas las solicitudes.string
REQUERIDO
Path
store_id
ID que identifica la tienda cuyo estado se actualizará.string
REQUERIDO
Body
status
Estado referente al estado de funcionamiento de la tienda que se actualizará.string
disabled: The store is disabled, and will not be shown on marketplace. It is important to bear in mind that once a store has been disabled, it cannot be enabled again. Therefore, this state should only be used to delete a store.
enabled: The store is enabled and is shown on marketplace.
paused: The delivery of store is paused, but the store will cotinue to be shown on marketplace.
Response parameters
id
ID que identifica la tienda.number
user_id
ID que identifica al usuario propietario de la tienda.number
description
Nombre de la tienda.string
status
Estado referente al estado actual de funcionamiento de la tienda.string
disabled: The store is disabled, and will not be shown on marketplace. It is important to bear in mind that once a store has been disabled, it cannot be enabled again. Therefore, this state should only be used to delete a store.
enabled: The store is enabled and is shown on marketplace.
paused: The delivery of store is paused, but the store will cotinue to be shown on marketplace.
Errores
400Error
400
Missing_Parameter - Invalid store id
401Error
401
Unauthorized - Access Token is invalid
403Error
403
Forbidden - User cannot access this resource
404Error
404
Not Found - Store not found
424Error
424
Not Found - Failed to search stores associated with a user
500Error
500
Internal server error
Informa datos válidos en los request parameters antes de la ejecución.
Request
curl -X PUT \
'https://api.mercadopago.com/proximity-integration/stores/{store_id}/status'\
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer APP_USR-1*********685765-12*********1b4332e5c*********e077d7679*********664' \
-d '{
"status": "enabled"
}'Response
{
"id": 41517088,
"user_id": 813887163,
"description": "Doc's grocery store",
"status": "enabled",
"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": "A15154DE"
}