The most powerful, customizable and easy to integrate subscription billing software used by hundreds of companies worldwide to simplify revenue operations
Get the duration between two dates in days, hours, minutes, and seconds along with checking if they are the same.
Format a date string to another date string. For more examples on formatting, see the Sugar Date Format documentation.
The Billsby API allows for automated subscription management, providing endpoints to create and manage customer accounts, subscriptions, invoices, and payments. With Pipedream, you can connect Billsby to hundreds of other services, triggering workflows based on subscription events, syncing customer data, or automating billing processes. This can lead to more efficient operations, better customer experiences, and timely data-driven decisions.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
billsby: {
type: "app",
app: "billsby",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://public.billsby.com/api/v1/rest/core/${this.billsby.$auth.company_domain}/subscriptions`,
headers: {
"ApiKey": `${this.billsby.$auth.api_key}`,
"accept": `application/json`,
},
params: {
page: `1`,
pageSize: `5`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})