Docs

Confirm Order

Confirm order by submitting payment details

Endpoint

POST /v1/confirm-order

Body Parameters

NameTypeRequiredDescription
idstringyesOrder ID
paymentobjectyesPayment details

Note: You can only confirm (pay) orders with draft status. Order should be paid before 23:59:59 (EEST) on the same day. At the end of the day, all draft orders are automatically expired and updated with expired status.

Payment Parameters

NameTypeRequiredDescription
receipt_idstringyesReceipt ID, shown on customer's receipt e.g. RRN
transaction_idstringyesTransaction ID
paid_atnumberyesPayment date, unix timestamp (milliseconds)
amountnumberyesAmount
currencystringnoCurrency code (default "MDL")
pos_idstringnoPOS 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

CodeDescription
200Order paid
400Bad request
401Unauthorized
403Forbidden
500Internal server error

iAsig © 2024