First-party app
Hotmart

Hotmart

Sell and manage online courses and digital products through Hotmart: sales, subscriptions, products, coupons and profile.

stable Commerce & PaymentsFinance & Accounting

About

Hotmart ships in the w6w first-party pack. It declares 17 actions, 2 health checks, and the host runs its code in a sandbox that never sees the credential.

App id
io.w6w.hotmart
Version
0.1.0
Author
w6w
Licence
MIT
Categories
Commerce & Payments · Finance & Accounting

Overview

Hotmart is a digital-products and online-course platform used by creators to sell ebooks, video courses, memberships and other digital goods, and to manage the affiliates, co-producers and subscribers around them.

This app covers the day-to-day of running that business from a workflow: reading sales history, summaries, participant and commission breakdowns and price detail for a transaction; issuing a refund or regenerating a boleto (bank payment slip); listing subscribers and the subscription summary Hotmart uses for recovery and retention, then cancelling, reactivating or moving a subscriber’s billing day; listing a creator’s products; and creating, listing or deleting the percentage-off coupons Hotmart’s checkout applies at the offer level. It also reads the authenticated producer’s own profile.

Every endpoint here was verified against Hotmart’s own developer documentation (developers.hotmart.com) and against live, unauthenticated probes of the API host — not inferred from a sibling integration or Hotmart’s marketing pages.

Build with Hotmart

Three routes to the same 17 actions. The Workflow tab is generated from Hotmart's own manifest and carries its real ids, so it is copy-pasteable; the Code and CLI examples are the same call for any action on any app, so every app-specific value in them is a blank you fill in.

Create Coupon

coupon-create

Create a percentage-off coupon for a (non-subscription) product. Discount is a fraction greater than 0 and less than 0.99.

Delete Coupon

coupon-delete

Delete a coupon by its numeric id (from List Coupons), not its code.

List Coupons

coupon-list

List coupons configured for a product, optionally filtered by code.

List Products

product-list

List the creator's products: id, name, status, format, subscription flag, warranty period.

Generate New Billet

sales-billet

Generate a new bank payment slip (boleto) PDF for a transaction.

List Sales Commissions

sales-commissions

Per-participant commission breakdown for each sale (producer, co-producer, affiliate), each in its own payout currency. Leaving both Transaction and Transaction Status empty returns only APPROVED/COMPLETE sales.

List Sales History

sales-history

List sales, with per-purchase detail (product, buyer, price, payment, tracking). Leaving both Transaction and Transaction Status empty returns only APPROVED/COMPLETE sales.

Get Sales Price Details

sales-price-details

Breakdown of a purchase's amount: base (commission basis), total, VAT, Hotmart fee and any coupon discount — each field can carry its own currency. Leaving both Transaction and Transaction Status empty returns only APPROVED/COMPLETE sales.

Refund Sale

sales-refund

Refund an APPROVED or COMPLETE purchase. Not available for a trial-period sale, or one paid via BACS/SEPA direct debit (the buyer must request those refunds from their bank).

Get Sales Summary

sales-summary

Total commission value per currency for a period. Leaving both Transaction and Transaction Status empty returns only APPROVED/COMPLETE sales.

List Sales Participants

sales-users

List the buyers, producers, co-producers and affiliates involved in each sale, with contact and address detail. Leaving both Transaction and Transaction Status empty returns only APPROVED/COMPLETE sales.

List Subscriptions

subscribers-list

List subscribers/subscriptions with detailed status, plan, product and price info.

Cancel Subscription

subscription-cancel

Cancel a subscription and stop its future charges.

Change Subscription Due Day

subscription-change-due-day

Change the billing day of an active or overdue subscription. Takes effect from the charge after the one already scheduled, not immediately.

Request Subscription Reactivation

subscription-reactivate

Send the subscriber a reactivation request (a link valid 3 days). The subscription stays inactive until they accept — this call does not activate it immediately.

Get Subscription Summary

subscription-summary

Recurrence/recovery status for each subscription, Smart Installment and Smart Recovery. Data lags up to 24h; use List Subscriptions for the current status instead.

Get My Profile

user-me

Get the authenticated user's own profile: name, email, address, locale, timezone.

A workflow step names the app and the action, and the editor fills in the connection when you pick one. This is the Step shape from the workflow spec, carrying Hotmart's real ids.

{
  "manifestVersion": "2",
  "name": "hotmart-example",
  "steps": [
    {
      "id": "coupon-create",
      "uses": {
        "app": "io.w6w.hotmart",
        "action": "coupon-create",
        "connection": "conn_YOUR_CONNECTION_ID"
      },
      "with": {
        "productId": "<productId>",
        "code": "<code>",
        "discount": "<discount>"
      }
    }
  ]
}

Here are some of the things you can do

  • Create Coupon

    perform
    coupon-create
  • List Coupons

    read
    coupon-list
  • List Products

    read
    product-list
  • Generate New Billet

    perform
    sales-billet
  • List Sales Commissions

    read
    sales-commissions

+12 more actions available

Every app-specific value here is a blank you have to fill in. An app action is reached through the connection that authenticates it, so the address is a connection id, not the app id — and connections belong to your account, so a public page cannot know yours. Create one for Hotmart, then fill in the three blanks: conn_YOUR_CONNECTION_ID, the action key, and the parameters that action declares. The call itself is real — the shape is transcribed from the studio's own snippet builder, which prints the same kind of blanks — but nothing in it is specific to Hotmart. The Workflow tab is where this app's real ids are.

Install
npm install @w6w/sdk
yarn add @w6w/sdk
pnpm add @w6w/sdk
deno add npm:@w6w/sdk
Code
import { W6wClient, isActionRun } from "@w6w/sdk";

// Reads W6W_BASE_URL and W6W_TOKEN from the environment when omitted.
const client = new W6wClient();

const envelope = await client.run({
  urn: "conn_YOUR_CONNECTION_ID",
  action: "coupon-create",
  payload: {
    productId: "<value>",
    code: "<value>",
    discount: "<value>",
    // startDate: "<value>",
    // endDate: "<value>",
    // affiliate: "<value>",
    // offerIds: "<value>",
  },
});

if (isActionRun(envelope)) console.log(envelope.value);
Install the CLI
npm install -g @w6w/cli
CLI
w6w run conn_YOUR_CONNECTION_ID --action coupon-create --payload '{"productId":"<value>","code":"<value>","discount":"<value>"}'

Give an AI agent Hotmart — without giving it Hotmart's credentials. One MCP endpoint exposes every app, function and workflow the caller is entitled to, as tools it can discover and run. Access is granted per team while we onboard.

One tool call
{
  "name": "w6w_invoke",
  "arguments": {
    "ref": "app:io.w6w.hotmart#coupon-create",
    "input": {
      "productId": "<productId>",
      "code": "<code>",
      "discount": "<discount>"
    }
  }
}

Every tool names its target with a single ref. The app: form above doesn't name a connection at all — the host resolves which of the caller's Hotmart connections to sign with, and refuses rather than guesses when the answer is ambiguous.

What the agent gets

Credentials it can't read

The token is attached host-side, at the moment of the call. It is never a tool argument, never in the model's context, and never in a transcript — so a prompt injection has nothing to exfiltrate.

A tool surface scoped to the caller

Tools are derived per end user from what that person has actually connected and is entitled to — not one shared bot identity carrying the union of everyone's access.

A durable workflow in one call

Multi-step work runs on the workflow engine and returns a run handle the agent can poll — retries, branching and state survive the conversation that started them.

Health-aware discovery

Hotmart's declared health checks are on the surface too, so an agent can tell "the vendor is down" from "your credential expired" before it burns a retry on either.

The MCP surface is part of the hosted platform. Hotmart itself is MIT, and the runtime that executes it is source-available (FSL).

Request MCP access

Health checks

Hotmart declares its own checks, so its health is a property of the app rather than something the host guesses at.

service

Hotmart platform status

status.hotmart.com is a client-rendered SPA with no reachable JSON, RSS, or Atom feed — every candidate path, including nonsense ones, answers the identical HTML shell.

quota

Rate-limit headroom

Requests remaining in the current minute, read from the RateLimit-*/X-RateLimit-*-Minute headers on GET /user/api/v1/me.