# Cakto

> Connect Cakto to your Cademí: the product ID in the address bar and the webhook under Integrações > Webhooks with the sale events.

Connect Cakto to your Cademí so each approved purchase gives the student access on its own. You need the product ID and a webhook pointing to Cademí. Cakto does not ask for a token.

## 1. Create the delivery in Cademí

1. In the Cademí dashboard, open **Sales > Deliveries** and add a delivery.
2. In **Select a Gateway**, pick **Cakto**. The screen shows the notice **This gateway is in the beta implementation phase, but you can already use it**: carry on as usual.
3. In **Delivery Name**, enter a name that helps you recognize it later.
4. In **Sales Mode**, choose **One-time sale** or **Subscription**, matching the product on Cakto.
5. The **Gateway connection** section shows the **Product ID** field and the **Postback URL**.

Keep the delivery open: you come back to it in the next steps.

## 2. Find the product ID

1. In the Cakto dashboard, open **Produtos** (Products) in the side menu and click the product you deliver through Cademí.
2. In the browser's address bar, copy only the sequence of digits in the address: that is the product ID.
3. Paste the ID into **Product ID** in the Cademí delivery.

## 3. Set up the webhook

**Attention:** do not use the direct Cademí integration that Cakto offers. The connection is made through a webhook, as below.

1. In the Cakto dashboard, open **Integrações > Webhooks** (Integrations > Webhooks) and click **Adicionar** (Add).
2. In the webhook name, enter "Cademí".
3. In **URL**, paste the **Postback URL** of the delivery.
4. Choose the products you deliver through Cademí.
5. Select the events: Compra aprovada, Compra recusada, Reembolso, Chargeback, Assinatura criada, Assinatura renovada and Assinatura cancelada (approved and declined purchase, refund, chargeback, subscription created, renewed and canceled).
6. Click **Salvar** (Save) and, in Cademí, save the delivery.

**If you chose only some products:** each time you start delivering a new product through Cademí, add it to this webhook.
