Bills

Create and manage bills for vendor payments and expenses.

Overview

Bills represent amounts you owe to vendors. They track expenses, vendor payments, and can be exported for accounting purposes. Bills support draft, finalized, and paid states for workflow management.


How It Works

  1. Create a bill - Record an expense owed to a vendor
  2. Review and finalize - Verify details and finalize the bill
  3. Mark as paid - Record when payment is made to the vendor
  4. Export for accounting - Download bills for your accounting system

Example: You receive an invoice from a content provider for $5,000. Create a bill in draft, verify the amount matches the invoice, finalize it, and mark as paid when you send payment.


API Endpoints

MethodEndpointDescription
GET/api/v1/core/billsList all bills
POST/api/v1/core/billsCreate a bill
GET/api/v1/core/bills/{id}Get a bill
PUT/api/v1/core/bills/{id}Update a bill
DELETE/api/v1/core/bills/{id}Delete a bill
POST/api/v1/core/bills/{id}/finalizeFinalize a draft bill
POST/api/v1/core/bills/{id}/mark-as-paidMark a bill as paid
GET/api/v1/core/bills/exportExport bills

Bill Workflow

StatusDescription
draftBill is being prepared, can still be edited
finalizedBill is locked, ready for payment
paidPayment has been made to the vendor

Bill Object

AttributeTypeDescription
idintegerUnique identifier for the bill
user_idintegerID of the vendor (user record)
numberstringBill number
statusstringBill status: draft, open, or paid
currencystringThree-letter ISO currency code
amount_dueintegerAmount due in cents
amount_paidintegerAmount paid in cents
amount_remainingintegerRemaining amount in cents
subtotalintegerSubtotal before tax in cents
totalintegerTotal amount in cents
paidbooleanWhether the bill has been paid
descriptionstringBill description
footerstringAdditional notes/footer
purchase_orderstringPurchase order reference number
period_startstringBilling period start date (YYYY-MM-DD)
period_endstringBilling period end date (YYYY-MM-DD)
line_itemsarrayArray of line item objects
userobjectVendor details (expandable)
metadataobjectKey-value pairs for storing additional data
finalized_attimestampUnix timestamp when finalized
paid_attimestampUnix timestamp when paid
created_attimestampUnix timestamp of creation
updated_attimestampUnix timestamp of last update

Related Endpoints

  • Vendors - Vendors you owe money to