Skip to content

Projects

Manage your Projects in Moneybird.

Working with Projects

This section covers how to interact with Moneybird’s Projects API. You can create, retrieve, update, and delete projects.

Basic Operations

Get a Project

Retrieve a project by its ID.

$project = $client->projects()->get('123456789');

List Projects

Get a paginated list of projects.

$projects = $client->projects()->paginate();
// Iterate through the pages
foreach ($projects as $project) {
echo $project->name;
}

Get All Projects

Get all projects at once.

$allProjects = $client->projects()->all();
// Iterate through all projects
foreach ($allProjects as $project) {
echo $project->name;
}

Create a Project

Create a new project.

$data = [
'name' => 'Website Redesign',
'state' => 'active'
];
$project = $client->projects()->create($data);

Update a Project

Update an existing project.

$updateData = [
'name' => 'Website Redesign 2.0',
'state' => 'archived'
];
$project = $client->projects()->update('123456789', $updateData);

Delete a Project

Delete a project.

$client->projects()->delete('123456789');

Project Properties

When working with projects, you’ll have access to the following properties:

PropertyTypeDescription
idstringUnique identifier
administration_idstringID of the administration the project belongs to
namestringName of the project
statestringCurrent state of the project (e.g., ‘active’, ‘archived’)
created_atstringISO 8601 timestamp of when the project was created
updated_atstringISO 8601 timestamp of when the project was last updated

Note: See the official API reference for the complete list of available properties.

Further reading