Create expense
phppos_create_expenseWRITE: record an expense in the store's books (description, amount and date). It affects expense and profit-and-loss reports. Needs a Read/Write API key. Retrying records it twice (check phppos_list_expenses first). POST /expenses.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category_id | No | Expense category id. | |
| expense_tax | No | Tax amount. | |
| location_id | No | Location id - see phppos_list_locations. | |
| expense_date | No | When it was incurred (yyyy-mm-dd or yyyy-mm-dd hh:mm:ss); defaults to now in the store. | |
| expense_note | No | Note. | |
| expense_type | No | Expense type, for example Utilities. | |
| expense_amount | Yes | Amount, in the store's currency, before tax. | |
| expense_reason | No | Reason. | |
| expense_description | Yes | What the expense was for. | |
| expense_payment_type | No | Payment type, for example Cash. |