payabli-bills
Payabli bills (AP automation)
Capture vendor bills and pay them.
Load fundamentals first
If payabli-fundamentals is not already loaded, load it now, then continue.
On load
If payabli-integration.md exists at the repo root, read it; honor its ## SDK value.
Capture a bill
Create a bill with POST /Bill/single/{entry} — identify the vendor with a nested vendor object (vendor: { vendorNumber }) — a top-level vendorNumber is rejected. Plus amount, due date, and an optional bill image. A bill needs only a top-level netAmount; unlike invoices, line items aren't required — but if you do send billItems, their itemTotalAmount must sum to netAmount exactly (the API adds nothing on top), or the create fails with 400 ("Sum of BillItems does not match Bill TotalAmount"). Bulk-import with POST /Import/billsForm/{entry}. https://docs.payabli.com/guides/pay-out-developer-bills-manage.md
Set status: 1 (Active) on create so the bill is immediately payout-eligible. -99 is Cancelled — don't use it.
Bill OCR is a standalone capture path — Payabli's OCR engine extracts bill data (line items, amounts, vendor details) from a PDF or image. It is its own feature, not part of vendor enrichment. Extract via POST /Import/ocrDocumentForm/{typeResult} (multipart) or /Import/ocrDocumentJson/{typeResult} (base64), with typeResult set to bill. https://docs.payabli.com/guides/pay-ops-developer-ocr-use.md