Ask AI
English EN
Go to Watbot

GetCourse order

Creates an order on GetCourse for the contact who reached the block. The contact's email, name, phone and all variables are passed to GetCourse — they are written to the additional fields of the user and the order. The contact_id field with the contact's ID on the platform goes there too.

Settings panel of the "GetCourse order" blockSettings panel of the "GetCourse order" block

What to connect in advance

In the GetCourse integration, enter the "Account name" — the account name from the address name.getcourse.ru — and the "Secret key". After saving, the "Webhook" tab opens with an address to call from GetCourse processes. It is needed for the bot to learn that the order has been paid.

Settings

  • "Unique offer code" — the code of the GetCourse offer the order is created for.
  • "Deal cost" — the cost of the order. You can use templates, for example a variable with the amount.
  • "Multiple deals per contact" — on: every pass through the block creates a new order. Off: the block updates the first order already created for this contact.

Outputs

  • "Continue" — right after the block, without waiting for the payment.
  • "Successful payment" — when GetCourse has called the Webhook from the integration and passed a link to the purchase in the link parameter. The bot sends the person the message "Link to your product - …" and leads them through this output.

Good to know

  • The contact must have an email. Without it the block does not create an order. Ask for the email earlier in the scenario.
  • The Webhook finds the contact by the email or user_id parameter. In user_id, pass the contact's ID on the platform — the value of the contact_id field.
  • If payment_link is passed to the Webhook instead of link, the bot sends the person the message "Link to pay order on GetCourse - …". The output is not followed in this case.
  • If the order could not be created, the person will not know about it: the reason is visible only in the block's execution log.