Creates a draft expense claim for an employee or a related party (a director or shareholder) in the credential-bound company: money they spent for the company, to be paid back. Approving it (expenseClaim.approve) is a separate action that posts it. Each line names the expense account it posts to by account_id (the chart-of-accounts id from the chart of accounts list: use it when the account has no code) or by account_code, and its purchase or no-VAT tax rule by tax_rule_id (the id from the tax rules list) or by tax_code; when both of a pair are sent they must name the same record. The tax rate always comes from the tax rule. The account must be an active expense account or, when the company limits the accounts claims may use, one of expenseClaim.settings.show allowed_account_ids (of any type); never a heading or a control account. An account_id that is not is refused with 422 expense_claim_line_account_unavailable, and a tax_rule_id that is not a purchase or no-VAT tax rule with 422 expense_claim_line_tax_rule_unavailable, naming the line in error.fields. Idempotency-Key is required and stores the terminal response for 24 hours. Requires the expense-claims:write OAuth scope.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
