Skip to main content
POST
Create bill

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

businessId
string<uuid>
required

The UUID of the business to create the bill for.

Body

application/json
received_at
string<date-time>
required

When the bill was received by the business from the vendor.

line_items
object[]
required

Line items making up the bill.

external_id
string

External ID for the bill within your platform. Idempotency key.

due_at
string<date-time>

When the bill is due. Either due_at or bill_terms must be specified, but not both.

bill_terms
enum<string>

Payment terms for the bill. Either due_at or bill_terms must be specified, but not both.

Available options:
DUE_ON_RECEIPT,
NET_10,
NET_15,
NET_30,
NET_60
additional_discount
integer<int64> | null
default:0

Additional discount applied to the whole bill in addition to individual line item discounts, in cents.

memo
string

Memo for any text you would like to associate with the bill (for example, to display to end users).

vendor_id
string<uuid>

ID of the vendor to associate with the bill. Either vendor_id or vendor_external_id must be specified.

vendor_external_id
string

External ID of the vendor to associate with the bill. Either vendor_id or vendor_external_id must be specified.

payments
object[] | null

Payments that have been made towards the balance of the bill. When upserting an existing bill: omitting this field (or passing null) preserves any existing dedicated payments; passing an empty array [] removes all dedicated payments. Non-dedicated payments (those independently recorded or included in a vendor payout) are never removed by this field.

additional_sales_taxes
object[]

Additional sales tax line items for the bill.

tags
object[]
is_expense
boolean
default:false

Whether the bill should be treated as an expense.

metadata
object | null

Arbitrary custom metadata in JSON format with a size limit of 1KB.

Example:
reference_number
string | null

Any (typically user-visible) identifier you would like to associate with the bill. Can be used to filter when listing bills.

Response

201 - application/json

Bill created successfully.

data
object
required