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 bank account. |
| 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 bank account. |
| 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 bank account. |
| 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 bank account. |
| 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 bank account. |
| 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_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
destroy |
||||
| HTTP Verb/URL: | DELETE 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: 'delete' | |||
| 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. |
Example:Request: https://{your_business}.lessaccounting.com/contacts/1.xml?_method=delete&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
index |
||||
| HTTP Verb/URL: | GET https://<business_name>.lessaccounting.com/invoices.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 invoice. |
| reference_name_number | String | N/A | Output | This value will be auto-generated if it is omitted. |
| created_at | Datetime | N/A | Output | |
| updated_at | Datetime | N/A | Output | |
| proposal_template_id | Integer | N/A | Output | |
| header | Text | N/A | Output | |
| first_sent | Datetime | N/A | Output | The first datetime that this invoice was sent (or marked as sent). |
| sent_at | Datetime | N/A | Output | The most recent datetime that this invoice was sent. |
| sent_to | Text | N/A | Output | A comma separated list of email addresses that this invoice was sent to. This list is who a receipt will be sent to. |
| email_heading | Text | N/A | Output | |
| email_subject | String | N/A | Output | |
| proposal_id | Integer | N/A | Output | The unique identifier of the Proposal that this invoice was converted from. If this invoice was not converted from a proposal, this value will be nil. |
| bank_account_id | Integer | N/A | Output | The Bank Account that this invoice's Payments should be deposited into by default. Note that the true Bank Account is determined by the Payment items associated with this invoice. This Id is meant to be used as a cached default value. |
| sales_tax_amount | Decimal | N/A | Output | The total sales tax amount applied from the Line Items of this invoice. |
| sales_tax_percentage | Decimal | N/A | Output | The percentage of sales tax applied to this invoice. When an invoice is created, this value is pulled from the Business object, and it is cached here. |
| total | Decimal | N/A | Output | The total of the Line Items. |
| payment_total | Decimal | N/A | Output | The total amount of Payments that have been made so far. |
| business_id | Integer | N/A | Output | The Id of the Business that this invoice is associated with. |
| contact_id | Integer | N/A | Output | The Id of the Contact that this invoice is associated with. |
| due_on | Date | N/A | Output | The due date of the invoice. This defaults to today plus the "default due date" integer value of the Business object. |
| show_paypal | Boolean | N/A | Output | Whether or no to display the paypal button in the emailed invoice. The Business must have a paypal account setup (via the Business object) for this filed to be recognized. |
| 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/invoices.xml?api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
show |
||||
| HTTP Verb/URL: | GET https://<business_name>.lessaccounting.com/invoices/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 invoice. |
| reference_name_number | String | required | Both | This value will be auto-generated if it is omitted. |
| created_at | Datetime | N/A | Output | |
| updated_at | Datetime | N/A | Output | |
| proposal_template_id | Integer | N/A | Output | |
| header | Text | optional | Both | |
| first_sent | Datetime | N/A | Output | The first datetime that this invoice was sent (or marked as sent). |
| sent_at | Datetime | N/A | Output | The most recent datetime that this invoice was sent. |
| sent_to | Text | N/A | Output | A comma separated list of email addresses that this invoice was sent to. This list is who a receipt will be sent to. |
| email_heading | Text | optional | Both | |
| email_subject | String | optional | Both | |
| proposal_id | Integer | N/A | Output | The unique identifier of the Proposal that this invoice was converted from. If this invoice was not converted from a proposal, this value will be nil. |
| bank_account_id | Integer | N/A | Output | The Bank Account that this invoice's Payments should be deposited into by default. Note that the true Bank Account is determined by the Payment items associated with this invoice. This Id is meant to be used as a cached default value. |
| sales_tax_amount | Decimal | N/A | Output | The total sales tax amount applied from the Line Items of this invoice. |
| sales_tax_percentage | Decimal | N/A | Output | The percentage of sales tax applied to this invoice. When an invoice is created, this value is pulled from the Business object, and it is cached here. |
| total | Decimal | N/A | Output | The total of the Line Items. |
| payment_total | Decimal | N/A | Output | The total amount of Payments that have been made so far. |
| business_id | Integer | N/A | Output | The Id of the Business that this invoice is associated with. |
| contact_id | Integer | optional | Both | The Id of the Contact that this invoice is associated with. |
| due_on | Date | N/A | Output | The due date of the invoice. This defaults to today plus the "default due date" integer value of the Business object. |
| show_paypal | Boolean | N/A | Output | Whether or no to display the paypal button in the emailed invoice. The Business must have a paypal account setup (via the Business object) for this filed to be recognized. |
Example:Request: https://{your_business}.lessaccounting.com/invoices/11.xml?api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
create |
||||
| HTTP Verb/URL: | POST https://<business_name>.lessaccounting.com/invoices.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 invoice. |
| reference_name_number | String | required | Both | This value will be auto-generated if it is omitted. |
| created_at | Datetime | N/A | Output | |
| updated_at | Datetime | N/A | Output | |
| proposal_template_id | Integer | N/A | Output | |
| header | Text | optional | Both | |
| first_sent | Datetime | N/A | Output | The first datetime that this invoice was sent (or marked as sent). |
| sent_at | Datetime | N/A | Output | The most recent datetime that this invoice was sent. |
| sent_to | Text | N/A | Output | A comma separated list of email addresses that this invoice was sent to. This list is who a receipt will be sent to. |
| email_heading | Text | optional | Both | |
| email_subject | String | optional | Both | |
| proposal_id | Integer | N/A | Output | The unique identifier of the Proposal that this invoice was converted from. If this invoice was not converted from a proposal, this value will be nil. |
| bank_account_id | Integer | N/A | Output | The Bank Account that this invoice's Payments should be deposited into by default. Note that the true Bank Account is determined by the Payment items associated with this invoice. This Id is meant to be used as a cached default value. |
| sales_tax_amount | Decimal | N/A | Output | The total sales tax amount applied from the Line Items of this invoice. |
| sales_tax_percentage | Decimal | N/A | Output | The percentage of sales tax applied to this invoice. When an invoice is created, this value is pulled from the Business object, and it is cached here. |
| total | Decimal | N/A | Output | The total of the Line Items. |
| payment_total | Decimal | N/A | Output | The total amount of Payments that have been made so far. |
| business_id | Integer | N/A | Output | The Id of the Business that this invoice is associated with. |
| contact_id | Integer | optional | Both | The Id of the Contact that this invoice is associated with. |
| due_on | Date | N/A | Output | The due date of the invoice. This defaults to today plus the "default due date" integer value of the Business object. |
| show_paypal | Boolean | N/A | Output | Whether or no to display the paypal button in the emailed invoice. The Business must have a paypal account setup (via the Business object) for this filed to be recognized. |
Example:Request: https://{your_business}.lessaccounting.com/invoices.xml?invoice[reference_name_number]=&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
Example:Request: https://{your_business}.lessaccounting.com/invoices.xml?invoice[currency_id]=1&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
update |
||||
| HTTP Verb/URL: | PUT https://<business_name>.lessaccounting.com/invoices/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 invoice. |
| reference_name_number | String | required | Both | This value will be auto-generated if it is omitted. |
| created_at | Datetime | N/A | Output | |
| updated_at | Datetime | N/A | Output | |
| proposal_template_id | Integer | N/A | Output | |
| header | Text | optional | Both | |
| first_sent | Datetime | N/A | Output | The first datetime that this invoice was sent (or marked as sent). |
| sent_at | Datetime | N/A | Output | The most recent datetime that this invoice was sent. |
| sent_to | Text | N/A | Output | A comma separated list of email addresses that this invoice was sent to. This list is who a receipt will be sent to. |
| email_heading | Text | optional | Both | |
| email_subject | String | optional | Both | |
| proposal_id | Integer | N/A | Output | The unique identifier of the Proposal that this invoice was converted from. If this invoice was not converted from a proposal, this value will be nil. |
| bank_account_id | Integer | N/A | Output | The Bank Account that this invoice's Payments should be deposited into by default. Note that the true Bank Account is determined by the Payment items associated with this invoice. This Id is meant to be used as a cached default value. |
| sales_tax_amount | Decimal | N/A | Output | The total sales tax amount applied from the Line Items of this invoice. |
| sales_tax_percentage | Decimal | N/A | Output | The percentage of sales tax applied to this invoice. When an invoice is created, this value is pulled from the Business object, and it is cached here. |
| total | Decimal | N/A | Output | The total of the Line Items. |
| payment_total | Decimal | N/A | Output | The total amount of Payments that have been made so far. |
| business_id | Integer | N/A | Output | The Id of the Business that this invoice is associated with. |
| contact_id | Integer | optional | Both | The Id of the Contact that this invoice is associated with. |
| due_on | Date | N/A | Output | The due date of the invoice. This defaults to today plus the "default due date" integer value of the Business object. |
| show_paypal | Boolean | N/A | Output | Whether or no to display the paypal button in the emailed invoice. The Business must have a paypal account setup (via the Business object) for this filed to be recognized. |
Example:Request: https://{your_business}.lessaccounting.com/invoices/11.xml?invoice[contact_id]=1&invoice[first_sent]=2008-01-01&_method=put&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
Example:Request: https://{your_business}.lessaccounting.com/invoices/11.xml?invoice[reference_name_number]=&_method=put&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
destroy |
||||
| HTTP Verb/URL: | DELETE https://<business_name>.lessaccounting.com/invoices/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 invoice. |
| reference_name_number | String | N/A | Output | This value will be auto-generated if it is omitted. |
| created_at | Datetime | N/A | Output | |
| updated_at | Datetime | N/A | Output | |
| proposal_template_id | Integer | N/A | Output | |
| header | Text | N/A | Output | |
| first_sent | Datetime | N/A | Output | The first datetime that this invoice was sent (or marked as sent). |
| sent_at | Datetime | N/A | Output | The most recent datetime that this invoice was sent. |
| sent_to | Text | N/A | Output | A comma separated list of email addresses that this invoice was sent to. This list is who a receipt will be sent to. |
| email_heading | Text | N/A | Output | |
| email_subject | String | N/A | Output | |
| proposal_id | Integer | N/A | Output | The unique identifier of the Proposal that this invoice was converted from. If this invoice was not converted from a proposal, this value will be nil. |
| bank_account_id | Integer | N/A | Output | The Bank Account that this invoice's Payments should be deposited into by default. Note that the true Bank Account is determined by the Payment items associated with this invoice. This Id is meant to be used as a cached default value. |
| sales_tax_amount | Decimal | N/A | Output | The total sales tax amount applied from the Line Items of this invoice. |
| sales_tax_percentage | Decimal | N/A | Output | The percentage of sales tax applied to this invoice. When an invoice is created, this value is pulled from the Business object, and it is cached here. |
| total | Decimal | N/A | Output | The total of the Line Items. |
| payment_total | Decimal | N/A | Output | The total amount of Payments that have been made so far. |
| business_id | Integer | N/A | Output | The Id of the Business that this invoice is associated with. |
| contact_id | Integer | N/A | Output | The Id of the Contact that this invoice is associated with. |
| due_on | Date | N/A | Output | The due date of the invoice. This defaults to today plus the "default due date" integer value of the Business object. |
| show_paypal | Boolean | N/A | Output | Whether or no to display the paypal button in the emailed invoice. The Business must have a paypal account setup (via the Business object) for this filed to be recognized. |
Example:Request: https://{your_business}.lessaccounting.com/invoices/11.xml?_method=delete&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
sending |
||||
| HTTP Verb/URL: | GET https://<business_name>.lessaccounting.com/invoices/1/sending.xml | |||
| Business sub-domain required in url: | true | |||
| Id parameter required in url: | true | |||
| API Key (api_key) parameter required: | true | |||
| Parameter | Required | Description | ||
| method_of_sending | String | optional | Input | How the invoice is sent. Allowed values are: email, email_attachment, pdf_download, none |
| email_self | Boolean | optional | Input | Send a copy of the invoice to the user? |
| send_to_contact | Boolean | optional | Input | Send a copy of the invoice to the contact? |
Example:Request: https://{your_business}.lessaccounting.com/invoices/11/sending.xml?method_of_sending=email&email_self=true&send_to_contact=true&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
| All the methods for the Line Item object must be called with the nested resource "proposals." This is true regardless of whether or not the Line Item is associated with a Proposal or an Invoice, the nested resource is to "proposals." Please see the examples. | ||||
|---|---|---|---|---|
index |
||||
| HTTP Verb/URL: | GET https://<business_name>.lessaccounting.com/proposals/1/line_items.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 line item. |
| created_at | Datetime | N/A | Output | |
| updated_at | Datetime | N/A | Output | |
| proposal_id | Integer | N/A | Output | The Id of the Proposal or Invoice that this line item is associated with. |
| unit_price | Decimal | N/A | Output | The price of one of this line item. |
| line | Text | N/A | Output | The name of the thing this line item is referring to. |
| additional_description | Text | N/A | Output | Any additional descriptive text to go along with this line item. Some HTML markup is allowed. Textile is supported, see http://hobix.com/textile/ for details. |
| quantity | Decimal | N/A | Output | |
| position | Integer | N/A | Output | The ordinal position of this line item. This is in relation to the other line items. |
| business_id | Integer | N/A | Output | The Id of the business that this line item/invoice/proposal is associated with. |
| total | Decimal | N/A | Output | The total of this line item. It is calculated as the unit_price * quantity. |
| subtotal | Decimal | N/A | Output | The subtotal of this line item. |
| taxes_total | Decimal | N/A | Output | The total taxes of this line item. |
| sales_tax_ids | Array Of Integers | N/A | Output | The sales tax ids that should be applied to this line item. |
| 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/proposals/11/line_items.xml?api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
show |
||||
| HTTP Verb/URL: | GET https://<business_name>.lessaccounting.com/proposals/1/line_items.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 line item. |
| created_at | Datetime | N/A | Output | |
| updated_at | Datetime | N/A | Output | |
| proposal_id | Integer | optional | Both | The Id of the Proposal or Invoice that this line item is associated with. |
| unit_price | Decimal | optional | Both | The price of one of this line item. |
| line | Text | optional | Both | The name of the thing this line item is referring to. |
| additional_description | Text | optional | Both | Any additional descriptive text to go along with this line item. Some HTML markup is allowed. Textile is supported, see http://hobix.com/textile/ for details. |
| quantity | Decimal | optional | Both | |
| position | Integer | optional | Both | The ordinal position of this line item. This is in relation to the other line items. |
| business_id | Integer | N/A | Output | The Id of the business that this line item/invoice/proposal is associated with. |
| total | Decimal | N/A | Output | The total of this line item. It is calculated as the unit_price * quantity. |
| subtotal | Decimal | N/A | Output | The subtotal of this line item. |
| taxes_total | Decimal | N/A | Output | The total taxes of this line item. |
| sales_tax_ids | Array Of Integers | optional | Both | The sales tax ids that should be applied to this line item. |
Example:Request: https://{your_business}.lessaccounting.com/proposals/1200/line_items/1103.xml?api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
create |
||||
| HTTP Verb/URL: | POST https://<business_name>.lessaccounting.com/proposals/1/line_items.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 line item. |
| created_at | Datetime | N/A | Output | |
| updated_at | Datetime | N/A | Output | |
| proposal_id | Integer | optional | Both | The Id of the Proposal or Invoice that this line item is associated with. |
| unit_price | Decimal | optional | Both | The price of one of this line item. |
| line | Text | optional | Both | The name of the thing this line item is referring to. |
| additional_description | Text | optional | Both | Any additional descriptive text to go along with this line item. Some HTML markup is allowed. Textile is supported, see http://hobix.com/textile/ for details. |
| quantity | Decimal | optional | Both | |
| position | Integer | optional | Both | The ordinal position of this line item. This is in relation to the other line items. |
| business_id | Integer | N/A | Output | The Id of the business that this line item/invoice/proposal is associated with. |
| total | Decimal | N/A | Output | The total of this line item. It is calculated as the unit_price * quantity. |
| subtotal | Decimal | N/A | Output | The subtotal of this line item. |
| taxes_total | Decimal | N/A | Output | The total taxes of this line item. |
| sales_tax_ids | Array Of Integers | optional | Both | The sales tax ids that should be applied to this line item. |
Example:Request: https://{your_business}.lessaccounting.com/proposals/11/line_items.xml?line_item[unit_price]=non-number&line_item[line]=&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
Example:Request: https://{your_business}.lessaccounting.com/proposals/11/line_items.xml?line_item[unit_price]=7.32&line_item[line]=yo, dis is da ting&line_item[sales_tax_ids]=1,2&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
update |
||||
| HTTP Verb/URL: | PUT https://<business_name>.lessaccounting.com/proposals/1/line_items.xml | |||
| Business sub-domain required in url: | true | |||
| Id parameter required in url: | false | |||
| 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 line item. |
| created_at | Datetime | N/A | Output | |
| updated_at | Datetime | N/A | Output | |
| proposal_id | Integer | optional | Both | The Id of the Proposal or Invoice that this line item is associated with. |
| unit_price | Decimal | optional | Both | The price of one of this line item. |
| line | Text | optional | Both | The name of the thing this line item is referring to. |
| additional_description | Text | optional | Both | Any additional descriptive text to go along with this line item. Some HTML markup is allowed. Textile is supported, see http://hobix.com/textile/ for details. |
| quantity | Decimal | optional | Both | |
| position | Integer | optional | Both | The ordinal position of this line item. This is in relation to the other line items. |
| business_id | Integer | N/A | Output | The Id of the business that this line item/invoice/proposal is associated with. |
| total | Decimal | N/A | Output | The total of this line item. It is calculated as the unit_price * quantity. |
| subtotal | Decimal | N/A | Output | The subtotal of this line item. |
| taxes_total | Decimal | N/A | Output | The total taxes of this line item. |
| sales_tax_ids | Array Of Integers | optional | Both | The sales tax ids that should be applied to this line item. |
Example:Request: https://{your_business}.lessaccounting.com/proposals/11/line_items/11.xml?line_item[unit_price]=321.12&_method=put&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
Example:Request: https://{your_business}.lessaccounting.com/proposals/11/line_items/11.xml?line_item[unit_price]=non-number&_method=put&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
destroy |
||||
| HTTP Verb/URL: | DELETE https://<business_name>.lessaccounting.com/proposals/1/line_items.xml | |||
| Business sub-domain required in url: | true | |||
| Id parameter required in url: | false | |||
| 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 line item. |
| created_at | Datetime | N/A | Output | |
| updated_at | Datetime | N/A | Output | |
| proposal_id | Integer | N/A | Output | The Id of the Proposal or Invoice that this line item is associated with. |
| unit_price | Decimal | N/A | Output | The price of one of this line item. |
| line | Text | N/A | Output | The name of the thing this line item is referring to. |
| additional_description | Text | N/A | Output | Any additional descriptive text to go along with this line item. Some HTML markup is allowed. Textile is supported, see http://hobix.com/textile/ for details. |
| quantity | Decimal | N/A | Output | |
| position | Integer | N/A | Output | The ordinal position of this line item. This is in relation to the other line items. |
| business_id | Integer | N/A | Output | The Id of the business that this line item/invoice/proposal is associated with. |
| total | Decimal | N/A | Output | The total of this line item. It is calculated as the unit_price * quantity. |
| subtotal | Decimal | N/A | Output | The subtotal of this line item. |
| taxes_total | Decimal | N/A | Output | The total taxes of this line item. |
| sales_tax_ids | Array Of Integers | N/A | Output | The sales tax ids that should be applied to this line item. |
Example:Request: https://{your_business}.lessaccounting.com/proposals/11/line_items/11.xml?_method=delete&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
index |
||||
| HTTP Verb/URL: | GET https://<business_name>.lessaccounting.com/notes.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 note. |
| created_at | Datetime | N/A | Output | |
| updated_at | Datetime | N/A | Output | |
| business_id | Integer | N/A | Output | The Business this note is associated with. |
| contact_id | Integer | N/A | Output | The contact this note is associated with. |
| body | Text | N/A | Output | |
| is_system | Boolean | N/A | Output | Was this note created by the system |
| 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/notes.xml?api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
show |
||||
| HTTP Verb/URL: | GET https://<business_name>.lessaccounting.com/notes/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 note. |
| created_at | Datetime | N/A | Output | |
| updated_at | Datetime | N/A | Output | |
| business_id | Integer | N/A | Output | The Business this note is associated with. |
| contact_id | Integer | optional | Both | The contact this note is associated with. |
| body | Text | optional | Both | |
| is_system | Boolean | N/A | Output | Was this note created by the system |
Example:Request: https://{your_business}.lessaccounting.com/notes/1.xml?api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
create |
||||
| HTTP Verb/URL: | POST https://<business_name>.lessaccounting.com/notes.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 note. |
| created_at | Datetime | N/A | Output | |
| updated_at | Datetime | N/A | Output | |
| business_id | Integer | N/A | Output | The Business this note is associated with. |
| contact_id | Integer | optional | Both | The contact this note is associated with. |
| body | Text | optional | Both | |
| is_system | Boolean | N/A | Output | Was this note created by the system |
Example:Request: https://{your_business}.lessaccounting.com/notes.xml?note[body]=note¬e[contact_id]=1&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
Example:Request: https://{your_business}.lessaccounting.com/notes.xml?note[body]=&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
update |
||||
| HTTP Verb/URL: | PUT https://<business_name>.lessaccounting.com/notes/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 note. |
| created_at | Datetime | N/A | Output | |
| updated_at | Datetime | N/A | Output | |
| business_id | Integer | N/A | Output | The Business this note is associated with. |
| contact_id | Integer | optional | Both | The contact this note is associated with. |
| body | Text | optional | Both | |
| is_system | Boolean | N/A | Output | Was this note created by the system |
Example:Request: https://{your_business}.lessaccounting.com/notes/1.xml?note[body]=&_method=put&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
Example:Request: https://{your_business}.lessaccounting.com/notes/1.xml?note[body]=note&_method=put&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
destroy |
||||
| HTTP Verb/URL: | DELETE https://<business_name>.lessaccounting.com/notes/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 note. |
| created_at | Datetime | N/A | Output | |
| updated_at | Datetime | N/A | Output | |
| business_id | Integer | N/A | Output | The Business this note is associated with. |
| contact_id | Integer | N/A | Output | The contact this note is associated with. |
| body | Text | N/A | Output | |
| is_system | Boolean | N/A | Output | Was this note created by the system |
Example:Request: https://{your_business}.lessaccounting.com/notes/1.xml?_method=delete&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
index |
||||
| HTTP Verb/URL: | GET https://<business_name>.lessaccounting.com/payments.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 payment. |
| created_at | Datetime | N/A | Output | |
| updated_at | Datetime | N/A | Output | |
| amount | Decimal | N/A | Output | |
| invoice_id | Integer | N/A | Output | The Invoice this payment is associated with. |
| bank_account_id | Integer | N/A | Output | The Bank Account that this payment is associated with. |
| date | Date | N/A | Output | The date this payment was deposited. |
| business_id | Integer | N/A | Output | The Business this payment is associated with. |
| notes | Text | N/A | Output | |
| is_paid | Boolean | N/A | Output | |
| expense_category_id | Integer | N/A | Output | The Expense Category this payment is associated with. |
| is_other_income | Boolean | N/A | Output | Is this payment from Other Income? This is not set directly. |
| is_interest_income | Boolean | N/A | Output | Is this payment from Interest Income? This is not set directly. |
| is_regular_income | Boolean | N/A | Output | Is this payment from Regular Income, like and invoice? This is not set directly. |
| is_expense | Boolean | N/A | Output | Is this payment a refund from an Expense? This is not set directly. |
| is_transfer | Boolean | N/A | Output | The Transfer Fund that this payment is associated with. |
| payment_type | String | N/A | Output | The string describing the type of payment this payment is. Allowed values are "expense refund," "regular income," "interest income" or "other income." The proper boolean flag is set automatically based on this string value. |
| 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/payments.xml?api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
show |
||||
| HTTP Verb/URL: | GET https://<business_name>.lessaccounting.com/payments/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 payment. |
| created_at | Datetime | N/A | Output | |
| updated_at | Datetime | N/A | Output | |
| amount | Decimal | required | Both | |
| invoice_id | Integer | optional | Both | The Invoice this payment is associated with. |
| bank_account_id | Integer | optional | Both | The Bank Account that this payment is associated with. |
| date | Date | optional | Both | The date this payment was deposited. |
| business_id | Integer | N/A | Output | The Business this payment is associated with. |
| notes | Text | optional | Both | |
| is_paid | Boolean | optional | Both | |
| expense_category_id | Integer | optional | Both | The Expense Category this payment is associated with. |
| is_other_income | Boolean | N/A | Output | Is this payment from Other Income? This is not set directly. |
| is_interest_income | Boolean | N/A | Output | Is this payment from Interest Income? This is not set directly. |
| is_regular_income | Boolean | N/A | Output | Is this payment from Regular Income, like and invoice? This is not set directly. |
| is_expense | Boolean | N/A | Output | Is this payment a refund from an Expense? This is not set directly. |
| is_transfer | Boolean | optional | Both | The Transfer Fund that this payment is associated with. |
| payment_type | String | required | Both | The string describing the type of payment this payment is. Allowed values are "expense refund," "regular income," "interest income" or "other income." The proper boolean flag is set automatically based on this string value. |
Example:Request: https://{your_business}.lessaccounting.com/payments/1.xml?api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
create |
||||
| HTTP Verb/URL: | POST https://<business_name>.lessaccounting.com/payments.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 payment. |
| created_at | Datetime | N/A | Output | |
| updated_at | Datetime | N/A | Output | |
| amount | Decimal | required | Both | |
| invoice_id | Integer | optional | Both | The Invoice this payment is associated with. |
| bank_account_id | Integer | optional | Both | The Bank Account that this payment is associated with. |
| date | Date | optional | Both | The date this payment was deposited. |
| business_id | Integer | N/A | Output | The Business this payment is associated with. |
| notes | Text | optional | Both | |
| is_paid | Boolean | optional | Both | |
| expense_category_id | Integer | optional | Both | The Expense Category this payment is associated with. |
| is_other_income | Boolean | N/A | Output | Is this payment from Other Income? This is not set directly. |
| is_interest_income | Boolean | N/A | Output | Is this payment from Interest Income? This is not set directly. |
| is_regular_income | Boolean | N/A | Output | Is this payment from Regular Income, like and invoice? This is not set directly. |
| is_expense | Boolean | N/A | Output | Is this payment a refund from an Expense? This is not set directly. |
| is_transfer | Boolean | optional | Both | The Transfer Fund that this payment is associated with. |
| payment_type | String | required | Both | The string describing the type of payment this payment is. Allowed values are "expense refund," "regular income," "interest income" or "other income." The proper boolean flag is set automatically based on this string value. |
Example:Request: https://{your_business}.lessaccounting.com/payments.xml?payment[amount]=&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
Example:Request: https://{your_business}.lessaccounting.com/payments.xml?payment[amount]=10.12&payment[date]=2008-01-01&payment[payment_type]=regular%20income&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
update |
||||
| HTTP Verb/URL: | PUT https://<business_name>.lessaccounting.com/payments/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 payment. |
| created_at | Datetime | N/A | Output | |
| updated_at | Datetime | N/A | Output | |
| amount | Decimal | required | Both | |
| invoice_id | Integer | optional | Both | The Invoice this payment is associated with. |
| bank_account_id | Integer | optional | Both | The Bank Account that this payment is associated with. |
| date | Date | optional | Both | The date this payment was deposited. |
| business_id | Integer | N/A | Output | The Business this payment is associated with. |
| notes | Text | optional | Both | |
| is_paid | Boolean | optional | Both | |
| expense_category_id | Integer | optional | Both | The Expense Category this payment is associated with. |
| is_other_income | Boolean | N/A | Output | Is this payment from Other Income? This is not set directly. |
| is_interest_income | Boolean | N/A | Output | Is this payment from Interest Income? This is not set directly. |
| is_regular_income | Boolean | N/A | Output | Is this payment from Regular Income, like and invoice? This is not set directly. |
| is_expense | Boolean | N/A | Output | Is this payment a refund from an Expense? This is not set directly. |
| is_transfer | Boolean | optional | Both | The Transfer Fund that this payment is associated with. |
| payment_type | String | required | Both | The string describing the type of payment this payment is. Allowed values are "expense refund," "regular income," "interest income" or "other income." The proper boolean flag is set automatically based on this string value. |
Example:Request: https://{your_business}.lessaccounting.com/payments/1.xml?payment[amount]=15.83&_method=put&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
Example:Request: https://{your_business}.lessaccounting.com/payments/1.xml?payment[amount]=&_method=put&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
destroy |
||||
| HTTP Verb/URL: | DELETE https://<business_name>.lessaccounting.com/payments/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 payment. |
| created_at | Datetime | N/A | Output | |
| updated_at | Datetime | N/A | Output | |
| amount | Decimal | N/A | Output | |
| invoice_id | Integer | N/A | Output | The Invoice this payment is associated with. |
| bank_account_id | Integer | N/A | Output | The Bank Account that this payment is associated with. |
| date | Date | N/A | Output | The date this payment was deposited. |
| business_id | Integer | N/A | Output | The Business this payment is associated with. |
| notes | Text | N/A | Output | |
| is_paid | Boolean | N/A | Output | |
| expense_category_id | Integer | N/A | Output | The Expense Category this payment is associated with. |
| is_other_income | Boolean | N/A | Output | Is this payment from Other Income? This is not set directly. |
| is_interest_income | Boolean | N/A | Output | Is this payment from Interest Income? This is not set directly. |
| is_regular_income | Boolean | N/A | Output | Is this payment from Regular Income, like and invoice? This is not set directly. |
| is_expense | Boolean | N/A | Output | Is this payment a refund from an Expense? This is not set directly. |
| is_transfer | Boolean | N/A | Output | The Transfer Fund that this payment is associated with. |
| payment_type | String | N/A | Output | The string describing the type of payment this payment is. Allowed values are "expense refund," "regular income," "interest income" or "other income." The proper boolean flag is set automatically based on this string value. |
Example:Request: https://{your_business}.lessaccounting.com/payments/1.xml?_method=delete&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
index |
||||
| HTTP Verb/URL: | GET https://<business_name>.lessaccounting.com/sales_taxes.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 sales tax. |
| created_at | Datetime | N/A | Output | |
| updated_at | Datetime | N/A | Output | |
| percentage | Decimal | N/A | Output | |
| business_id | Integer | N/A | Output | The Business this sales tax is associated with. |
| name | Text | N/A | Output | |
Example:Request: https://{your_business}.lessaccounting.com/sales_taxes.xml?api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
show |
||||
| HTTP Verb/URL: | GET https://<business_name>.lessaccounting.com/sales_taxes/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 sales tax. |
| created_at | Datetime | N/A | Output | |
| updated_at | Datetime | N/A | Output | |
| percentage | Decimal | required | Both | |
| business_id | Integer | N/A | Output | The Business this sales tax is associated with. |
| name | Text | optional | Both | |
Example:Request: https://{your_business}.lessaccounting.com/sales_taxes/1.xml?api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
create |
||||
| HTTP Verb/URL: | POST https://<business_name>.lessaccounting.com/sales_taxes.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 sales tax. |
| created_at | Datetime | N/A | Output | |
| updated_at | Datetime | N/A | Output | |
| percentage | Decimal | required | Both | |
| business_id | Integer | N/A | Output | The Business this sales tax is associated with. |
| name | Text | optional | Both | |
Example:Request: https://{your_business}.lessaccounting.com/sales_taxes.xml?sales_tax[percentage]=asdf&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
Example:Request: https://{your_business}.lessaccounting.com/sales_taxes.xml?sales_tax[percentage]=10.12&sales_tax[name]=sales%20tax&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
update |
||||
| HTTP Verb/URL: | PUT https://<business_name>.lessaccounting.com/sales_taxes/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 sales tax. |
| created_at | Datetime | N/A | Output | |
| updated_at | Datetime | N/A | Output | |
| percentage | Decimal | required | Both | |
| business_id | Integer | N/A | Output | The Business this sales tax is associated with. |
| name | Text | optional | Both | |
Example:Request: https://{your_business}.lessaccounting.com/sales_taxes/1.xml?sales_tax[percentage]=15.83&_method=put&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
Example:Request: https://{your_business}.lessaccounting.com/sales_taxes/1.xml?sales_tax[percentage]=&_method=put&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||
destroy |
||||
| HTTP Verb/URL: | DELETE https://<business_name>.lessaccounting.com/sales_taxes/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 sales tax. |
| created_at | Datetime | N/A | Output | |
| updated_at | Datetime | N/A | Output | |
| percentage | Decimal | N/A | Output | |
| business_id | Integer | N/A | Output | The Business this sales tax is associated with. |
| name | Text | N/A | Output | |
Example:Request: https://{your_business}.lessaccounting.com/sales_taxes/1.xml?_method=delete&api_key=89341988-6b36-4128-b3d5-deab427132a7Response:
|
||||