# Vindi

> Connect Vindi to your Cademí: the product ID, in the product's Detalhes section, and the webhook under Configurações with all events and the Postback URL.

Connect Vindi 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í. Vindi 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 **Vindi**.
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 Vindi.
5. The **Gateway connection** section shows the **Product or Plan 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 Vindi dashboard, find the product you deliver through Cademí and click **Editar** (Edit).
2. Copy the ID shown on the right side, in the **Detalhes** (Details) section.
3. Paste the ID into **Product or Plan ID** in the Cademí delivery.

## 3. Set up the webhook

1. In the Vindi dashboard, open **Configurações > Webhooks** (Settings > Webhooks) in the side menu.
2. Click **Novo Webhook** (New webhook).
3. In **URL**, paste the **Postback URL** of the delivery.
4. Select all events.
5. Click **Criar Webhook** (Create webhook) and, in Cademí, save the delivery.
