Get MEP operation status
Retrieves the details and current state of a USD-MEP operation using its external ID.
GET
/v1/operations/usd-mep/{id}Request
Headers
| Field | Type | Required | Description |
|---|---|---|---|
Authorization | string | Yes | Access token in Bearer ACCESS_TOKEN format |
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
id | string | Yes | External ID of the MEP operation. |
Not applicable: Query Parameters, Body.
Response
2XX Success
| Field | Type | Description |
|---|---|---|
id | string | External ID of the MEP operation. |
account_id | string | Client account number the operation belongs to. |
amount_in_ars | number | Total amount of the operation in ARS. |
amount_in_usd | number | Total amount of the operation in USD. |
state | string | Current state of the operation. Possible values: 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 (ISO 8601 datetime) | Execution timestamp of the buy leg. |
transact_time_sell | string (ISO 8601 datetime) | Execution timestamp of the sell leg. |
executed_amount | number | Total amount actually executed. |
quantity | integer | Quantity of the instrument traded. |
net_amount | number | Net amount of the operation after fees. |
Error Codes
| Status | Description |
|---|---|
401 | Unauthorized — invalid or missing access token |
403 | Forbidden — the token does not have permission to access this resource |
404 | Not Found — no MEP operation exists with the given ID |
500 | Internal Server Error |
Error structure:
{
"code": "NOT_FOUND",
"description": "Resource not found"
}
Code Example
- cURL
- JavaScript
- Python
- Node.js
curl -X GET https://b2b.allaria.cloud/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.cloud/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.cloud/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.cloud/v1/operations/usd-mep/${id}`,
{ headers: { Authorization: 'Bearer ACCESS_TOKEN' } }
);
console.log(response.data);
2XX Success
{
"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
}