# Monetizze

> Connect Monetizze to your Cademí: the product code, the unique key that works as the token and the JSON postback with the sale and subscription events.

Connect Monetizze to your Cademí so each approved purchase gives the student access on its own. You need the product code, the unique key of your Monetizze account and a postback pointing to Cademí.

## 1. Create the delivery in Cademí

1. In the Cademí dashboard, open **Sales > Deliveries** and add a delivery.
2. In **Select a Gateway**, pick **Monetizze**.
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 Monetizze.
5. The **Gateway connection** section shows the **Product Code** and **Token** fields and the **Postback URL**.

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

## 2. Find the product code

1. In the Monetizze dashboard, open **Produtos** (Products) in the top menu.
2. Copy the value in the **Código** (Code) column.
3. Paste the code into **Product Code** in the Cademí delivery.

## 3. Copy the token

If you already registered your Monetizze token in another delivery, pick it in **Use an already registered token** and go to step 4.

1. In the Monetizze dashboard, open **Ferramentas > Postback** (Tools > Postback).
2. Copy the value of **Chave única** (unique key).
3. Paste it into **Token** in the Cademí delivery.

## 4. Set up the postback

1. Still in **Ferramentas > Postback**, in **Produto** (Product), choose all of them or only the one you deliver through Cademí.
2. In **Tipo** (Type), choose **Postback (JSON)**.
3. In **URL**, paste the **Postback URL** of the delivery.
4. Select the events: Finalizada/Aprovada, Cancelada, Devolvida, Assinatura - Ativa, Assinatura - Inadimplente and Assinatura - Cancelada (completed or approved, canceled, returned, and active, overdue or canceled subscription).
5. Save the postback 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 postback configuration.
