with Checkout.com and Paddle?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
checkout_com: {
type: "app",
app: "checkout_com",
}
},
async run({steps, $}) {
const timestamp = Date.now()
const data = {
"email": `test-${timestamp}@example.com`
}
return await axios($, {
method: "post",
url: `https://api.${this.checkout_com.$auth.authorization_server}/customers`,
headers: {
Authorization: `Bearer ${this.checkout_com.$auth.oauth_access_token}`,
"accept": `application/json`,
},
data,
})
},
})
The Paddle API on Pipedream allows you to integrate your Paddle account to automate billing, subscription, and user management processes. You can react to events like new purchases or subscription cancellations, sync customer data to other platforms, and even automate financial reporting. This API hooks into Pipedream's capabilities of managing complex workflows with multiple steps, without the need for manual coding or server management.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
paddle: {
type: "app",
app: "paddle",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.paddle.com/event-types`,
headers: {
Authorization: `Bearer ${this.paddle.$auth.auth_code}`,
},
})
},
})