Update store status/proximity-integration/stores/{store_id}/statusThis endpoint changes the operation status of a store.
PUT
Productos que lo utilizan:
Parámetros para la solicitud
store_idstring
Localización: pathUnique ID that identifies the store whose status will be updated.REQUERIDO
access-tokenstring
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 porREQUERIDO
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
status
Localización: bodyStatus referring to the current state of operation of the store.string
disabled: The store is disabled, and will not be shown on marketplace.
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.
Parámetros de respuesta
id
Localización: bodyUnique ID that identifies the store.number
user_id
Localización: bodyUnique ID that identifies the user who owns the store.number
description
Localización: bodyName of the store.string
status
Localización: bodyOperation status of a store.string
disabled: The store is disabled, and will not be shown on marketplace.
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.
Solicitud
curl
curl -X PUT \
'https://api.mercadopago.com/proximity-integration/stores/{store_id}/status' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"status": "enabled"
}'
Respuesta
json
{
"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"
}