Atualizar status da loja - Lojas de entrega - Mercado Pago Developers
Qual documentação você quer buscar?

Não sabe como começar a integrar? 

Acesse os primeiros passos
Atualizar o status da loja

PUT

https://api.mercadopago.com/proximity-integration/stores/{store_id}/status
Este endpoint altera o status de operação de uma loja.
Parâmetros de requisição
PATH
store_id
string

OBRIGATÓRIO

ID que identifica a loja cujo status será atualizado.
BODY
status
string
Status referente ao estado de funcionamento da loja que será atualizada.
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
number
ID que identifica a loja.
user_id
number
ID que identifica o usuário proprietário da loja.
description
string
Nome da loja.
status
string
Status referente ao estado atual de funcionamento da loja.
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.
Erros

400Erro

400

Missing_Parameter - Invalid store id

401Erro

401

Unauthorized - Access Token is invalid

403Erro

403

Forbidden - User cannot access this resource

404Erro

404

Not Found - Store not found

424Erro

424

Not Found - Failed to search stores associated with a user

500Erro

500

Internal server error

Requisição
curl -X PUT \
      'https://api.mercadopago.com/proximity-integration/stores/{store_id}/status'\
       -H 'Content-Type: application/json' \
       -H 'Authorization: Bearer TEST-4599*********755-11221*********d497ae962*********ecf8d85-1*********' \
       -d '{
  "status": "enabled"
}'
Resposta de exemplo
{
  "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"
}