Obtener caja - Cajas - Mercado Pago Developers
¿Qué estás buscando?

¿No sabes cómo empezar la integración? 

Accede a los primeros pasos
Obtener caja

GET

https://api.mercadopago.com/pos/{id}
Consulta toda la información de un punto de venta con el ID de la caja que quieras.
Parámetros para la solicitud
PATH
id
string

REQUERIDO

POS Id
Parámetros de respuesta
id
string
Identificador único de la caja, numérico y autogenerado
qr
object
status
string
date_created
string
Errores

400Error

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.

404Error

1

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

Solicitud
curl -X GET \
    'https://api.mercadopago.com/pos/{id}'\
    -H 'Content-Type: application/json' \
       -H 'Authorization: Bearer TEST-7719*********832-03141*********ec9309854*********f1e54b5-1*********' \
    
Respuesta de ejemplo
{
  "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"
}