Skip to main content

Bills

The BillService (client.bills) handles accounts payable. Bills represent money owed to vendors and support a full lifecycle from draft creation through approval, payment scheduling, and completion.

Bill lifecycle

Bills follow a state machine: Draft -> Pending Approval -> Approved -> Scheduled -> Paid At any point, a bill can be Cancelled or Reverted to Draft. The SDK provides methods for every transition.

Listing bills

Getting a single bill

Creating bills

Batch create

Create multiple bills in a single request:

Updating bills

Batch update

Deleting bills

Lifecycle transitions

Submit for approval

Approve

Schedule payment

Reschedule payment

Mark as paid

Cancel

Revert to draft

Retry failed payment

Status inspection

Get status summary

Retrieve counts of bills by status for dashboard displays:

Get allowed transitions

Check which status transitions are valid for a bill in its current state:

Get approval history

File operations

Upload bill documents

Validate before upload

Export bills

Download attachments

Bulk operations

All bulk methods return an SBBillBulkActionResponse with success and failure counts.

Bulk approve

Bulk mark paid

Bulk schedule payment

Bulk unschedule

Bulk cancel payment

Bulk retry payment

Bulk delete

Bulk update

Bulk remind

Send payment reminders for outstanding bills:

Method reference