S41 · Pipeline skill
Reconcile payments and refunds
Calculate charges, verify payment events and have reviewers resolve discrepancies and refunds.
Charge normalization + payment callback verification + human reconciliation and refunds
- Pipeline
- 5 steps
- Human review
- 1
- Components
- 6
01Pipeline
Base pipeline
Ordered steps. Each consumes the previous output; review gates hold until a person accepts.
- Starts from
- Charge details, orders and applicable refund rules
- Delivers
- Refund receipts and open items within the same environment
Review contract
People decide at review gates; components supply data, drafts or review surfaces. Unaccepted outputs do not advance.
Integration note
Choose either test or real adapters for each run and keep ledgers separate; invoice records do not submit to tax authorities.
- 01
Check amounts and sensitive fields
- Input
- Charge details, orders and applicable refund rules
- Output
- Currency-aligned charges and masked payment context
- Service fees and exchange-rate pricingBase price and fee composition + currency conversion snapshots
- Payment-field protection and readiness checksSensitive payment input handling + masked metadata and cleanup
- 02
Rehearse or verify payment
- Input
- Currency-aligned charges and masked payment context
- Output
- Payment state explicitly separated into test and real records
- Sandbox payment and refund state orchestrationOrder payment and refund rehearsal + amount, currency and idempotency checks
- Card and cryptocurrency payment orchestrationDeduplicated payment requests + verified callbacks and refund state
- 03
Match receivables and receipts
- Input
- Payment state explicitly separated into test and real records
- Output
- Reconciliation results and unresolved differences
- Receivables, collections, reconciliation, expenses and invoicesReceivable allocation and reconciliation + invoice state consistency
- 04
Approve refunds or corrections
Human review- Input
- Reconciliation results and unresolved differences
- Output
- Human-approved refund or correction instructions
Decided byAssigned reviewer or requesting user
- Aftersales approvals, refunds and replacement ordersException intake + human-approved refund or replacement
- Receivables, collections, reconciliation, expenses and invoicesReceivable allocation and reconciliation + invoice state consistency
- 05
Reconcile execution state
- Input
- Human-approved refund or correction instructions
- Output
- Refund receipts and open items within the same environment
- Card and cryptocurrency payment orchestrationDeduplicated payment requests + verified callbacks and refund state
- Sandbox payment and refund state orchestrationOrder payment and refund rehearsal + amount, currency and idempotency checks
02Industry versions
Industry versions
Lifestyle & consumer apps Transferable use Align digital-content charges and payment receipts and have support review and approve duplicate-charge corrections or refund requests.
Adaptation Use one of sandbox or real adapters per run and keep environments separate; real refunds require valid authorization and payment integration.
- 01
Check order amounts and currencies
- Input
- Digital-content orders, charges and refund policy
- Output
- Currency-aligned charges and masked payment data
- Service fees and exchange-rate pricingBase price and fee composition + currency conversion snapshots
- Payment-field protection and readiness checksSensitive payment input handling + masked metadata and cleanup
- 02
Separate rehearsals from real payments
- Input
- Currency-aligned charges and masked payment data
- Output
- Payment state with explicit environment
- Sandbox payment and refund state orchestrationOrder payment and refund rehearsal + amount, currency and idempotency checks
- Card and cryptocurrency payment orchestrationDeduplicated payment requests + verified callbacks and refund state
- 03
Match receivables and receipts
- Input
- Payment state with explicit environment
- Output
- Reconciliation result and suspected duplicates
- Receivables, collections, reconciliation, expenses and invoicesReceivable allocation and reconciliation + invoice state consistency
- 04
Support approves refunds or corrections
Human review- Input
- Reconciliation result and suspected duplicates
- Output
- Approved refund or correction instructions
Decided byAssigned reviewer or requesting user
- Aftersales approvals, refunds and replacement ordersException intake + human-approved refund or replacement
- Receivables, collections, reconciliation, expenses and invoicesReceivable allocation and reconciliation + invoice state consistency
- 05
Reconcile refund receipts
- Input
- Approved refund or correction instructions
- Output
- Refund state and open items
- Card and cryptocurrency payment orchestrationDeduplicated payment requests + verified callbacks and refund state
- Sandbox payment and refund state orchestrationOrder payment and refund rehearsal + amount, currency and idempotency checks
03Parameters
Parameters
From the pack’s params.schema.json. Choose values to build a synthetic request.
skills/_pipelines/reconcile-and-refund/params.schema.json
{
"synthetic": true,
"run_id": "synthetic-example",
"locale": "en",
"industry": "base",
"adapter_mode": "local",
"records": [
{
"id": "synthetic-record-1",
"synthetic": true,
"text": "Synthetic observation A: a draft needs review."
},
{
"id": "synthetic-record-2",
"synthetic": true,
"text": "Synthetic observation B: retain the unresolved question."
}
],
"decisions": {}
} 04Member components
Member components
-
Service fees and exchange-rate pricing
Base price and fee composition + currency conversion snapshots
Working 1 pipeline -
Payment-field protection and readiness checks
Sensitive payment input handling + masked metadata and cleanup
Working 1 pipeline -
Sandbox payment and refund state orchestration
Order payment and refund rehearsal + amount, currency and idempotency checks
Prototype 1 pipeline -
Card and cryptocurrency payment orchestration
Deduplicated payment requests + verified callbacks and refund state
Working 1 pipeline -
Receivables, collections, reconciliation, expenses and invoices
Receivable allocation and reconciliation + invoice state consistency
Working 1 pipeline -
Aftersales approvals, refunds and replacement orders
Exception intake + human-approved refund or replacement
Working 3 pipelines
05Skills pack
Skills pack
Runnable reference on synthetic fixtures with tests. Domain contracts, services and approvals still need integration.
reconcile-and-refund-1.0.0.zip
Contains SKILL.md, pipeline.json, params.schema.json, runner, tests, fixtures, integration checklist and sources.
Synthetic workflow reference; service integration pending
Download · 18KBSHA-256 c9e5ec8ef6458547bea5cd0918338f7b954d1d32733777ee52ca7262d1edd7c8