Inicio
Documentación
Recursos
Partners
Comunidad

Partners

Conoce nuestro programa para agencias o desarrolladores que ofrecen servicios de integración y vendedores que quieren contratarlos.

Comunidad

Recibe las últimas novedades, pide ayuda a otros integradores y comparte tus conocimientos.

Crear QR trama - QR Modelo Dinámico - Mercado Pago Developers

Búsqueda inteligente powered by OpenAI 

Crear QR tramma

POST

https://api.mercadopago.com/instore/orders/qr/seller/collectors/{user_id}/pos/{external_pos_id}/qrs
Genera un QR tramma que se agregará a una imagen.
Parámetros para la solicitud
PATH
user_id
string

REQUERIDO

Encuentre la identificación de usuario en su panel de desarrollador en nuestro sitio para desarrolladores
external_pos_id
string

REQUERIDO

ID de POS personalizado asociado al pedido
BODY
external_reference
string
ID de pedido personalizado que puedes sincronizar con tu sistema de venta
title
string
Título de la compra
description
string
Descripción de la compra
notification_url
string
URL a la cual se enviará la notificación de pago o merchant_order
Parámetros de respuesta
qr_data
string
Tramma EMVCo para la generación del QR.
in_store_order_id
string
ID del pedido realizado presencialmente en la sucursal.
Errores

400Error

invalid_collectorId

user_id must be a number.

invalid_externalPosId

externalPosId must be present.

invalid_external_reference

external_reference must be present.

invalid_total_amount

total_amount must be present.

invalid_items.sku_number

items.sku_number must be string.

invalid_items.category

items.category must be string.

invalid_items.title

items.title must be string.

invalid_items.description

items.description must be string.

invalid_items.unit_measure

items.unit_measure must be string.

invalid_items.quantity

items.quantity must be number.

invalid_items.currency_id

items.currency_id must be string.

invalid_items.unit_price

items.unit_price must be number.

invalid_items.total_amount

items.total_amount must be number.

invalid_title

title must be string.

invalid_unit_measure

unit_measure must be present.

invalid_quantity

quantity must be present.

invalid_unit_price

unit_price must be present.

invalid_description

description must be present.

invalid_sponsor.id

sponsor.id must be number.

invalid_id

sponsor.id must be present.

invalid_cash_out.amount

cash_out.amount must be number.

invalid_amount

cash_out.amount must be present.

error_creating_seller_qr_order

The cash out is required when order has no items.

invalid_notification_url

notification_url must be url.

invalid_expiration_date

Expiration date must be a valid and future date.

500Error

in_store_order_creation_error

Failed to create order.

Solicitud
curl -X POST \
    'https://api.mercadopago.com/instore/orders/qr/seller/collectors/{user_id}/pos/{external_pos_id}/qrs'\
    -H 'Content-Type: application/json' \
       -H 'Authorization: Bearer TEST-4599*********755-11221*********d497ae962*********ecf8d85-1*********' \
    -d '{
  "external_reference": "reference_12345",
  "title": "Product order",
  "description": "Purchase description.",
  "notification_url": "https://www.yourserver.com/notifications",
  "total_amount": 100,
  "items": [
    {
      "sku_number": "A123K9191938",
      "category": "marketplace",
      "title": "Point Mini",
      "description": "This is the Point Mini",
      "unit_price": 100,
      "quantity": 1,
      "unit_measure": "unit",
      "total_amount": 100
    }
  ],
  "sponsor": {
    "id": 662208785
  },
  "cash_out": {
    "amount": 0
  }
}'
Respuesta de ejemplo
{
  "qr_data": "00020101021243650016COM.MERCADOLIBRE02013063638f1192a-5fd1-4180-a180-8bcae3556bc35204000053039865802BR5925IZABEL AAAA DE MELO6007BARUERI62070503***63040B6D",
  "in_store_order_id": "d4e8ca59-3e1d-4c03-b1f6-580e87c654ae"
}