v1
latestOpenAPI 3.0.32026-07-26362271803.3 KBCreate Accounting Bill
Creates a new accounting bill with line items and automatic journal entry generation.
This endpoint allows for complex bill creation with:
- Multiple line items with different accounts, departments, and vendor assignments
- Automatic accounts payable journal entry creation
- Tax calculations and tax account handling
- Exchange rate support for multi-currency transactions
- Custom field support for additional bill metadata
Requirements:
- All referenced accounts must exist and be active
- Vendor must exist
- Entity must exist
- Line items must have valid amounts and descriptions
- Currency must be valid for the entity
- Accounting date must be before closed book date
Request body
Return AP account name with number in 'number - name' format, similar to name_and_number.
Navan data region (US/EU) for a Navan-sourced bill, else None.
Mirrors ramp_use_sandbox: the frontend builds the "Open in Navan" deep link from source_id and uses this to pick the web-app host (US -> app.navan.com, EU -> app-fra.navan.com). Navan bills carry no FK to their connection, so the region is resolved per customer and memoized to avoid an N+1 lookup across a bill list.
Withholding context for the bill's entity (AP side).
estimated_withholding_amount covers only the remaining amount due (null once fully paid); withheld_to_date is the signed sum of posted withholding (AP legs are credits, reversals debits), so actuals replace the estimate as payments post. Certificate-based schemes estimate from the vendor certificate's rate valid today (falling back to the scheme default).
- BILL - Bill
- PAYROLL - Payroll
- REIMBURSEMENT - Reimbursement
Payment term for this bill
Accounts Payable account for this bill
Response
Return AP account name with number in 'number - name' format, similar to name_and_number.
Navan data region (US/EU) for a Navan-sourced bill, else None.
Mirrors ramp_use_sandbox: the frontend builds the "Open in Navan" deep link from source_id and uses this to pick the web-app host (US -> app.navan.com, EU -> app-fra.navan.com). Navan bills carry no FK to their connection, so the region is resolved per customer and memoized to avoid an N+1 lookup across a bill list.
Withholding context for the bill's entity (AP side).
estimated_withholding_amount covers only the remaining amount due (null once fully paid); withheld_to_date is the signed sum of posted withholding (AP legs are credits, reversals debits), so actuals replace the estimate as payments post. Certificate-based schemes estimate from the vendor certificate's rate valid today (falling back to the scheme default).
- BILL - Bill
- PAYROLL - Payroll
- REIMBURSEMENT - Reimbursement
Payment term for this bill
Accounts Payable account for this bill