Docs
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 (EEST) on the same day. At the end of the day, alldraftorders are automatically expired and updated withexpiredstatus.
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
JSON
{
"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
JSON
{
"id": "IAE431392BIR",
"status": "paid",
"description": "Asigurare Carte Verde, 15 zile, Europa, BMW X7 ISG313",
"price": 2106.47,
"currency": "MDL"
}
Status Codes
| Code | Description |
|---|---|
200 | Order paid |
400 | Bad request |
401 | Unauthorized |
403 | Forbidden |
500 | Internal server error |