Magidoc

createExpenseReimbursement
Mutation

Records in the Hive ledger that an employee expense reimbursement was already paid outside Hive. Does not pay the employee or move money. It is the employee-payee door onto the same bookkeeping path vendor bill payments are recorded through. Writes a FinanceVendorPayment carrying employeeUserId instead of vendorAccountId, allocated to the report, posts Dr A/P (under the report's identity, so the AP subledger and aging follow it) / Cr the payment account, and advances the report's paidAmount. The employee is never made a vendor account: that would drag a person into vendor tax profiles and 1099 eligibility. Void it with voidVendorPayment, which reopens the report's balance. Access: 'accountingPost' in a workspace where finance is enabled. Errors: refuses a report that is not posted, an amount above what the report still owes, and a payment in a currency other than the workspace's. Passing idempotencyKey makes the call safe to retry — a repeat returns the payment already recorded.

Arguments

#

expenseReportId

ID !
Non-null

Response

#

Returns FinanceVendorPayment !.

Example

#