freshbooks-php-sdk

Task extends DataTransferObject implements DataModel

Tasks in Freshbooks represent services that your business offers to clients.

Tasks are used to keep track of invoicing details of the service such as name and hourly rate. Tasks are automatically created for each project service and updates to tasks are reflected in the corresponding service and vice versa.

In general, when working with a project, use the services endpoint. When working with an invoice, use tasks.

Tags
link
https://www.freshbooks.com/api/tasks

Table of Contents

Interfaces

DataModel

Constants

RESPONSE_FIELD  = 'task'

Properties

$accountingSystemId  : string
$billable  : bool
$description  : string
$id  : int
$name  : string
$rate  : Money
$taskId  : int
$tax1  : int
$tax2  : int
$updated  : DateTimeImmutable
$visState  : int

Methods

getContent()  : array<string|int, mixed>
Get the data as an array to POST or PUT to FreshBooks, removing any read-only fields.

Constants

RESPONSE_FIELD

public mixed RESPONSE_FIELD = 'task'

Properties

$accountingSystemId

public string $accountingSystemId

Unique identifier of account the client exists on.

$billable

public bool $billable

Whether this task billable.

$description

public string $description

Descriptive text for task.

e.g. Piloting based on expectations of the executive

$id

public int $id

The unique identifier of this task within this business.

$name

public string $name

Descriptive name of task.

e.g. Piloting

$rate

public Money $rate

The hourly amount rate charged for task.

Money object containing amount and currency code.

$taskId

public int $taskId

Duplicate of id.

$tax1

public int $tax1

Id of the first tax to apply to this task.

$tax2

public int $tax2

Id of the second tax to apply to this task.

$updated

public DateTimeImmutable $updated

The time of last modification.

Methods

getContent()

Get the data as an array to POST or PUT to FreshBooks, removing any read-only fields.

public getContent() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results