The Hotmart API connects you to a platform where creators sell and distribute digital products. With Pipedream, you can automate actions within Hotmart or sync its data with other apps. For example, you might automate participant registration for a course after a new sale or update customer info across your CRM system. The API provides endpoints to manage products, sales, and affiliates, offering vast possibilities for integration and automation.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
hotmart: {
type: "app",
app: "hotmart",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.hotmart.$auth.environment}.hotmart.com/payments/api/v1/subscriptions?status={{your_status}}`, //ex. status=ACTIVE
headers: {
Authorization: `Bearer ${this.hotmart.$auth.oauth_access_token}`,
"Content-Type": `application/json`,
},
})
},
})
Automate Participant Enrollment: When a new sale is completed in Hotmart, trigger a Pipedream workflow to enroll the customer in the corresponding online course platform, like Teachable or Thinkific.
Sync Sales Data to Google Sheets: Keep your finance team updated by pushing new sales data from Hotmart into a Google Sheets spreadsheet. Use this data for real-time financial reporting or sales analysis.
Update CRM with New Customer Info: After a sale, use a Pipedream workflow to add or update the customer's information in your CRM, such as HubSpot. This ensures your customer relations team always has the latest data.
Get sales commission information for sale participants. See the documentation
Retrieve sales history from the Hotmart account. See the documentation
Hotmart uses OAuth authentication. When you connect your Hotmart account, Pipedream will open a popup window where you can sign into Hotmart and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Hotmart API.
Pipedream requests the following authorization scopes when you connect your account:
POST
https://api-sec-vlc.hotmart.com/security/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
Authorization: {{custom_fields.basic}}
client_id={{custom_fields.client_id}}
&
client_secret={{custom_fields.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=client_credentials
POST
https://api-sec-vlc.hotmart.com/security/oauth/token
content-type: application/x-www-form-urlencoded
accept: application/json
Authorization: {{custom_fields.basic}}
client_id={{custom_fields.client_id}}
&
client_secret={{custom_fields.client_secret}}
&
grant_type=client_credentials
&
redirect_uri={{oauth.redirect_uri}}