From the Business plan
1. An approved purchase becomes an access notice, through the API
Starts when
The payment platform reports an approved purchase, and a small program in between calls the InvestCRM API.
How to set it up
- In Settings → Integrações (API), click + Nova chave (new key) and store it: it goes in the header of every call, as Authorization: Bearer or as x-api-key.
- Ask whoever handles your tech to build a small program that receives your payment platform's notification and calls POST /api/v1/contacts with the phone, the name, the course name in var1 (Campo 1) and the tag "Comprou". Each key accepts up to 60 calls a minute. There is no ready-made connector: without that program in the middle, the event never arrives.
- In Automations, create a flow with the Tag atribuída ao contato trigger (tag added to contact) and the tag "Comprou". Connect a Modelo aprovado block (approved template) with the acesso_liberado template, in the Utility category, mapping {{1}} = Primeiro Nome and {{2}} = Campo 1.
- In the same flow, add an Ações block with Remover da sequência, so buyers leave the reminder sequence from the next setup.
What happens next
The contact arrives with the tag and the flow fires immediately, even with no open chat, because the first send is an approved template. The exception is someone whose chat is in the queue or with an agent: then the access notice stays on hold until they write again, so close the conversation with anyone who was asking questions before paying. One API detail: it fires the Novo contato criado and Tag atribuída ao contato triggers, but not O valor no campo do contato foi alterado (field changed). That is why this setup relies on the tag rather than on the field alone.

