Skip to content

Reconciliation ​

The reconciliation endpoints return the merchant accounting records that Kuvex derives from acquirer reports: per-transaction cases, terminal-day and merchant-day records, settlement comparisons, cycles and incidents. They also record evidence-based case resolutions. The Dashboard Reconciliation page shows the same records read-only.

EndpointDescription
GET /v1/reconciliationList cases
GET /v1/reconciliation/{id}Retrieve a case
POST /v1/reconciliation/{id}/resolveResolve a case
POST /v1/reconciliation/syncRequest a terminal report sync
GET /v1/reconciliation/syncList sync requests
GET /v1/reconciliation/sync/{id}Retrieve a sync request
GET /v1/reconciliation/daily, /daily/{id}Terminal-day records
GET /v1/reconciliation/merchant-daily, /merchant-daily/{id}Merchant-day records
GET /v1/reconciliation/settlement, /settlement/{id}Settlement comparisons
GET /v1/reconciliation/cycles, /cycles/{id}Cycles
GET /v1/reconciliation/incidents, /incidents/{id}Incidents
POST /v1/reconciliation/incidents/{id}/acknowledgeAcknowledge an incident
POST /v1/reconciliation/daily/run, /merchant-daily/run, /settlement/run, /cycles/runRegenerate records

Conventions ​

Authentication ​

ItemValue
AuthSecret key only
Test keyAccepted only for anonymous sandbox accounts
ScopeRecords of the calling account only
Rate limitPOST requests: about 60 per minute. GET requests: none

Other credentials are rejected:

HTTPCodeDescriptionRetriable
403reconciliation_server_key_requiredBrowser session token (kvs_). Clients that call these endpoints with kvs_ must move the calls to their backendNo
403scope_forbiddenHost token of a store host in companion mode. A host can only list its own terminals' payments with GET /v1/payments?terminal_id=…No
403reconciliation_requires_live_keyTest key of a real (non-sandbox) account. Use the live secret keyNo

Business date and identifiers ​

ValueFormat and rules
business_dateYYYY-MM-DD, a valid calendar date in America/Los_Angeles, not the browser time zone. Otherwise 400 reconciliation_business_date_invalid
merchant_idThe public ISV merchant identifier, not an internal database UUID
terminal_idTerminals are assigned to the account by Kuvex by serial number; there is no claim step. IDs come from List terminals or the Dashboard Terminals page

One ISV order can have several payments and several acquirer observations. A case's status does not replace the payment's status.

Lists and pagination ​

The seven list endpoints share these query parameters:

ParameterTypeRequiredDescription
limitintNoPage size, 1–100, default 25
starting_afterStringNoCursor: the next_cursor of the previous page
merchant_idStringNoFilter by merchant
business_dateStringNoFilter by business date
statusStringNoFilter by record status; values are listed per record type
terminal_idStringNoFilter by terminal. Cases, terminal-day records and sync requests only
order_idStringNoFilter by ISV order ID. Cases only

Filter values are strings of 1–200 characters without control characters. An invalid limit or filter value, or a filter that the list does not support, returns 400 reconciliation_filter_invalid.

Response

json
{ "object": "list", "data": [ ... ], "has_more": true, "next_cursor": "..." }
FieldTypeDescription
objectStringAlways list
dataArrayRecords of the page
has_morebooleantrue if more records follow
next_cursorStringID of the last record on the page; null when has_more is false

While has_more is true, repeat the request with the same filters and starting_after=<next_cursor>; reading only the first page is incomplete. A cursor from another account or another filter selection returns 400 reconciliation_cursor_invalid.

ListOrder
Terminal-day, merchant-day, settlement, cycles, sync requestsBusiness date, creation time, ID; descending
Cases, incidentsCreation time, ID; descending

Incident severity and update time are returned as data and are not used as paging keys.

Lists are live traversals, not frozen exports: records that arrive later require another traversal, and case and incident state can change. Terminal-day and settlement comparison IDs are immutable evidence references; keep the earlier IDs when a newer record appears instead of overwriting them.

Each list has a detail endpoint /{id}.

Reconciliation flow ​

  1. Look up the cases for an ISV order.
  2. Request the terminal report sync for the business date and poll until it completes.
  3. Read each record level: terminal day, merchant day, settlement, cycle, incidents.
  4. Resolve cases only with evidence; acknowledge incidents.
  5. Export the business day for your records.

Webhook events report records that do not balance and incident changes.

Look up cases for an order ​

http
GET /v1/reconciliation

Lists cases. Each case compares one acquirer transaction observation with the corresponding Kuvex payment. Query parameters: Lists and pagination; order_id and terminal_id are supported.

Request example

bash
curl "https://api.kuvex.com/v1/reconciliation?merchant_id=store-1&order_id=ORDER-1&business_date=2026-09-09&limit=100" \
  -H "Authorization: Bearer $KUVEX_SECRET_KEY"
http
GET /v1/reconciliation/{id}

Returns the case with three additional fields: source, processor_observation (the acquirer observation) and resolution_events (Array, the resolution history). Errors: 404 reconciliation_case_not_found.

Case fields (object: reconciliation_case)

FieldTypeDescription
idStringCase ID
merchant_idStringMerchant ID
terminal_idStringTerminal ID
business_dateStringBusiness date
payment_idStringKuvex payment ID; null if no matching payment exists
order_idStringISV order ID
processor_transaction_idStringAcquirer transaction ID
sdk_order_idStringOrder ID of the terminal payment SDK
statusStringComparison result, below
actionStringRecommended action: none, investigate, import_processor_fact, recover_device_success
reasonStringReason code, below
resolved_atStringResolution time; null if unresolved
resolution_basisStringResolution basis
resolution_referenceStringEvidence reference
resolution_noteStringResolution note
resolved_byStringID of the API key used to resolve the case
created_atStringCreation time
updated_atStringLast update time

Case status

ValuereasonMeaningRecommended handling
matchedidentity_amount_status_matchTransaction ID, amount and status matchNone
matchedprocessor_recovers_local_statusThe acquirer shows funds moved although the Kuvex payment had not succeeded; the local status is recovered from the acquirer record (action=recover_device_success)Re-read the payment
mismatchedprocessed_amount_mismatch, status_mismatchAmount or status differsInvestigate
possible_duplicatesame_card_amount_time_distinct_processor_idsAnother acquirer transaction ID with the same card, amount and similar timeInvestigate. This is a candidate, not a finding of a double charge. Never refund automatically on card last 4 and amount
processor_onlykuvex_payment_missingThe acquirer has the transaction; Kuvex has no payment (action=import_processor_fact)Investigate
attention_requiredprocessor_identity_maps_multiple_payments, processor_operation_unknown, payment_environment_unprovenCannot be judged: one acquirer ID maps to several payments, the operation type is unknown, or the payment's test/live mode is not establishedInvestigate

Resolving a case does not change status; it sets resolved_at and the resolution_* fields.

Request a terminal report sync ​

http
POST /v1/reconciliation/sync

Requests the acquirer report of one terminal for one business date. The request can trigger a real acquirer report query; call it only for an authorized merchant and environment.

ItemValue
AuthSecret key only
Rate limitAbout 60 per minute

Request body

ParameterTypeRequiredDescription
terminal_idStringYesTerminal ID
business_dateStringYesBusiness date, YYYY-MM-DD

Request example

bash
curl https://api.kuvex.com/v1/reconciliation/sync \
  -H "Authorization: Bearer $KUVEX_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{"terminal_id": "YOUR_TERMINAL", "business_date": "2026-09-09"}'

Response: 202 Accepted

json
{
  "object": "reconciliation_sync",
  "id": "rsync_...",
  "terminal_id": "YOUR_TERMINAL",
  "business_date": "2026-09-09",
  "source": "device",
  "status": "dispatched"
}
Terminal statesourceProcessing
OnlinedeviceThe terminal is asked to upload its report: dispatched if the command was sent, otherwise queued
Offline, acquirer reporting channel availabletsys_cloud (preferred) or hante_cloudKuvex pulls the report from the acquirer: completed on success, and the terminal-day record is generated. If the pull fails, the request is recorded as failed and the call returns that error instead of 202
Offline, no channel availablehante_cloudawaiting_provider; no report is requested

Save the returned id and poll the request.

Errors

HTTPCodeDescriptionRetriable
400reconciliation_business_date_invalidInvalid business dateNo
404terminal_not_foundTerminal does not exist or does not belong to the accountNo
409provider_coverage_incompleteAcquirer pull: the report does not prove complete coverage of the business dayYes
502provider_response_invalidAcquirer pull: invalid reportYes
503provider_fetch_failedAcquirer pull: channel unreachableYes
503provider_not_configuredAcquirer pull: channel not configuredYes

After a failed pull, the request remains readable through GET /v1/reconciliation/sync. Follow error.retriable.

http
GET /v1/reconciliation/sync/{id}
GET /v1/reconciliation/sync

Retrieves one sync request (read-only), or lists sync requests with the list parameters, including terminal_id. Errors: 404 reconciliation_sync_not_found.

Sync request fields (object: reconciliation_sync)

FieldTypeDescription
idStringSync request ID, rsync_ prefix
merchant_idStringMerchant ID
terminal_idStringTerminal ID
business_dateStringBusiness date
sourceStringReport source: device, tsys_cloud, hante_cloud
statusStringStatus, below
is_completebooleantrue when status is completed
next_actionStringNext action for the caller, below
attemptsintNumber of attempts
has_errorbooleantrue if an error was recorded. Raw provider errors and secrets are not exposed
created_atStringCreation time
updated_atStringLast update time
completed_atStringCompletion time; null until completed

Sync request status

Valuenext_actionMeaningRecommended handling
queuedwaitRecorded, not yet sentPoll with backoff. Submission is not completion
dispatchedwaitSent to the terminalPoll with backoff
awaiting_providercontact_supportNo reporting source available on the terminal or in the cloudContact Kuvex support
failedretry_syncReport retrieval failedRetry according to your operational procedure
completedread_dailyReport sync completedRead the terminal-day records. This is report-sync completion, not proof that the day balanced

A sync request represents one terminal and business day, and a later retry can update it. It is not immutable settlement evidence.

Read each record level ​

EndpointRecordContent
/v1/reconciliation/dailyTerminal-day recordKuvex totals against acquirer totals for one terminal and business day. Check source, the totals and unresolved_count
/v1/reconciliation/merchant-dailyMerchant-day recordCoverage and totals across the merchant's required terminals
/v1/reconciliation/settlementSettlement comparisonMerchant-day totals against the acquirer settlement report. Not a bank deposit confirmation
/v1/reconciliation/cyclesCycleProgress of a merchant's business day through these stages
/v1/reconciliation/incidentsIncidentConditions that require attention. Acknowledgement is not financial resolution

Interpretation rules:

  • Missing source data or missing terminal coverage is never a balanced zero day.
  • Unknown operation types, pending or offline results, and conflicting snapshots require attention.
  • Fetching an identical acquirer transaction again does not add another sale.

Totals ​

The *_totals fields and difference share this structure. Amounts are in cents.

FieldTypeDescription
sales_countintNumber of sales
gross_centsintGross sales amount
refund_countintNumber of refunds
refund_centsintRefund amount
net_centsintNet amount; can be negative
unresolved_countintPayments without a final outcome. Terminal-day and merchant-day totals only

difference is acquirer minus Kuvex on terminal-day and merchant-day records, and settlement report minus merchant day on settlement comparisons.

Terminal-day records ​

GET /v1/reconciliation/daily, GET /v1/reconciliation/daily/{id}. Filters include terminal_id. Errors: 404 reconciliation_daily_not_found.

FieldTypeDescription
idStringRecord ID
objectStringreconciliation_daily_run
merchant_idStringMerchant ID
terminal_idStringTerminal ID
business_dateStringBusiness date
statusStringStatus, below
actionStringRecommended action, below
sourceStringAcquirer source used: tsys_cloud, hante_cloud, tsys_device_report, in this order of precedence; null if none
kuvex_totalsObjectKuvex totals, see Totals
processor_totalsObjectTotals of the selected acquirer source
source_totalsObjectTotals per acquirer source
differenceObjectAcquirer minus Kuvex; null without source data
created_atStringCreation time
statusactionMeaning
awaiting_sourcefetch_processor_reportNo acquirer data yet
balancednoneEvery total matches
unbalancedinvestigateAt least one total differs
attention_requiredconfirm_processor_semanticsunresolved_count is greater than 0 on either side; cannot be judged

Merchant-day records ​

GET /v1/reconciliation/merchant-daily, GET /v1/reconciliation/merchant-daily/{id}. Errors: 404 reconciliation_merchant_daily_not_found.

FieldTypeDescription
idStringRecord ID
objectStringreconciliation_merchant_daily_run
merchant_idStringMerchant ID
business_dateStringBusiness date
statusStringStatus, below
actionStringRecommended action, below
required_terminal_idsArray<String>Terminals that must be covered
included_run_idsArray<String>Terminal-day records included
missing_terminal_idsArray<String>Required terminals without a terminal-day record
terminal_status_countsObjectNumber of included terminal-day records per status
kuvex_totalsObjectKuvex totals
processor_totalsObjectAcquirer totals; null unless every required terminal has acquirer data
differenceObjectAcquirer minus Kuvex; null under the same condition
created_atStringCreation time
statusactionMeaning
awaiting_coveragesync_missing_terminalsNo required terminals, or a required terminal has no terminal-day record
attention_requiredconfirm_processor_semanticsAt least one terminal-day record is attention_required
awaiting_sourcefetch_processor_reportAcquirer data missing for at least one terminal
unbalancedinvestigate_terminalsAt least one terminal-day record is unbalanced
balancednoneAll required terminals balanced

Settlement comparisons ​

GET /v1/reconciliation/settlement, GET /v1/reconciliation/settlement/{id}. Compares the merchant day with the acquirer settlement report. This is not a bank deposit confirmation. Errors: 404 reconciliation_settlement_not_found.

FieldTypeDescription
idStringRecord ID
objectStringreconciliation_settlement_run
merchant_idStringMerchant ID
business_dateStringBusiness date
statusStringStatus, below
actionStringRecommended action, below
merchant_daily_run_idStringMerchant-day record compared
settlement_report_idStringAcquirer settlement report compared
merchant_totalsObjectMerchant-day totals (without unresolved_count)
settlement_totalsObjectSettlement report totals
differenceObjectSettlement report minus merchant day; null until both are available
created_atStringCreation time
statusactionMeaning
awaiting_merchant_daymaterialize_merchant_dayNo merchant-day record yet
attention_requiredresolve_merchant_dayThe merchant-day record is not balanced
awaiting_settlementfetch_settlement_reportNo settlement report with complete coverage yet
unbalancedinvestigate_settlementTotals differ
balancednoneTotals match

Cycles ​

GET /v1/reconciliation/cycles, GET /v1/reconciliation/cycles/{id}. A cycle tracks one merchant's business day through the stages above. The detail adds events (Array, status changes) and requests (Array, report requests sent to fill missing data). Errors: 404 reconciliation_cycle_not_found.

FieldTypeDescription
idStringCycle ID
objectStringreconciliation_cycle
merchant_idStringMerchant ID
business_dateStringBusiness date
statusStringStatus, below
actionStringRecommended action, below
merchant_daily_run_idStringCurrent merchant-day record
settlement_run_idStringCurrent settlement comparison
target_terminal_idsArray<String>Terminals whose reports are being collected
versionintRecord version
created_atStringCreation time
updated_atStringLast update time
statusactionMeaning
collecting_terminalsync_missing_terminalsCollecting terminal-day records from missing terminals
collecting_processorfetch_terminal_processor_reportsCollecting acquirer reports for the terminals
merchant_attentionresolve_merchant_dayThe merchant-day record is not balanced
awaiting_settlementfetch_settlement_reportWaiting for the settlement report
settlement_attentionresolve_settlementThe settlement comparison is not balanced
balancednoneMerchant day and settlement balanced

Incidents ​

GET /v1/reconciliation/incidents, GET /v1/reconciliation/incidents/{id}. An incident is opened when a cycle needs attention. The detail adds events (Array, the change history). Errors: 404 reconciliation_incident_not_found.

FieldTypeDescription
idStringIncident ID
objectStringreconciliation_incident
cycle_idStringCycle ID
merchant_idStringMerchant ID
business_dateStringBusiness date
reasonStringReason, below
severityStringcritical or high
actionStringRecommended action
statusStringopen, acknowledged, resolved
first_detected_atStringFirst detection time
last_detected_atStringMost recent detection time
acknowledged_atStringAcknowledgement time
acknowledgement_noteStringAcknowledgement note
resolved_atStringResolution time
versionintRecord version
created_atStringCreation time
updated_atStringLast update time
reasonseverityactionCondition
merchant_discrepancycriticalresolve_merchant_dayCycle is merchant_attention
settlement_discrepancycriticalresolve_settlementCycle is settlement_attention
recovery_dispatch_failedhighrepair_recovery_channelA report request failed repeatedly
cycle_clock_invalidcriticalrepair_cycle_evidenceThe cycle's timestamps are invalid
terminal_report_overduehighrecover_terminal_reportsTerminal collection exceeded its time limit
processor_report_overduehighrecover_processor_reportsAcquirer report collection exceeded its time limit
settlement_report_overduehighrecover_settlement_reportThe settlement report wait exceeded its time limit
statusMeaning
openCondition present, not acknowledged
acknowledgedAcknowledged through the API; condition still present
resolvedKuvex resolved it because the condition no longer holds. The incident is reopened if the condition returns

Payment status in reconciliation ​

A payment's status is not a reconciliation verdict. Interpret it as follows:

Payment statusInterpretation
succeededPaid in full
partially_approvedOnly approved_amount_cents was charged
offline_approvedNot yet confirmed by the issuer
reviewUnknown outcome; count it neither as paid nor as unpaid
canceled, failedNothing was charged
  • A payment started by a store host carries host_id, which identifies the register that took it.
  • A cancel request for a payment that the terminal has already received does not cancel it; the terminal's result stands. If a cancel and an approval cross, the payment moves to review (webhook payment.review_required) and is never silently dropped.

Resolve a case ​

http
POST /v1/reconciliation/{id}/resolve

Records a reviewed disposition for a case. This is neither a refund nor a change to acquirer data. Before resolving, inspect GET /v1/reconciliation/{id}, including the observation and the resolution events.

ItemValue
AuthSecret key only
IdempotencyResubmitting the same basis, reference and note returns the case with 200

Request body

ParameterTypeRequiredDescription
basisStringYesEvidence basis: processor_report, merchant_confirmation, bank_confirmation, support_case
referenceStringYesEvidence reference, 1–200 characters after trimming
noteStringYesResolution note, 1–2000 characters after trimming

Request example

bash
curl https://api.kuvex.com/v1/reconciliation/CASE_ID/resolve \
  -H "Authorization: Bearer $KUVEX_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{"basis": "processor_report", "reference": "REPORT-REF", "note": "Reviewed against the acquirer report"}'

Response: 201 Created for a new resolution, 200 OK if the same resolution was already recorded. The body is the case. A new resolution sends reconciliation.case.resolved.

Errors

HTTPCodeDescriptionRetriable
400reconciliation_resolution_invalidbasis not allowed, or reference / note empty or too longNo
404reconciliation_case_not_foundCase does not exist or does not belong to the accountNo
409reconciliation_case_already_resolvedCase already resolved with a different resolutionNo

Acknowledge an incident ​

http
POST /v1/reconciliation/incidents/{id}/acknowledge

Records that the incident has been seen. Acknowledgement is not financial resolution; Kuvex resolves the incident when the condition no longer holds.

Request body

ParameterTypeRequiredDescription
noteStringYesAcknowledgement note, 3–500 characters

Response: 201 Created for a new acknowledgement, 200 OK if already acknowledged with the same note. The body is the incident. A new acknowledgement sends reconciliation.incident.acknowledged.

Errors

HTTPCodeDescriptionRetriable
400reconciliation_incident_ack_invalidnote is not 3–500 charactersNo
404reconciliation_incident_not_foundIncident does not exist or does not belong to the accountNo
409reconciliation_incident_resolvedIncident already resolvedNo
409reconciliation_incident_already_acknowledgedIncident already acknowledged with a different noteNo

Regenerate records ​

Kuvex generates reconciliation records automatically. These endpoints regenerate them for one business day on request.

EndpointRequest bodyResponseNotes
POST /v1/reconciliation/daily/runterminal_id, business_dateTerminal-day record; 201 new, 200 inputs unchangedRequires a completed sync for that terminal and date. Then runs a cycle, without sending report requests
POST /v1/reconciliation/merchant-daily/runmerchant_id, business_dateMerchant-day record; 201 / 200Runs a cycle (merchant day and settlement comparison) without sending report requests
POST /v1/reconciliation/settlement/runmerchant_id, business_dateSettlement comparison; 201 / 200
POST /v1/reconciliation/cycles/runmerchant_id, business_dateCycle; 200Requests missing data: an online terminal is asked for its report, otherwise the report and the settlement report are pulled from the acquirer channel. Can trigger real acquirer report queries

All request body parameters are String and required.

Errors

HTTPCodeDescriptionRetriable
400reconciliation_business_date_invalidInvalid business dateNo
404merchant_not_foundMerchant does not exist, does not belong to the account, or is inactiveNo
404terminal_not_foundTerminal does not exist or does not belong to the account (daily/run)No
409reconciliation_sync_incompleteThe terminal's report sync for that date has not completed (daily/run)Yes

Export a business day ​

The Node 20+ script export-day.mjs sends only GET requests and reads every page of the seven lists. It never creates a payment.

Environment variableRequiredDescription
KUVEX_API_KEYYesSecret key, supplied from your secret manager
KUVEX_MERCHANT_IDYesMerchant ID
KUVEX_BUSINESS_DATEYesBusiness date
KUVEX_API_BASENoAPI base URL, default https://api.kuvex.com
bash
node export-day.mjs

Do not put keys in browser code, URLs, shell history or support messages.

The JSON output contains the generation time, "consistency": "live_read_not_frozen_snapshot" and "bank_deposit_verified": false. It draws no automatic "all reconciled" conclusion. An empty list means that no data is recorded for the selection; it does not mean zero revenue or a successful reconciliation.

Webhook events ​

Reconciliation events are delivered to the registered webhook endpoint (signature and payment events: Webhooks and events). Each event carries the id of the record; read it back with the matching GET. No event states that a day balanced.

typeTriggerdata
reconciliation.daily.unbalanced / reconciliation.daily.attention_requiredA terminal-day record is unbalanced / attention_requiredid, merchant_id, terminal_id, business_date, source, difference
reconciliation.merchant_daily.unbalanced / .attention_requiredThe same for a merchant-day recordid, merchant_id, business_date, status, included_terminal_count, difference
reconciliation.settlement.unbalanced / .attention_requiredThe same for a settlement comparisonid, merchant_id, business_date, status, difference
reconciliation.case.resolvedA case was resolvedid, merchant_id, payment_id, order_id, resolution
reconciliation.incident.openedAn incident was opened or reopenedid, merchant_id, business_date, reason, severity, action
reconciliation.incident.acknowledgedAn incident was acknowledged; not financial resolutionid, reason, note
reconciliation.incident.resolvedAn incident was resolvedid, merchant_id, business_date, reason

A balanced day sends no event. The absence of events does not mean the day balanced; read the lists.

Notes ​

  • This API revision added pagination and filter validation and restricted access to secret keys. The release did not rewrite any existing payment, receipt or historical reconciliation record.