Get current user company data.
Time till last scheduled sending to accounting is in time_to_scheduled_batch_run field (“total” = seconds till the next scheduled operation).
For human-readable representation of this time see format_time_to_scheduled_batch_run field.
Send expenses to accounting. If successful, batch will be sent in a few minutes.
Param name | Description |
---|---|
company
required |
Batch sending params. Validations:
|
company[id]
required |
Company ID. Validations:
|
company[expense_type]
optional |
Expense type, determined by asset account. If not passed, expenses with all asset accounts will be sent. Pass Validations:
|
company[asset_account_id]
optional |
Asset account ID to filter expenses by. Will be ignored unless Validations:
|
company[expense_account_id]
optional |
Expense account ID to filter expenses by. Validations:
|
company[has_date_range]
optional |
Whether batch should be limited by date range. If Validations:
|
company[batch_start_date]
optional |
Start date of the date range to filter expenses by. E.g., Validations:
|
company[batch_end_date]
optional |
End date of the date range to filter expenses by. E.g., Validations:
|