Atualizar o status da loja/proximity-integration/stores/{store_id}/statusEste endpoint altera o status de operação de uma loja.
PUT
Produtos relacionados:
Parâmetros de requisição
store_idstring
Localização: pathID que identifica a loja cujo status será atualizado.OBRIGATÓRIO
status
Localização: bodyStatus referente ao estado de funcionamento da loja que será atualizada.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.
Parâmetros de resposta
id
Localização: bodyID que identifica a loja.number
user_id
Localização: bodyID que identifica o usuário proprietário da loja.number
description
Localização: bodyNome da loja.string
status
Localização: bodyStatus referente ao estado atual de funcionamento da loja.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.
Solicitação
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"
}'
Resposta
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"
}
Erros
400bad_request
400
401bad_request
401 Unauthorized - Access Token is invalid
403bad_request
403 Forbidden - User cannot access this resource
404bad_request
404 Not Found - Store not found
424bad_request
424 Not Found - Failed to search stores associated with a user
500bad_request
500 Internal server error