dsh-plugin-payment-reconciler: Local Order and Payment Reconciliation

Introduction

When working on workflows in DeepSeek Harness (DSH), it is often necessary to reconcile order exports from the business side with transaction logs from payment channels: to check which orders have been paid, which are missing payment, if there are duplicate entries, and if the amount or date matches. Manually filtering with spreadsheets is tedious and prone to errors caused by inconsistent field names, date formats, and amount notations.

Below is an introduction to the community plugin dsh-plugin-payment-reconciler (maintainer: thegabopacheco-sudo, category: Workflow). It reads CSV/JSON locally, cross-matches payment records against order IDs, classifies differences, and generates a confirmable report. The entire process works offline and does not require payment API credentials.

What is this

dsh-plugin-payment-reconciler is an MCP-style plugin for DSH (current version 0.1.0, MIT license). Its core capabilities are: loading order and payment data from local files, executing reconciliation logic, and generating reports as needed. Data and calculations are performed locally, making it suitable for embedding reconciliation steps into Harness conversations or automated workflows, rather than replacing the official reconciliation systems of banks or payment gateways.

Core Features

The plugin exposes capabilities through a set of tools, typically in the order: view status, load data, reconcile, and write report.

Tool Description
status View Payment Reconciler status
load_orders Load order file
load_payments Load payment file
reconcile Reconcile orders with payments
report Generate reconciliation report

Input Format

Supports CSV (comma, semicolon, or Tab) or JSON with headers.

Common fields on the order side: id / order_id, amount / monto / total, date / fecha, currency / moneda.

Common fields on the payment side: order_id / pedido_id / reference (linking to the order), payment_id / id / transaction_id, as well as amount, date, and currency.

The plugin attempts to parse signed amounts (e.g., $1,234.56, 1.234,56) and multiple date formats (ISO 2026-01-10 or dd/mm/aaaa). JSON can be an array of objects, or { "orders": [...] } / { "payments": [...] } / { "data": [...] }, and supports JSONL (JSON Lines).

Reconciliation Result Classification

The reconcile command categorizes records into the following categories (definitions are based on the provided data):

  • Coinciden: One order, one payment, IDs match, amount and date are within tolerance.
  • Faltan pagos: Order exists, but no corresponding payment.
  • Pagos duplicados: Same order corresponds to multiple payments.
  • Diferencias de monto / fecha / moneda: IDs match, but amount, date, or currency differ.
  • Sin monto verificable: Either side is missing a verifiable amount.
  • Pagos sin pedido: Order ID in payment does not exist in order file.
  • Ids de pedido repetidos: Duplicate order IDs appear in the order file.

Default tolerance: Amount ±0.01, date ±1 day; adjustable in config.json or reconcile parameters.

Installation and Enablement

Environment requirements: Node.js >= 20.

You can install github:thegabopacheco-sudo/dsh-plugin-payment-reconciler in DSH Settings → Plugins and allow installation scripts; or use the CLI to add the plugin to a specific profile:

dsh plugin --profile <perfil> add github:thegabopacheco-sudo/dsh-plugin-payment-reconciler

Replace <perfil> with the name of the DSH profile you actually use.

The plugin runs with the permissions of the current dsh process. It is recommended to read the repository source code and the MIT license before installing to ensure the path access policy fits your environment.

Configuration

The first time you use it, a configuration file is generated at <DSH_HOME>\payment-reconciler\config.json, for example:

{
  "allowedPaths": ["C:\\datos"],
  "amountTolerance": 0.01,
  "dateToleranceDays": 1
}
  • When allowedPaths is empty, it means any local path is allowed; you can also supplement the whitelist using the environment variable DSH_PAYMENTS_ALLOWED_PATHS (semicolon separated).
  • When calling report, if path is not specified, the output directory is <DSH_HOME>\cache\payment-reconciler\.

Typical Usage

The following example is from the repository README: first load orders and payments, tighten the date tolerance to 0 days, then generate a Markdown report and explicitly confirm writing.

status
load_orders  { "path": "C:\\datos\\pedidos.csv" }
load_payments { "path": "C:\\datos\\pagos.json" }
reconcile    { "dateToleranceDays": 0 }
report       { "path": "C:\\datos\\conciliacion.md", "format": "md", "confirm": true }

When operating on paths, please change the Windows paths in the example to paths accessible on your local machine, and ensure they fall within the range allowed by allowedPaths or the corresponding environment variable.

Security and Limitations

  • Default is read-only; reconcile only performs analysis and can be used even in read-only mode.
  • Writing to disk only occurs when report is called with confirm: true, the target path is in the whitelist, and the file does not already exist.
  • You can disable writing by setting DSH_PAYMENTS_MODE=read-only.
  • Audit logs are located at <DSH_HOME>\cache\payment-reconciler\audit.jsonl (excluding raw business data, containing only counts and metadata like paths).
  • There is a rate limit per action; the single file limit is approximately 5 MB or 50,000 lines.

Applicable Scenarios and Notes

Suitable for developers and operations staff who need to reconcile orders from export files and wish to delegate the steps to a DSH agent or fixed workflow. It is not suitable for replacing the authoritative ledgers of payment platforms and does not handle pulling orders online.

The community directory page (SkillHub Plugin Page) and GitHub repository are maintained by the community and have no official affiliation with DeepSeek/Fanghuang; please evaluate the source code and permission boundaries yourself before installing the plugin.

Conclusion

dsh-plugin-payment-reconciler combines local CSV/JSON reconciliation, difference classification, and a confirmable report into a single DSH workflow, completing the most common checks—‘did the order get paid, was it paid correctly?’—without requiring credentials.

  • Directory: https://www.skillhub.cn/plugins/thegabopacheco-sudo/dsh-plugin-payment-reconciler
  • Repository: https://github.com/thegabopacheco-sudo/dsh-plugin-payment-reconciler
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye