API section
Reconciliation
Daily reconciliation: every terminal payment and refund is matched with a receipt for the same amount, the terminal total with the receipt total; with an OFD export (CSV) — receipts missing in the OFD and OFD receipts not printed through the agent.
| GET | /api/v1/reconciliation | Daily terminal and register reconciliation |
| POST | /api/v1/reconciliation | Reconciliation with an OFD export |
| GET | /api/v1/reconciliation/ledger | Daily reconciliation journal |
Daily terminal and register reconciliation#
/api/v1/reconciliationEvery terminal payment and refund is matched with a receipt for the same card amount, the terminal total with the receipt total. Data — the agent reconciliation journal (receipts and card operations through the agent). date — the day, today by default
Parameters
| Name | In | Type | Description |
|---|---|---|---|
date | query | string date |
Response 200 application/json
Fields · Report
datestring dateokbooleanerrorsinteger int32warningsinteger int32summarySummary13 fields · Summary
terminalPaymentsTotal2 fields · Total
countinteger int32suminteger int64
terminalRefundsTotal2 fields · Total
countinteger int32suminteger int64
terminalCancelsTotal2 fields · Total
countinteger int32suminteger int64
terminalNetinteger int64receiptsTotal2 fields · Total
countinteger int32suminteger int64
returnsTotal2 fields · Total
countinteger int32suminteger int64
correctionsTotal2 fields · Total
countinteger int32suminteger int64
kktCashinteger int64kktCardinteger int64kktCardNetinteger int64ofdRowsinteger int32ofdSuminteger int64ofdOtherFninteger int32
issuesarray of Issue8 fields · Issue
codestringseveritystringvalues:ERRORWARNINGatstring date-timeregisterinteger int32terminalinteger int32fdinteger int64amountinteger int64messagestring
Errors — problem+json with a code field, see error codes.
Request example
curl 'http://localhost:7790/api/v1/reconciliation'curl 'https://cloud.hw-connector.ru/agent/api/v1/reconciliation' \
-H 'X-Api-Key: hwk_…' \
-H 'X-Device-Id: 42'Reconciliation with an OFD export#
/api/v1/reconciliationThe same plus a receipt export from the OFD account (CSV: document number, amount, fiscal drive and date if available): receipt in the journal but not in the OFD; in the OFD but not printed through the agent; amounts differ
Request body application/json required
Fields · OfdRequest
datestring daterequiredofdCsvstringrequiredfrom 0to 20000000
{
"date": "2026-11-01",
"ofdCsv": "string"
}Response 200 application/json
Fields · Report
datestring dateokbooleanerrorsinteger int32warningsinteger int32summarySummary13 fields · Summary
terminalPaymentsTotal2 fields · Total
countinteger int32suminteger int64
terminalRefundsTotal2 fields · Total
countinteger int32suminteger int64
terminalCancelsTotal2 fields · Total
countinteger int32suminteger int64
terminalNetinteger int64receiptsTotal2 fields · Total
countinteger int32suminteger int64
returnsTotal2 fields · Total
countinteger int32suminteger int64
correctionsTotal2 fields · Total
countinteger int32suminteger int64
kktCashinteger int64kktCardinteger int64kktCardNetinteger int64ofdRowsinteger int32ofdSuminteger int64ofdOtherFninteger int32
issuesarray of Issue8 fields · Issue
codestringseveritystringvalues:ERRORWARNINGatstring date-timeregisterinteger int32terminalinteger int32fdinteger int64amountinteger int64messagestring
Errors — problem+json with a code field, see error codes.
Request example
curl -X POST 'http://localhost:7790/api/v1/reconciliation' \
-H 'Content-Type: application/json' \
--data '{"date":"2026-11-01","ofdCsv":"string"}'curl -X POST 'https://cloud.hw-connector.ru/agent/api/v1/reconciliation' \
-H 'X-Api-Key: hwk_…' \
-H 'X-Device-Id: 42' \
-H 'Content-Type: application/json' \
--data '{"date":"2026-11-01","ofdCsv":"string"}'Daily reconciliation journal#
/api/v1/reconciliation/ledgerReceipts and card operations through the agent: amounts by payment type, document number, RRN
Parameters
| Name | In | Type | Description |
|---|---|---|---|
date | query | string date |
Response 200 application/json
Array · Entry
kindstringatstring date-timeregisterinteger int32terminalinteger int32opstringfdinteger int64fnstringshiftinteger int32totalinteger int64cashinteger int64cardinteger int64otherinteger int64rrnstringauthCodestringcardNumberstring
Errors — problem+json with a code field, see error codes.
Request example
curl 'http://localhost:7790/api/v1/reconciliation/ledger'curl 'https://cloud.hw-connector.ru/agent/api/v1/reconciliation/ledger' \
-H 'X-Api-Key: hwk_…' \
-H 'X-Device-Id: 42'