Reconciliation

Instant reconciliation

Run instant reconciliation with the Go SDK.

POST/reconciliation/start-instant

Use client.Reconciliation.RunInstant to reconcile external records inline.

Call the method

txnDate := time.Date(2024, 11, 15, 14, 25, 30, 0, time.UTC)

instantResp, _, _ := client.Reconciliation.RunInstant(
 blnkgo.RunInstantReconData{
  ExternalTransactions: []blnkgo.ExternalTransaction{
   {
	 ID: "txn_1",
	 Amount: 5.49,
	 Reference: "INV-2023-002",
	 Currency: "GBP",
	 Description: "Card payment",
	 Date: &txnDate,
	 Source: "bank-api",
	},
   },
  Strategy: blnkgo.ReconciliationStrategyOneToOne,
  DryRun: true,
  MatchingRuleIDs: []string{
	"rule_890bdbc4-467f-4670-8424-5667e41daf29",
  },
 },
)
FieldTypeDescription
ExternalTransactions[]blnkgo.
ExternalTransaction
Array of external transaction rows to reconcile.
ExternalTransactions.
[].ID
stringUnique external transaction ID.
ExternalTransactions.
[].Amount
float64Transaction amount.
ExternalTransactions.
[].Reference
stringUnique transaction reference.
ExternalTransactions.
[].Currency
stringISO 4217 currency code.
ExternalTransactions.
[].Description
stringDescription of the transaction.
ExternalTransactions.
[].Date
*time.TimeTransaction date and time.
ExternalTransactions.
[].Source
stringOrigin of the transaction data.
Strategyblnkgo.
ReconciliationStrategy
Match strategy: ReconciliationStrategy
OneToOne, ReconciliationStrategy
OneToMany, or ReconciliationStrategy
ManyToOne.
MatchingRuleIDs[]stringIDs of the matching rules to apply.

Response

{
  "reconciliation_id": "rec_a8f2c91d-1234-4abc-9def-0123456789ab"
}

Go response (*blnkgo.StartReconciliationResponse)

FieldTypeDescription
ReconciliationIDstringID of the reconciliation run. Use it with client.Reconciliation.
Get to check status.