Skip to main content
POST
Create a bill

Authorizations

Authorization
string
header
required

Authenticate using a bearer token. To create a token, navigate to /settings/api-tokens and click Create API Token.

Body

application/json
purchase_order_ids
integer[] | null

IDs of the purchase orders to link to this bill. Use this to link multiple POs. Each ID must reference an existing purchase order.

purchase_order_id
integer | null

Deprecated — single purchase order to link. Prefer purchase_order_ids. When supplied without purchase_order_ids, it is treated as a one-element purchase_order_ids array.

assembly_order_ids
integer[] | null

IDs of the assembly orders to link to this bill. Each ID must reference an existing assembly order.

work_order_ids
integer[] | null

IDs of the work orders to link to this bill. Each ID must reference an existing work order.

items
object[] | null

Bill line items. Alongside the standard fields, each item may reference a manufacturing source line for reconciliation: assembly_order_id, assembly_order_line_id (component lines), and assembly_order_extra_cost_id (extra costs). A line may also record which production run (production batch) it originated from via production_batch_id and/or production_batch_number.

Response

Bill created successfully

data
object