with Switch and Brex?
Lists all settled transactions for the primary card account. See the docs here
Lists all transactions for the specified cash account. See the docs here
/*
Switch is single path branching operator.
Create non-linear workflows with multiple
execution branches and Pipedream will execute
the first branch that matches the configured
rules. The order in which rules are defined
will affect the path of execution.
The code for this operator is not currently
public. Please select the *Switch* operator
from the *Add Step* menu.
Check out the docs to learn more:
https://pipedream.com/docs/workflows/control-flow/switch
*/
The Brex API offers a powerful avenue for automating financial operations, providing programmatic access to a company's Brex account. Through the API, you can manage cards, view transactions, and handle rewards programmatically. When combined with Pipedream, the API's capabilities expand, allowing users to integrate Brex data with other apps, trigger workflows based on financial events, and streamline financial reporting and reconciliation processes.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
brex: {
type: "app",
app: "brex",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://platform.brexapis.com/v2/users/me`,
headers: {
Authorization: `Bearer ${this.brex.$auth.oauth_access_token}`,
},
})
},
})