| Namespace | http://www.mulesoft.org/schema/mule/freshbooks |
|---|---|
| Schema Location | http://www.mulesoft.org/schema/mule/freshbooks/current/mule-freshbooks.xsd (View Schema) |
| Schema Version | 1.0 |
| Minimum Mule Version | 3.2 |
FreshBooks
| Configuration | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Configure an instance of this module
| |||||||||||
| Message Processors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Create a new callback for a specific event or a set of events.
| |||||||||||
Create a new category.
| |||||||||||
Create a new client and return the corresponding client_id.
| |||||||||||
Create a new invoice complete with line items. | |||||||||||
Create a new item and return the corresponding item_id. | |||||||||||
Create a new payment and returns the corresponding payment_id.
| |||||||||||
Create a session
| |||||||||||
Create a system user
| |||||||||||
Create a new tax and returns the corresponding tax_id.
| |||||||||||
Deletes a callback.
| |||||||||||
Delete an existing expense category.
| |||||||||||
Delete the client with the given client_id.
| |||||||||||
Delete an existing invoice.
| |||||||||||
Delete an existing item.
| |||||||||||
Permanently delete a payment.
| |||||||||||
Permanently delete a tax.
| |||||||||||
Return the complete category details associated with the given category_id.
| |||||||||||
Return the client details associated with the given client_id.
| |||||||||||
Returns information about the current user
| |||||||||||
Return the complete invoice details associated with the given invoice_id. | |||||||||||
Get an existing item with the given item_id. | |||||||||||
Retrieve payment details according to payment_id. | |||||||||||
Retrieve tax details according to tax_id. | |||||||||||
Return a list of registered callbacks.
| |||||||||||
Returns a list of expense categories.
| |||||||||||
Returns a list of client summaries in order of descending client_id.
| |||||||||||
Returns a list of invoice summaries.
| |||||||||||
Returns a list of items, ordered by descending item_id.
| |||||||||||
Returns a list of payment summaries.
| |||||||||||
Returns a list of taxs, ordered by descending tax_id.
| |||||||||||
Undelete a client
| |||||||||||
Undelete an invoice
| |||||||||||
Update an existing expense category with the given category_id.
| |||||||||||
Update the details of the client with the given client_id.
| |||||||||||
Update an existing invoice with the given invoice_id. | |||||||||||
Update an existing item. | |||||||||||
Update an existing payment. | |||||||||||
Update an existing tax. | |||||||||||
Verify a callback.
| |||||||||||
To use the this module within a flow the namespace to the module must be included. The resulting flow will look similar to the following:
<mule xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:freshbooks="http://www.mulesoft.org/schema/mule/freshbooks"
xsi:schemaLocation="
http://www.mulesoft.org/schema/mule/core
http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/freshbooks
http://www.mulesoft.org/schema/mule/freshbooks/current/mule-freshbooks.xsd">
<!-- here goes your flows and configuration elements -->
</mule>
This module is configured using the config element. This element must be placed outside of your flows and at the root of your Mule application. You can create as many configurations as you deem necessary as long as each carries its own name.
Each message processor, message source or transformer carries a config-ref attribute that allows the invoker to specify which configuration to use.
| Attributes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Type | Name | Default Value | Description | Java Type | MIME Type | Encoding | Optional. Give a name to this configuration so it can be later referenced. | ||||
| Api URL | |||||||||||
| Authentication Token | |||||||||||
Create a new callback for a specific event or a set of events.
INCLUDE_ERROR
Valid events
* all
* category
* category.create
* category.delete
* category.update
* client
* client.create
* client.delete
* client.update
* estimate
* estimate.create
* estimate.delete
* estimate.sendByEmail
* estimate.update
* expense
* expense.create
* expense.delete
* expense.update
* invoice
* invoice.create
* invoice.delete
* invoice.dispute
* invoice.pastdue.1
* invoice.pastdue.2
* invoice.pastdue.3
* invoice.sendByEmail
* invoice.sendBySnailMail
* invoice.update
* item
* item.create
* item.delete
* item.update
* payment
* payment.create
* payment.delete
* payment.update
* project
* project.create
* project.delete
* project.update
* recurring
* recurring.create
* recurring.delete
* recurring.update
* staff
* staff.create
* staff.delete
* staff.update
* task
* task.create
* task.delete
* task.update
* time_entry
* time_entry.create
* time_entry.delete
* time_entry.update
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| Optional. Source token value | String | */* | UTF-8 | ||
| #[payload] | Optional. To be created | Callback | */* |
| Return Type | Description |
|---|---|
| Callback | callback id |
Create a new category. If successful, returns the category id of the newly created item.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| Optional. Source token value | String | */* | UTF-8 | ||
| #[payload] | Optional. To be created | Category | */* |
| Return Type | Description |
|---|---|
| Category | The created category |
Create a new client and return the corresponding client_id. If a password is not supplied, one will be created at random.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| Optional. Source token value | String | */* | UTF-8 | ||
| #[payload] | Optional. To be created | Client | */* |
| Return Type | Description |
|---|---|
| Client | The created client |
| Payload Class | Description |
|---|---|
| FreshbooksException |
Create a new invoice complete with line items. If successful, returns the invoice_id of the newly created invoice.
* If you don't specify an invoice number, it will increment from the last one.
* You may optionally specify a different address on the invoice; otherwise the
address will be pulled from your client's details.
* You may optionally specify a return_uri element. If provided, users will be
presented with a link to the URI when they pay the invoice.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| Optional. Source token value | String | */* | UTF-8 | ||
| #[payload] | Optional. To be created | Invoice | */* |
| Return Type | Description |
|---|---|
| Invoice | The created invoice |
| Payload Class | Description |
|---|---|
| FreshbooksException |
Create a new item and return the corresponding item_id.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| Optional. Source token value | String | */* | UTF-8 | ||
| #[payload] | Optional. To be created | Item | */* |
| Return Type | Description |
|---|---|
| Item | The created item |
| Payload Class | Description |
|---|---|
| FreshbooksException |
Create a new payment and returns the corresponding payment_id.
This function can have one of three possible effects depending on the presence of invoice_id and client_id:
* If you specify an invoice_id only, the payment will be recorded as an invoice payment.
* If you specify a client_id only, the payment will be recorded as a client credit.
* If you specify both an invoice_id and client_id, the payment will be recorded as an invoice payment, and the amount will be subtracted from the client's credit.
Note that 'currency_code' can only be provided when creating a credit, not a regular payment. Regular payments will default to the currency code of the invoice they are being made against.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| Optional. Source token value | String | */* | UTF-8 | ||
| #[payload] | Optional. To be created | Payment | */* |
| Return Type | Description |
|---|---|
| Payment | The created Payment |
| Payload Class | Description |
|---|---|
| FreshbooksException |
Create a session
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| Optional. Source token value | String | */* | UTF-8 | ||
| #[payload] | Optional. The session to be created | Session | */* |
| Return Type | Description |
|---|---|
| Session | created session information |
Create a system user
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| Optional. Source token value | String | */* | UTF-8 | ||
| #[payload] | Optional. The system user to be created | SystemUser | */* |
| Return Type | Description |
|---|---|
| SystemUser | created system user |
Create a new tax and returns the corresponding tax_id.
*Tax “name” must be unique. You may not create more than one tax with the same name.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| Optional. Source token value | String | */* | UTF-8 | ||
| #[payload] | Optional. To be created | Tax | */* |
| Return Type | Description |
|---|---|
| Tax | The created Tax |
| Payload Class | Description |
|---|---|
| FreshbooksException |
Deletes a callback.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| Optional. Source token value | String | */* | UTF-8 | ||
| #[payload] | Optional. To be deleted | Callback | */* |
Delete an existing expense category.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| Optional. Source token value | String | */* | UTF-8 | ||
| #[payload] | Optional. To be deleted | Category | */* |
Delete the client with the given client_id.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| Optional. Source token value | String | */* | UTF-8 | ||
| #[payload] | Optional. To be deleted | Client | */* |
| Payload Class | Description |
|---|---|
| FreshbooksException |
Delete an existing invoice.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| Optional. Source token value | String | */* | UTF-8 | ||
| #[payload] | Optional. To be deleted | Invoice | */* |
Delete an existing item.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| Optional. Source token value | String | */* | UTF-8 | ||
| #[payload] | Optional. To be deleted | Item | */* |
Permanently delete a payment. This will modify the status of the associated invoice if required.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| Optional. Source token value | String | */* | UTF-8 | ||
| #[payload] | Optional. To be deleted | Payment | */* |
Permanently delete a tax.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| Optional. Source token value | String | */* | UTF-8 | ||
| #[payload] | Optional. To be deleted | Tax | */* |
Return the complete category details associated with the given category_id.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| Optional. Source token value | String | */* | UTF-8 | ||
| The category id | String | */* | UTF-8 |
Return the client details associated with the given client_id.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| Optional. Source token value | String | */* | UTF-8 | ||
| The client id | String | */* | UTF-8 |
| Payload Class | Description |
|---|---|
| FreshbooksException |
Returns information about the current user
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| Optional. Source token value | String | */* | UTF-8 |
| Return Type | Description |
|---|---|
| Staff | current user information |
Return the complete invoice details associated with the given invoice_id.
* You can use the links element to provide your customers with direct links to the invoice for editing, viewing by the client and viewing by an administrator.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| Optional. Source token value | String | */* | UTF-8 | ||
| The invoice id | String | */* | UTF-8 |
| Return Type | Description |
|---|---|
| Invoice | The invoice retrieved. |
Get an existing item with the given item_id.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| Optional. Source token value | String | */* | UTF-8 | ||
| The item id | String | */* | UTF-8 |
| Return Type | Description |
|---|---|
| Item | The item retrieved. |
Retrieve payment details according to payment_id.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| Optional. Source token value | String | */* | UTF-8 | ||
| The payment id | String | */* | UTF-8 |
| Return Type | Description |
|---|---|
| Payment | The payment retrieved. |
Retrieve tax details according to tax_id.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| Optional. Source token value | String | */* | UTF-8 | ||
| The tax id | String | */* | UTF-8 |
| Return Type | Description |
|---|---|
| Tax | The tax retrieved. |
Return a list of registered callbacks. You can optionally filter by event or uri.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| Optional. Source token value | String | */* | UTF-8 | ||
| #[payload] | Optional. CallbackRequest CallbackRequest object |
CallbackRequest | */* |
| Return Type | Description |
|---|---|
| Iterable<Callback> | iterable of callbacks |
Returns a list of expense categories.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| Optional. Source token value | String | */* | UTF-8 | ||
| #[payload] | Optional. CategoryRequest CategoryRequest Object |
CategoryRequest | */* |
| Return Type | Description |
|---|---|
| Iterable<Category> | A iterable of categories |
| Payload Class | Description |
|---|---|
| FreshbooksException |
Returns a list of client summaries in order of descending client_id.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| Optional. Source token value | String | */* | UTF-8 | ||
| #[payload] | Optional. ClientRequest ClientRequest object |
ClientRequest | */* |
| Return Type | Description |
|---|---|
| Iterable<Client> | A iterable of clients |
| Payload Class | Description |
|---|---|
| FreshbooksException |
Returns a list of invoice summaries. Results are ordered by descending invoice_id.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| Optional. Source token value | String | */* | UTF-8 | ||
| #[payload] | Optional. InvoiceRequest InvoiceRequest object |
InvoiceRequest | */* |
| Return Type | Description |
|---|---|
| Iterable<Invoice> | A iterable of Invoices |
Returns a list of items, ordered by descending item_id.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| Optional. Source token value | String | */* | UTF-8 | ||
| #[payload] | Optional. ItemRequest ItemRequest object |
ItemRequest | */* |
| Return Type | Description |
|---|---|
| Iterable<Item> | A iterable of Items |
Returns a list of payment summaries. Results are ordered by descending payment_id.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| Optional. Source token value | String | */* | UTF-8 | ||
| #[payload] | Optional. PaymentRequest PaymentRequest object |
PaymentRequest | */* |
| Return Type | Description |
|---|---|
| Iterable<Payment> | A iterable of Payments |
Returns a list of taxs, ordered by descending tax_id.
Filters: Use a “compound” tag to return only compound or non-compound taxes.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| Optional. Source token value | String | */* | UTF-8 | ||
| #[payload] | Optional. TaxRequest TaxRequest object |
TaxRequest | */* |
| Return Type | Description |
|---|---|
| Iterable<Tax> | A iterable of Taxes |
Undelete a client
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| Optional. Source token value | String | */* | UTF-8 | ||
| #[payload] | Optional. To be undeleted | Client | */* |
| Return Type | Description |
|---|---|
| String | the undeleted client id |
| Payload Class | Description |
|---|---|
| FreshbooksException |
Undelete an invoice
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| Optional. Source token value | String | */* | UTF-8 | ||
| #[payload] | Optional. To be undeleted | Invoice | */* |
| Return Type | Description |
|---|---|
| String | The undeleted invoice id |
Update an existing expense category with the given category_id. Any category fields left out of the request will remain unchanged.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| Optional. Source token value | String | */* | UTF-8 | ||
| #[payload] | Optional. To be updated | Category | */* |
| Return Type | Description |
|---|---|
| Category | updated category |
Update the details of the client with the given client_id. Any fields not referenced in the request will remain unchanged.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| Optional. Source token value | String | */* | UTF-8 | ||
| #[payload] | Optional. To be updated | Client | */* |
| Return Type | Description |
|---|---|
| Client | updated client |
| Payload Class | Description |
|---|---|
| FreshbooksException |
Update an existing invoice with the given invoice_id. Any invoice fields left out of the request will remain unchanged.
* If you do not specify a lines element, the existing lines will remain unchanged. If you do specify lines elements the original ones will be replaced by the new ones.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| Optional. Source token value | String | */* | UTF-8 | ||
| #[payload] | Optional. To be updated | Invoice | */* |
| Return Type | Description |
|---|---|
| Invoice | updated invoice |
| Payload Class | Description |
|---|---|
| FreshbooksException |
Update an existing item. All fields aside from the item_id are optional; by omitting a field, the existing value will remain unchanged.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| Optional. Source token value | String | */* | UTF-8 | ||
| #[payload] | Optional. To be updated | Item | */* |
| Return Type | Description |
|---|---|
| Item | updated item |
| Payload Class | Description |
|---|---|
| FreshbooksException |
Update an existing payment. All fields besides payment_id are optional - unpassed fields will retain their existing value.
Note that 'currency_code' can only be provided when updating a credit, not a regular payment. Regular payments will default to the currency code of the invoice they are being made against.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| Optional. Source token value | String | */* | UTF-8 | ||
| #[payload] | Optional. To be updated | Payment | */* |
| Return Type | Description |
|---|---|
| Payment | updated Payment |
| Payload Class | Description |
|---|---|
| FreshbooksException |
Update an existing tax. All fields aside from the tax_id are optional; by omitting a field, the existing value will remain unchanged.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| Optional. Source token value | String | */* | UTF-8 | ||
| #[payload] | Optional. To be updated | Tax | */* |
| Return Type | Description |
|---|---|
| Tax | updated Tax |
| Payload Class | Description |
|---|---|
| FreshbooksException |
Verify a callback.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding |
|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||
| Optional. Source token value | String | */* | UTF-8 | ||
| #[payload] | Optional. To be verified | Callback | */* |
| Return Type | Description |
|---|---|
| Callback | verified callback |