Docs
Get Order
Fetch order details by order ID
Enpoint
POST /v1/get-order
Body Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | Order ID |
Response
| Name | Type | Description |
|---|---|---|
id | string | Order ID |
status | string | Order status |
description | string | Order description |
price | number | Order price in MDL |
currency | string | Currency code (default "MDL") |
Order statuses: draft, paid, processing, failed, completed, refunded or expired
Merchant should accept payments only for orders with draft status.
Request Body Examples
JSON
{
"id": "IAE431392BIR"
}
Response Body Examples
JSON
{
"id": "IAM438592JWT",
"status": "draft",
"description": "Asigurare de calatorie, 15 zile, Europa",
"price": 700.0,
"currency": "MDL"
}
JSON
{
"id": "IAM438592JWT",
"status": "completed",
"description": "Asigurare Medicala pentru calatorii",
"price": 32.43,
"currency": "MDL",
"products": [
{
"product": "medical",
"start_date": "2024-01-25",
"end_date": "2024-02-09",
"region": "Toată lumea (Excepție: SUA, Canada, Japonia, Australia)",
"insurance_company": "donaris",
"reference_price": "1.68 EUR",
"reference_exchange_rate": "1 EUR = 19.3033 MDL",
"insured_amount": "30000 EUR",
"file": "https://firebasestorage.googleapis.com...."
}
]
}
JSON
{
"id": "IAE431392BIR",
"status": "draft",
"description": "Asigurare Carte Verde, 15 zile, Europa, BMW X7 ISG123",
"start_date": "2025-02-13",
"end_date": "2025-02-27",
"price": 2106.47,
"currency": "MDL"
}
JSON
{
"id": "IAE431392BIR",
"status": "paid",
"description": "Asigurare Carte Verde, 15 zile, Europa, BMW X7 ISG123",
"start_date": "2025-02-13",
"end_date": "2025-02-27",
"price": 2106.47,
"currency": "MDL"
}
JSON
{
"id": "IAI944894EHF",
"status": "completed",
"description": "Asigurare RCA, BMX X7 ISG123",
"start_date": "2025-02-13",
"end_date": "2026-02-12",
"price": 1347.19,
"currency": "MDL",
"products": [
{
"product": "rca",
"plate_number": "ISG123",
"car_model": "BMX X7",
"reference_price": "1347.19 MDL",
"reference_exchange_rate": "1 MDL = 1 MDL",
"price": 1347.19,
"currency": "MDL",
"file": "https://firebasestorage.googleapis.com...."
}
]
}
JSON
{
"id": "IAE431392BIR",
"status": "completed",
"description": "Asigurare Carte Verde, 15 zile, Europa, BMW X7 ISG123",
"start_date": "2025-02-13",
"end_date": "2025-02-27",
"price": 1990.01,
"currency": "MDL",
"products": [
{
"product": "green-card",
"plate_number": "ISG123",
"car_model": "MERCEDES SPRINTER",
"validity": 15,
"reference_price": "102.6 EUR",
"reference_exchange_rate": "1 EUR = 19.0999 MDL",
"price": 1990.01,
"currency": "MDL",
"file": "https://firebasestorage.googleapis.com...."
}
]
}
JSON
{
"id": "ROV0000123ABC",
"status": "completed",
"description": "Rovinieta, 10 zile, Categoria A, BMX X7 ISG123",
"start_date": "2024-01-14",
"price": 69.98,
"products": [
{
"product": "vignette:ro",
"vignette_series": "1234567890",
"plate_number": "ISG123",
"vehicle_category": "A-Autoturisme",
"vin_code": "TMBAB6NP00000000000",
"country": "Moldova(MD)",
"transaction_id": "CNADNR0000000000",
"start_date": "2024-01-14 00:00:00",
"end_date": "2024-01-23 23:59:59",
"validity": "10 zile",
"reference_price": "26.37 RON",
"reference_exchange_rate": "1 RON = 4.1236 MDL",
"supplier_exchange_rate": "1EUR = 4.9769RON (2024-01-31)",
"price": 69.98,
"currency": "MDL",
"file": "https://firebasestorage.googleapis.com...."
}
]
}
JSON
{
"id": "IAB662451GGF",
"status": "completed",
"description": "Asigurare facultativă a bagajelor avia",
"price": 141.63,
"products": [
{
"product": "baggage",
"reference_price": "4 EUR",
"reference_exchange_rate": "1 EUR 19.27 MDL",
"price": 77.08,
"currency": "MDL",
"flight_numbers": ["EK203", "BA289"],
"baggage_pcs": 2,
"idnp": "2002433727391",
"contractor_full_name": "John Doe",
"insurance_company": "asterra",
"file": "https://firebasestorage.googleapis.com...."
}
]
}
Status Codes
| Code | Description |
|---|---|
200 | Order found |
404 | Order not found |
401 | Unauthorized |
403 | Forbidden |
500 | Internal server error |