const { data: reconciliation } = await clinik.paymentReconciliations.create({
status: 'active',
paymentDate: '2024-03-15',
paymentAmount: { value: 4750.00, currency: 'USD' },
paymentIssuerId: 'org_blueShield',
outcome: 'complete',
disposition: 'Monthly settlement — March 2024',
period: { start: '2024-03-01', end: '2024-03-31' },
detail: [
{
type: 'payment',
date: '2024-03-15',
amount: { value: 2500.00, currency: 'USD' },
payeeId: 'Practitioner/prac_drSmith',
requestId: 'Claim/clm_visit001',
},
{
type: 'payment',
date: '2024-03-15',
amount: { value: 1800.00, currency: 'USD' },
payeeId: 'Practitioner/prac_drJones',
requestId: 'Claim/clm_visit002',
},
{
type: 'adjustment',
date: '2024-03-15',
amount: { value: 450.00, currency: 'USD' },
},
],
processNote: [
{ type: 'display', text: 'All claims for March settled. Adjustment for overpayment on CLM-2024-002.' },
],
});