POST connector/api/expense
Parameter | Type | Status | Description |
---|---|---|---|
location_id |
integer | required | id of the business location |
final_total |
float | required | Expense amount |
transaction_date |
string | optional | transaction date format:Y-m-d H:i:s, |
tax_rate_id |
integer | optional | id of the tax rate applicable to the expense |
expense_for |
integer | optional | id of the user for which expense is created |
contact_id |
integer | optional | id of the contact(customer or supplier) for which expense is created |
additional_notes |
string | optional | |
is_recurring |
integer | optional | whether expense is recurring (0, 1) |
recur_interval |
integer | optional | value of the interval expense will be regenerated |
recur_interval_type |
string | optional | type of the recur interval ('days', 'months', 'years') |
subscription_repeat_on |
integer | optional | day of the month on which expense will be generated if recur interval type is months (1-30) |
subscription_no |
string | optional | subscription number |
recur_repetitions |
integer | optional | total number of expense to be generated |
payment |
array | optional | payment lines for the expense |
payment.*.amount |
float | optional | amount of the payment |
payment.*.method |
string | optional | payment methods ('cash', 'card', 'cheque', 'bank_transfer', 'other', 'custom_pay_1', 'custom_pay_2', 'custom_pay_3') |
payment.*.account_id |
integer | optional | account id |
payment.*.card_number |
string | optional | |
payment.*.card_holder_name |
string | optional | |
payment.*.card_transaction_number |
string | optional | |
payment.*.card_type |
string | optional | |
payment.*.card_month |
string | optional | |
payment.*.card_year |
string | optional | |
payment.*.card_security |
string | optional | |
payment.*.transaction_no_1 |
string | optional | |
payment.*.transaction_no_2 |
string | optional | |
payment.*.transaction_no_3 |
string | optional | |
payment.*.note |
string | optional | payment note |
payment.*.cheque_number |
string | optional |