Búsqueda inteligente powered by OpenAI
Crear orden
POST
Productos que lo utilizan:
Parámetros para la solicitud
HEADER
X-Ttl-Store-Preference
X-Ttl-Store-Preferencestring
REQUERIDO
PATH
user_id
User Idstring
REQUERIDO
external_id
External Idstring
REQUERIDO
BODY
external_reference
Referencia que puede sincronizar con su sistema de ventastring
notification_url
URL a la cual se enviará la notificación de pago o merchant_order.string
sponsor_id
USER_ID de la cuenta de Mercado Pago del sistema integradorstring
items
Información de los productos involucrados en la ordenarray
Parámetros de respuesta
id
idstring
items
itemsarray
collector_id
collector_idnumber
collector
collectorobject
Errores
400Error
invalid_collector_id
collector_id invalid.
invalid_sponsor_id
sponsor_id is not an active user.
invalid_items
unit_price invalid.
invalid_access_token
Access denied.
Solicitud
curl -X POST \
'https://api.mercadopago.com/mpmobile/instore/qr/{user_id}/{external_id}'\
-H 'Content-Type: application/json' \
-H 'X-Ttl-Store-Preference: 180' \
-H 'Authorization: Bearer TEST-7434*********159-03141*********cee51edf8*********f94f589-1*********' \
-d '{
"external_reference": "Factura-0001",
"notification_url": "http://www.yourserver.com",
"sponsor_id": "446566691",
"items": [
{
"id": 78123172,
"title": "Shampoo",
"currency_id": "COP",
"unit_price": 120,
"quantity": 1,
"description": "Almendras",
"picture_url": "https://bit.ly/2nxdWHa"
}
]
}'
Respuesta de ejemplo
{
"id": "360472057-3d2cadbf-2c54-485c-bcb9-f262adc14af6",
"items": [
{
"title": "Shampoo",
"id": 78123172,
"currency_id": "COP",
"unit_price": 120,
"quantity": 1,
"description": "Almendras",
"picture_url": "https://bit.ly/2nxdWHa"
}
],
"collector_id": 360472057,
"collector": {},
"total_amount": 120,
"amount": 120,
"external_reference": "Factura-0001",
"operation_type": "regular_payment",
"payment_methods": {
"excluded_payment_methods": [
{}
],
"excluded_payment_types": [
{
"id": "ticket"
}
]
},
"marketplace": "NONE",
"marketplace_fee": 0,
"sponsor_id": 446566691,
"notification_url": "http://www.yourserver.com",
"back_urls": {},
"payer": {
"id": 0,
"identification": {},
"address": {},
"phone": {}
},
"site_id": "mla",
"client_id": 360472057,
"processing_modes": [
{}
],
"internal_metadata": {}
}