Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
  1. No painel da Herospark no menu "Piloto automático” clique no botão “usar modelo de automação”. Essa ação precisará ser repetida 4 vezes, uma para cada tipo de webhook.

...

Todas as automações possuem o mesmo Body (copie o trecho abaixo e cole em todas):

Code Block
{ "data": { "buyer": { "name": "{{ buyer_name }}", "email": "{{ buyer_email }}", "checkout_phone": "{{ buyer_phone_raw }}" }, "product": { "id": "{{ product_id }}", "name": "{{ product_name }}" }, "producer": { "name": "{{ school.name }}" }, "purchase": { "offer": { "code": "{{ offer_id }}", "kind": "{{ offer_kind }}" }, "price": { "value": "{{ offer_price }}" }, "status": "{{ payment_status }}", "payment": { "type": "{{ payment_method }}" }, "order_date": "{{ payment_date }}", "transaction": "{{ payment_id }}", "approved_date": "{{ payment_date }}" }, "subscription": { "status": "{{ subscription_status }}", "subscriber": { "code": "{{ offer_id }}{{ buyer_email }}" }, "next_invoice": "{{ subscription_next_invoice_at }}", "expiration_at": "{{ subscription_expiration_at }}", "available_until": "{{ subscription_available_until }}", "subscription_id": "{{ subscription_id }}" } }, "event": "MUDAR"MUDAR” }

Substitua o atributo “event” no final do trecho acima pelos valores abaixo para cada caso:

...