API Documentation

Beans_Vendor_Expense_Create

Create a new vendor expense.


Parameters

auth_uid INTEGER The ID for your API key.
auth_key STRING The API key.
auth_expiration INTEGER Unique ID tied to your key; changes if you reset your key.
vendor_id INTEGER The ID for the Beans_Vendor this will belong to.
account_id INTEGER The ID for the Beans_Account this expense is paid with.
date_created STRING The date of the expense in YYYY-MM-DD format.
expense_number STRING An expense number to reference this expense. If none is created, it will auto-generate.
invoice_number STRING An invoice number to reference this expense.
so_number STRING A sales order number to reference this expense.
remit_address_id INTEGER The ID of the Beans_Vendor_Address to remit payment to.
lines ARRAY An array of objects representing line items for the expense.
description STRING The text for the line item.
amount DECIMAL The amount per unit.
quantity DECIMAL The number of units (up to three decimal places).
account_id INTEGER The ID of the Beans_Account to count the cost of the expense towards.

Returns

expense OBJECT The resulting Beans_Vendor_Expense.