medianfi-com AR/AP API
The AR/AP API from medianfi-com — 34 operation(s) for ar/ap.
Operations 48
POST
/companies/{companyId}/ar/{id}/send
Send an invoice (draft → open, mints the payment token; idempotent)
#
POST
/companies/{companyId}/ar/{id}/resend-email
Resend the invoice email (already-sent invoices; same payment token)
#
GET
/companies/{companyId}/ar/{id}/email-preview
Server-rendered invoice email preview (nothing sent)
#
POST
/companies/{companyId}/ar/drafts/from-document
Create a DRAFT invoice from an uploaded invoice document's extraction
#
PATCH
/companies/{companyId}/ar/{id}/composed
Re-compose a draft invoice (lines replace wholesale, totals recompute)
#
POST
/companies/{companyId}/ar/{id}/status
Drawer lifecycle action (mark paid / void / uncollectible), FSM-enforced
#
POST
/companies/{companyId}/ar/{id}/match-transaction
Match a bank deposit to the invoice (marks fully paid)
#
GET
/companies/{companyId}/ar/{id}/payments
List the invoice's card-collection payments (charge-rail subledger)
#
GET
/companies/{companyId}/ap/{id}
Get an AP item (includes availableTransitions and ledger authority)
#
POST
/companies/{companyId}/ap/{id}/transitions
Apply a customer workflow transition to an AP item
#
POST
/companies/{companyId}/ap/transitions/batch
Apply customer workflow transitions to multiple AP items
#
GET
/companies/{companyId}/ap/recognition/timeline
Forward expense recognition by month across posted AP items
#
GET
/companies/{companyId}/ap/{id}/match-candidates
List unreconciled bank-transaction candidates for a bill
#
POST
/companies/{companyId}/ap/{id}/match
Match a bank transaction to a bill and reflect its pay state
#
GET
/companies/{companyId}/ap/{id}/match-coverage
Aggregate applied bank-match coverage for a bill
#
GET
/companies/{companyId}/vendors/{id}
Get a vendor (with bills + outstanding/billCount/lifetimeSpend rollup)
#
PATCH
/accountant/companies/{customerId}/ar/{id}/status
Change an AR item's lifecycle status (FSM-enforced)
#
POST
/accountant/companies/{customerId}/ar/{id}/deferral
Generate/regenerate an AR deferred-revenue schedule
#
PATCH
/accountant/companies/{customerId}/ap/{id}/status
Change an AP item's lifecycle status (FSM-enforced)
#
POST
/accountant/companies/{customerId}/ap/{id}/deferral
Generate/regenerate an AP prepaid-amortization schedule
#
POST
/accountant/companies/{customerId}/ap/{id}/schedule-payment
Record an accountant-approved AP payment intent
#
DELETE
/accountant/companies/{customerId}/ap/{id}/schedule-payment
Cancel an unexecuted AP payment intent
#
GET
/accountant/companies/{customerId}/customers
Customer's customer records (accountant mirror, read-only)
#