Suggest edit
Help us improve the documentation
Did you see wrong information and would you like us to explain something else or improve our manuals? Please leave your suggestions on GitHub.

How to integrate QR attended model

To charge with a QR attended model, you’ll have to create and order and then associate it with a Point of Sale.

Create an order

Curl

curl -X POST 
https://api.mercadopago.com/mpmobile/instore/qr/$USER_ID/$EXTERNAL_ID?access_token=PROD_ACCESS_TOKEN -d
{
    "external_reference": "Bill-0001",
    "notification_url": "www.yourserver.com",
    "items" :[{
               "title" : Ergonomic Silk Bench,
               "currency_id" : BRL,
               "unit_price" : 120.00,
             "quantity" : 1,
           "description": "Mercado Pago Item",
           "picture_url": "https://bit.ly/2lCRcEN"
                },
            {
               "title" : Ergonomic Silk Bench,
               "currency_id" : BRL,
               "unit_price" : 100.00,
               "quantity" : 2
                }],
    "sponsor_id": 446566691
}

Obtain more information in our API Reference.

Note

Remember that if you haven’t previously provided your business name or logo in your Mercado Pago account, the order title and image showcased to your client in the app will be taken from the first item uploaded.

Order validity

By default, QR orders expires 10 minutes after being created or automatically if it’s closed.

If you require a different expiration time, you can send the header X-Ttl-Store-Preference with the time you need expressed in seconds. I.e., if you want 5 minutes as the available time, you’ll have to send the header X-Ttl-Store-Preference: 300.

Eliminate an order

To delete a QR associated order before it’s closed or expires, you can use this following method:

Curl

curl -X DELETE https://api.mercadopago.com/mpmobile/instore/qr/$USER_ID/$EXTERNAL_ID?access_token=PROD_ACCESS_TOKEN  -d 

Answer will be HTTP 204 No Content.

Next steps

La búsqueda no arrojó ningún resultado.

Verifica la la ortografía de los términos de búsqueda o prueba con otras palabras clave.