The Moneybird API allows you to automate your finance and accounting tasks by enabling programmatic access to your Moneybird account. With the API, you can create invoices, manage contacts, record payments, and fetch financial reports. This integration with Pipedream allows you to streamline your financial operations by connecting Moneybird with other apps and services to automate workflows, sync data, and trigger actions based on financial events.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
moneybird: {
type: "app",
app: "moneybird",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://moneybird.com/api/v2/${this.moneybird.$auth.administration_id}/users`,
headers: {
Authorization: `Bearer ${this.moneybird.$auth.oauth_access_token}`,
"Content-Type": `application/json`,
},
})
},
})
Automated Invoice Creation and Delivery: Using the Moneybird API on Pipedream, you can monitor new orders from your e-commerce platform (like Shopify) and automatically generate and send invoices in Moneybird. Once an order is detected, a Pipedream workflow can create an invoice and email it to the customer, without manual intervention.
Expense Tracking and Reporting: Integrate Moneybird with a time-tracking app like Toggl to automate the recording of billable hours as expenses in Moneybird. As time entries are logged in Toggl, a Pipedream workflow can translate these into expenses in Moneybird, and at the end of the month, compile these expenses into a report that's sent to your email.
Payment Status Webhooks and Notifications: With Pipedream, set up a workflow that listens for webhook events from Moneybird indicating payment status changes. Upon receiving a notification that a payment has been made, the workflow can trigger a Slack message to a designated channel, notifying your team in real time of the updated payment status.
Moneybird uses OAuth authentication. When you connect your Moneybird account, Pipedream will open a popup window where you can sign into Moneybird and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Moneybird API.
Pipedream requests the following authorization scopes when you connect your account:
sales_invoices
documents
estimates
bank
settings
time_entries
GET
https://moneybird.com/oauth/authorize
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
POST
https://moneybird.com/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}
POST
https://moneybird.com/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
grant_type=refresh_token
&
refresh_token={{oauth.refresh_token}}