Obtener estado de operación MEP
Obtiene los detalles y el estado actual de una operación de dólar MEP utilizando su ID externo.
GET
/v1/operations/usd-mep/{id}Request
Headers
| Campo | Tipo | Requerido | Descripción |
|---|---|---|---|
Authorization | string | Sí | Token de acceso en formato Bearer ACCESS_TOKEN |
Path Parameters
| Campo | Tipo | Requerido | Descripción |
|---|---|---|---|
id | string | Sí | ID externo de la operación MEP. |
No aplica: Query Parameters, Body.
Response
2XX Éxito
| Campo | Tipo | Descripción |
|---|---|---|
id | string | ID externo de la operación MEP. |
account_id | string | Número de cuenta de cliente al que pertenece la operación. |
amount_in_ars | number | Monto total de la operación en ARS. |
amount_in_usd | number | Monto total de la operación en USD. |
state | string | Estado actual de la operación. Valores posibles: SENT_TO_OMS_TO_BUY, BOND_BOUGHT, SENT_TO_OMS_TO_SELL, BOND_SOLD, CANCELLED, UNKNOWN, REJECTED_BUY, REJECTED_SELL, COMPLETED, PENDING. |
transact_time_buy | string (datetime ISO 8601) | Marca de tiempo de ejecución de la punta de compra. |
transact_time_sell | string (datetime ISO 8601) | Marca de tiempo de ejecución de la punta de venta. |
executed_amount | number | Monto total efectivamente ejecutado. |
quantity | integer | Cantidad del instrumento operado. |
net_amount | number | Monto neto de la operación luego de comisiones. |
Códigos de error
| Status | Descripción |
|---|---|
401 | Unauthorized — token de acceso inválido o faltante |
403 | Forbidden — el token no tiene permiso para acceder a este recurso |
404 | Not Found — no existe una operación MEP con el ID indicado |
500 | Internal Server Error |
Estructura del error:
{
"code": "NOT_FOUND",
"description": "Resource not found"
}
Ejemplo de código
- cURL
- JavaScript
- Python
- Node.js
curl -X GET https://b2b.allaria.dev/v1/operations/usd-mep/b7e4f2a1-9c3d-4e5f-8a1b-2d3e4f5a6b7c \
-H "Authorization: Bearer ACCESS_TOKEN"
const id = 'b7e4f2a1-9c3d-4e5f-8a1b-2d3e4f5a6b7c';
const response = await fetch(
`https://b2b.allaria.dev/v1/operations/usd-mep/${id}`,
{
method: 'GET',
headers: { 'Authorization': 'Bearer ACCESS_TOKEN' }
}
);
const data = await response.json();
console.log(data);
import requests
id = 'b7e4f2a1-9c3d-4e5f-8a1b-2d3e4f5a6b7c'
response = requests.get(
f'https://b2b.allaria.dev/v1/operations/usd-mep/{id}',
headers={ 'Authorization': 'Bearer ACCESS_TOKEN' }
)
data = response.json()
print(data)
const axios = require('axios');
const id = 'b7e4f2a1-9c3d-4e5f-8a1b-2d3e4f5a6b7c';
const response = await axios.get(
`https://b2b.allaria.dev/v1/operations/usd-mep/${id}`,
{ headers: { Authorization: 'Bearer ACCESS_TOKEN' } }
);
console.log(response.data);
2XX Éxito
{
"id": "b7e4f2a1-9c3d-4e5f-8a1b-2d3e4f5a6b7c",
"account_id": "12345",
"amount_in_ars": 1250000.50,
"amount_in_usd": 1000.00,
"state": "BOND_SOLD",
"transact_time_buy": "2026-07-20T10:15:32",
"transact_time_sell": "2026-07-20T10:16:05",
"executed_amount": 1249800.00,
"quantity": 1000,
"net_amount": 998500.00
}