with Mercury and PortaBilling?
Retrieve information about a specific account. See the documentation
The Mercury API offers a window into banking tailored for startups. With it, you can automate your financial operations, sync transaction data with your accounting software, and monitor your business financial health programmatically. Creating workflows on Pipedream with Mercury's API allows you to connect your banking data with numerous other apps to streamline payments, reconcile transactions, and keep a pulse on your company's money matters.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
mercury: {
type: "app",
app: "mercury",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://backend.mercury.co/api/v1/accounts`,
headers: {
Authorization: `Bearer ${this.mercury.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
portabilling: {
type: "app",
app: "portabilling",
}
},
async run({steps, $}) {
return await axios($, {
method: "post",
url: `${this.portabilling.$auth.api_url}/rest/Env/get_env_info`,
headers: {
Authorization: `Bearer ${this.portabilling.$auth.oauth_access_token}`,
},
})
},
})