# OnProfit

> Connect OnProfit to your Cademí: the delivery ID you create in each OnProfit offer, the members area integration and the Postback URL of the delivery.

Connect OnProfit to your Cademí so each approved purchase gives the student access on its own. You need a delivery ID, which you create yourself in the product's offer on OnProfit, and an integration pointing to Cademí. OnProfit 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 **OnProfit**.
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 OnProfit.
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. Create the delivery ID on OnProfit

On OnProfit, the identifier Cademí receives is a delivery ID that you define in each offer of the product.

1. In the OnProfit dashboard, open **Meus Produtos** (My products) in the side menu and click **Editar** (Edit) on the product.
2. Open the **Ofertas** (Offers) tab and link the offer to the Cademí members area integration.
3. In the **Entrega** (Delivery) field, create a custom delivery ID.
4. Paste the same ID into **Product ID** in the Cademí delivery.

**Main product and offers:** if every offer delivers the same content, use the same delivery ID in each of them, editing the offers one by one. If an offer delivers different content, give it its own ID and create another delivery in Cademí with that ID. Offers that already existed need to be edited the same way.

## 3. Set up the integration

1. In the OnProfit dashboard, open **Integrações** (Integrations) in the side menu.
2. Pick **Cademí**, click **Integrar** (Integrate) and then **Adicionar Integração** (Add integration).
3. In the field shown, paste the **Postback URL** of the delivery.
4. Click **Salvar** (Save) and, in Cademí, save the delivery.
