All uses of the Less Accounting API are required to have a valid API Key, which must be supplied as a parameter to each method in the API.
Abuse of the API will result in the api key being revoked. API calls made with a revoked API Key will receive the follow xml as the response with a status code 403:
<?xml version="1.0" encoding="UTF-8"?>
<errors>
<error>API Key is not valid</error>
</errors>
You must have a valid user account to create an API key.
Create/view your API Keys
<?xml version="1.0" encoding="UTF-8"?>
<errors>
<error>Name has already been taken</error>
</errors>
Method parameters that pertain to a specific object should be supplied in the format: object_type[parameter]. E.G., bank_account[name] or expense[amount]. Please see the example for each method to see the usage.
get_businesses |
||||
| HTTP Verb/URL: | GET https://lessaccounting.com/businesses/get_businesses.xml | |||
| Business sub-domain required in url: | false | |||
| Id parameter required in url: | false | |||
| API Key (api_key) parameter required: | true | |||
| No other parameters. | ||||
Example:Request: https://{your_business}.lessaccounting.com/businesses/get_businesses.xml?api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
show |
||||
| HTTP Verb/URL: | GET https://<business_name>.lessaccounting.com/businesses/1.xml | |||
| Business sub-domain required in url: | true | |||
| Id parameter required in url: | true | |||
| API Key (api_key) parameter required: | true | |||
| Parameter | Required | Description | ||
| id | integer | N/A | Output | The unique identifier of the business. |
| name | string | required | Both | The name of the business. |
| subdomain | string | required | Both | The subdomain at lessaccounting.com used to access this business. |
| string | required | Both | The used to send invoices. | |
| created_at | datetime | N/A | Output | |
| updated_at | datetime | N/A | Output | |
| sales_tax_fields_default_on | boolean | optional | Both | Do line items show sales tax by default. |
| next_reference_number | integer | optional | Both | the next number to use to create an invoice or proposal. |
| address | text | optional | Both | |
| vat | string | optional | Both | The string displayed for VAT. |
| paypal_email_address | string | optional | Both | The paypal account email address to use when showing the paypal button in invoices. |
| currency_id | integer | optional | Both | The id for the currency type that this business uses. See the Currency object for details. This parameter will be moving to another object in the future. |
| receive_email_brief | boolean | optional | Both | |
| show_paypal | boolean | optional | Both | |
| level | integer | optional | Both | |
| proposal_total_string | string | optional | Both | |
| invoice_total_string | string | optional | Both | |
| vat_string | string | optional | Both | |
| invoice_date_string | string | optional | Both | |
| invoice_due_string | string | optional | Both | |
| reference_number_string | string | optional | Both | |
| payment_string | string | optional | Both | |
| total_paid_string | string | optional | Both | |
| remaining_balance_string | string | optional | Both | |
| payment_received_email_subject_string | string | optional | Both | |
| title_string | string | optional | Both | |
| description_string | string | optional | Both | |
| unit_price_string | string | optional | Both | |
| quantity_string | string | optional | Both | |
| line_total_string | string | optional | Both | |
Example:Request: https://{your_business}.lessaccounting.com/businesses/1.xml?api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
create |
||||
| HTTP Verb/URL: | POST https://<business_name>.lessaccounting.com/businesses.xml | |||
| Business sub-domain required in url: | true | |||
| Id parameter required in url: | false | |||
| API Key (api_key) parameter required: | true | |||
| Parameter | Required | Description | ||
| id | integer | N/A | Output | The unique identifier of the business. |
| name | string | required | Both | The name of the business. |
| subdomain | string | required | Both | The subdomain at lessaccounting.com used to access this business. |
| string | required | Both | The used to send invoices. | |
| created_at | datetime | N/A | Output | |
| updated_at | datetime | N/A | Output | |
| sales_tax_fields_default_on | boolean | optional | Both | Do line items show sales tax by default. |
| next_reference_number | integer | optional | Both | the next number to use to create an invoice or proposal. |
| address | text | optional | Both | |
| vat | string | optional | Both | The string displayed for VAT. |
| paypal_email_address | string | optional | Both | The paypal account email address to use when showing the paypal button in invoices. |
| currency_id | integer | optional | Both | The id for the currency type that this business uses. See the Currency object for details. This parameter will be moving to another object in the future. |
| receive_email_brief | boolean | optional | Both | |
| show_paypal | boolean | optional | Both | |
| level | integer | optional | Both | |
| proposal_total_string | string | optional | Both | |
| invoice_total_string | string | optional | Both | |
| vat_string | string | optional | Both | |
| invoice_date_string | string | optional | Both | |
| invoice_due_string | string | optional | Both | |
| reference_number_string | string | optional | Both | |
| payment_string | string | optional | Both | |
| total_paid_string | string | optional | Both | |
| remaining_balance_string | string | optional | Both | |
| payment_received_email_subject_string | string | optional | Both | |
| title_string | string | optional | Both | |
| description_string | string | optional | Both | |
| unit_price_string | string | optional | Both | |
| quantity_string | string | optional | Both | |
| line_total_string | string | optional | Both | |
Example:Request: https://{your_business}.lessaccounting.com/businesses.xml?business[name]=my new business&business[subdomain]=my_new_business&business[email]=myemail@mydomain.com&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
Example:Request: https://{your_business}.lessaccounting.com/businesses.xml?business[name]=&business[subdomain]=&business[email]=&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
update |
||||
| HTTP Verb/URL: | PUT https://<business_name>.lessaccounting.com/businesses/1.xml | |||
| Business sub-domain required in url: | true | |||
| Id parameter required in url: | true | |||
| API Key (api_key) parameter required: | true | |||
| _method | Must be supplied as: 'put' | |||
| Parameter | Required | Description | ||
| id | integer | N/A | Output | The unique identifier of the business. |
| name | string | required | Both | The name of the business. |
| subdomain | string | required | Both | The subdomain at lessaccounting.com used to access this business. |
| string | required | Both | The used to send invoices. | |
| created_at | datetime | N/A | Output | |
| updated_at | datetime | N/A | Output | |
| sales_tax_fields_default_on | boolean | optional | Both | Do line items show sales tax by default. |
| next_reference_number | integer | optional | Both | the next number to use to create an invoice or proposal. |
| address | text | optional | Both | |
| vat | string | optional | Both | The string displayed for VAT. |
| paypal_email_address | string | optional | Both | The paypal account email address to use when showing the paypal button in invoices. |
| currency_id | integer | optional | Both | The id for the currency type that this business uses. See the Currency object for details. This parameter will be moving to another object in the future. |
| receive_email_brief | boolean | optional | Both | |
| show_paypal | boolean | optional | Both | |
| level | integer | optional | Both | |
| proposal_total_string | string | optional | Both | |
| invoice_total_string | string | optional | Both | |
| vat_string | string | optional | Both | |
| invoice_date_string | string | optional | Both | |
| invoice_due_string | string | optional | Both | |
| reference_number_string | string | optional | Both | |
| payment_string | string | optional | Both | |
| total_paid_string | string | optional | Both | |
| remaining_balance_string | string | optional | Both | |
| payment_received_email_subject_string | string | optional | Both | |
| title_string | string | optional | Both | |
| description_string | string | optional | Both | |
| unit_price_string | string | optional | Both | |
| quantity_string | string | optional | Both | |
| line_total_string | string | optional | Both | |
Example:Request: https://{your_business}.lessaccounting.com/businesses/1.xml?business[name]=&business[subdomain]=&business[email]=&_method=put&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
Example:Request: https://{your_business}.lessaccounting.com/businesses/1.xml?business[name]=my new business&business[subdomain]=my_new_business&business[email]=myemail@mydomain.com&_method=put&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
destroy |
||||
| Notes: | Can only be called by the business owner. | |||
| HTTP Verb/URL: | DELETE https://<business_name>.lessaccounting.com/businesses/1.xml | |||
| Business sub-domain required in url: | true | |||
| Id parameter required in url: | true | |||
| API Key (api_key) parameter required: | true | |||
| _method | Must be supplied as: 'delete' | |||
| Parameter | Required | Description | ||
| id | integer | N/A | Output | The unique identifier of the business. |
| name | string | N/A | Output | The name of the business. |
| subdomain | string | N/A | Output | The subdomain at lessaccounting.com used to access this business. |
| string | N/A | Output | The used to send invoices. | |
| created_at | datetime | N/A | Output | |
| updated_at | datetime | N/A | Output | |
| sales_tax_fields_default_on | boolean | N/A | Output | Do line items show sales tax by default. |
| next_reference_number | integer | N/A | Output | the next number to use to create an invoice or proposal. |
| address | text | N/A | Output | |
| vat | string | N/A | Output | The string displayed for VAT. |
| paypal_email_address | string | N/A | Output | The paypal account email address to use when showing the paypal button in invoices. |
| currency_id | integer | N/A | Output | The id for the currency type that this business uses. See the Currency object for details. This parameter will be moving to another object in the future. |
| receive_email_brief | boolean | N/A | Output | |
| show_paypal | boolean | N/A | Output | |
| level | integer | N/A | Output | |
| proposal_total_string | string | N/A | Output | |
| invoice_total_string | string | N/A | Output | |
| vat_string | string | N/A | Output | |
| invoice_date_string | string | N/A | Output | |
| invoice_due_string | string | N/A | Output | |
| reference_number_string | string | N/A | Output | |
| payment_string | string | N/A | Output | |
| total_paid_string | string | N/A | Output | |
| remaining_balance_string | string | N/A | Output | |
| payment_received_email_subject_string | string | N/A | Output | |
| title_string | string | N/A | Output | |
| description_string | string | N/A | Output | |
| unit_price_string | string | N/A | Output | |
| quantity_string | string | N/A | Output | |
| line_total_string | string | N/A | Output | |
Example:Request: https://{your_business}.lessaccounting.com/businesses/1.xml?_method=delete&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
index |
||||
| HTTP Verb/URL: | GET https://<business_name>.lessaccounting.com/bank_accounts.xml | |||
| Business sub-domain required in url: | true | |||
| Id parameter required in url: | false | |||
| API Key (api_key) parameter required: | true | |||
| Parameter | Required | Description | ||
| id | integer | N/A | Output | The unique identifier of the business. |
| name | string | N/A | Output | The name of the business. |
| business_id | integer | N/A | Output | |
| created_at | datetime | N/A | Output | |
| starting_balance | decimal | N/A | Output | |
| balance | decimal | N/A | Output | |
Example:Request: https://{your_business}.lessaccounting.com/bank_accounts.xml?api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
show |
||||
| HTTP Verb/URL: | GET https://<business_name>.lessaccounting.com/bank_accounts/1.xml | |||
| Business sub-domain required in url: | true | |||
| Id parameter required in url: | true | |||
| API Key (api_key) parameter required: | true | |||
| Parameter | Required | Description | ||
| id | integer | N/A | Output | The unique identifier of the business. |
| name | string | required | Both | The name of the business. |
| business_id | integer | N/A | Output | |
| created_at | datetime | N/A | Output | |
| starting_balance | decimal | optional | Both | |
| balance | decimal | N/A | Output | |
Example:Request: https://{your_business}.lessaccounting.com/bank_accounts/1.xml?api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
create |
||||
| HTTP Verb/URL: | POST https://<business_name>.lessaccounting.com/bank_accounts.xml | |||
| Business sub-domain required in url: | true | |||
| Id parameter required in url: | false | |||
| API Key (api_key) parameter required: | true | |||
| Parameter | Required | Description | ||
| id | integer | N/A | Output | The unique identifier of the business. |
| name | string | required | Both | The name of the business. |
| business_id | integer | N/A | Output | |
| created_at | datetime | N/A | Output | |
| starting_balance | decimal | optional | Both | |
| balance | decimal | N/A | Output | |
Example:Request: https://{your_business}.lessaccounting.com/bank_accounts.xml?bank_account[name]=&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
Example:Request: https://{your_business}.lessaccounting.com/bank_accounts.xml?bank_account[name]=Checking&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
update |
||||
| HTTP Verb/URL: | PUT https://<business_name>.lessaccounting.com/bank_accounts/1.xml | |||
| Business sub-domain required in url: | true | |||
| Id parameter required in url: | true | |||
| API Key (api_key) parameter required: | true | |||
| _method | Must be supplied as: 'put' | |||
| Parameter | Required | Description | ||
| id | integer | N/A | Output | The unique identifier of the business. |
| name | string | required | Both | The name of the business. |
| business_id | integer | N/A | Output | |
| created_at | datetime | N/A | Output | |
| starting_balance | decimal | optional | Both | |
| balance | decimal | N/A | Output | |
Example:Request: https://{your_business}.lessaccounting.com/bank_accounts/1.xml?bank_account[name]=&_method=put&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
Example:Request: https://{your_business}.lessaccounting.com/bank_accounts/1.xml?bank_account[name]=Checking&_method=put&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
destroy |
||||
| HTTP Verb/URL: | DELETE https://<business_name>.lessaccounting.com/bank_accounts/1.xml | |||
| Business sub-domain required in url: | true | |||
| Id parameter required in url: | true | |||
| API Key (api_key) parameter required: | true | |||
| _method | Must be supplied as: 'delete' | |||
| Parameter | Required | Description | ||
| id | integer | N/A | Output | The unique identifier of the business. |
| name | string | N/A | Output | The name of the business. |
| business_id | integer | N/A | Output | |
| created_at | datetime | N/A | Output | |
| starting_balance | decimal | N/A | Output | |
| balance | decimal | N/A | Output | |
Example:Request: https://{your_business}.lessaccounting.com/bank_accounts/1.xml?_method=delete&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
index |
||||
| HTTP Verb/URL: | GET https://<business_name>.lessaccounting.com/expense_categories.xml | |||
| Business sub-domain required in url: | true | |||
| Id parameter required in url: | false | |||
| API Key (api_key) parameter required: | true | |||
| Parameter | Required | Description | ||
| id | integer | N/A | Output | The unique identifier of the expense category. |
| name | string | N/A | Output | The name of the expense category. |
| business_id | string | N/A | Output | The id of the business that this expense category belongs to. |
| expenses_count | string | N/A | Output | The number of expenses that belongs to this expense category. |
Example:Request: https://{your_business}.lessaccounting.com/expense_categories.xml?api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
show |
||||
| HTTP Verb/URL: | GET https://<business_name>.lessaccounting.com/expense_categories/1.xml | |||
| Business sub-domain required in url: | true | |||
| Id parameter required in url: | true | |||
| API Key (api_key) parameter required: | true | |||
| Parameter | Required | Description | ||
| id | integer | N/A | Output | The unique identifier of the expense category. |
| name | string | required | Both | The name of the expense category. |
| business_id | string | N/A | Output | The id of the business that this expense category belongs to. |
| expenses_count | string | N/A | Output | The number of expenses that belongs to this expense category. |
Example:Request: https://{your_business}.lessaccounting.com/expense_categories/1.xml?api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
create |
||||
| HTTP Verb/URL: | POST https://<business_name>.lessaccounting.com/expense_categories.xml | |||
| Business sub-domain required in url: | true | |||
| Id parameter required in url: | false | |||
| API Key (api_key) parameter required: | true | |||
| Parameter | Required | Description | ||
| id | integer | N/A | Output | The unique identifier of the expense category. |
| name | string | required | Both | The name of the expense category. |
| business_id | string | N/A | Output | The id of the business that this expense category belongs to. |
| expenses_count | string | N/A | Output | The number of expenses that belongs to this expense category. |
Example:Request: https://{your_business}.lessaccounting.com/expense_categories.xml?expense_category[name]=&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
Example:Request: https://{your_business}.lessaccounting.com/expense_categories.xml?expense_category[name]=Wages&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
update |
||||
| HTTP Verb/URL: | PUT https://<business_name>.lessaccounting.com/expense_categories/1.xml | |||
| Business sub-domain required in url: | true | |||
| Id parameter required in url: | true | |||
| API Key (api_key) parameter required: | true | |||
| _method | Must be supplied as: 'put' | |||
| Parameter | Required | Description | ||
| id | integer | N/A | Output | The unique identifier of the expense category. |
| name | string | required | Both | The name of the expense category. |
| business_id | string | N/A | Output | The id of the business that this expense category belongs to. |
| expenses_count | string | N/A | Output | The number of expenses that belongs to this expense category. |
Example:Request: https://{your_business}.lessaccounting.com/expense_categories/1.xml?expense_category[name]=&_method=put&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
Example:Request: https://{your_business}.lessaccounting.com/expense_categories/1.xml?expense_category[name]=Wages&_method=put&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
destroy |
||||
| HTTP Verb/URL: | DELETE https://<business_name>.lessaccounting.com/expense_categories/1.xml | |||
| Business sub-domain required in url: | true | |||
| Id parameter required in url: | true | |||
| API Key (api_key) parameter required: | true | |||
| _method | Must be supplied as: 'delete' | |||
| Parameter | Required | Description | ||
| id | integer | N/A | Output | The unique identifier of the expense category. |
| name | string | N/A | Output | The name of the expense category. |
| business_id | string | N/A | Output | The id of the business that this expense category belongs to. |
| expenses_count | string | N/A | Output | The number of expenses that belongs to this expense category. |
Example:Request: https://{your_business}.lessaccounting.com/expense_categories/1.xml?_method=delete&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
index |
||||
| HTTP Verb/URL: | GET https://<business_name>.lessaccounting.com/expenses.xml | |||
| Business sub-domain required in url: | true | |||
| Id parameter required in url: | false | |||
| API Key (api_key) parameter required: | true | |||
| Parameter | Required | Description | ||
| id | integer | N/A | Output | The unique identifier of the expense. |
| amount | decimal | N/A | Output | |
| bank_account_id | integer | N/A | Output | |
| title | string | N/A | Output | |
| check_number | string | N/A | Output | |
| created_at | datetime | N/A | Output | |
| creator_id | integer | N/A | Output | |
| updated_at | datetime | N/A | Output | |
| updater_id | integer | N/A | Output | |
| notes | text | N/A | Output | |
| business_id | integer | N/A | Output | |
| date | date | N/A | Output | Returns the paid date if this expense is paid or the due date if it is not paid. |
| expense_category_id | integer | N/A | Output | |
| contractor_id | integer | N/A | Output | |
| employee_id | integer | N/A | Output | |
| paid_date | date | N/A | Output | Either due date or paid date is required. |
| is_paid | boolean | N/A | Output | |
| transfer_fund_id | integer | N/A | Output | The Transfer Fund that this expense is associated with. |
| payee_id | integer | N/A | Output | |
| due_date | date | N/A | Output | Either due date or paid date is required. |
| client_id | integer | N/A | Output | |
| receipt_url | integer | N/A | Output | |
| q | string | optional | Input | The query to use in search. |
| page | integer | optional | Input | The page of the search results to return. Default is 1. The number of items per page is 25. |
Example:Request: https://{your_business}.lessaccounting.com/expenses.xml?q=&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
show |
||||
| HTTP Verb/URL: | GET https://<business_name>.lessaccounting.com/expenses/1.xml | |||
| Business sub-domain required in url: | true | |||
| Id parameter required in url: | true | |||
| API Key (api_key) parameter required: | true | |||
| Parameter | Required | Description | ||
| id | integer | N/A | Output | The unique identifier of the expense. |
| amount | decimal | optional | Both | |
| bank_account_id | integer | optional | Both | |
| title | string | optional | Both | |
| check_number | string | optional | Both | |
| created_at | datetime | N/A | Output | |
| creator_id | integer | N/A | Output | |
| updated_at | datetime | N/A | Output | |
| updater_id | integer | N/A | Output | |
| notes | text | optional | Both | |
| business_id | integer | N/A | Output | |
| date | date | N/A | Output | Returns the paid date if this expense is paid or the due date if it is not paid. |
| expense_category_id | integer | optional | Both | |
| contractor_id | integer | optional | Both | |
| employee_id | integer | optional | Both | |
| paid_date | date | required | Both | Either due date or paid date is required. |
| is_paid | boolean | optional | Both | |
| transfer_fund_id | integer | optional | Both | The Transfer Fund that this expense is associated with. |
| payee_id | integer | optional | Both | |
| due_date | date | required | Both | Either due date or paid date is required. |
| client_id | integer | optional | Both | |
| receipt_url | integer | N/A | Output | |
Example:Request: https://{your_business}.lessaccounting.com/expenses/1.xml?api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
create |
||||
| HTTP Verb/URL: | POST https://<business_name>.lessaccounting.com/expenses.xml | |||
| Business sub-domain required in url: | true | |||
| Id parameter required in url: | false | |||
| API Key (api_key) parameter required: | true | |||
| Parameter | Required | Description | ||
| id | integer | N/A | Output | The unique identifier of the expense. |
| amount | decimal | optional | Both | |
| bank_account_id | integer | optional | Both | |
| title | string | optional | Both | |
| check_number | string | optional | Both | |
| created_at | datetime | N/A | Output | |
| creator_id | integer | N/A | Output | |
| updated_at | datetime | N/A | Output | |
| updater_id | integer | N/A | Output | |
| notes | text | optional | Both | |
| business_id | integer | N/A | Output | |
| date | date | N/A | Output | Returns the paid date if this expense is paid or the due date if it is not paid. |
| expense_category_id | integer | optional | Both | |
| contractor_id | integer | optional | Both | |
| employee_id | integer | optional | Both | |
| paid_date | date | required | Both | Either due date or paid date is required. |
| is_paid | boolean | optional | Both | |
| transfer_fund_id | integer | optional | Both | The Transfer Fund that this expense is associated with. |
| payee_id | integer | optional | Both | |
| due_date | date | required | Both | Either due date or paid date is required. |
| client_id | integer | optional | Both | |
| receipt_url | integer | N/A | Output | |
Example:Request: https://{your_business}.lessaccounting.com/expenses.xml?expense[title]=&expense[amount]=&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
Example:Request: https://{your_business}.lessaccounting.com/expenses.xml?expense[title]=Pizza&expense[amount]=15.87&expense[due_date]=2008-01-01&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
update |
||||
| HTTP Verb/URL: | PUT https://<business_name>.lessaccounting.com/expenses/1.xml | |||
| Business sub-domain required in url: | true | |||
| Id parameter required in url: | true | |||
| API Key (api_key) parameter required: | true | |||
| _method | Must be supplied as: 'put' | |||
| Parameter | Required | Description | ||
| id | integer | N/A | Output | The unique identifier of the expense. |
| amount | decimal | optional | Both | |
| bank_account_id | integer | optional | Both | |
| title | string | optional | Both | |
| check_number | string | optional | Both | |
| created_at | datetime | N/A | Output | |
| creator_id | integer | N/A | Output | |
| updated_at | datetime | N/A | Output | |
| updater_id | integer | N/A | Output | |
| notes | text | optional | Both | |
| business_id | integer | N/A | Output | |
| date | date | N/A | Output | Returns the paid date if this expense is paid or the due date if it is not paid. |
| expense_category_id | integer | optional | Both | |
| contractor_id | integer | optional | Both | |
| employee_id | integer | optional | Both | |
| paid_date | date | required | Both | Either due date or paid date is required. |
| is_paid | boolean | optional | Both | |
| transfer_fund_id | integer | optional | Both | The Transfer Fund that this expense is associated with. |
| payee_id | integer | optional | Both | |
| due_date | date | required | Both | Either due date or paid date is required. |
| client_id | integer | optional | Both | |
| receipt_url | integer | N/A | Output | |
Example:Request: https://{your_business}.lessaccounting.com/expenses/1.xml?expense[title]=Pizza&expense[amount]=15.87&_method=put&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
Example:Request: https://{your_business}.lessaccounting.com/expenses/1.xml?expense[title]=&expense[amount]=&_method=put&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
destroy |
||||
| HTTP Verb/URL: | DELETE https://<business_name>.lessaccounting.com/expenses/1.xml | |||
| Business sub-domain required in url: | true | |||
| Id parameter required in url: | true | |||
| API Key (api_key) parameter required: | true | |||
| _method | Must be supplied as: 'delete' | |||
| Parameter | Required | Description | ||
| id | integer | N/A | Output | The unique identifier of the expense. |
| amount | decimal | N/A | Output | |
| bank_account_id | integer | N/A | Output | |
| title | string | N/A | Output | |
| check_number | string | N/A | Output | |
| created_at | datetime | N/A | Output | |
| creator_id | integer | N/A | Output | |
| updated_at | datetime | N/A | Output | |
| updater_id | integer | N/A | Output | |
| notes | text | N/A | Output | |
| business_id | integer | N/A | Output | |
| date | date | N/A | Output | Returns the paid date if this expense is paid or the due date if it is not paid. |
| expense_category_id | integer | N/A | Output | |
| contractor_id | integer | N/A | Output | |
| employee_id | integer | N/A | Output | |
| paid_date | date | N/A | Output | Either due date or paid date is required. |
| is_paid | boolean | N/A | Output | |
| transfer_fund_id | integer | N/A | Output | The Transfer Fund that this expense is associated with. |
| payee_id | integer | N/A | Output | |
| due_date | date | N/A | Output | Either due date or paid date is required. |
| client_id | integer | N/A | Output | |
| receipt_url | integer | N/A | Output | |
Example:Request: https://{your_business}.lessaccounting.com/expenses/1.xml?_method=delete&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
index |
||||
| HTTP Verb/URL: | GET https://<business_name>.lessaccounting.com/currencies.xml | |||
| Business sub-domain required in url: | true | |||
| Id parameter required in url: | false | |||
| API Key (api_key) parameter required: | true | |||
| Parameter | Required | Description | ||
| id | integer | N/A | Output | The unique identifier of the currency. |
| name | integer | N/A | Output | |
| code | integer | N/A | Output | |
| html_symbol | integer | N/A | Output | |
Example:Request: https://{your_business}.lessaccounting.com/currencies.xml?api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
show |
||||
| HTTP Verb/URL: | GET https://<business_name>.lessaccounting.com/currencies/1.xml | |||
| Business sub-domain required in url: | true | |||
| Id parameter required in url: | true | |||
| API Key (api_key) parameter required: | true | |||
| Parameter | Required | Description | ||
| id | integer | N/A | Output | The unique identifier of the currency. |
| name | integer | N/A | Output | |
| code | integer | N/A | Output | |
| html_symbol | integer | N/A | Output | |
Example:Request: https://{your_business}.lessaccounting.com/currencies/1.xml?api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
index |
||||
| HTTP Verb/URL: | GET https://<business_name>.lessaccounting.com/contacts.xml | |||
| Business sub-domain required in url: | true | |||
| Id parameter required in url: | false | |||
| API Key (api_key) parameter required: | true | |||
| Parameter | Required | Description | ||
| id | integer | N/A | Output | The unique identifier of the contact. |
| name | string | N/A | Output | The name of the contact. |
| company_name | string | N/A | Output | |
| created_at | datetime | N/A | Output | |
| updated_at | datetime | N/A | Output | |
| is_contractor | boolean | N/A | Output | |
| is_employee | boolean | N/A | Output | |
| active | boolean | N/A | Output | |
| note | string | N/A | Output | |
| address | string | N/A | Output | |
| string | N/A | Output | ||
| phone_number_1 | string | N/A | Output | |
| phone_number_2 | string | N/A | Output | |
| basecamp_id | integer | N/A | Output | The unique identifier for Basecamp. |
| highrise_id | integer | N/A | Output | The unique identifier for Highrise. |
| google_id | string | N/A | Output | The unique identifier for Google. |
| q | string | optional | Input | The query to use in search. |
| page | integer | optional | Input | The page of the search results to return. Default is 1. The number of items per page is 25. |
Example:Request: https://{your_business}.lessaccounting.com/contacts.xml?api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
show |
||||
| HTTP Verb/URL: | GET https://<business_name>.lessaccounting.com/contacts/1.xml | |||
| Business sub-domain required in url: | true | |||
| Id parameter required in url: | true | |||
| API Key (api_key) parameter required: | true | |||
| Parameter | Required | Description | ||
| id | integer | N/A | Output | The unique identifier of the contact. |
| name | string | required | Both | The name of the contact. |
| company_name | string | N/A | Output | |
| created_at | datetime | N/A | Output | |
| updated_at | datetime | N/A | Output | |
| is_contractor | boolean | optional | Both | |
| is_employee | boolean | optional | Both | |
| active | boolean | optional | Both | |
| note | string | optional | Both | |
| address | string | optional | Both | |
| string | optional | Both | ||
| phone_number_1 | string | optional | Both | |
| phone_number_2 | string | optional | Both | |
| basecamp_id | integer | N/A | Output | The unique identifier for Basecamp. |
| highrise_id | integer | N/A | Output | The unique identifier for Highrise. |
| google_id | string | N/A | Output | The unique identifier for Google. |
Example:Request: https://{your_business}.lessaccounting.com/contacts/1.xml?api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
create |
||||
| HTTP Verb/URL: | POST https://<business_name>.lessaccounting.com/contacts.xml | |||
| Business sub-domain required in url: | true | |||
| Id parameter required in url: | false | |||
| API Key (api_key) parameter required: | true | |||
| Parameter | Required | Description | ||
| id | integer | N/A | Output | The unique identifier of the contact. |
| name | string | required | Both | The name of the contact. |
| company_name | string | N/A | Output | |
| created_at | datetime | N/A | Output | |
| updated_at | datetime | N/A | Output | |
| is_contractor | boolean | optional | Both | |
| is_employee | boolean | optional | Both | |
| active | boolean | optional | Both | |
| note | string | optional | Both | |
| address | string | optional | Both | |
| string | optional | Both | ||
| phone_number_1 | string | optional | Both | |
| phone_number_2 | string | optional | Both | |
| basecamp_id | integer | N/A | Output | The unique identifier for Basecamp. |
| highrise_id | integer | N/A | Output | The unique identifier for Highrise. |
| google_id | string | N/A | Output | The unique identifier for Google. |
Example:Request: https://{your_business}.lessaccounting.com/contacts.xml?contact[name]=&contact[email]=alsjdf@&contact[phone_number_1]=&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
Example:Request: https://{your_business}.lessaccounting.com/contacts.xml?contact[name]=John Alibastar&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
update |
||||
| HTTP Verb/URL: | PUT https://<business_name>.lessaccounting.com/contacts/1.xml | |||
| Business sub-domain required in url: | true | |||
| Id parameter required in url: | true | |||
| API Key (api_key) parameter required: | true | |||
| _method | Must be supplied as: 'put' | |||
| Parameter | Required | Description | ||
| id | integer | N/A | Output | The unique identifier of the contact. |
| name | string | required | Both | The name of the contact. |
| company_name | string | N/A | Output | |
| created_at | datetime | N/A | Output | |
| updated_at | datetime | N/A | Output | |
| is_contractor | boolean | optional | Both | |
| is_employee | boolean | optional | Both | |
| active | boolean | optional | Both | |
| note | string | optional | Both | |
| address | string | optional | Both | |
| string | optional | Both | ||
| phone_number_1 | string | optional | Both | |
| phone_number_2 | string | optional | Both | |
| basecamp_id | integer | N/A | Output | The unique identifier for Basecamp. |
| highrise_id | integer | N/A | Output | The unique identifier for Highrise. |
| google_id | string | N/A | Output | The unique identifier for Google. |
Example:Request: https://{your_business}.lessaccounting.com/contacts/1.xml?contact[name]=John Alibastar&_method=put&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
Example:Request: https://{your_business}.lessaccounting.com/contacts/1.xml?contact[name]=&contact[company_name]=&_method=put&api_k | ||||