Obter caixa - Caixas - Mercado Pago Developers
O que você está buscando?

Não sabe como começar a integrar? 

Acesse os primeiros passos
Obter caixa

GET

https://api.mercadopago.com/pos/{id}
Veja toda a informação de um ponto de venda a partir do ID da caixa que você deseja.
Parâmetros de requisição
PATH
id
string

OBRIGATÓRIO

POS Id
Parâmetros de resposta
id
string
Identificador exclusivo da caixa, numérico e gerado automaticamente
qr
object
status
string
date_created
string
Erros

400Erro

INVALID_POS_ID

The ID of the pos is invalid, it must be numeric.

INVALID_EXTERNAL_ID

The EXTERNAL_ID field must be alphanumeric, only letters and numbers. No spaces or hyphens, or special characters.

EXTERNAL_ID_TOO_LONG

The EXTERNAL_ID must be less than 40 characters.

404Erro

1

If the POS does not exist for an indicated ID or EXTERNAL_ID and user.

Requisição
curl -X GET \
      'https://api.mercadopago.com/pos/{id}'\
       -H 'Content-Type: application/json' \
       -H 'Authorization: Bearer TEST-7719*********832-03141*********ec9309854*********f1e54b5-1*********' \
       
Resposta de exemplo
{
  "id": 1988157,
  "qr": {
    "image": "https://www.mercadopago.com/instore/merchant/qr/2852128/c955a5618d874e998c8399e3515fed3a00b8cc0ca401448ca56e2f2e18f4ba68.png",
    "template_document": "https://www.mercadopago.com/instore/merchant/qr/2852128/template_c955a5618d874e998c8399e3515fed3a00b8cc0ca401448ca56e2f2e18f4ba68.pdf",
    "template_image": "https://www.mercadopago.com/instore/merchant/qr/2852128/template_c955a5618d874e998c8399e3515fed3a00b8cc0ca401448ca56e2f2e18f4ba68.png"
  },
  "status": "active",
  "date_created": "2019-09-03T13:13:54.000-04:00",
  "date_last_updated": "2020-09-30T08:38:58.000-04:00",
  "uuid": "c955a5618d874e998c8399e3515fed3a00b8cc0ca401448ca56e2f2e18f4ba68",
  "compatible_id": "4be87a269a7b863fd043658d2a0d7b3fa2f32334138ff651e2408d3f8191d6c9f67a4dc297e9efc70d1adfbb31f7c21c29c9059ac905a359e39114c9871afef9",
  "user_id": 329653108,
  "name": "POS001",
  "fixed_amount": false,
  "store_id": 56807753,
  "external_store_id": "SUC01",
  "external_id": "SUC001POS002",
  "site": "MLB",
  "qr_code": "00020101021226940014BR.GOV.BCB.PIX2572pix-qr-h.mercadopago.com/instore/h/p/v2/c955a5618d874e998c8399e3515fed3a43520016com.mercadolibre0128https://mpago.la/pos/28521285204000053039865802BR5924VICTOR CORREA DE ALMEIDA6008CAMPINAS62070503***6304367C"
}