Create QR tramma - QR Dynamic Model - Mercado Pago Developers
Create a QR tramma

POST

/instore/orders/qr/seller/collectors/{user_id}/pos/{external_pos_id}/qrs
Generates a QR tramma that will be added to an image.
Request's parameters
user_id

REQUIRED

string
Localization: pathFind the User ID in your developer dashboard at our devsite
external_pos_id

REQUIRED

string
Localization: pathCustom POS ID associated to the order
cash_out
object
Localization: bodyCash withdrawal (Commercial contact required)
description
string
Localization: bodyPurchase description.
Response parameters
qr_data
string
Localization: bodyEMVCo tramma for the QR generation
Request
curl
curl -X POST \
    'https://api.mercadopago.com/instore/orders/qr/seller/collectors/{user_id}/pos/{external_pos_id}/qrs' \
    -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
    -H 'Content-Type: application/json' \
    -d '{
  "external_reference": 12345,
  "title": "Product order",
  "notification_url": "www.yourserver.com",
  "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
    }
  ],
  "taxes": [
    {
      "value": 19,
      "type": "IVA"
    }
  ],
  "sponsor": {
    "id": 446566691
  },
  "cash_out": {}
}'
Answer
json
{
  "qr_data": "00020101021243650016COM.MERCADOLIBRE02013063638f1192a-5fd1-4180-a180-8bcae3556bc35204000053039865802BR5925IZABEL AAAA DE MELO6007BARUERI62070503***63040B6D"
}
Errors
400bad_request
invalid_collectorIduser_id must be a number.
invalid_externalPosIdexternalPosId must be present.
invalid_external_referenceexternal_reference must be present.
invalid_total_amounttotal_amount must be present.
invalid_items.sku_numberitems.sku_number must be string.
invalid_items.categoryitems.category must be string.
invalid_items.titleitems.title must be string.
invalid_items.descriptionitems.description must be string.
invalid_items.unit_measureitems.unit_measure must be string.
invalid_items.quantityitems.quantity must be number.
invalid_items.currency_iditems.currency_id must be string.
invalid_items.unit_priceitems.unit_price must be number.
invalid_items.total_amountitems.total_amount must be number.
invalid_titletitle must be string.
invalid_unit_measureunit_measure must be present.
invalid_quantityquantity must be present.
invalid_unit_priceunit_price must be present.
invalid_descriptiondescription must be present.
invalid_sponsor.idsponsor.id must be number.
invalid_idsponsor.id must be present.
invalid_cash_out.amountcash_out.amount must be number.
invalid_amountcash_out.amount must be present.
error_creating_seller_qr_orderThe cash out is required when order has no items.
invalid_expiration_dateExpiration date must be a valid and future date.
500bad_request
in_store_order_creation_errorFailed to create order.