Create a new bill for a business with line items. Supports idempotency via external_id.
Partner-level JWT token (unscoped). Token payload includes partner_id. Business access is validated via partner ownership. Format: Bearer <your-jwt-token>
Use this for: Multi-business operations where the business_id is specified in the URL and partner has access to multiple businesses.
Bill creation serializer. Creates a Bill with line items.
Your unique identifier for this bill (used for idempotency)
1Array of line items for this bill (at least one required)
UUID of existing vendor (use this OR vendor_external_id, not both)
External vendor ID - will auto-create vendor if not found
Your internal bill tracking number
Vendor's invoice/bill number from their system
Purchase order number if applicable
Description or notes for this bill
Array of additional reference numbers for tracking
1Array of URLs to bill documents/PDFs
1Date bill was issued by vendor (ISO date: YYYY-MM-DD)
Date/time bill was received (ISO 8601 format)
Payment due date/time (ISO 8601 format)
Date/time bill was approved (triggers journal entry creation)
Bill currency (e.g., GBP, EUR, USD)
EUR - EuroGBP - British PoundUSD - US DollarSEK - Swedish KronaNOK - Norwegian KroneDKK - Danish KroneISK - Icelandic KrónaMYR - Malaysian RinggitSGD - Singapore DollarEUR, GBP, USD, SEK, NOK, DKK, ISK, MYR, SGD, Optional document upload
Main bill serializer for list/fetch responses, aligned with existing API style
Always 'BillData' for type discrimination
Bill status: received, partially_paid, paid, voided
Payment terms (NET_30, NET_60, DUE_ON_RECEIPT, etc.)
Date the bill was issued by vendor (from bill_date)
Date/time bill was received
Payment due date/time
Full payment completion date/time
Void action timestamp
True if bill is past due date and has outstanding balance
false
Serializer for vendor objects returned by the vendors list endpoint
Payment allocations for this bill
Vendor credit note allocations for this bill
Vendor refund allocations for this bill
Additional tax entries not included in line items
Total additional sales taxes in cents
Subtotal amount in cents before taxes
Total bill amount in cents including taxes
Outstanding balance in cents
Amount paid via bank payments in cents (completed only)
Amount paid via vendor credit notes in cents
True if has unreconciled bank payments
Latest document with presigned URL