The intelligent way to create and pay bills, send invoices, and get paid. Get started with BILL.
Go to siteimport { axios } from "@pipedream/platform"
export default defineComponent({
props: {
bill: {
type: "app",
app: "bill",
}
},
async run({steps, $}) {
const data = {
"devKey": `${this.bill.$auth.developer_key}`,
"sessionId": `${this.bill.$auth.sessionId}`,
}
return await axios($, {
method: "post",
url: `https://${this.bill.$auth.environment}.bill.com/api/v2/GetSessionInfo.json`,
data,
})
},
})
BILL uses OAuth authentication. When you connect your BILL account, Pipedream will open a popup window where you can sign into BILL and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any BILL API.
Pipedream requests the following authorization scopes when you connect your account:
do not use
POST
https://{{custom_fields.environment}}.bill.com/api/v2/Login.json
content-type: application/x-www-form-urlencoded
accept: application/json
userName={{custom_fields.username}}
&
password={{custom_fields.password}}
&
devKey={{custom_fields.developerKey}}
&
orgId={{custom_fields.organizationId}}