Atualizar ID externo - Lojas de entrega - Mercado Pago Developers
Update external ID

PUT

/proximity-integration/stores/{StoreID}/external_id
This endpoint updates the External ID value. The External ID value is an optonal field.
Parâmetros de requisição
StoreID

OBRIGATÓRIO

string
Localização: pathUnique ID that identifies the store whose External ID will be updated.
external_id
string
Localização: bodyValue of the external ID which will be linked to the store.
Parâmetros de resposta
id
number
Localização: bodyUnique ID that identifies the store.
user_id
number
Localização: bodyUnique ID that identifies the user who owns the store.
description
string
Localização: bodyName of the store.
business_hours
object
Localização: bodyList of store opening hours. Each attribute of the object will be represented by a day of the week.
Solicitação
curl
curl -X PUT \
      'https://api.mercadopago.com/proximity-integration/stores/{StoreID}/external_id' \
      -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
      -H 'Content-Type: application/json' \ 
      -d '{
  "external_id": "9320001PC21"
}'
Resposta
json
{
  "id": 41517088,
  "user_id": 813887163,
  "description": "Doc's grocery store",
  "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": "9320001PC21"
}
Erros
400bad_request
400 Missing_Parameter - Invalid store id
401bad_request
401 Unauthorized - Access Token is invalid
403bad_request
403 Forbidden - User cannot access this resource
424bad_request
424 Not Found - Failed to get some information of the store
500bad_request
500 Internal server error