Payments, Deposits, Cards
Emit new event for new failed or processed events
The Brex (Staging) API allows you to automate financial operations and integrate with Brex's suite of financial services. This API can be leveraged to synchronize transactions, manage cards, and automate accounting processes, providing real-time insights into your business finances. Using Pipedream, these capabilities can be harnessed to create custom workflows that trigger actions based on financial events, reconcile expenses, and streamline financial reporting.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
brex_staging: {
type: "app",
app: "brex_staging",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://platform.staging.brexapps.com/v2/cards`,
headers: {
Authorization: `Bearer ${this.brex_staging.$auth.oauth_access_token}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})