Busca inteligente powered by OpenAI
Obter pedido
GET
Produtos relacionados:
Parâmetros de requisição
PATH
user_id
User Idstring
OBRIGATÓRIO
external_pos_id
External POS Idstring
OBRIGATÓRIO
Parâmetros de resposta
external_reference
string
total_amount
number
items
array
title
string
Erros
400Erro
invalid_collectorId
user_id must be a number.
invalid_externalPosId
externalPosId must be present.
404Erro
point_of_sale_in_store_order_not_found
No associated order found.
500Erro
in_store_order_creation_error
Failed to create order.
Requisição
curl -X GET \
'https://api.mercadopago.com/instore/qr/seller/collectors/{user_id}/pos/{external_pos_id}/orders'\
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer TEST-7719*********832-03141*********ec9309854*********f1e54b5-1*********' \
Resposta de exemplo
[
{
"external_reference": "12345",
"total_amount": 100,
"items": [
{
"sku_number": "KS955RUR",
"category": "COMIDA",
"title": "Pasta",
"description": "Compra en Mercado Pago",
"unit_measure": "unit",
"quantity": 5,
"unit_price": 20,
"total_amount": 100
}
],
"title": "Compra",
"description": "Compra en Mercado Pago",
"sponsor": {
"id": 662208785
},
"expiration_date": "2023-08-22T16:34:56.559-04:00",
"notification_url": "http://www.yourserver.com/notification"
}
]