Create an order - Instore Orders v2 - Mercado Pago Developers
Developers
API Reference
Support
Sign in

    Start

    LISTA DE API

    Preferences

    Create a preference

    POST

    Search preferences

    GET

    Get a preference

    GET

    Update a preference

    PUT

    Identification Types

    Get document types

    GET

    Payment Methods

    Get the payment methods

    GET

    Payments

    Create payments

    POST

    Find payments

    GET

    Get a payment

    GET

    Update a payment

    PUT

    Chargebacks

    Get a chargeback

    GET

    Customers

    Create a customer

    POST

    Search for a customer

    GET

    Get a customer

    GET

    Update a customer

    PUT

    Cards

    Save a card

    POST

    Obtain customer cards

    GET

    Get a card

    GET

    Update a card

    PUT

    Delete a card

    DELETE

    Stores

    Get a Store

    GET

    Create a Store

    POST

    Search stores

    GET

    Update a Store

    PUT

    Delete a Store

    DELETE

    Point of Sale

    Create a POS

    POST

    Get all POS

    GET

    Get a POS

    GET

    Update a POS

    PUT

    Delete a POS

    DELETE

    Instore Orders

    Create an order

    POST

    Delete an order

    DELETE

    Instore Orders v2

    Create an order

    PUT

    Get an order

    GET

    Delete an order

    DELETE

    Merchant Orders

    Create an order

    POST

    Search for orders

    GET

    Get an order

    GET

    Update an order

    PUT

    Subscription Preferences

    Create a subscription

    POST

Create an order

PUT

/instore/qr/seller/collectors/{user_id}/stores/{external_store_id}/pos/{external_pos_id}/orders
Generate a payment order with all the payment information for your product or service and associate it with the Point of Sale you want.
Products that use it:
QR Code
Request's parameters
user_id

REQUIRED

string
Localization: pathUser Id
external_store_id

REQUIRED

string
Localization: pathExternal Store Id
external_pos_id

REQUIRED

string
Localization: pathExternal POS Id
cash_out
object
Localization: bodyCash withdrawal
Parámetros de respuesta
This request has no response.
Solicitud
curl
curl -X PUT \
    'https://api.mercadopago.com/instore/qr/seller/collectors/{user_id}/stores/{external_store_id}/pos/{external_pos_id}/orders' \
    -H 'Authorization: Bearer ACCESS_TOKEN_ENV' \ 
    -d '{
  "user_id": "FJ12399-123JAF",
  "external_store_id": "123123ABIOPPQ1",
  "external_pos_id": "928GAO199DB",
  "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
    }
  ],
  "sponsor": {},
  "cash_out": {}
}'
Answer
json
{}
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.
Was this information helpful?

Copyright © 1999-2021 MercadoLibre Perú S.R.L.

Terms and conditionsHow we take care of your privacy
Partners Mercado Pago

Al navegar en este sitio aceptas las cookies que utilizamos para mejorar tu experiencia. Más información.