Confirm Order
Confirm order by submitting payment details
Endpoint
POST /v1/confirm-order
Body Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | Order ID |
payment | object | yes | Payment details |
Note: You can only confirm (pay) orders with
draftstatus. Order should be paid before 23:59:59 Moldova time (Europe/Chisinau) on the same day. That is UTC+02:00 in winter (EET) and UTC+03:00 in summer (EEST). At the end of the day, alldraftorders are automatically expired and updated withexpiredstatus.
Repeating a confirm. After you have the answer to a
confirm-order, sending it again for the same payment (sametransaction_id,receipt_idandamount) changes nothing and answers200with the order as it is now, so readstatusfrom the response: it can bepaid,processing,completedorfailed. Any other payment on an order that is no longerdraft, or a repeat on arefundedorexpiredorder, still answers500with"message": "[API] Order <id> is not in DRAFT status". Two confirms that arrive at the same moment follow the same rules: one pays the order, and the other is answered as above.
RO vignette, 1 October 2026: a
vignette:roorder created before the switch to the new tariff system cannot be paid after it.confirm-orderthen answers500with"message": "[API] Order <id>: The RO vignette price on this order is no longer valid (the vignette tariff system changed); create a new order"and the order staysdraft. Quote again withget-offersand create a new order. See Changelog.
Payment Parameters
| Name | Type | Required | Description |
|---|---|---|---|
receipt_id | string | yes | Receipt ID, shown on customer's receipt e.g. RRN |
transaction_id | string | yes | Transaction ID |
paid_at | number | yes | Payment date, unix timestamp (milliseconds) |
amount | number | yes | Amount |
currency | string | no | Currency code (default "MDL") |
pos_id | string | no | POS ID |
Request Body Examples
{
"id": "IAE431392BIR",
"payment": {
"receipt_id": "1234567890",
"transaction_id": "1234567890",
"paid_at": 1730419200000, // 13 digits unix timestamp
"amount": 2106.47,
"currency": "MDL",
"pos_id": "terminal001"
}
}
Response Body Examples
{
"id": "IAE431392BIR",
"status": "paid",
"description": "Asigurare Carte Verde, 15 zile, Europa, BMW X7 ISG313",
"start_date": "2025-02-13",
"end_date": "2025-02-27",
"price": 2106.47,
"currency": "MDL"
}
Status Codes
| Code | Description |
|---|---|
200 | Order paid, or already paid by this payment |
400 | Bad request |
401 | Unauthorized |
403 | Forbidden |
500 | Internal server error |